/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-3: #2a2a2a;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --border: #e5e7eb;
  --border-2: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f5f5f5;
  --accent: #6d28d9;
  --accent-2: #7c3aed;
  --accent-soft: rgba(0,0,0,0.04);
  --accent-border: rgba(0,0,0,0.1);
  --accent-hover-soft: rgba(109,40,217,0.08);
  --accent-hover-border: rgba(109,40,217,0.2);

  --nav-height: 64px;
  --max-w: 1080px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Poppins', sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);

  --ease: cubic-bezier(0.4,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --t-fast: 0.15s var(--ease);
  --t-base: 0.25s var(--ease);
  --t-slow: 0.4s var(--ease);
}

[data-theme="dark"] {
  --ink: #f9fafb;
  --ink-2: #e5e7eb;
  --ink-3: #9ca3af;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --border: #1f2937;
  --border-2: #111827;
  --surface: #0d0d0d;
  --surface-2: #111111;
  --surface-3: #181818;
  --accent-soft: rgba(255,255,255,0.05);
  --accent-border: rgba(255,255,255,0.08);
  --accent-hover-soft: rgba(124,58,237,0.12);
  --accent-hover-border: rgba(124,58,237,0.25);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:var(--nav-height); }
body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  transition: background var(--t-base), color var(--t-base);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration:none; color:inherit; transition: color var(--t-fast); }
img { max-width:100%; height:auto; display:block; }
ul, ol { list-style:none; }
button { cursor:pointer; border:none; outline:none; font-family:inherit; background:none; }

/* ============================================
   LAYOUT
   ============================================ */
.container { width:100%; max-width:var(--max-w); margin:0 auto; padding:0 24px; }
.section { padding: 96px 0; }

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.text-accent {
  color: var(--accent);
}
.text-gradient {
  color: var(--ink);
  font-style: italic;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--muted);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
}

.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* ============================================
   PAGE TRANSITION
   ============================================ */
.page-transition {
  position:fixed; top:0; left:0; width:100%; height:100%;
  background: var(--ink);
  z-index:10000;
  transform:scaleY(0);
  transform-origin:bottom;
  pointer-events:none;
}
.page-transition.active {
  animation: pageIn 0.5s var(--ease) forwards;
}
@keyframes pageIn {
  0%   { transform:scaleY(0); transform-origin:bottom; }
  50%  { transform:scaleY(1); transform-origin:bottom; }
  51%  { transform-origin:top; }
  100% { transform:scaleY(0); transform-origin:top; }
}

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
  position:fixed; inset:0;
  background: var(--surface);
  z-index:99999;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:16px;
  transition: opacity 0.4s, visibility 0.4s;
}
.page-loader.hidden { opacity:0; visibility:hidden; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  color: var(--ink);
}
.loader-spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--muted);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
  position:fixed; top:0; left:0; height:1px;
  background: var(--border);
  z-index:10001; width:0%;
  transition: width 0.1s linear;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position:fixed; top:0; left:0; width:100%;
  height: var(--nav-height);
  z-index:1000;
  transition: all var(--t-base);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(13,13,13,0.9);
}
.navbar .container {
  display:flex; align-items:center;
  justify-content:space-between; height:100%;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  display:flex; align-items:center; gap:4px;
}
.nav-logo .dot {
  display:inline-block; width:5px; height:5px;
  background: var(--muted);
  border-radius: 50%;
  margin-left: 1px;
}
@keyframes blink-dot {
  0%,100% { opacity:1; }
  50% { opacity:0.2; }
}

.nav-links { display:flex; align-items:center; gap:2px; }
.nav-links a {
  font-size: 13.5px; font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-3); }
.nav-links a.active { color: var(--ink); }

.nav-actions { display:flex; align-items:center; gap:6px; }
.theme-toggle {
  width:36px; height:36px;
  display:flex; align-items:center; justify-content:center;
  border-radius: var(--r-md);
  color: var(--muted);
  transition: all var(--t-fast);
  position:relative;
}
.theme-toggle:hover { background: var(--surface-3); color: var(--ink); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon {
  position:absolute; transition: all var(--t-base);
}
.theme-toggle .icon-sun { opacity:0; transform:rotate(-90deg) scale(0); }
.theme-toggle .icon-moon { opacity:1; transform:rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity:1; transform:rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity:0; transform:rotate(90deg) scale(0); }

.nav-toggle {
  display:none; flex-direction:column; gap:4px;
  width:36px; height:36px; align-items:center; justify-content:center;
  border-radius:var(--r-md); cursor:pointer; z-index:1001;
}
.nav-toggle span {
  display:block; width:18px; height:1.5px;
  background: var(--ink); border-radius:2px;
  transition: all var(--t-base);
}
.nav-toggle.active span:nth-child(1) { transform:rotate(45deg) translate(4px,4px); }
.nav-toggle.active span:nth-child(2) { opacity:0; }
.nav-toggle.active span:nth-child(3) { transform:rotate(-45deg) translate(4px,-4px); }

@media (max-width:768px) {
  .nav-toggle { display:flex; }
  .nav-links {
    position:fixed; top:0; right:-100%; width:260px; height:100vh;
    flex-direction:column; align-items:stretch;
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 88px 20px 40px; gap:2px;
    transition: right var(--t-slow);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { right:0; }
  .nav-links a { font-size:15px; padding:12px 16px; }
  .mobile-overlay {
    position:fixed; top:0; left:0; width:100%; height:100%;
    background:rgba(0,0,0,0.4);
    z-index:998; opacity:0; pointer-events:none;
    transition: opacity var(--t-base);
  }
  .mobile-overlay.active { opacity:1; pointer-events:all; }
}

/* ============================================
   NAVBAR INNER PAGES
   ============================================ */
.navbar-inner {
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: var(--shadow-xs) !important;
}
[data-theme="dark"] .navbar-inner { background:rgba(13,13,13,0.9) !important; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap: 7px; font-size: 13.5px; font-weight: 600;
  padding: 10px 22px; border-radius: var(--r-md);
  transition: all var(--t-fast);
  white-space: nowrap; letter-spacing: 0.1px;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--surface);
  border: 1px solid var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(109,40,217,0.3);
}
[data-theme="dark"] .btn-primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
[data-theme="dark"] .btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--ink-3);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface-3);
  border-color: var(--muted);
  transform: translateY(-1px);
}
.btn-sm { padding: 8px 16px; font-size: 12.5px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display:flex; align-items:center;
  position:relative; overflow:hidden;
  padding-top: var(--nav-height);
}

/* Subtle grid */
.hero::before {
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(var(--border-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-2) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index:0;
  opacity: 0.6;
}
/* Soft vignette to fade grid at edges */
.hero::after {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, var(--surface) 100%);
  z-index:0;
}

.hero-bg { display:none; }

@keyframes float {
  0%,100%{ transform:translate(0,0); }
  50%{ transform:translate(20px,-20px); }
}

.hero .container {
  position:relative; z-index:1;
  display:flex; align-items:center;
  justify-content:space-between; gap:72px;
}

.hero-content { flex:1; max-width:540px; }

.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease-out;
}
.hero-badge .status-dot {
  width:7px; height:7px;
  background: #22c55e; border-radius:50%;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
  animation: pulse-green 2.5s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100%{ box-shadow:0 0 0 2px rgba(34,197,94,0.25); }
  50%{ box-shadow:0 0 0 6px rgba(34,197,94,0); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
  animation: fadeInUp 0.6s ease-out 0.08s backwards;
}

.hero-tagline {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 480px;
  animation: fadeInUp 0.6s ease-out 0.16s backwards;
}
.hero-tagline .typing-text {
  color: var(--ink);
  font-weight: 600;
}

.hero-buttons {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  animation: fadeInUp 0.6s ease-out 0.24s backwards;
}

.hero-stats {
  display:flex; gap:40px;
  margin-top: 48px; padding-top: 36px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.6s ease-out 0.32s backwards;
}
.hero-stat h3 {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.hero-stat p {
  font-size: 12px; color: var(--muted);
  margin-top: 2px; font-weight: 500;
  letter-spacing: 0.3px;
}

/* Hero Image */
.hero-image {
  flex-shrink:0; position:relative;
  animation: fadeInRight 0.8s ease-out 0.2s backwards;
}
.hero-image-wrapper {
  position:relative; width:360px; height:360px;
}
.hero-image-wrapper img {
  width:100%; height:100%; object-fit:cover;
  border-radius: var(--r-xl);
  position:relative; z-index:2;
  box-shadow: var(--shadow-lg);
  filter: grayscale(8%);
  transition: filter var(--t-slow);
}
.hero-image-wrapper:hover img { filter: grayscale(0%); }
.hero-image-decoration {
  position:absolute; inset:-1px;
  border-radius: calc(var(--r-xl) + 1px);
  background: var(--border);
  z-index:1;
}
.hero-image-ring { display:none; }
.hero-image-dots { display:none; }

/* Floating badges */
.hero-float-badge {
  position:absolute; z-index:10;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  display:flex; align-items:center; gap:10px;
  box-shadow: var(--shadow-md);
  animation: float 7s ease-in-out infinite;
}
.hero-float-badge:nth-child(3) { bottom:-16px; left:-32px; animation-delay:-2s; }
.hero-float-badge:nth-child(4) { top:16px; right:-32px; animation-delay:-5s; }
.hero-float-badge .badge-icon {
  width:28px; height:28px;
  background: var(--surface-3);
  border-radius: var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  color: var(--muted); flex-shrink:0;
}
.hero-float-badge .badge-text strong {
  display:block; font-size:12.5px; font-weight:700; color:var(--ink);
}
.hero-float-badge .badge-text span { font-size:11px; color:var(--muted); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section { padding-top:calc(var(--nav-height) + 56px); }
.about-grid {
  display:grid; grid-template-columns:1fr 1.2fr;
  gap:72px; align-items:center;
}
.about-image { position:relative; }
.about-image-wrapper {
  position:relative; border-radius:var(--r-xl);
  overflow:hidden; box-shadow:var(--shadow-lg);
}
.about-image-wrapper img {
  width:100%; height:480px; object-fit:cover;
  transition: transform var(--t-slow);
  filter: grayscale(5%);
}
.about-image-wrapper:hover img { transform:scale(1.02); filter:grayscale(0%); }
.about-image-overlay {
  position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.08) 100%);
  z-index:1;
}
.about-floating-card {
  position:absolute; bottom:-20px; right:-24px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding:16px 20px; border-radius:var(--r-lg);
  box-shadow:var(--shadow-md);
  display:flex; align-items:center; gap:12px; z-index:3;
}
.about-floating-card .icon {
  width:36px; height:36px;
  background: var(--surface-3);
  border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  color: var(--muted);
}
.about-floating-card .info h4 { font-size:1rem; font-weight:700; }
.about-floating-card .info p { font-size:12px; color:var(--muted); margin-top:1px; }

.about-content .section-eyebrow { margin-bottom:12px; }
.about-text { font-size:15px; color:var(--muted); line-height:1.8; margin-bottom:24px; }

.about-highlights {
  display:grid; grid-template-columns:1fr 1fr;
  gap:10px; margin-bottom:32px;
}
.about-highlight-item {
  display:flex; align-items:center; gap:10px;
  padding:12px 14px;
  background: var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  font-size:13.5px; font-weight:500;
  transition:all var(--t-fast);
}
.about-highlight-item:hover {
  background: var(--surface-3);
  border-color: var(--muted-2);
  transform:translateX(3px);
}
.about-highlight-item .check {
  width:18px; height:18px;
  background: var(--surface-3);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--muted); font-size:10px; flex-shrink:0;
}
.about-buttons { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

/* Timeline */
.timeline { margin-top:64px; }
.timeline-title {
  font-family:var(--font-display); font-size:1.25rem;
  font-weight:700; margin-bottom:32px;
  display:flex; align-items:center; gap:10px;
}
.timeline-items { position:relative; padding-left:28px; }
.timeline-items::before {
  content:''; position:absolute; left:5px; top:6px; bottom:6px;
  width:1px; background:var(--border); border-radius:1px;
}
.timeline-item { position:relative; padding-bottom:28px; }
.timeline-item:last-child { padding-bottom:0; }
.timeline-item::before {
  content:''; position:absolute; left:-28px; top:6px;
  width:11px; height:11px;
  background: var(--surface);
  border:2px solid var(--muted);
  border-radius:50%; z-index:1;
}
.timeline-item .year {
  font-size:11px; font-weight:700;
  color:var(--muted-2); margin-bottom:4px;
  letter-spacing:0.5px; text-transform:uppercase;
}
.timeline-item h4 { font-size:14px; font-weight:600; margin-bottom:4px; }
.timeline-item p { font-size:13.5px; color:var(--muted); line-height:1.7; }

/* ============================================
   PDF MODAL
   ============================================ */
.pdf-modal-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,0.6);
  backdrop-filter:blur(8px);
  z-index:10000;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  opacity:0; visibility:hidden;
  transition:all 0.3s var(--ease);
}
.pdf-modal-overlay.active { opacity:1; visibility:visible; }
.pdf-modal {
  width:100%; max-width:880px; height:85vh;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-xl);
  overflow:hidden; display:flex; flex-direction:column;
  box-shadow:var(--shadow-lg);
  transform:scale(0.95) translateY(20px);
  transition:transform 0.35s var(--ease-spring);
}
.pdf-modal-overlay.active .pdf-modal { transform:scale(1) translateY(0); }
.pdf-modal-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px; border-bottom:1px solid var(--border);
  background:var(--surface-2); flex-shrink:0;
}
.pdf-modal-title { display:flex; align-items:center; gap:10px; }
.pdf-modal-title h3 { font-size:14px; font-weight:600; }
.pdf-modal-actions { display:flex; align-items:center; gap:10px; }
.pdf-modal-close {
  width:32px; height:32px;
  display:flex; align-items:center; justify-content:center;
  border-radius:var(--r-sm); color:var(--muted);
  cursor:pointer; transition:all var(--t-fast);
}
.pdf-modal-close:hover { background:rgba(239,68,68,0.1); color:#ef4444; }
.pdf-modal-body { flex:1; overflow:hidden; background:var(--surface-3); }
.pdf-modal-body iframe { width:100%; height:100%; border:none; }

/* ============================================
   SKILLS PAGE
   ============================================ */
.skills-section { padding-top:calc(var(--nav-height) + 56px); }
.skills-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(320px, 1fr));
  gap:16px;
}
.skill-card {
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  padding:28px;
  transition:all var(--t-base);
  position:relative; overflow:hidden;
}
.skill-card:hover {
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
  border-color: var(--muted-2);
}
.skill-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background: var(--muted);
  transform:scaleX(0); transform-origin:left;
  transition:transform var(--t-slow);
}
.skill-card:hover::before { transform:scaleX(1); }

.skill-icon {
  width:40px; height:40px;
  background: var(--surface-3);
  border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
  color: var(--muted);
  transition:all 0.25s var(--ease);
}
.skill-card:hover .skill-icon { background:var(--surface-2); color:var(--ink); transform:scale(1.05); }
.skill-card h3 { font-size:1rem; font-weight:700; margin-bottom:8px; }
.skill-card p { font-size:13.5px; color:var(--muted); margin-bottom:20px; line-height:1.7; }

.skill-level { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.skill-level span { font-size:12px; color:var(--muted); }
.skill-bar {
  width:100%; height:2px;
  background:var(--border); border-radius:2px; overflow:hidden;
}
.skill-bar-fill {
  height:100%; background: var(--ink);
  border-radius:2px; width:0;
  transition:width 1.4s var(--ease);
}
.skill-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:16px; }
.skill-tag {
  font-size:11.5px; font-weight:500;
  padding:4px 10px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--r-full);
  color:var(--muted);
  transition:all var(--t-fast);
}
.skill-tag:hover { background:var(--surface-3); color:var(--ink); border-color:var(--muted-2); }

/* Skill icon colors - removed (all gray) */

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-section { padding-top:calc(var(--nav-height) + 56px); }
.projects-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(340px, 1fr));
  gap:20px;
}
.project-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  overflow:hidden;
  transition:all var(--t-base);
}
.project-card:hover {
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
  border-color: var(--muted-2);
}
.project-image {
  position:relative; height:200px; overflow:hidden;
  background:var(--surface-3);
}
.project-image img {
  width:100%; height:100%; object-fit:cover;
  transition:transform var(--t-slow);
  filter: grayscale(5%);
}
.project-card:hover .project-image img { transform:scale(1.04); filter:grayscale(0%); }
.project-image-overlay {
  position:absolute; inset:0;
  background:rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  opacity:0;
  display:flex; align-items:center; justify-content:center;
  gap:8px;
  transition:all var(--t-base);
}
.project-card:hover .project-image-overlay { opacity:1; }
.project-image-overlay a {
  padding:8px 18px;
  background:var(--surface);
  border-radius:var(--r-full);
  display:flex; align-items:center; gap:7px;
  color:var(--ink); font-weight:600; font-size:12.5px;
  transition:all 0.2s var(--ease-spring);
  transform:translateY(10px);
  border:1px solid var(--border);
}
.project-card:hover .project-image-overlay a { transform:translateY(0); }
.project-image-overlay a:hover { background:var(--accent); color:#fff; border-color:transparent; }

.project-info { padding:22px; }
.project-category {
  font-size:10.5px; font-weight:700;
  color:var(--muted-2);
  text-transform:uppercase; letter-spacing:1.5px;
  margin-bottom:8px; display:block;
}
.project-info h3 {
  font-size:1.05rem; font-weight:700; margin-bottom:8px;
  transition:color var(--t-fast);
}
.project-card:hover .project-info h3 { color:var(--ink); }
.project-info p { font-size:13.5px; color:var(--muted); line-height:1.7; margin-bottom:16px; }
.project-tech { display:flex; flex-wrap:wrap; gap:6px; }
.project-tech span {
  font-size:11px; font-weight:500;
  padding:3px 10px;
  background: var(--surface-3);
  border:1px solid var(--border);
  border-radius:var(--r-full);
  color:var(--muted);
}

.project-actions { margin-top:18px; padding-top:16px; border-top:1px solid var(--border); }
.project-btn {
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 20px;
  background:var(--ink); color:var(--surface) !important;
  border-radius:var(--r-md);
  font-size:13px; font-weight:600;
  transition:all var(--t-fast);
  width:100%;
}
.project-btn:hover { background:var(--accent); transform:translateY(-2px); }
[data-theme="dark"] .project-btn { background:var(--surface-3); color:var(--ink) !important; border:1px solid var(--border); }
[data-theme="dark"] .project-btn:hover { background:var(--accent); color:#fff !important; border-color:var(--accent); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  padding-top:calc(var(--nav-height) + 56px);
  position:relative;
}
.contact-grid {
  display:grid; grid-template-columns:1fr 1.6fr;
  gap:24px; align-items:start;
}
.contact-banner {
  background: var(--ink);
  border-radius:var(--r-xl);
  padding:40px; margin-bottom:48px;
  display:flex; align-items:center;
  justify-content:space-between; gap:24px;
  position:relative; overflow:hidden;
}
[data-theme="dark"] .contact-banner { background: var(--surface-3); border:1px solid var(--border); }
.contact-banner-text h2 {
  font-family:var(--font-display); font-size:1.8rem;
  font-weight:800; color:#fff; margin-bottom:8px;
  letter-spacing:-0.5px;
}
[data-theme="dark"] .contact-banner-text h2 { color:var(--ink); }
.contact-banner-text p { font-size:14px; color:rgba(255,255,255,0.7); max-width:400px; line-height:1.75; }
[data-theme="dark"] .contact-banner-text p { color:var(--muted); }
.contact-banner-badge {
  display:flex; align-items:center; gap:8px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:var(--r-full);
  padding:10px 20px; white-space:nowrap; flex-shrink:0;
}
[data-theme="dark"] .contact-banner-badge { background:var(--surface-2); border-color:var(--border); }
.contact-banner-badge .pulse-dot {
  width:8px; height:8px;
  background:#4ade80; border-radius:50%;
  animation: pulse-green 2s infinite;
}
.contact-banner-badge span { font-size:13px; font-weight:600; color:#fff; }
[data-theme="dark"] .contact-banner-badge span { color:var(--ink); }

.contact-info-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg); padding:32px;
  position:relative; overflow:hidden;
}
.contact-info-card h2 { font-size:1.2rem; font-weight:700; margin-bottom:8px; }
.contact-info-card > p { font-size:13.5px; color:var(--muted); margin-bottom:24px; line-height:1.8; }
.contact-item {
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; margin-bottom:8px;
  border-radius:var(--r-md);
  background:var(--surface-2);
  border:1px solid var(--border);
  transition:all var(--t-fast);
}
.contact-item:hover {
  border-color: var(--muted-2);
  background:var(--surface-3);
  transform:translateX(4px);
}
.contact-item .icon {
  width:36px; height:36px;
  background: var(--surface-3);
  border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); flex-shrink:0;
}
.contact-item .details h4 {
  font-size:10.5px; font-weight:700;
  text-transform:uppercase; letter-spacing:0.7px;
  color:var(--muted); margin-bottom:2px;
}
.contact-item .details p { font-size:13.5px; font-weight:500; }
.contact-socials { display:flex; gap:8px; margin-top:24px; }
.contact-social-link {
  flex:1; height:40px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
  transition:all var(--t-fast);
}
.contact-social-link:hover {
  background:var(--surface-3);
  color:var(--ink);
  border-color:var(--muted-2);
  transform:translateY(-2px);
}
.contact-social-link svg { position:relative; z-index:1; }

.contact-form-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg); padding:36px;
  position:relative;
}
.form-title { font-size:1.1rem; font-weight:700; margin-bottom:4px; }
.form-subtitle { font-size:13.5px; color:var(--muted); margin-bottom:24px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-group { margin-bottom:16px; position:relative; }
.form-group label {
  display:block;
  font-size:12px; font-weight:600; margin-bottom:6px;
  color:var(--muted);
  text-transform:uppercase; letter-spacing:0.6px;
}
.form-group input,
.form-group textarea {
  width:100%; font-family:var(--font);
  font-size:14px; padding:11px 14px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  color:var(--ink);
  transition:all var(--t-fast); outline:none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color:var(--muted);
  box-shadow:0 0 0 3px rgba(0,0,0,0.04);
  background:var(--surface);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color:var(--muted-2); }
.form-group textarea { resize:vertical; min-height:120px; }
.form-error { font-size:12px; color:#ef4444; display:none; align-items:center; gap:4px; margin-top:4px; }
.form-group.error input,
.form-group.error textarea { border-color:#ef4444; box-shadow:0 0 0 2px rgba(239,68,68,0.1); }
.form-group.error .form-error { display:flex; }
.form-success {
  padding:18px 22px;
  background:rgba(34,197,94,0.08);
  border:1px solid rgba(34,197,94,0.25);
  border-radius:var(--r-md); color:#15803d;
  font-size:14px; font-weight:500;
  display:none; margin-bottom:16px;
  text-align:center; flex-direction:column; gap:10px;
}
.form-success .success-icon {
  width:44px; height:44px;
  background:rgba(34,197,94,0.12);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  margin:0 auto; color:#16a34a;
}
.form-success.show { display:flex; align-items:center; animation:fadeInUp 0.4s ease-out; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background:var(--surface-2);
  border-top:1px solid var(--border);
  padding:56px 0 28px;
}
.footer-grid {
  display:grid; grid-template-columns:1.6fr 1fr 1fr;
  gap:48px; margin-bottom:48px;
}
.footer-brand .nav-logo { margin-bottom:12px; }
.footer-brand p {
  font-size:13.5px; color:var(--muted);
  line-height:1.8; max-width:280px;
}
.footer-column h4 {
  font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:1.5px;
  color:var(--muted); margin-bottom:18px;
}
.footer-column ul li { margin-bottom:10px; }
.footer-column ul li a {
  font-size:13.5px; color:var(--muted);
  transition:all var(--t-fast);
}
.footer-column ul li a:hover { color:var(--ink); }
.footer-bottom {
  padding-top:24px; border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
}
.footer-bottom p { font-size:12.5px; color:var(--muted); }
.footer-bottom-links { display:flex; gap:8px; }
.footer-social-link {
  width:34px; height:34px; border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
  transition:all var(--t-fast);
  border:1px solid var(--border);
}
.footer-social-link:hover {
  color:var(--ink);
  background:var(--surface-3);
  border-color:var(--muted-2);
  transform:translateY(-2px);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position:fixed; bottom:28px; right:28px;
  width:44px; height:44px;
  background:var(--ink);
  color:var(--surface); border-radius:var(--r-md);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:999;
  opacity:0; visibility:hidden;
  transform:translateY(12px);
  transition:all var(--t-base);
  box-shadow:var(--shadow-md);
  border:1px solid var(--border);
}
.scroll-top.visible { opacity:1; visibility:visible; transform:translateY(0); }
.scroll-top:hover { background:var(--ink-2); transform:translateY(-2px); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeInRight {
  from { opacity:0; transform:translateX(32px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes fadeIn { from{opacity:0;}to{opacity:1;} }

.reveal {
  opacity:0; transform:translateY(28px);
  transition:all 0.7s var(--ease);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-left {
  opacity:0; transform:translateX(-28px);
  transition:all 0.7s var(--ease);
}
.reveal-left.visible { opacity:1; transform:translateX(0); }
.reveal-right {
  opacity:0; transform:translateX(28px);
  transition:all 0.7s var(--ease);
}
.reveal-right.visible { opacity:1; transform:translateX(0); }
.reveal-scale {
  opacity:0; transform:scale(0.94);
  transition:all 0.7s var(--ease);
}
.reveal-scale.visible { opacity:1; transform:scale(1); }

.delay-1{transition-delay:0.08s;}
.delay-2{transition-delay:0.16s;}
.delay-3{transition-delay:0.24s;}
.delay-4{transition-delay:0.32s;}
.delay-5{transition-delay:0.4s;}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:var(--muted-2); }
::selection { background:var(--accent); color:#fff; }

/* Focus */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible {
  outline:2px solid var(--accent); outline-offset:2px; border-radius:var(--r-sm);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:16px; margin-top:40px;
}
.service-card {
  background:var(--surface);
  border:1px solid var(--border);
  padding:32px;
  border-radius:var(--r-lg);
  transition:all var(--t-base);
}
.service-card:hover {
  transform:translateY(-4px);
  border-color:var(--muted-2);
  box-shadow:var(--shadow-md);
}
.service-icon {
  width:44px; height:44px;
  background:var(--surface-3);
  color:var(--muted);
  border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
  transition:all var(--t-fast);
}
.service-card:hover .service-icon { background:var(--surface-2); color:var(--ink); }
.service-card h3 { font-size:1rem; font-weight:700; margin-bottom:10px; }
.service-card p { color:var(--muted); line-height:1.75; font-size:14px; }

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:16px;
}
.testimonial-card {
  background:var(--surface);
  padding:28px;
  border-radius:var(--r-lg);
  border:1px solid var(--border);
  box-shadow:var(--shadow-xs);
  position:relative;
  transition:all var(--t-base);
}
.testimonial-card:hover {
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
  border-color:var(--muted-2);
}
.testimonial-quote {
  font-size:14px; color:var(--ink);
  font-style:italic; margin-bottom:20px; line-height:1.75;
}
.testimonial-author { display:flex; align-items:center; gap:12px; }
.author-img {
  width:42px; height:42px; border-radius:50%;
  background:var(--surface-3); overflow:hidden;
}
.author-info h4 { font-size:13.5px; font-weight:700; }
.author-info p { font-size:12px; color:var(--muted); }
.quote-icon { position:absolute; top:20px; right:20px; opacity:0.06; color:var(--muted); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding:72px;
  background:var(--ink);
  color:#fff;
  text-align:center;
  border-radius:var(--r-xl);
  margin:64px auto;
  max-width:var(--max-w);
  position:relative;
  overflow:hidden;
}
[data-theme="dark"] .cta-section { background:var(--surface-3); border:1px solid var(--border); }
.cta-section .section-heading { color:#fff; margin-bottom:16px; }
[data-theme="dark"] .cta-section .section-heading { color:var(--ink); }
.cta-section p {
  font-size:15px; margin-bottom:32px;
  opacity:0.75; max-width:480px;
  margin-left:auto; margin-right:auto;
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.floating-wa {
  position:fixed; bottom:28px; right:80px;
  width:44px; height:44px;
  background:linear-gradient(135deg, #25d366, #128c7e);
  color:#fff;
  border-radius:var(--r-md);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-md);
  z-index:999;
  transition:all var(--t-base);
}
.floating-wa:hover { transform:scale(1.08) translateY(-3px); box-shadow:var(--shadow-lg); }
.floating-wa svg { width:22px; height:22px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width:1024px) {
  :root { --section-padding:72px; }
  .hero .container { flex-direction:column; text-align:center; padding-top:40px; padding-bottom:60px; }
  .hero-content { max-width:100%; order:2; }
  .hero-image { order:1; }
  .hero-tagline { max-width:100%; }
  .hero-buttons { justify-content:center; }
  .hero-stats { justify-content:center; }
  .hero-image-wrapper { width:280px; height:280px; }
  .about-grid { grid-template-columns:1fr; gap:48px; }
  .about-image-wrapper img { height:380px; }
  .contact-grid { grid-template-columns:1fr; }
  .contact-banner { flex-direction:column; text-align:center; padding:32px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width:768px) {
  :root { --nav-height:60px; }
  .section { padding:72px 0; }
  .hero-name { font-size:clamp(2rem,8vw,2.8rem); }
  .hero-stats { gap:20px; flex-wrap:wrap; justify-content:center; }
  .hero-float-badge { display:none; }
  .about-highlights { grid-template-columns:1fr; }
  .skills-grid { grid-template-columns:1fr; }
  .projects-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:32px; }
  .footer-bottom { flex-direction:column; gap:14px; text-align:center; }
  .section-heading { font-size:1.7rem; }
  .form-row { grid-template-columns:1fr; }
  .contact-banner-text h2 { font-size:1.5rem; }
  .cta-section { margin:48px 12px; padding:48px 20px; }
}

@media (max-width:480px) {
  .container { padding:0 16px; }
  .hero-buttons { flex-direction:column; width:100%; }
  .hero-buttons .btn { width:100%; justify-content:center; }
  .skill-card, .contact-form-card, .contact-info-card { padding:20px; }
  .project-info { padding:18px 16px; }
  .about-floating-card { position:relative; bottom:auto; right:auto; margin-top:16px; }
  .floating-wa { bottom:20px; right:72px; }
}

@media print {
  .navbar,.scroll-top,.page-loader,.scroll-progress { display:none; }
  body { color:#000; background:#fff; }
}

/* ============================================
   ALIASES (backward compat with existing HTML)
   ============================================ */
.section-label { display:inline-flex; align-items:center; gap:6px;
  font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase;
  color:var(--muted); margin-bottom:16px; }
.section-label::before { content:''; display:inline-block; width:14px; height:1px; background:var(--muted); }
/* icon inside section-label - hide old i tag approach */
.section-label i { display:none; }

.section-title { font-family:var(--font-display);
  font-size:clamp(1.8rem,3.5vw,2.8rem); font-weight:700;
  color:var(--ink); line-height:1.2; letter-spacing:-0.5px; margin-bottom:12px; }
.section-subtitle { font-size:15px; color:var(--muted); line-height:1.75; max-width:520px; }
.section-header .section-subtitle { margin:0 auto; }
.section-header.centered, .section-header { margin-bottom:56px; }
.section-header.centered { text-align:center; }

/* ============================================
   BLINK ANIMATION (hero typing cursor)
   ============================================ */
@keyframes blink {
  50% { opacity:0; }
}
