/* =========================================================
   UBAID LAKHANI — PORTFOLIO
   Tokens: Blue #0F4C81 / White / Light Gray, glassmorphism
   Type: Poppins (display+body), JetBrains Mono (utility/eyebrow)
   ========================================================= */

:root{
  /* Brand */
  --blue-900:#0B3A63;
  --blue:#0F4C81;
  --blue-600:#1668B3;
  --blue-400:#3B82D6;
  --blue-100:#E8F0FA;

  /* Neutrals — light mode */
  --bg:#FFFFFF;
  --bg-alt:#F5F7FA;
  --surface:#FFFFFF;
  --surface-glass: rgba(255,255,255,0.6);
  --border: rgba(15,76,129,0.12);
  --text:#0B1B2B;
  --text-soft:#4A5A6A;
  --text-faint:#7C8CA0;

  --shadow-sm: 0 2px 10px rgba(15,76,129,0.06);
  --shadow-md: 0 10px 30px rgba(15,76,129,0.10);
  --shadow-lg: 0 24px 60px rgba(15,76,129,0.16);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --font-display: 'Poppins', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22,.9,.28,1);
}

[data-theme="dark"]{
  --bg:#0A1420;
  --bg-alt:#0E1B2C;
  --surface:#101E30;
  --surface-glass: rgba(16,30,48,0.55);
  --border: rgba(255,255,255,0.08);
  --text:#EAF1FA;
  --text-soft:#AFC0D4;
  --text-faint:#7488A0;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.25);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);

  --blue-100: rgba(59,130,214,0.14);
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-display);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background .4s var(--ease), color .4s var(--ease);
}
img,svg{display:block; max-width:100%;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font:inherit; cursor:pointer; background:none; border:none; color:inherit;}
input,textarea{font:inherit; color:inherit;}
h1,h2,h3,h4{font-weight:700; line-height:1.15;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}

:focus-visible{
  outline:2.5px solid var(--blue-400);
  outline-offset:3px;
  border-radius:4px;
}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--blue); color:#fff; padding:12px 20px; z-index:999; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

/* ---------- Loader ---------- */
.loader{
  position:fixed; inset:0; z-index:9999;
  background:var(--blue);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px;
  transition:opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.loader-mark{ display:flex; gap:4px; font-family:var(--font-display); font-weight:800; font-size:2.4rem; color:#fff; }
.loader-mark span{ display:inline-block; animation:loaderPop 1.1s var(--ease) infinite; }
.loader-mark span:nth-child(2){ animation-delay:.15s; }
@keyframes loaderPop{ 0%,100%{ transform:translateY(0); opacity:.6;} 50%{ transform:translateY(-10px); opacity:1;} }
.loader-bar{ width:160px; height:3px; background:rgba(255,255,255,0.25); border-radius:4px; overflow:hidden; }
.loader-bar span{ display:block; height:100%; width:40%; background:#fff; border-radius:4px; animation:loaderSlide 1.2s var(--ease) infinite; }
@keyframes loaderSlide{ 0%{ transform:translateX(-100%);} 100%{ transform:translateX(350%);} }

/* ---------- Scroll progress ---------- */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background:linear-gradient(90deg, var(--blue-400), var(--blue-600));
  z-index:1001; transition:width .1s linear;
}

/* ---------- Navbar ---------- */
.navbar{
  position:fixed; top:0; left:0; right:0; z-index:900;
  height:var(--nav-h);
  display:flex; align-items:center;
  background:transparent;
  transition:background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.navbar.scrolled{
  background:var(--surface-glass);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  box-shadow:var(--shadow-sm);
  border-bottom:1px solid var(--border);
}
.nav-container{
  width:100%; max-width:var(--container); margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.logo{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:1.05rem; }
.logo-mark{
  width:38px; height:38px; border-radius:10px;
  background:linear-gradient(135deg, var(--blue), var(--blue-600));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-weight:700; font-size:.85rem;
  box-shadow:var(--shadow-sm);
}
.logo-mark.small{ width:34px; height:34px; }
.logo-text em{ color:var(--blue-600); font-style:normal; }

.nav-links{ display:flex; align-items:center; gap:8px; }
.nav-link{
  position:relative; padding:8px 14px; border-radius:999px; font-size:.92rem; font-weight:500;
  color:var(--text-soft); transition:color .25s, background .25s;
}
.nav-link:hover{ color:var(--blue-600); }
.nav-link.active{ color:var(--blue-600); background:var(--blue-100); }

.nav-actions{ display:flex; align-items:center; gap:10px; }

.theme-toggle{
  width:40px; height:40px; border-radius:50%;
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  position:relative; color:var(--text);
  transition:background .25s;
}
.theme-toggle:hover{ background:var(--blue-100); }
.theme-toggle .fa-sun{ display:none; }
[data-theme="dark"] .theme-toggle .fa-moon{ display:none; }
[data-theme="dark"] .theme-toggle .fa-sun{ display:block; color:#FFD36E; }

.nav-cta{ display:inline-flex; }
.nav-toggle{
  display:none; width:38px; height:32px; flex-direction:column; justify-content:space-between;
}
.nav-toggle span{ height:2px; width:100%; background:currentColor; border-radius:2px; transition:transform .3s var(--ease), opacity .3s; }
.nav-toggle.open span:nth-child(1){ transform:translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-9px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:.95rem;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space:nowrap;
}
.btn i{ font-size:.85em; }
.btn-primary{ background:linear-gradient(135deg, var(--blue), var(--blue-600)); color:#fff; box-shadow:0 10px 24px rgba(15,76,129,0.28); }
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 16px 32px rgba(15,76,129,0.36); }
.btn-outline{ border:1.5px solid var(--border); color:var(--text); background:var(--surface); }
.btn-outline:hover{ transform:translateY(-3px); border-color:var(--blue-600); color:var(--blue-600); }
.btn-ghost{ color:var(--text-soft); }
.btn-ghost:hover{ color:var(--blue-600); }
.btn-sm{ padding:9px 18px; font-size:.85rem; }
.btn-block{ width:100%; justify-content:center; }

/* ---------- Hero ---------- */
.hero{
  position:relative; min-height:100vh;
  display:flex; align-items:center;
  padding-top:var(--nav-h);
  overflow:hidden;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, var(--blue-100) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 85% 15%, var(--blue-100) 0%, transparent 60%),
    var(--bg);
}
.hero-bg{ position:absolute; inset:0; z-index:0; will-change:transform; }
.blob{
  position:absolute; border-radius:50%;
  filter:blur(80px); opacity:.4;
  animation:float 16s ease-in-out infinite;
  transition:transform .3s ease-out;
}
.blob-1{ width:460px; height:460px; background:linear-gradient(135deg, var(--blue-400), var(--blue-600)); top:-140px; right:-100px; }
.blob-2{ width:380px; height:380px; background:linear-gradient(135deg, var(--blue-600), var(--blue-900)); bottom:-120px; left:-80px; animation-delay:-6s; }
.blob-3{ width:260px; height:260px; background:linear-gradient(135deg, #5FA8E6, var(--blue-400)); top:38%; left:42%; opacity:.28; animation-delay:-3s; animation-duration:20s; }
@keyframes float{
  0%,100%{ transform:translate(0,0) scale(1); }
  33%{ transform:translate(24px,-30px) scale(1.06); }
  66%{ transform:translate(-18px,18px) scale(0.96); }
}
.grid-overlay{
  position:absolute; inset:0;
  background-image:linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 80%);
  opacity:.5;
}
.noise-overlay{
  position:absolute; inset:0; opacity:.025; mix-blend-mode:overlay; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center;
  padding:120px 24px 80px;
}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.8rem; letter-spacing:.02em;
  color:var(--blue-600); background:var(--surface-glass); border:1px solid var(--border);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  padding:8px 14px; border-radius:999px; margin-bottom:26px;
  box-shadow:var(--shadow-sm);
}
.eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:#2FBF71; box-shadow:0 0 0 4px rgba(47,191,113,.18); animation:pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot{ 0%,100%{ box-shadow:0 0 0 4px rgba(47,191,113,.18);} 50%{ box-shadow:0 0 0 7px rgba(47,191,113,.08);} }

.hero-title{ font-size:clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing:-.025em; margin-bottom:12px; }
.hero-title .highlight{
  background:linear-gradient(135deg, var(--blue), var(--blue-600) 60%, var(--blue-400));
  background-size:200% auto;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:shine 6s ease-in-out infinite;
}
@keyframes shine{ 0%,100%{ background-position:0% center; } 50%{ background-position:100% center; } }

.hero-role{
  display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
  font-weight:500; font-size:clamp(1.05rem, 2.1vw, 1.4rem);
  margin-bottom:20px; min-height:1.6em;
}
.role-prefix{ color:var(--text-faint); font-family:var(--font-mono); font-size:.85em; }
.typewriter{ display:inline-flex; align-items:baseline; }
.typewriter-text{
  font-family:var(--font-mono); font-weight:600;
  background:linear-gradient(135deg, var(--blue), var(--blue-600));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.cursor{
  display:inline-block; width:2px; height:1em; margin-left:3px; transform:translateY(2px);
  background:var(--blue-600); animation:blink 0.9s step-end infinite;
}
@keyframes blink{ 0%,49%{ opacity:1; } 50%,100%{ opacity:0; } }

.hero-headline{ font-size:clamp(1.1rem, 1.8vw, 1.35rem); font-weight:600; color:var(--text); margin-bottom:16px; max-width:520px; }
.hero-desc{ color:var(--text-soft); max-width:520px; margin-bottom:32px; }

.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:34px; }

/* Gradient glow buttons */
.btn-glow{ position:relative; overflow:hidden; }
.btn-glow::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform:translateX(-120%); transition:transform .6s var(--ease);
}
.btn-glow:hover::before{ transform:translateX(120%); }
.btn-glow span{ position:relative; z-index:1; }
.btn-glow i{ position:relative; z-index:1; }

/* Social icons */
.hero-social{ display:flex; gap:12px; margin-bottom:40px; }
.social-icon{
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--surface-glass); border:1px solid var(--border);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  color:var(--blue-600); font-size:1rem; box-shadow:var(--shadow-sm);
  opacity:0; transform:translateY(10px);
  animation:popIn .5s var(--ease) forwards;
  animation-delay:calc(var(--i) * .12s + .4s);
  transition:transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
@keyframes popIn{ to{ opacity:1; transform:translateY(0); } }
.social-icon:hover{
  background:linear-gradient(135deg, var(--blue), var(--blue-600));
  color:#fff; transform:translateY(-5px) scale(1.08);
  box-shadow:0 12px 24px rgba(15,76,129,.32);
}

/* Stat cards */
.hero-stats{ display:flex; gap:16px; flex-wrap:wrap; }
.stat-card{
  display:flex; flex-direction:column; gap:6px;
  background:var(--surface-glass); border:1px solid var(--border);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-radius:var(--radius-md); padding:18px 22px;
  box-shadow:var(--shadow-sm);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  flex:1 1 150px;
}
.stat-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:var(--blue-400); }
.stat-icon{
  width:34px; height:34px; border-radius:9px; background:var(--blue-100); color:var(--blue-600);
  display:flex; align-items:center; justify-content:center; font-size:.85rem; margin-bottom:2px;
}
.stat-value{ display:flex; align-items:baseline; }
.stat-num{ font-size:1.8rem; font-weight:800; color:var(--blue); font-family:var(--font-mono); }
.stat-plus{ font-size:1.1rem; font-weight:700; color:var(--blue-600); margin-left:-4px; }
.stat-label{ font-size:.76rem; color:var(--text-faint); }

/* Hero editor card */
.hero-visual{ position:relative; will-change:transform; }
.editor-card{
  position:relative;
  background:var(--surface-glass);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  overflow:hidden;
  transform:perspective(1000px) rotateY(-6deg) rotateX(2deg);
  transition:box-shadow .4s var(--ease);
}
.editor-card:hover{ box-shadow:0 30px 70px rgba(15,76,129,.22); }
.editor-glow{
  position:absolute; inset:-2px; z-index:-1; border-radius:inherit;
  background:linear-gradient(135deg, var(--blue-400), var(--blue-600), var(--blue-400));
  background-size:200% 200%; opacity:.5; filter:blur(18px);
  animation:glowMove 8s ease-in-out infinite;
}
@keyframes glowMove{ 0%,100%{ background-position:0% 50%; } 50%{ background-position:100% 50%; } }
.editor-topbar{
  display:flex; align-items:center; gap:8px;
  padding:14px 18px; border-bottom:1px solid var(--border);
}
.editor-topbar .dot{ width:11px; height:11px; border-radius:50%; }
.dot.red{ background:#FF5F57; } .dot.yellow{ background:#FEBC2E; } .dot.green{ background:#28C840; }
.editor-filename{ margin-left:10px; font-family:var(--font-mono); font-size:.78rem; color:var(--text-faint); }
.editor-body{
  padding:24px; font-family:var(--font-mono); font-size:.86rem; line-height:1.8;
  color:var(--text-soft); min-height:260px; white-space:pre-wrap; word-break:break-word;
}
.type-cursor{ color:var(--blue-600); animation:blink 0.9s step-end infinite; }

.float-badge{
  position:absolute; width:52px; height:52px; border-radius:14px;
  background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-md);
  display:flex; align-items:center; justify-content:center; font-size:1.3rem;
  animation:float 8s ease-in-out infinite;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.float-badge:hover{ transform:scale(1.15) translateY(-4px) !important; box-shadow:var(--shadow-lg); }
.badge-html{ color:#E34F26; top:-18px; left:-18px; }
.badge-css{ color:#2965F1; bottom:20px; left:-30px; animation-delay:-2s; }
.badge-js{ color:#F0DB4F; top:30%; right:-24px; animation-delay:-4s; }
.badge-wp{ color:#21759B; bottom:-20px; right:20px; animation-delay:-6s; }

.scroll-cue{
  position:absolute; left:50%; bottom:28px; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.72rem; color:var(--text-faint); z-index:2;
  transition:color .25s;
}
.scroll-cue:hover{ color:var(--blue-600); }
.scroll-cue span{ width:1px; height:34px; background:linear-gradient(var(--blue-600), transparent); animation:scrollDown 1.6s ease-in-out infinite; }
@keyframes scrollDown{ 0%{ opacity:0; transform:translateY(-6px);} 40%{ opacity:1;} 100%{ opacity:0; transform:translateY(10px);} }

/* ---------- Sections ---------- */
.section{ padding:120px 0; position:relative; }
.section:nth-of-type(even){ background:var(--bg-alt); }
.section-eyebrow{
  font-family:var(--font-mono); font-size:.8rem; color:var(--blue-600); letter-spacing:.06em; text-transform:uppercase; margin-bottom:10px;
}
.section-title{ font-size:clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing:-.02em; margin-bottom:14px; }
.section-sub{ color:var(--text-soft); max-width:560px; margin-bottom:50px; }

/* ---------- About ---------- */
.about-grid{ display:grid; grid-template-columns:.8fr 1.2fr; gap:60px; align-items:center; }
.about-visual{ display:flex; justify-content:center; }
.about-frame{ position:relative; width:280px; height:280px; }
.about-frame-inner{
  width:100%; height:100%; border-radius:var(--radius-lg);
  background:linear-gradient(160deg, var(--blue), var(--blue-600));
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-lg);
}
.about-frame-inner i{ font-size:4.5rem; color:rgba(255,255,255,0.9); }
.about-ring{
  position:absolute; inset:-18px; border:1.5px dashed var(--border); border-radius:36px; animation:spin 30s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.about-text{ color:var(--text-soft); font-size:1.02rem; margin-bottom:34px; max-width:600px; }
.info-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px 28px; margin-bottom:36px; }
.info-item{ display:flex; align-items:flex-start; gap:14px; }
.info-item i{
  width:40px; height:40px; border-radius:12px; background:var(--blue-100); color:var(--blue-600);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:.95rem;
}
.info-item span{ display:block; font-size:.72rem; color:var(--text-faint); text-transform:uppercase; letter-spacing:.05em; margin-bottom:2px; }
.info-item p{ font-size:.92rem; font-weight:500; word-break:break-word; }
.info-item a:hover{ color:var(--blue-600); }

/* ---------- Skills ---------- */
.skills-grid{ display:grid; grid-template-columns:repeat(5, 1fr); gap:22px; }
.skill-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:28px 22px; text-align:center; box-shadow:var(--shadow-sm);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.skill-card:hover{ transform:translateY(-8px); box-shadow:var(--shadow-md); border-color:var(--blue-400); }
.skill-icon{ font-size:2.1rem; color:var(--blue-600); margin-bottom:14px; }
.skill-card h3{ font-size:.95rem; margin-bottom:16px; }
.skill-bar{ height:6px; background:var(--bg-alt); border-radius:6px; overflow:hidden; }
[data-theme="dark"] .skill-bar{ background:rgba(255,255,255,0.08); }
.skill-bar span{
  display:block; height:100%; width:0%; border-radius:6px;
  background:linear-gradient(90deg, var(--blue), var(--blue-400));
  transition:width 1.4s var(--ease);
}

/* ---------- Experience ---------- */
.timeline{ position:relative; max-width:780px; margin:0 auto; padding-left:36px; }
.timeline::before{ content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background:var(--border); }
.timeline-item{ position:relative; }
.timeline-dot{
  position:absolute; left:-36px; top:8px; width:14px; height:14px; border-radius:50%;
  background:var(--blue-600); box-shadow:0 0 0 5px var(--blue-100);
}
.timeline-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:32px; box-shadow:var(--shadow-sm);
}
.timeline-head{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.timeline-head h3{ font-size:1.15rem; margin-bottom:4px; }
.timeline-company{ color:var(--blue-600); font-weight:600; font-size:.92rem; }
.timeline-date{
  font-family:var(--font-mono); font-size:.78rem; color:var(--text-faint);
  background:var(--bg-alt); padding:6px 12px; border-radius:999px; white-space:nowrap;
}
.timeline-list{ display:grid; grid-template-columns:1fr 1fr; gap:10px 20px; }
.timeline-list li{ color:var(--text-soft); font-size:.92rem; padding-left:20px; position:relative; }
.timeline-list li::before{ content:'\f00c'; font-family:'Font Awesome 6 Free'; font-weight:900; position:absolute; left:0; top:1px; color:var(--blue-600); font-size:.72rem; }

/* ---------- Projects ---------- */
.projects-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:32px; }
.project-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:var(--shadow-sm);
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.project-card:hover{ transform:translateY(-10px); box-shadow:var(--shadow-lg); }
.project-browser{ border-bottom:1px solid var(--border); }
.project-browser-bar{ display:flex; align-items:center; gap:6px; padding:12px 16px; background:var(--bg-alt); }
.project-browser-bar .dot{ width:9px; height:9px; border-radius:50%; }
.project-url{ margin-left:10px; font-family:var(--font-mono); font-size:.72rem; color:var(--text-faint); }
.project-thumb{
  height:200px; display:flex; align-items:center; justify-content:center; font-size:3.4rem; color:#fff;
  transition:transform .5s var(--ease);
}
.project-card:hover .project-thumb{ transform:scale(1.06); }
.thumb-1{ background:linear-gradient(135deg,#0F4C81,#1668B3); }
.thumb-2{ background:linear-gradient(135deg,#8B1E1E,#C63C3C); }
.thumb-3{ background:linear-gradient(135deg,#4A4A4A,#767676); }
.thumb-4{ background:linear-gradient(135deg,#1A1A1A,#3B3B3B); }
.project-info{ padding:26px; }
.project-info h3{ font-size:1.15rem; margin-bottom:8px; }
.project-info p{ color:var(--text-soft); font-size:.92rem; margin-bottom:16px; }
.tags{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.tags span{ font-size:.72rem; font-family:var(--font-mono); background:var(--blue-100); color:var(--blue-600); padding:5px 11px; border-radius:999px; }
.project-link{ font-weight:600; font-size:.9rem; color:var(--blue-600); display:inline-flex; align-items:center; gap:8px; }
.project-link i{ font-size:.75em; transition:transform .25s; }
.project-link:hover i{ transform:translate(3px,-3px); }

/* ---------- Why Hire Me ---------- */
.why-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; }
.why-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:30px 24px; box-shadow:var(--shadow-sm);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.why-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.why-card i{ font-size:1.6rem; color:var(--blue-600); margin-bottom:16px; }
.why-card h3{ font-size:1rem; margin-bottom:8px; }
.why-card p{ font-size:.86rem; color:var(--text-soft); }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:.8fr 1.2fr; gap:44px; }
.contact-info{ display:flex; flex-direction:column; gap:16px; }
.contact-item{
  display:flex; align-items:center; gap:16px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:20px; box-shadow:var(--shadow-sm); transition:transform .25s var(--ease), border-color .25s;
}
.contact-item:hover{ transform:translateY(-4px); border-color:var(--blue-400); }
.contact-icon{
  width:48px; height:48px; border-radius:12px; background:var(--blue-100); color:var(--blue-600);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0;
}
.contact-item span{ display:block; font-size:.72rem; color:var(--text-faint); text-transform:uppercase; letter-spacing:.05em; }
.contact-item p{ font-weight:600; font-size:.95rem; }

.contact-form{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:36px; box-shadow:var(--shadow-md);
}
.form-row{ margin-bottom:20px; display:flex; flex-direction:column; gap:8px; }
.form-row label{ font-size:.82rem; font-weight:600; color:var(--text-soft); }
.form-row input, .form-row textarea{
  background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:13px 16px; transition:border-color .25s, box-shadow .25s; resize:vertical;
}
.form-row input:focus, .form-row textarea:focus{ border-color:var(--blue-600); box-shadow:0 0 0 4px var(--blue-100); }
.form-error{ font-size:.76rem; color:#D64545; min-height:14px; }
.form-status{ margin-top:14px; font-size:.88rem; text-align:center; min-height:20px; color:var(--blue-600); font-weight:500; }

/* ---------- Footer ---------- */
.footer{ background:var(--blue-900); color:#EAF1FA; padding:44px 0; }
[data-theme="dark"] .footer{ background:#08111C; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.footer-brand{ display:flex; align-items:center; gap:12px; }
.footer-name{ font-weight:700; }
.footer-role{ font-size:.8rem; color:rgba(234,241,250,0.65); }
.footer-linkedin{ display:flex; align-items:center; gap:8px; font-size:.9rem; color:rgba(234,241,250,0.85); transition:color .25s; }
.footer-linkedin:hover{ color:#fff; }
.footer-copy{ font-size:.8rem; color:rgba(234,241,250,0.55); }

/* ---------- Back to top ---------- */
.back-to-top{
  position:fixed; right:26px; bottom:26px; width:48px; height:48px; border-radius:50%;
  background:var(--blue); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-md); opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  z-index:500;
}
.back-to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background:var(--blue-600); }

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .hero-grid{ grid-template-columns:1fr; padding-top:140px; }
  .hero-visual{ max-width:520px; margin:0 auto; }
  .about-grid{ grid-template-columns:1fr; }
  .about-visual{ order:-1; }
  .skills-grid{ grid-template-columns:repeat(3, 1fr); }
  .why-grid{ grid-template-columns:repeat(2, 1fr); }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width:860px){
  .nav-links{
    position:fixed; top:var(--nav-h); left:0; right:0; bottom:0;
    background:var(--surface); flex-direction:column; align-items:stretch; gap:2px;
    padding:20px 24px; transform:translateX(100%); transition:transform .35s var(--ease);
    overflow-y:auto;
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-link{ padding:14px; border-radius:12px; }
  .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .projects-grid{ grid-template-columns:1fr; }
}

@media (max-width:640px){
  .section{ padding:80px 0; }
  .skills-grid{ grid-template-columns:repeat(2, 1fr); }
  .why-grid{ grid-template-columns:1fr; }
  .info-grid{ grid-template-columns:1fr; }
  .timeline{ padding-left:28px; }
  .timeline-list{ grid-template-columns:1fr; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-actions .btn{ justify-content:center; }
  .hero-social{ justify-content:center; }
  .hero-stats{ gap:12px; }
  .stat-card{ flex:1 1 100px; padding:14px 16px; }
  .editor-card{ transform:none; }
  .float-badge{ width:42px; height:42px; font-size:1.05rem; }
}
