/* =========================================
   FUTURISTIC THEME VARIABLES
========================================= */
:root {
  /* Default: Dark Theme */
  --primary: #2563EB;
  --primary-alpha: rgba(37, 99, 235, 0.2);
  --secondary: #3B82F6;
  --accent: #60A5FA;
  --accent-alpha: rgba(96, 165, 250, 0.3);
  --cyan: #22d3ee;
  
  --bg: #020617;
  --bg-secondary: #0f172a;
  --surface: rgba(15, 23, 42, 0.45);
  --surface-hover: rgba(30, 41, 59, 0.7);
  --surface-color: #0f172a;
  
  --text: #f8fafc;
  --muted: #94a3b8;
  
  --border: rgba(96, 165, 250, 0.15);
  --border-glow: rgba(59, 130, 246, 0.5);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glow: 0 0 20px rgba(59, 130, 246, 0.4);
  
  --font-main: 'Inter', system-ui, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] {
  --primary: #1d4ed8;
  --secondary: #2563EB;
  --accent: #3B82F6;
  --accent-alpha: rgba(59, 130, 246, 0.3);
  
  --bg: #f8fafc;
  --bg-secondary: #f1f5f9;
  --surface: rgba(255, 255, 255, 0.6);
  --surface-hover: rgba(255, 255, 255, 0.9);
  --surface-color: #ffffff;
  
  --text: #0f172a;
  --muted: #475569;
  
  --border: rgba(15, 23, 42, 0.1);
  --border-glow: rgba(37, 99, 235, 0.3);
  --shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.05);
  --glow: 0 0 20px rgba(37, 99, 235, 0.2);
}

/* =========================================
   BASE STYLES & RESET
========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.mt-4 { margin-top: 1.5rem; }

/* =========================================
   ANIMATED BACKGROUND
========================================= */
.bg-system {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1; overflow: hidden; pointer-events: none;
}
.bg-grid {
  position: absolute; inset: -50%;
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg) translateY(-100px);
  animation: gridMove 20s linear infinite;
  opacity: 0.3;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: 0.4; animation: blobFloat 15s infinite alternate ease-in-out;
}
.blob-1 { top: -10%; left: -10%; width: 40vw; height: 40vw; background: var(--primary); }
.blob-2 { bottom: -20%; right: -10%; width: 50vw; height: 50vw; background: var(--cyan); animation-delay: -5s; }

/* =========================================
   GLASSMORPHISM UTILITIES
========================================= */
.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.hover-glow:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}

/* =========================================
   NAVBAR & THEME TOGGLE
========================================= */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem; background: transparent; transition: var(--transition);
}
.navbar.scrolled {
  background: var(--surface); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 0.8rem 3rem;
}
.brand {
  font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(to right, var(--accent), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-icon { stroke: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-weight: 500; font-size: 0.95rem; position: relative; padding: 0.5rem 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Theme Switch */
.theme-switch {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; transition: var(--transition); position: relative; overflow: hidden;
  z-index: 1002;
}
.theme-switch:hover { box-shadow: var(--glow); border-color: var(--accent); }
.theme-switch svg { position: absolute; transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s; }
[data-theme="dark"] .sun-icon { transform: translateY(30px); opacity: 0; }
[data-theme="light"] .moon-icon { transform: translateY(-30px); opacity: 0; }

/* Mobile Menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 1002; }
.menu-toggle span { display: block; width: 28px; height: 2px; background: var(--text); margin: 6px 0; transition: 0.4s; }
.parallax-layer { transform: translate3d(0, 0, 0); will-change: transform; }
.particles { position: absolute; inset: 0; pointer-events: none; }

/* =========================================
   HERO SECTION & TYPEWRITER
========================================= */
.hero { min-height: 88vh; display: flex; align-items: center; padding: 5rem 1.5rem 2rem; position: relative; }
.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero-content {
  flex: 1 1 560px;
  padding: 2.4rem;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  max-width: 700px;
}
.hero-content::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, var(--primary-alpha) 0%, transparent 50%); opacity: 0.45; pointer-events: none; }
.avatar-circle {
  width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 1rem;
  overflow: hidden; position: relative; flex-shrink: 0;
}
.avatar-circle .avatar-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block;
  z-index: 0; transition: opacity 240ms ease-in-out, transform 240ms ease;
}
.avatar-circle .avatar-initials {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
}
/* If image present, visually prioritize it */
.avatar-circle .avatar-img[style*="display: none"] + .avatar-initials { display: flex; }
.avatar-circle .avatar-img:not([style*="display: none"]) { opacity: 1; }
.hero h1 { font-size: clamp(2.0rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.12; margin-bottom: 0.6rem; }
.hero h1 span { color: var(--accent); }
.typewriter-wrapper { display: block; min-height: 1.2em; font-size: 1rem; color: var(--muted); margin-bottom: 1rem; font-weight: 500; }
.typewriter { color: var(--cyan); }
.cursor { display: inline-block; animation: blink 1s step-end infinite; color: var(--text); }

/* Buttons */
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.glass-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 99px;
  font-weight: 600; font-size: 0.95rem; transition: var(--transition); cursor: pointer; color: var(--text);
}
.glass-btn:hover { background: var(--surface-hover); transform: translateY(-3px); box-shadow: var(--glow); border-color: var(--accent); color: var(--accent); }
.glass-btn.primary-btn { background: var(--primary); color: #fff; border: none; }
.glass-btn.primary-btn:hover { background: var(--secondary); box-shadow: 0 0 25px var(--primary); color: #fff; }

.hero-illustration {
  flex: 1 1 380px;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-svg { animation: float 6s ease-in-out infinite; width: 100%; height: auto; max-width: 480px; }

/* =========================================
   SECTIONS & TYPOGRAPHY
========================================= */
.section { padding: 8rem 3rem; max-width: 1200px; margin: 0 auto; position: relative; }
.section-heading { text-align: center; margin-bottom: 4rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 1rem;
  padding: 0.5rem 1.2rem; background: var(--primary-alpha); border-radius: 99px; border: 1px solid var(--border);
}
.glow-dot { width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }

/* =========================================
   ABOUT SECTION
========================================= */
.about-section { padding-top: 6rem; padding-bottom: 5rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-side { display: flex; flex-direction: column; gap: 1.25rem; }
.about-card { padding: 2.2rem; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.about-card p { margin-bottom: 1.25rem; font-size: 1.05rem; color: var(--text); opacity: 0.9; }

/* Timeline */
.mini-timeline { border-left: 2px solid var(--border); padding-left: 1.5rem; margin-top: 1rem; }
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; left: -1.8rem; top: 0.2rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tl-content h4 { font-size: 1.1rem; margin-bottom: 0.2rem; color: var(--text); }
.tl-content span { font-size: 0.9rem; color: var(--muted); }

.info-card { gap: 1.2rem; justify-content: center; }
.info-card div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 0.8rem; }
.info-card div:last-child { border: none; padding-bottom: 0; }
.info-card strong { color: var(--accent); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-box { padding: 1.5rem; text-align: center; border-radius: 20px; transition: var(--transition); }
.stat-box:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--glow); }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--cyan); margin-bottom: 0.5rem; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.9rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* =========================================
   SKILLS SECTION
========================================= */
.skills-section { padding-top: 4.5rem; padding-bottom: 5rem; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; }
.skill-card { display: flex; flex-direction: column; align-items: center; padding: 0rem 1rem; text-align: center; cursor: pointer; }
.circular-progress { position: relative; width: 80px; height: 80px; margin-bottom: 1.2rem; }
.circular-progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.circular-progress circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.circular-progress .bg { stroke: var(--border); }
.circular-progress .prog {
  stroke: var(--accent); stroke-dasharray: 251.2; stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.1, 0.7, 1.0, 0.1);
}
.skill-card:hover .prog { filter: drop-shadow(0 0 8px var(--accent)); }
.circular-progress .icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
}
.skill-card h4 { font-size: 1rem; font-weight: 600; margin: 0; }

/* =========================================
   PROJECTS SECTION
========================================= */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.project-card {
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: var(--transition);
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: skewX(-20deg); transition: 0.5s; z-index: 1; pointer-events: none;
}
.project-card:hover::before { left: 150%; }
.project-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.4); border-color: var(--accent); }
.project-preview { height: 200px; background: var(--surface-color); border-bottom: 1px solid var(--border); overflow: hidden; }
.project-preview svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-preview { position: relative; }
.project-preview img.project-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.project-preview svg { position: relative; z-index: 1; }
.project-card:hover .project-preview svg { transform: scale(1.05); }
.project-info { padding: 2rem; display: flex; flex-direction: column; flex: 1; }
.project-info h3 { font-size: 1.4rem; margin-bottom: 0.8rem; color: var(--accent); }
.project-info p { color: var(--muted); margin-bottom: 1.5rem; flex: 1; }
.project-links { display: flex; gap: 1rem; z-index: 2; position: relative; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.glass-btn.outline { background: transparent; border: 1px solid var(--border); }
.glass-btn.outline:hover { border-color: var(--accent); background: var(--primary-alpha); }

/* =========================================
   CONTACT SECTION
========================================= */
.contact-section { padding-top: 4.5rem; padding-bottom: 5rem; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}
.contact-card,
.contact-form {
  padding: 2.2rem;
  height: 100%;
  border-radius: 24px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-header p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.c-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text);
  transition: var(--transition);
}
.c-item:hover {
  color: var(--accent);
  transform: translateX(4px);
}
.c-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-alpha);
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}
.input-group { position: relative; }
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 1rem 1rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
[data-theme="light"] .input-group input,
[data-theme="light"] .input-group textarea {
  background: rgba(15, 23, 42, 0.04);
}
.input-group label {
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  color: var(--muted);
  pointer-events: none;
  transition: var(--transition);
  font-size: 0.95rem;
}
.input-group input:focus,
.input-group textarea:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:not(:placeholder-shown) {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--primary-alpha);
  background: var(--surface);
}
.input-group input:focus ~ label,
.input-group textarea:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  top: 0.25rem;
  font-size: 0.75rem;
  color: var(--accent);
}
.glow-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-top: 0.2rem;
}
.glow-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}
.glow-button:hover::before { left: 100%; }
.glow-button:hover { transform: translateY(-3px); box-shadow: 0 10px 25px var(--primary-alpha); }
.form-status { margin-top: 0.2rem; text-align: center; font-weight: 600; min-height: 1.4rem; color: var(--accent); }

/* =========================================
   FOOTER
========================================= */
.glass-footer {
  margin-top: 2.5rem;
  padding: 2.8rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(15, 23, 42, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin: 0.2rem 0 0.4rem;
}
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: var(--transition);
  color: var(--muted);
}
[data-theme="light"] .footer-social a {
  background: rgba(15, 23, 42, 0.04);
}
.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--primary-alpha);
  transform: translateY(-4px);
  background: var(--surface);
}
.copyright {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin: 0;
}
.back-to-top {
  position: absolute;
  right: 1.5rem;
  top: 9px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--glow);
  transition: var(--transition);
  cursor: pointer;
  border: 3px solid var(--bg);
  z-index: 10;
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px var(--primary-alpha);
}

@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .glass-footer {
    padding: 3.5rem 1.5rem 2rem; /* Merapikan jarak dalam footer di HP */
  }
  
  .back-to-top {
    right: 1.5rem; /* Menyesuaikan posisinya sejajar dengan margin tepi HP */
    top: 9px; /* Posisi melayang disesuaikan karena tombol mengecil */
    width: 48px; /* Ukuran tombol diperkecil agar tidak makan tempat */
    height: 48px;
    border-width: 4px; /* Ketebalan garis potong disesuaikan agar proporsional */
  }
}
/* =========================================
   ANIMATIONS & EFFECTS
========================================= */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes gridMove { 0% { transform: perspective(500px) rotateX(60deg) translateY(-100px); } 100% { transform: perspective(500px) rotateX(60deg) translateY(0); } }
@keyframes blobFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, -50px) scale(1.1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.spin-slow { animation: spin 20s linear infinite; transform-origin: center; }
.spin-reverse { animation: spin 25s linear infinite reverse; transform-origin: center; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.blink-fast { animation: blink 1s infinite; }
.float-1 { animation: float 4s ease-in-out infinite; }
.float-2 { animation: float 5s ease-in-out infinite reverse; }
.float-3 { animation: float 3s ease-in-out infinite; }
.pulse-glow { animation: shadowPulse 2s infinite; }
@keyframes shadowPulse { 0% { box-shadow: 0 0 15px var(--primary); } 50% { box-shadow: 0 0 35px var(--cyan); } 100% { box-shadow: 0 0 15px var(--primary); } }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 992px) {
  .hero-wrapper { flex-direction: column-reverse; text-align: center; gap: 2rem; }
  .hero-illustration { max-width: 400px; margin: 0 auto; }
  .avatar-circle { margin: 0 auto 1rem; }
  .social-links { justify-content: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .navbar { padding: 1rem 1.5rem; }
  .navbar.scrolled { padding: 0.8rem 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--surface); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
    padding: 2rem; gap: 1.5rem; clip-path: circle(0% at 100% 0); transition: 0.5s ease-in-out;
    z-index: 1001;
  }
  .nav-links.active { clip-path: circle(150% at 100% 0); }
  .menu-toggle { display: block; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
  .theme-switch { margin-top: 1rem; }
  
  .hero { padding: 6rem 1.5rem 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 5rem 1.5rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .glass-footer { padding: 2.5rem 1rem 1.5rem; }
  .back-to-top { right: 1rem; }
}