@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255,255,255,0.03);
  --bg-glass: rgba(255,255,255,0.05);
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --accent: #6c5ce7;
  --accent-2: #a855f7;
  --accent-3: #38bdf8;
  --gradient-1: linear-gradient(135deg, #6c5ce7, #a855f7);
  --gradient-2: linear-gradient(135deg, #a855f7, #38bdf8);
  --gradient-3: linear-gradient(135deg, #6c5ce7, #38bdf8);
  --border: rgba(255,255,255,0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --font-body: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── LOADER ─── */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s, visibility .6s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-ring {
  width: 50px; height: 50px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 0 auto 16px;
}
.loader-content span { font-family: var(--font-display); font-size: .9rem; color: var(--text-secondary); letter-spacing: 3px; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── CURSOR ─── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%,-50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid rgba(108,92,231,.4);
  transition: width .2s, height .2s, border-color .2s;
}
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--accent-2); }

@media (pointer: coarse), (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,15,.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s, background .3s;
}
.nav.scrolled { padding: 12px 40px; background: rgba(10,10,15,.9); }
.nav-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: .85rem; font-weight: 500; color: var(--text-secondary);
  letter-spacing: .5px; position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gradient-1); transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: .3s; border-radius: 2px; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 40px 80px;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0;
}
.hero-gradient {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  filter: blur(120px); opacity: .15; pointer-events: none;
}
.hero-gradient-1 { background: var(--accent); top: -200px; right: -100px; }
.hero-gradient-2 { background: var(--accent-3); bottom: -200px; left: -100px; }
.hero-content {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 2;
}
.hero-text {
  padding-left: 45px;
}
@media (max-width: 1024px) {
  .hero-text { padding-left: 0; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px;
  background: var(--bg-glass); border: 1px solid var(--border);
  font-size: .8rem; color: var(--accent-2); margin-bottom: 20px;
}
.hero-badge .dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:.4; } }
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 16px;
}
.hero-title .gradient-text {
  background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.typing-text { color: var(--accent-2); font-weight: 600; }
.typing-cursor { animation: blink .8s infinite; color: var(--accent); }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }
.hero-location {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
}
.hero-location i {
  color: var(--accent-3);
  margin-right: 8px;
  vertical-align: -1px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all .3s; border: none; font-family: var(--font-body);
}
.btn-primary {
  background: var(--gradient-1); color: #fff;
  box-shadow: 0 4px 24px rgba(108,92,231,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108,92,231,.5); }
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-avatar-wrapper {
  position: relative; width: 340px; height: 340px;
}
.hero-avatar-ring {
  position: absolute; inset: -12px; border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              var(--gradient-1) border-box;
  animation: rotate-ring 8s linear infinite;
}
@keyframes rotate-ring { to { transform: rotate(360deg); } }
.hero-avatar-ring::before {
  content: ''; position: absolute; top: -4px; left: 50%; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%; transform: translateX(-50%);
  box-shadow: 0 0 16px var(--accent);
}
.hero-avatar {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--border);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-card {
  position: absolute; padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--bg-glass); backdrop-filter: blur(16px);
  border: 1px solid var(--border); font-size: .8rem;
  animation: float 3s ease-in-out infinite;
  display: flex; align-items: center; gap: 10px;
}
.hero-float-card:nth-child(3) { top: -10px; right: -60px; animation-delay: 0s; }
.hero-float-card:nth-child(4) { bottom: -10px; left: -70px; animation-delay: .8s; }
.hero-float-card:nth-child(5) { top: 50%; left: -80px; transform: translateY(-50%); animation-delay: 1.5s; }
.hero-float-card:nth-child(6) { bottom: 60px; right: -70px; animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-float-card .card-icon { font-size: 1.2rem; color: var(--accent-2); }
.hero-float-card .card-label { color: var(--text-muted); font-size: .65rem; margin-bottom: 1px; }
.hero-float-card .card-value { color: var(--text-primary); font-weight: 600; font-size: .82rem; }

/* Hero orbit icons */
.hero-orbit {
  position: absolute; inset: -50px; border-radius: 50%;
  border: 1px dashed rgba(108,92,231,.15);
  animation: rotate-ring 20s linear infinite;
}
.hero-orbit-icon {
  position: absolute; width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--accent-2);
}
.hero-orbit-icon:nth-child(1) { top: -19px; left: 50%; transform: translateX(-50%); }
.hero-orbit-icon:nth-child(2) { top: 50%; right: -19px; transform: translateY(-50%); }
.hero-orbit-icon:nth-child(3) { bottom: -19px; left: 50%; transform: translateX(-50%); }
.hero-orbit-icon:nth-child(4) { top: 50%; left: -19px; transform: translateY(-50%); }
.hero-orbit-icon:nth-child(5) { top: 12%; right: 5%; }
.hero-orbit-icon:nth-child(6) { bottom: 12%; left: 5%; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 5;
  pointer-events: none;
}
.hero-scroll span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.7;
  animation: pulse-scroll 2.5s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 30px; background: rgba(255, 255, 255, 0.08);
  position: relative; overflow: hidden; border-radius: 1px;
}
.scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 50%;
  background: var(--gradient-1); animation: scroll-anim 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes pulse-scroll {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(4px); }
}
@keyframes scroll-anim {
  0% { top: -100%; }
  80%, 100% { top: 100%; }
}

/* ─── SECTIONS ─── */
.section { padding: 100px 40px; max-width: 1440px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  font-size: .8rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 12px; font-weight: 600;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; margin-bottom: 16px;
}
.section-desc { color: var(--text-secondary); max-width: 560px; margin: 0 auto; font-size: .95rem; }
.section-line {
  width: 60px; height: 3px; background: var(--gradient-1);
  margin: 20px auto 0; border-radius: 2px;
}

/* ─── ABOUT ─── */
#about { background: var(--bg-secondary); border-radius: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; max-width: 1440px; margin: 0 auto; padding: 80px 40px 40px; }
.about-image-col { position: relative; }
.about-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-profile-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(108, 92, 231, 0.12);
}
.about-image-box {
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); position: relative;
  background: var(--bg-secondary);
}
.about-image-box img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  filter: brightness(0.92) contrast(1.05);
}
.about-profile-card:hover .about-image-box img {
  transform: scale(1.04);
  filter: brightness(1.05) contrast(1.1);
}
.about-image-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.5), transparent 40%);
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.about-profile-card:hover .about-image-box::after {
  opacity: 0.7;
}
.about-exp-badge {
  position: absolute; bottom: 10px; right: 10px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--gradient-1); text-align: center;
  z-index: 2;
}
.about-exp-badge .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.about-exp-badge .label { font-size: .65rem; color: rgba(255,255,255,.9); margin-top: 2px; }
.about-profile-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-profile-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  color: var(--text-secondary);
  padding: 10px 14px;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all .3s;
}
.about-profile-item:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--accent);
}
.about-profile-item i {
  color: var(--accent-2);
  width: 18px;
  text-align: center;
  font-size: .9rem;
}
.about-text h3 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 20px;
}
.about-text p { color: var(--text-secondary); margin-bottom: 16px; font-size: .95rem; line-height: 1.7; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.highlight-item {
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--bg-glass); border: 1px solid var(--border);
  transition: all .3s;
}
.highlight-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.highlight-item .icon { font-size: 1.2rem; margin-bottom: 8px; color: var(--accent-2); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(108,92,231,.1); border-radius: 8px; }
.highlight-item .h-title { font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.highlight-item .h-desc { font-size: .78rem; color: var(--text-muted); }

/* ─── EXPERIENCE ─── */
.exp-timeline { position: relative; max-width: 700px; margin: 0 auto; }
.exp-timeline::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.exp-item {
  display: flex; gap: 24px; margin-bottom: 40px; position: relative;
}
.exp-dot {
  width: 12px; height: 12px; min-width: 12px; border-radius: 50%;
  background: var(--accent); margin-top: 6px;
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 16px rgba(108,92,231,.4);
  position: relative; left: 19px;
}
.exp-content {
  padding: 24px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  flex: 1; margin-left: 12px;
  transition: border-color .3s, transform .3s;
}
.exp-content:hover { border-color: var(--accent); transform: translateX(4px); }
.exp-content h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.exp-content p { font-size: .88rem; color: var(--text-secondary); }

/* ─── SKILLS (CIRCULAR GAUGE SYSTEM) ─── */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}
.skill-gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}
.skill-gauge-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity .3s;
}
.skill-gauge-card:hover {
  border-color: rgba(108,92,231,0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(108,92,231,0.15);
}
.skill-gauge-card:hover::before { opacity: 1; }

/* Circular gauge */
.skill-gauge {
  position: relative;
  width: 90px;
  height: 90px;
}
.skill-gauge svg {
  width: 90px;
  height: 90px;
  transform: rotate(-90deg);
}
.skill-gauge-bg {
  fill: none;
  stroke: rgba(255,255,255,0.04);
  stroke-width: 6;
}
.skill-gauge-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px var(--gauge-color));
}
.skill-gauge-card:hover .skill-gauge-fill {
  filter: drop-shadow(0 0 12px var(--gauge-color));
}
.skill-gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.skill-gauge-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}
.skill-gauge-sub {
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── PROJECTS ─── */
.projects-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.projects-tab {
  padding: 8px 24px; border-radius: 50px; border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); font-size: .85rem;
  cursor: pointer; transition: all .3s; font-family: var(--font-body); font-weight: 500;
}
.projects-tab.active, .projects-tab:hover {
  background: var(--gradient-1); color: #fff; border-color: transparent;
}
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all .4s; position: relative; display: flex; flex-direction: column;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: var(--shadow); }
.project-image { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(10,10,15,.85));
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: opacity .4s;
}
.project-card:hover .project-image-overlay { opacity: 1; }
.project-overlay-btn {
  padding: 8px 18px; border-radius: 50px; font-size: .75rem; font-weight: 600;
  background: var(--gradient-1); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.project-info { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; }
.project-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 50px; width: fit-content;
  font-size: .72rem; font-weight: 600; background: rgba(108,92,231,.12);
  color: var(--accent-2); margin-bottom: 10px;
}
.project-tag i { font-size: .7rem; }
.project-info h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.project-info p { font-size: .84rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.project-tech-stack { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.project-tech {
  padding: 3px 10px; border-radius: 4px; font-size: .7rem; font-weight: 500;
  background: rgba(255,255,255,.04); color: var(--text-muted);
}

/* ─── GALLERY ─── */
.gallery-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.gallery-tab {
  padding: 8px 24px; border-radius: 50px; border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); font-size: .85rem;
  cursor: pointer; transition: all .3s; font-family: var(--font-body);
}
.gallery-tab.active, .gallery-tab:hover {
  background: var(--gradient-1); color: #fff; border-color: transparent;
}
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); position: relative; cursor: pointer;
  aspect-ratio: 1; transition: transform .3s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item-overlay {
  position: absolute; inset: 0; background: rgba(10,10,15,.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span { color: #fff; font-size: .85rem; font-weight: 500; text-align: center; padding: 8px; }

/* ─── CERTS ─── */
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card {
  padding: 24px; text-align: center; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all .3s;
}
.cert-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.cert-icon {
  width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 14px;
  background: rgba(108,92,231,.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--accent-2);
}
.cert-card h4 { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.cert-card p { font-size: .78rem; color: var(--text-muted); }

/* ─── CONTACT ─── */
#contact { background: var(--bg-secondary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; padding: 100px 40px; }
.contact-info h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 20px; }
.contact-info p { color: var(--text-secondary); margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-item .c-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-glass); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-item .c-text span { font-size: .75rem; color: var(--text-muted); display: block; }
.contact-item .c-text a, .contact-item .c-text p { font-size: .9rem; color: var(--text-primary); margin: 0; }
.social-links { display: flex; gap: 12px; margin-top: 28px; }
.social-link {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-glass); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all .3s;
}
.social-link:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-form form { display: flex; flex-direction: column; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group {
  position: relative;
}
.form-group i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .95rem;
  transition: color .3s;
  pointer-events: none;
  z-index: 2;
}
.form-group textarea + i {
  top: 24px;
  transform: none;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: all .3s;
  outline: none;
  resize: none;
  appearance: none;
}
.form-group select {
  cursor: pointer;
}
.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 15px rgba(108,92,231,0.15);
}
.form-group input:focus + i, .form-group textarea:focus + i, .form-group select:focus + i {
  color: var(--accent-3);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--text-muted);
}
.btn-submit {
  width: 100%;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: var(--gradient-1);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(108,92,231,.3);
  transition: all .3s;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,92,231,.5);
}

/* ─── FOOTER ─── */
.footer {
  text-align: center; padding: 40px;
  border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--text-muted);
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { padding-left: 0; }
  .hero-visual { display: none; }
  .hero-buttons { justify-content: center; }
  .hero-subtitle { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; padding: 60px 24px 30px; gap: 40px; }
  .about-profile-card { max-width: 450px; margin: 0 auto; }
  .skills-categories { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; padding: 60px 24px; }
  .section { padding: 80px 24px; }
}

@media (max-width: 768px) {
  .hero-avatar-ring, .hero-orbit { display: none; }
  .nav { padding: 14px 20px; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--bg-secondary); flex-direction: column;
    padding: 80px 32px; gap: 24px; transition: right .3s;
    border-left: 1px solid var(--border); z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; z-index: 1000; }
  .hero { padding: 100px 20px 60px; }
  .section { padding: 60px 16px; }
  .about-grid { padding: 50px 16px 24px; gap: 32px; }
  .about-profile-card { max-width: 100%; }
  .about-text h3 { font-size: 1.6rem; }
  .about-highlights { grid-template-columns: 1fr 1fr; gap: 12px; }
  .highlight-item { padding: 14px 16px; }
  .skills-categories { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
  .skill-gauge-card { padding: 20px 12px; }
  .skill-gauge { width: 75px; height: 75px; }
  .skill-gauge svg { width: 75px; height: 75px; }
  .skill-gauge-value { font-size: 1rem; }
  .skill-gauge-label { font-size: .72rem; }
  .skill-gauge-sub { font-size: .58rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-float-card { display: none; }
  .contact-grid { padding: 50px 16px; gap: 40px; }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info h3 { font-size: 1.6rem; }
  .section-title { font-size: 1.8rem; }
  .exp-timeline { padding-left: 0; }
}

@media (max-width: 480px) {
  .hero { padding: 90px 16px 50px; }
  .hero-avatar-wrapper { width: 200px; height: 200px; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; text-align: center; }
  .about-grid { padding: 40px 14px 20px; gap: 24px; }
  .about-text h3 { font-size: 1.4rem; }
  .about-text p { font-size: .88rem; }
  .about-highlights { grid-template-columns: 1fr; gap: 10px; }
  .section { padding: 50px 14px; }
  .section-title { font-size: 1.5rem; }
  .section-label { font-size: .7rem; letter-spacing: 2px; }
  .skills-categories { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .skill-gauge-card { padding: 16px 8px; gap: 10px; }
  .skill-gauge { width: 60px; height: 60px; }
  .skill-gauge svg { width: 60px; height: 60px; }
  .skill-gauge-value { font-size: .85rem; }
  .skill-gauge-label { font-size: .65rem; }
  .skill-gauge-sub { font-size: .52rem; letter-spacing: .5px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 20px 16px; }
  .form-group input, .form-group textarea, .form-group select { padding: 14px 16px 14px 44px; font-size: .85rem; }
  .form-group i { left: 16px; font-size: .85rem; }
  .btn-submit { padding: 14px 24px; font-size: .85rem; }
  .contact-info h3 { font-size: 1.4rem; }
  .exp-content { padding: 16px; }
  .exp-content h4 { font-size: .95rem; }
  .exp-content p { font-size: .82rem; }
  .projects-tabs { gap: 8px; }
  .projects-tab { padding: 6px 16px; font-size: .78rem; }
  .project-info { padding: 16px; }
  .project-info h3 { font-size: .95rem; }
  .project-info p { font-size: .8rem; }
}

@media (max-width: 360px) {
  .skills-categories { grid-template-columns: repeat(2, 1fr); }
  .skill-gauge { width: 55px; height: 55px; }
  .skill-gauge svg { width: 55px; height: 55px; }
  .skill-gauge-value { font-size: .78rem; }
  .about-grid { padding: 32px 12px 16px; }
  .section { padding: 40px 12px; }
  .hero { padding: 80px 12px 40px; }
}

/* ─── LIGHTBOX MODAL ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.lightbox.active {
  opacity: 1; visibility: visible;
}
.lightbox-close {
  position: absolute; top: 30px; right: 30px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s ease; z-index: 10002;
}
.lightbox-close:hover {
  background: var(--accent); border-color: var(--accent);
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 0 15px rgba(108,92,231,0.5);
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s ease; z-index: 10001;
}
.lightbox-nav:hover {
  background: var(--accent-2); border-color: var(--accent-2);
  box-shadow: 0 0 15px rgba(168,85,247,0.5);
}
.lightbox-nav.prev { left: 40px; }
.lightbox-nav.next { right: 40px; }
.lightbox-nav.prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-nav.next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox-content {
  max-width: 80%; max-height: 80vh;
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 10000;
  transform: scale(0.95); transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.active .lightbox-content {
  transform: scale(1);
}
.lightbox-content img {
  max-width: 100%; max-height: 72vh; object-fit: contain;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  opacity: 0; transition: opacity .3s ease;
}
.lightbox-caption {
  margin-top: 20px; font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600; color: var(--text-primary);
  background: var(--bg-glass); border: 1px solid var(--border);
  padding: 8px 24px; border-radius: 30px; text-align: center;
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
}

/* Lightbox responsive adjustments */
@media (max-width: 768px) {
  .lightbox-content { max-width: 92%; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 0.95rem; }
  .lightbox-nav.prev { left: 16px; }
  .lightbox-nav.next { right: 16px; }
  .lightbox-close { top: 20px; right: 20px; width: 38px; height: 38px; font-size: 1rem; }
  .lightbox-caption { font-size: 0.9rem; padding: 6px 18px; }
}
