/* ============================================================
   ARIF MOHIUDDIN — AI AUTOMATION DEVELOPER PORTFOLIO
   Premium Design System
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core Colors */
  --bg-primary: #06060b;
  --bg-secondary: #0c0c14;
  --bg-tertiary: #12121e;
  --bg-card: rgba(15, 15, 25, 0.6);

  /* Accent Colors */
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --cyan-glow: rgba(0, 240, 255, 0.4);
  --purple: #8b5cf6;
  --purple-dim: rgba(139, 92, 246, 0.15);
  --purple-glow: rgba(139, 92, 246, 0.4);
  --violet: #a78bfa;
  --pink: #ec4899;
  --pink-dim: rgba(236, 72, 153, 0.15);

  /* Text Colors */
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.7);
  --text-tertiary: rgba(240, 240, 245, 0.4);
  --text-accent: var(--cyan);

  /* Glass */
  --glass-bg: rgba(15, 15, 30, 0.5);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.03);
  --glass-blur: 20px;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 140px);
  --container-width: 1280px;
  --container-padding: clamp(16px, 4vw, 60px);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles this */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

/* Restore default cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: none;
  border: none;
  background: none;
  color: inherit;
}

@media (hover: none) and (pointer: coarse) {
  button { cursor: pointer; }
}

::selection {
  background: var(--cyan-dim);
  color: var(--cyan);
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* ---------- Noise Texture Overlay ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.08);
  filter: blur(12px);
}

/* Premium ambient glow background */
#loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 240, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(236, 72, 153, 0.02) 0%, transparent 40%);
  animation: loader-glow-breath 6s ease-in-out infinite alternate;
}

@keyframes loader-glow-breath {
  0% {
    opacity: 0.6;
    transform: scale(1) translate(0, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1.15) translate(-10px, 10px);
  }
}

/* Soft light rays effect */
#loader::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      rgba(0, 240, 255, 0.01) 60deg,
      transparent 120deg,
      rgba(139, 92, 246, 0.01) 180deg,
      transparent 240deg,
      rgba(0, 240, 255, 0.01) 300deg,
      transparent 360deg
    );
  animation: loader-light-rotate 20s linear infinite;
  opacity: 0.5;
}

@keyframes loader-light-rotate {
  to {
    transform: rotate(360deg);
  }
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  position: relative;
  z-index: 1;
}

.loader-name {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 200;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--text-secondary);
  overflow: hidden;
  opacity: 0;
  animation: loader-fade-in 1.4s var(--ease-out-expo) 0.2s forwards;
}

@keyframes loader-fade-in {
  from {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.loader-name span {
  display: inline-block;
  transform: translateY(120%);
  transition: transform 0.8s var(--ease-out-expo);
}

.loader-name.reveal span {
  transform: translateY(0);
}

.loader-percent {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  line-height: 1;
  background: linear-gradient(135deg, var(--text-primary), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: loader-fade-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.15));
}

.loader-bar-track {
  width: min(300px, 60vw);
  height: 2px;
  background: var(--glass-border);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
  opacity: 0;
  animation: loader-fade-in 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.15s linear;
  box-shadow: 0 0 30px var(--cyan-glow), 0 0 60px rgba(139, 92, 246, 0.3);
  position: relative;
}

.loader-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  transform: translateX(100%);
  animation: loader-shine 2s ease-in-out infinite;
}

@keyframes loader-shine {
  0%, 100% {
    transform: translateX(100%);
  }
  50% {
    transform: translateX(-100%);
  }
}

.loader-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: loader-fade-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

/* Premium floating particles in loader */
.loader-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.loader-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: loader-particle-float 8s ease-in-out infinite;
}

.loader-particle:nth-child(1) {
  left: 20%;
  top: 30%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.loader-particle:nth-child(2) {
  left: 80%;
  top: 20%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.loader-particle:nth-child(3) {
  left: 50%;
  top: 70%;
  animation-delay: 4s;
  animation-duration: 9s;
}

.loader-particle:nth-child(4) {
  left: 30%;
  top: 60%;
  animation-delay: 1s;
  animation-duration: 11s;
}

.loader-particle:nth-child(5) {
  left: 70%;
  top: 40%;
  animation-delay: 3s;
  animation-duration: 8s;
}

@keyframes loader-particle-float {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 0.6;
    transform: translateY(0) scale(1);
  }
  90% {
    opacity: 0.6;
    transform: translateY(-100px) scale(1);
  }
}

/* Neural network animation in loader */
.loader-neural {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.08;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-outer {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              border-color 0.3s,
              background 0.3s;
  mix-blend-mode: difference;
}

.cursor-outer.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.1);
}

.cursor-inner {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.cursor-trail {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%);
}

/* Hide custom cursor on touch */
@media (hover: none) and (pointer: coarse) {
  .cursor-outer,
  .cursor-inner,
  .cursor-trail {
    display: none !important;
  }
}

/* ============================================================
   3D CANVAS
   ============================================================ */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   NAVIGATION - Premium Redesign
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px var(--container-padding);
  transition: all 0.5s var(--ease-out-expo);
  background: transparent;
  border-bottom: 1px solid transparent;
}

#navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(139, 92, 246, 0.02));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

#navbar.scrolled {
  background: rgba(6, 6, 11, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 240, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled::before {
  opacity: 1;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
  text-decoration: none;
}

.nav-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
  border-radius: 50%;
  pointer-events: none;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo:hover::before {
  opacity: 1;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-primary);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: text-shadow 0.4s var(--ease-out-expo);
}

.logo-name-accent {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.logo-name-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
  z-index: -1;
}

.nav-logo:hover .logo-name-accent::after {
  opacity: 0.6;
}

.logo-separator {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple));
  margin: 0 12px;
  opacity: 0.6;
  vertical-align: middle;
  position: relative;
  z-index: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  padding: 8px 0;
  text-decoration: none;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 20px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  filter: blur(12px);
  opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
  border-radius: 50%;
}

.nav-links a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-links a:hover::after {
  width: 100%;
  opacity: 0.5;
}

.nav-links a.active {
  color: var(--cyan);
}

.nav-links a.active::before {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
  opacity: 0.3;
}

/* Hamburger - Premium */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.5s var(--ease-out-expo);
  transform-origin: center;
}

.nav-hamburger.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--cyan);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--cyan);
}

/* Mobile Menu - Premium */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(400px, 90vw);
  height: 100vh;
  background: rgba(6, 6, 11, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 50px;
  transition: right 0.6s var(--ease-out-expo);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.mobile-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(139, 92, 246, 0.03));
  pointer-events: none;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  padding: 20px 0;
  color: var(--text-secondary);
  transition: all 0.4s var(--ease-out-expo);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.mobile-menu a::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.4s var(--ease-out-expo);
  border-radius: 2px;
}

.mobile-menu a:hover {
  color: var(--cyan);
  transform: translateX(15px);
  padding-left: 10px;
}

.mobile-menu a:hover::before {
  width: 30px;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.mobile-overlay.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  #navbar { padding: 14px var(--container-padding); }
  #navbar.scrolled { padding-top: 10px; padding-bottom: 10px; }
}

@media (max-width: 480px) {
  #navbar {
    padding: 12px clamp(16px, 4vw, 24px);
  }
  
  .nav-logo {
    font-size: 1.1rem;
  }
  
  .nav-hamburger {
    width: 32px;
    height: 32px;
  }
  
  .nav-hamburger span {
    width: 20px;
    height: 2px;
  }
  
  .mobile-menu {
    width: 100%;
    padding: 60px 20px;
  }
  
  .mobile-menu a {
    font-size: 1.4rem;
    padding: 14px 0;
  }
  
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .section {
    padding: clamp(50px, 10vw, 80px) clamp(16px, 4vw, 20px);
  }
  
  .section-inner {
    max-width: 100%;
    width: 100%;
  }
  
  .section-title {
    font-size: clamp(1.4rem, 5.5vw, 2.2rem);
  }
  
  .section-desc {
    max-width: 100%;
  }
  
  .loader-content {
    max-width: 100%;
    width: 100%;
    padding: 0 16px;
  }
  
  .loader-percent {
    font-size: clamp(2rem, 12vw, 4rem);
  }
  
  .loader-bar-track {
    width: min(220px, 85vw);
  }
  
  .hero-image-container {
    width: min(220px, 65vw);
  }
  
  .hero-image-wrapper {
    margin-bottom: 20px;
  }
  
  .hero-name {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }
  
  .hero-title {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }
  
  .hero-description {
    font-size: 0.85rem;
    max-width: 100%;
    line-height: 1.6;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .hero-cta .magnetic-wrap {
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  position: relative;
  padding: var(--section-padding) var(--container-padding);
  z-index: 1;
}

.section-inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.section-title .gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 600px;
  line-height: 1.8;
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-blur {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out-expo),
              filter 1s var(--ease-out-expo),
              transform 1s var(--ease-out-expo);
}

.reveal-blur.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 6, 11, 0.95) 0%, rgba(6, 6, 11, 0.8) 100%);
}

/* Holographic circles background */
#hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  top: -200px;
  right: -200px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(0, 240, 255, 0.03) 60deg,
      transparent 120deg,
      rgba(139, 92, 246, 0.03) 180deg,
      transparent 240deg,
      rgba(0, 240, 255, 0.03) 300deg,
      transparent 360deg
    );
  animation: hero-bg-rotate 30s linear infinite;
  z-index: 0;
}

/* Network lines grid pattern */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: 0;
}

/* Floating particles in background */
.hero-bg-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  animation: particle-float 20s ease-in-out infinite;
}

.hero-bg-particle:nth-child(1) {
  width: 4px;
  height: 4px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero-bg-particle:nth-child(2) {
  width: 6px;
  height: 6px;
  top: 60%;
  left: 20%;
  animation-delay: -5s;
}

.hero-bg-particle:nth-child(3) {
  width: 3px;
  height: 3px;
  top: 30%;
  left: 80%;
  animation-delay: -10s;
}

.hero-bg-particle:nth-child(4) {
  width: 5px;
  height: 5px;
  top: 70%;
  left: 70%;
  animation-delay: -15s;
}

.hero-bg-particle:nth-child(5) {
  width: 4px;
  height: 4px;
  top: 40%;
  left: 50%;
  animation-delay: -8s;
}

.hero-bg-particle:nth-child(6) {
  width: 3px;
  height: 3px;
  top: 80%;
  left: 30%;
  animation-delay: -12s;
}

@keyframes hero-bg-rotate {
  to { transform: rotate(360deg); }
}

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-30px) translateX(20px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) translateX(-20px);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-40px) translateX(10px);
    opacity: 0.7;
  }
}

.hero-container {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--cyan-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px transparent; }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  position: relative;
  perspective: 800px;
}

.hero-name .name-line {
  display: block;
  overflow: hidden;
}

/* Hero name typewriter text */
.hero-name-text {
  display: inline;
  background: linear-gradient(
    90deg,
    var(--text-primary) 0%,
    var(--cyan) 50%,
    var(--purple) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: name-gradient-shift 4s ease-in-out 4s infinite;
}

@keyframes name-gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Blinking cursor after the name */
.hero-name-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--cyan);
  margin-left: 4px;
  vertical-align: baseline;
  animation: cursor-blink 1s steps(1) infinite;
  box-shadow: 0 0 8px var(--cyan-glow);
  border-radius: 1px;
}

.hero-name-cursor.hidden {
  display: none;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Glow pulse behind the name during entrance */
.hero-name-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 240, 255, 0.12) 0%,
    rgba(139, 92, 246, 0.06) 40%,
    transparent 70%
  );
  filter: blur(30px);
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-title .typed-text {
  color: var(--cyan);
  position: relative;
}

.hero-title .typed-text::after {
  content: '|';
  position: absolute;
  right: -4px;
  animation: blink-caret 1s steps(1) infinite;
  color: var(--cyan);
}

@keyframes blink-caret {
  50% { opacity: 0; }
}

.hero-description {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00c4cc);
  color: var(--bg-primary);
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--cyan-glow), 0 8px 32px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--purple);
  box-shadow: 0 0 20px var(--purple-dim);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 14px 20px;
}

.btn-ghost:hover {
  color: var(--cyan);
}

.btn svg, .btn i {
  width: 18px;
  height: 18px;
}

/* ---- Hero Image — Premium Circular Portrait ---- */
.hero-image-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dark AI-themed background behind photo */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  width: 160%;
  height: 160%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(6, 6, 11, 0.95) 0%, rgba(6, 6, 11, 0.8) 50%, transparent 70%),
    conic-gradient(
      from 0deg at 50% 50%,
      rgba(0, 240, 255, 0.03) 0deg,
      transparent 60deg,
      rgba(139, 92, 246, 0.03) 120deg,
      transparent 180deg,
      rgba(0, 240, 255, 0.03) 240deg,
      transparent 300deg
    );
  z-index: -6;
  animation: bg-rotate 20s linear infinite;
}

@keyframes bg-rotate {
  to { transform: rotate(360deg); }
}

.hero-image-container {
  position: relative;
  width: min(380px, 85vw);
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(0, 240, 255, 0.15),
    0 0 0 4px rgba(0, 240, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(0, 240, 255, 0.1),
    0 0 150px rgba(139, 92, 246, 0.08);
  animation: hero-float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 2;
}

/* Dark gradient overlay to blend photo edges */
.hero-image-container::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(6, 6, 11, 0.3) 70%, rgba(6, 6, 11, 0.7) 100%);
  border-radius: inherit;
}

/* Subtle vignette over the photo for depth */
.hero-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(6, 6, 11, 0.5) 100%),
    linear-gradient(to top, rgba(6, 6, 11, 0.4) 0%, transparent 40%);
  border-radius: inherit;
}

/* Animated gradient border frame (rim light) */
.hero-image-frame {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--cyan),
    var(--purple),
    var(--pink),
    var(--purple),
    var(--cyan)
  );
  z-index: -1;
  opacity: 0.6;
  animation: rim-rotate 6s linear infinite;
  filter: blur(1.5px);
}

/* Glassmorphism ring */
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.1),
    rgba(139, 92, 246, 0.05),
    rgba(0, 240, 255, 0.1)
  );
  backdrop-filter: blur(10px);
  z-index: -2;
  border: 1px solid rgba(0, 240, 255, 0.1);
  animation: glass-pulse 4s ease-in-out infinite;
}

@keyframes glass-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Animated outer ring */
.hero-image-wrapper .outer-ring {
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.2);
  z-index: -3;
  animation: outer-ring-pulse 4s ease-in-out infinite;
}

@keyframes outer-ring-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.6;
  }
}

/* Floating particles around circle */
.hero-image-wrapper .particles {
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 30%);
  z-index: -4;
  animation: particles-float 8s ease-in-out infinite;
}

@keyframes particles-float {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.02);
  }
}

@keyframes rim-rotate {
  to {
    filter: blur(1.5px) hue-rotate(360deg);
  }
}

/* Primary holographic glow — large soft cyan/purple */
.hero-image-glow {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  z-index: -5;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0, 240, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
  filter: blur(50px);
  animation: hero-glow-breath 4s ease-in-out infinite alternate;
}

@keyframes hero-glow-breath {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes hero-glow-pulse {
  from { opacity: 0.6; transform: scale(1) rotate(0deg); }
  to { opacity: 0.9; transform: scale(1.08) rotate(3deg); }
}

/* Floating elements around hero image */
.hero-float {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-float-1 {
  width: 80px;
  height: 80px;
  border: 1px solid var(--cyan-dim);
  top: -20px;
  right: -30px;
  animation: float-1 6s ease-in-out infinite;
}

.hero-float-2 {
  width: 40px;
  height: 40px;
  background: var(--purple-dim);
  bottom: 40px;
  left: -20px;
  animation: float-2 8s ease-in-out infinite;
}

.hero-float-3 {
  width: 12px;
  height: 12px;
  background: var(--cyan);
  top: 30%;
  right: -40px;
  animation: float-3 5s ease-in-out infinite;
  box-shadow: 0 0 20px var(--cyan-glow);
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(10px, -15px); }
  66% { transform: translate(-5px, -10px); }
}

@keyframes float-3 {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-30px); opacity: 0.5; }
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-line-anim 2s ease-in-out infinite;
}

@keyframes scroll-line-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { order: 2; }
  .hero-image-wrapper { order: 1; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero-image-container {
    width: min(280px, 75vw);
  }
  .hero-image-wrapper {
    margin-bottom: 32px;
  }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-text p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}

.about-card:hover {
  border-color: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.05);
  transform: translateY(-4px);
}

.about-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--cyan);
}

.about-card-icon.purple {
  background: var(--purple-dim);
  color: var(--purple);
}

.about-card-icon.pink {
  background: var(--pink-dim);
  color: var(--pink);
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Premium title glow for Current Focus */
.about-card-title-glow {
  position: relative;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.about-card-main-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.about-card-supporting-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 8px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .about-card {
    padding: 18px;
  }
  .about-card-icon {
    width: 36px;
    height: 36px;
  }
  .about-card-main-text {
    font-size: 0.95rem;
  }
  .about-card-supporting-text {
    font-size: 0.8rem;
  }
  .about-text p {
    font-size: 0.9rem;
    line-height: 1.7;
  }
  .about-grid {
    gap: 32px;
  }
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.skill-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 240, 255, 0.1);
}

.skill-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 240, 255, 0.05));
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.5rem;
  transition: all 0.4s var(--ease-out-expo);
}

.skill-card:hover .skill-icon {
  transform: scale(1.15) rotate(5deg);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 240, 255, 0.1));
  border-color: var(--cyan);
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.3);
}

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
  }
  .skill-card {
    padding: 20px 14px;
  }
  .skill-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .skill-card h3 {
    font-size: 0.85rem;
  }
  .skill-card p {
    font-size: 0.7rem;
  }
  
  .journey-divider {
    flex-direction: column;
    gap: 10px;
  }
  
  .journey-divider-line {
    width: 100%;
  }
  
  .timeline-container {
    padding-left: 20px;
  }
  
  .timeline-line {
    left: 2px;
  }
  
  .timeline-item {
    padding-left: 20px;
  }
  
  .timeline-dot {
    left: -20px;
    width: 12px;
    height: 12px;
  }
  
  .timeline-date {
    font-size: 0.7rem;
  }
  
  .timeline-item h3 {
    font-size: 0.95rem;
  }
  
  .timeline-item p {
    font-size: 0.8rem;
    line-height: 1.6;
  }
}

/* Journey Divider */
.journey-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 64px 0 16px;
}

.journey-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.journey-divider-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   RESUME SECTION
   ============================================================ */
#resume {
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02), transparent);
}

.resume-section {
  margin-top: 72px;
}

.resume-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.resume-section-title svg {
  color: var(--cyan);
}

.resume-card {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.4s var(--ease-out-expo);
  margin-bottom: 24px;
}

.resume-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), transparent, rgba(139, 92, 246, 0.03));
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
  border-radius: var(--radius-lg);
}

.resume-card:hover::before {
  opacity: 1;
}

.resume-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 240, 255, 0.1),
    0 0 60px rgba(139, 92, 246, 0.08);
}

.resume-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

.resume-card-header h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.resume-card-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  white-space: nowrap;
}

.resume-card-institution {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.resume-card-description {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

/* ============================================================
   CERTIFICATES (within Resume)
   ============================================================ */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.cert-card {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.5s var(--ease-out-expo);
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0;
  transition: opacity 0.4s;
}

.cert-card:hover::before {
  opacity: 1;
}

.cert-card:hover {
  border-color: rgba(0, 240, 255, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 240, 255, 0.05);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--cyan-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--cyan-dim), var(--purple-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cyan);
}

.cert-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}

.cert-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cert-detail svg, .cert-detail i {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.cert-id {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.cert-view-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out-expo);
}

.cert-view-pdf svg {
  width: 16px;
  height: 16px;
}

.cert-view-pdf:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-dim);
  transform: translateY(-2px);
  color: var(--text-primary);
}

@media (max-width: 400px) {
  .certificates-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .resume-card {
    padding: 18px;
  }
  .resume-section-title {
    font-size: 1rem;
  }
  .cert-card {
    padding: 18px;
  }
  .cert-card h3 {
    font-size: 0.95rem;
  }
  .cert-detail {
    font-size: 0.75rem;
    flex-wrap: wrap;
  }
  .cert-view-pdf {
    padding: 8px 14px;
    font-size: 0.65rem;
    width: 100%;
    justify-content: center;
  }
  .cert-icon {
    width: 36px;
    height: 36px;
  }
  .cert-id {
    font-size: 0.65rem;
  }
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.project-card {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.project-card:focus-within {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 240, 255, 0.2) inset,
    0 0 40px rgba(0, 240, 255, 0.1);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), transparent, rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
  border-radius: 16px;
}

.project-card:hover {
  border-color: rgba(0, 240, 255, 0.5);
  transform: translateY(-8px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 240, 255, 0.3) inset,
    0 0 60px rgba(0, 240, 255, 0.15),
    0 0 100px rgba(139, 92, 246, 0.1);
}

.project-card:hover::before {
  opacity: 1;
}

.project-thumbnail {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.project-icon {
  color: var(--cyan);
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

.project-card:hover .project-icon {
  opacity: 1;
  transform: scale(1.15);
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.5));
}

.project-thumbnail .coming-soon {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  pointer-events: none;
}

.project-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Project Badges */
.project-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.project-category-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.05));
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.1);
}

.project-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-status-badge.status-completed {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.05));
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.1);
}

.project-status-badge.status-learning {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
  color: var(--purple);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.project-status-badge.status-planned {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text-tertiary);
  border-color: var(--glass-border);
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.project-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-details {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.project-detail {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  align-items: flex-start;
}

.project-detail strong {
  color: var(--text-primary);
  font-weight: 600;
  min-width: 90px;
  flex-shrink: 0;
}

.project-links {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  margin-top: auto;
  flex-shrink: 0;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 100px;
  flex: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.project-link:hover {
  border-color: rgba(0, 240, 255, 0.5);
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.05));
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(0, 240, 255, 0.25),
    0 0 0 1px rgba(0, 240, 255, 0.3) inset,
    0 0 30px rgba(0, 240, 255, 0.2);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  flex-shrink: 0;
}

.project-tag {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-tag:hover {
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
}

/* Tech Stack Badges */
.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.tech-badge {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tech-badge:hover {
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.05));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.2);
}

@media (max-width: 400px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-info h3 {
    font-size: 1rem;
  }
  .project-info p {
    font-size: 0.8rem;
  }
  .project-detail {
    font-size: 0.75rem;
  }
  .project-link {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  .project-thumbnail {
    height: 160px;
  }
  .project-info {
    padding: 18px;
  }
  .project-badges {
    flex-wrap: wrap;
  }
  .project-links {
    flex-wrap: wrap;
    gap: 8px;
  }
  .project-link {
    flex: 1;
    min-width: 100px;
    justify-content: center;
  }
}

/* ============================================================
   TIMELINE SECTION
   ============================================================ */
#timeline {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03), transparent);
}

.timeline-container {
  position: relative;
  margin-top: 60px;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 56px;
  padding-left: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--bg-primary);
  z-index: 2;
  transition: all 0.4s var(--ease-out-expo);
}

.timeline-dot::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--cyan);
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.timeline-item:hover .timeline-dot::before {
  opacity: 1;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.timeline-item h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 520px;
}

@media (max-width: 768px) {
  .timeline-container {
    padding-left: 30px;
  }
  .timeline-item {
    padding-left: 30px;
  }
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02));
}

.contact-wrapper {
  max-width: 900px;
  margin-top: 48px;
}

.contact-wrapper h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-wrapper p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* Premium Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Premium Contact Card */
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  text-decoration: none;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.contact-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), transparent, rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 240, 255, 0.15),
    0 0 60px rgba(139, 92, 246, 0.1);
}

.contact-card:hover::before {
  opacity: 1;
}

/* Contact Card Icon */
.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--cyan);
  flex-shrink: 0;
  transition: all 0.4s var(--ease-out-expo);
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.15) rotate(8deg);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(139, 92, 246, 0.2));
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.4);
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
}

/* Contact Card Content */
.contact-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  transition: color 0.4s var(--ease-out-expo);
}

.contact-card:hover .contact-card-label {
  color: var(--cyan);
}

.contact-card-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.4s var(--ease-out-expo);
}

.contact-card:hover .contact-card-value {
  color: var(--cyan);
}

/* Contact Card Arrow */
.contact-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s var(--ease-out-expo);
}

.contact-card:hover .contact-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.contact-card-arrow svg {
  width: 16px;
  height: 16px;
}

/* Responsive Contact Section */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    padding: 20px;
  }
  
  .contact-card-icon {
    width: 48px;
    height: 48px;
  }
  
  .contact-card-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .contact-card {
    gap: 14px;
    padding: 18px;
  }
  .contact-card-label {
    font-size: 0.65rem;
  }
  .contact-card-value {
    font-size: 0.85rem;
  }
  .contact-card-icon {
    width: 40px;
    height: 40px;
  }
  .contact-card-icon svg {
    width: 18px;
    height: 18px;
  }
  .contact-card-arrow {
    display: none;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  padding: 40px var(--container-padding);
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-left span {
  color: var(--cyan);
  font-weight: 500;
}

.footer-right {
  display: flex;
  gap: 16px;
}

.footer-right a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all 0.4s var(--ease-out-expo);
}

.footer-right a:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
  transform: translateY(-2px);
}

.footer-right a svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .contact-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  #footer {
    padding: 28px clamp(16px, 4vw, 20px);
  }
  .footer-left {
    font-size: 0.8rem;
  }
  .footer-right {
    gap: 10px;
  }
  .footer-right a {
    width: 32px;
    height: 32px;
  }
  .footer-right a svg {
    width: 14px;
    height: 14px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  padding: 40px var(--container-padding);
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-left span {
  color: var(--cyan);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  color: var(--text-tertiary);
  transition: color 0.3s, transform 0.3s;
}

.footer-right a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

.footer-right a svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   ANIMATED GRADIENT BG (for sections)
   ============================================================ */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.gradient-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08), transparent 70%);
  top: -200px;
  right: -200px;
  animation: orb-float 12s ease-in-out infinite alternate;
}

.gradient-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: orb-float 15s ease-in-out infinite alternate-reverse;
}

@keyframes orb-float {
  from { transform: translate(0, 0); }
  to { transform: translate(40px, -30px); }
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Magnetic button wrapper */
.magnetic-wrap {
  display: inline-block;
}
