/* ================================================
   AADITYA SHARMA — PORTFOLIO 2025
   Modern, Dark, Glassmorphism Design
   ================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Colors — matching aaditya.me brand */
  --color-bg: #111214;
  --color-bg-2: #191919;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(12, 184, 233, 0.06);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(12, 184, 233, 0.4);

  /* Primary Accent — Aaditya.me Cyan #0CB8E9 */
  --color-primary: #0CB8E9;
  --color-primary-light: #38c8f0;
  --color-primary-glow: rgba(12, 184, 233, 0.35);
  --color-secondary: #0a9ec8;
  --color-accent: #06d6f5;

  /* Text */
  --color-text: #f0f4f8;
  --color-text-dim: #94a3b8;
  --color-text-muted: #4a5568;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0CB8E9, #06d6f5, #0a9ec8);
  --gradient-glow: radial-gradient(ellipse at center, rgba(12, 184, 233, 0.15) 0%, transparent 70%);
  --nav-bg: rgba(17, 18, 20, 0.8);
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index layers */
  --z-loader: 9999;
  --z-cursor: 9998;
  --z-nav: 1000;
  --z-modal: 2000;
}

/* ===== LIGHT MODE VARIABLES ===== */
body.light-mode {
  --color-bg: #ffffff;
  --color-bg-2: #f1f5f9;
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-hover: rgba(0, 0, 0, 0.03);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.2);

  --color-text: #171717; /* High contrast Deep Black */
  --color-text-dim: #404040;
  --color-text-muted: #737373;

  --color-primary: #0a9ec8; /* Grounded Cyan */
  --color-primary-light: #0d8bab;
  --color-primary-glow: rgba(12, 184, 233, 0.1);
  --gradient-glow: none;
  --nav-bg: rgba(255, 255, 255, 0.85);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

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

input, textarea, select {
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary-light);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(12, 184, 233, 0.5);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s;
}

.cursor-follower.hovered {
  width: 54px;
  height: 54px;
  border-color: var(--color-primary-light);
  background: rgba(12, 184, 233, 0.08);
}

@media (hover: none) {
  .cursor, .cursor-follower { display: none; }
}

/* ===== LOADING SCREEN ===== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: var(--z-loader);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 40px var(--color-primary-glow);
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 999px;
  width: 0;
  transition: width 0.05s linear;
}

.loader-text {
  font-size: 13px;
  color: var(--color-text-dim);
  font-family: var(--font-mono);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px var(--color-primary-glow); }
  50% { transform: scale(1.05); box-shadow: 0 0 60px var(--color-primary-glow); }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 20px 0;
  transition: padding var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(9, 9, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--color-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.logo-bracket {
  color: var(--color-primary-light);
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dim);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
  text-transform: uppercase;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--color-primary-light);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  border-radius: 999px;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--color-text);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-light);
  border: 1.5px solid rgba(12, 184, 233, 0.4);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  margin-left: 8px;
  text-transform: uppercase;
}

.nav-cta:hover {
  background: rgba(12, 184, 233, 0.15);
  border-color: var(--color-primary-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: relative;
  z-index: var(--z-nav);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transition: all var(--transition-normal);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: rgba(14, 14, 26, 0.98);
  backdrop-filter: blur(20px);
  z-index: calc(var(--z-nav) - 1);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  border-left: 1px solid var(--color-border);
}

body.light-mode .mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  border-left-color: rgba(0, 0, 0, 0.08);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 40px;
  gap: 8px;
}

.mobile-link {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dim);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast), padding-left var(--transition-normal);
}

body.light-mode .mobile-link {
  color: #1a1a2e;
}

.mobile-link:hover {
  color: var(--color-primary-light);
  padding-left: 8px;
}

body.light-mode .mobile-link:hover {
  color: var(--color-primary);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 32px 60px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

body.light-mode .hero-bg-grid {
  background-image: radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, black 60%, transparent 90%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: floatGlow 8s ease-in-out infinite;
}

body.light-mode .hero-glow {
  filter: blur(160px);
  opacity: 0.4;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(12, 184, 233, 0.2) 0%, transparent 70%);
  top: -200px;
  left: -100px;
}

body.light-mode .hero-glow-1 {
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15) 0%, transparent 70%); /* Soft Violet */
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  bottom: -100px;
  right: -50px;
  animation-delay: -4s;
}

body.light-mode .hero-glow-2 {
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.15) 0%, transparent 70%); /* Soft Blue */
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 184, 233, 0.12);
  border: 1px solid rgba(12, 184, 233, 0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary-light);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease 1.5s both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 8px #22c55e;
}

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

.hero-greeting {
  font-size: 18px;
  color: var(--color-text-dim);
  margin-bottom: 8px;
  font-family: var(--font-mono);
  animation: fadeInDown 0.8s ease 1.6s both;
}

.hero-name {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.name-word {
  display: inline-block;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  background: linear-gradient(135deg, #fff 0%, #7de8f7 50%, #0CB8E9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .name-word {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.name-word:first-child { animation-delay: 1.7s; margin-right: 0.2em; }
.name-word:last-child { animation-delay: 1.85s; }

.hero-role-container {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--color-text-dim);
  animation: fadeInUp 0.8s ease 2s both;
}

.hero-role-prefix {
  color: var(--color-text);
}

.hero-role-typed {
  color: var(--color-primary-light);
  font-family: var(--font-mono);
}

body.light-mode .hero-role-typed {
  color: var(--color-text);
  font-weight: 700;
}

.typed-cursor {
  color: var(--color-primary-light);
  animation: blink 0.7s step-end infinite;
}

body.light-mode .typed-cursor {
  color: var(--color-text);
}

.hero-description {
  font-size: 17px;
  color: var(--color-text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 2.1s both;
}

.hero-description strong {
  color: var(--color-text);
}

.nav-logo {
  font-size: 24px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.site-logo {
  height: 38px;
  width: auto;
  display: block;
}

.highlight {
  color: var(--color-primary-light);
  font-weight: 600;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  margin: 0 10px;
}

.theme-toggle:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
}

.sun-icon { opacity: 0; transform: translateY(20px) rotate(45deg); }
.moon-icon { opacity: 1; transform: translateY(0) rotate(0); }

body.light-mode .sun-icon { opacity: 1; transform: translateY(0) rotate(0); }
body.light-mode .moon-icon { opacity: 0; transform: translateY(-20px) rotate(-45deg); }

.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin: 10px 0 20px;
}

.mobile-theme-toggle span {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

/* Light mode refinements */
body.light-mode .hero-bg-grid {
  opacity: 0.15;
}

body.light-mode .bento-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

body.light-mode .bento-title {
  color: var(--color-text);
}

body.light-mode .bento-number {
  color: var(--color-text-muted);
  opacity: 0.6;
}

body.light-mode .timeline-card {
  background: #ffffff;
}

body.light-mode .stat-item {
  color: var(--color-text);
}

body.light-mode .nav-logo img {
  filter: brightness(0.1);
}

body.light-mode .nav-cta {
  background: var(--color-primary);
  color: #fff;
}

body.light-mode .btn-secondary {
  background: rgba(0,0,0,0.05);
  color: var(--color-text);
}

/* Ensure navbar has correct background in light mode */
.navbar {
  background: transparent;
  transition: all 0.4s ease;
  z-index: var(--z-nav);
  pointer-events: auto;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

body.light-mode .navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}


.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease 2.2s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  animation: fadeInUp 0.8s ease 2.3s both;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  backdrop-filter: blur(10px);
  max-width: 420px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  flex: 1;
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

body.light-mode .stat-number {
  background: none;
  -webkit-text-fill-color: var(--color-text);
  color: var(--color-text);
}

.stat-plus {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary-light);
  margin-top: -8px;
  display: inline-block;
  /* override transparent fill for stat-plus */
  -webkit-text-fill-color: var(--color-primary-light);
}

body.light-mode .stat-plus {
  -webkit-text-fill-color: var(--color-primary);
  color: var(--color-primary);
}

.stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
}

/* Hero Social Links */
.hero-social {
  position: fixed;
  left: 40px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 10;
  animation: fadeInLeft 1s ease 3s both;
}

.social-link {
  width: 36px;
  height: 36px;
  color: var(--color-text-dim);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--color-primary-light);
  transform: translateY(-3px);
}

.social-line {
  width: 1.5px;
  height: 80px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dim);
  font-size: 12px;
  animation: fadeIn 1s ease 3s both;
  z-index: 10;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.hero-scroll-indicator.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(20px) scale(0.8);
}

@media (max-height: 800px) {
  .hero-scroll-indicator {
    display: none;
  }
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--color-primary-glow);
  animation: scrollBounce 2.2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 30px rgba(12, 184, 233, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(12, 184, 233, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border-hover);
}

.btn-secondary:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
  transform: translateY(-2px);
  background: rgba(12, 184, 233, 0.08);
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-primary-light);
  font-weight: 500;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-dim);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay variants */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="350"] { transition-delay: 0.35s; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--color-bg-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.about-image-wrapper {
  position: relative;
}

.about-image-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 500px;
  margin: 0 auto;
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 80px rgba(12, 184, 233, 0.3);
  overflow: hidden;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}

.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(12, 184, 233, 0.2);
  animation: expandRing 3s ease-in-out infinite;
}

.ring-1 { inset: -16px; animation-delay: 0s; }
.ring-2 { inset: -32px; animation-delay: 0.5s; }
.ring-3 { inset: -48px; animation-delay: 1s; }

@keyframes expandRing {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.02); }
}

.about-image-accent {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  filter: blur(40px);
  opacity: 0.4;
}

.accent-1 { top: -20px; right: -20px; }
.accent-2 { bottom: -20px; left: -20px; background: linear-gradient(135deg, #0CB8E9, #06d6f5); }

.about-image-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 14, 26, 0.92);
  border: 1px solid rgba(12, 184, 233, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 20px rgba(12, 184, 233, 0.15);
  white-space: nowrap;
  overflow: hidden;
  animation: badgePulse 3s ease-in-out infinite;
  z-index: 9;
}

/* Shimmer sweep effect */
.about-image-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 15px rgba(12, 184, 233, 0.15);
    border-color: rgba(12, 184, 233, 0.4);
  }
  50% {
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(12, 184, 233, 0.4);
    border-color: rgba(12, 184, 233, 0.9);
  }
}

@keyframes badgeShimmer {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

body.light-mode .about-image-badge {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(12, 184, 233, 0.5);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1), 0 0 20px rgba(12, 184, 233, 0.12);
}

body.light-mode .about-image-badge::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(12, 184, 233, 0.1),
    transparent
  );
}

.badge-icon {
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.badge-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

body.light-mode .badge-title {
  color: #111;
}

.badge-sub {
  font-size: 12px;
  color: var(--color-primary-light);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.about-content {
  padding-top: 20px;
}

.about-subtitle {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text {
  font-size: 16px;
  color: var(--color-text-dim);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text strong {
  color: var(--color-text);
}

.text-accent {
  color: var(--color-primary-light);
  font-weight: 600;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 32px;
}

.fact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.fact-item:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-hover);
}

.fact-icon {
  font-size: 20px;
  min-width: 28px;
}

.fact-label {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.fact-value {
  font-size: 13px;
  color: var(--color-text);
  font-weight: 500;
  margin-top: 2px;
}

/* ===== EXPERIENCE / TIMELINE ===== */
.experience-section {
  background: var(--color-bg);
}

.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 16px var(--color-primary-glow);
  flex-shrink: 0;
  position: relative;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(12, 184, 233, 0.3);
}

.timeline-line {
  width: 1.5px;
  flex: 1;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  margin-top: 8px;
}

.timeline-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition-normal), background var(--transition-normal), transform var(--transition-normal);
}

.timeline-card:hover {
  border-color: rgba(12, 184, 233, 0.4);
  background: var(--color-surface-hover);
  transform: translateX(4px);
}

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

.timeline-role {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 14px;
  color: var(--color-primary-light);
  font-weight: 500;
}

.timeline-company a:hover { text-decoration: underline; }

.timeline-date {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  white-space: nowrap;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(12, 184, 233, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(12, 184, 233, 0.08);
  border: 1px solid rgba(12, 184, 233, 0.2);
  color: var(--color-primary-light);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--color-text-dim);
  line-height: 1.6;
}

.timeline-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
  font-size: 12px;
  top: 2px;
}

/* ===== WORK / BENTO GRID ===== */
.work-section {
  background: var(--color-bg-2);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  overflow: hidden;
  cursor: default;
  transition: border-color var(--transition-normal), transform var(--transition-normal), background var(--transition-normal);
  group: true;
}

.bento-card:hover {
  border-color: rgba(12, 184, 233, 0.4);
  transform: translateY(-4px);
  background: var(--color-surface-hover);
}

.bento-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(12, 184, 233, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.bento-card:hover .bento-card-bg {
  opacity: 1;
}

.bento-large {
  grid-column: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: rgba(12, 184, 233, 0.15);
  border: 1px solid rgba(12, 184, 233, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition-normal);
}

.bento-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary-light);
}

.bento-card:hover .bento-icon {
  background: rgba(12, 184, 233, 0.25);
}

.bento-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.bento-text {
  font-size: 14px;
  color: var(--color-text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-tags span {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-dim);
}

.bento-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
  opacity: 0.4;
}

/* Wide card content */
.collab-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.collab-btn {
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== SKILLS SECTION — BENTO STACK ===== */
.skills-section {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.skills-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: all var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-color, var(--color-primary)), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-color, var(--color-primary));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tech-card:hover::before {
  opacity: 0.05;
}

.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.tech-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
}

body.light-mode .tech-icon-box {
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.tech-card:hover .tech-icon-box {
  background: var(--card-color, var(--color-primary));
  color: white;
  border-color: transparent;
  transform: scale(1.1);
}

.tech-level-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--card-color, var(--color-primary));
  background: rgba(12, 184, 233, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-info {
  position: relative;
  z-index: 1;
}

.tech-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.tech-desc {
  font-size: 13px;
  color: var(--color-text-dim);
  line-height: 1.5;
}

/* Category Highlights */
.tech-frontend { --card-color: #0CB8E9; }
.tech-backend { --card-color: #8b5cf6; }
.tech-design { --card-color: #f43f5e; }
.tech-tools { --card-color: #eab308; }

body.light-mode .tech-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

body.light-mode .tech-card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

/* Skills Orbit */
.skills-visual {
  position: sticky;
  top: 100px;
}

.skills-orbit {
  width: 320px;
  height: 320px;
  position: relative;
  margin: 0 auto;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.orbit-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: white;
  box-shadow: 0 0 40px var(--color-primary-glow);
  letter-spacing: 2px;
  border: 4px solid rgba(255,255,255,0.1);
}

body.light-mode .orbit-core {
  box-shadow: 0 10px 30px rgba(12, 184, 233, 0.3);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(12, 184, 233, 0.2);
}

body.light-mode .orbit {
  border-color: rgba(0,0,0,0.08);
}

.orbit-planet {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 14, 26, 0.95);
  border: 1.5px solid rgba(12, 184, 233, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary-light);
  font-family: var(--font-mono);
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  transition: all 0.3s ease;
}

body.light-mode .orbit-planet {
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.05);
  color: var(--color-text);
}

.orbit-planet:hover {
  transform: scale(1.2) !important;
  z-index: 10;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.orbit-1 {
  width: 200px;
  height: 200px;
  margin-top: -100px;
  margin-left: -100px;
  animation: spin 20s linear infinite;
}

.orbit-2 {
  width: 300px;
  height: 300px;
  margin-top: -150px;
  margin-left: -150px;
  animation: spin 30s linear infinite reverse;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-1 .orbit-planet {
  transform: rotate(var(--angle)) translate(-100px, 0) rotate(calc(-1 * var(--angle)));
  margin-top: -22px;
  margin-left: -22px;
}

.orbit-2 .orbit-planet {
  transform: rotate(var(--angle)) translate(-150px, 0) rotate(calc(-1 * var(--angle)));
  margin-top: -22px;
  margin-left: -22px;
}

/* Planets counter-rotate to stay upright */
.orbit-1 { }
.orbit-1 .orbit-planet span { display: block; }
.orbit-2 .orbit-planet span { display: block; }

/* ===== MARQUEE ===== */
.marquee-strip {
  overflow: hidden;
  background: linear-gradient(135deg, rgba(12, 184, 233, 0.08), rgba(12, 184, 233, 0.08));
  border-top: 1px solid rgba(12, 184, 233, 0.15);
  border-bottom: 1px solid rgba(12, 184, 233, 0.15);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dim);
  letter-spacing: 0.5px;
}

.marquee-track span {
  flex-shrink: 0;
}

.marquee-track span:nth-child(2n) {
  color: var(--color-primary-light);
  font-size: 18px;
  line-height: 1;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--color-bg-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-heading {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 20px;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-text {
  font-size: 16px;
  color: var(--color-text-dim);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.contact-detail-item:hover {
  border-color: rgba(12, 184, 233, 0.4);
  background: var(--color-surface-hover);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(12, 184, 233, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary-light);
}

.contact-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.contact-detail-value {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
  margin-top: 3px;
}

.contact-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-social-btn {
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  transition: all var(--transition-fast);
}

.contact-social-btn svg {
  width: 18px;
  height: 18px;
}

.contact-social-btn:hover {
  background: rgba(12, 184, 233, 0.2);
  border-color: rgba(12, 184, 233, 0.4);
  color: var(--color-primary-light);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--color-text);
  font-size: 15px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  background: rgba(12, 184, 233, 0.05);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-select {
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  position: relative;
}

.btn-loader .spin {
  animation: rotateSpin 1s linear infinite;
}

@keyframes rotateSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form-success {
  display: none;
  text-align: center;
  padding: 12px;
  margin-top: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  color: #86efac;
  font-size: 14px;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-top {
  text-align: center;
  margin-bottom: 24px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text);
  display: inline-block;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy, .footer-made {
  font-size: 13px;
  color: var(--color-text-muted);
}

.heart {
  display: inline-block;
  animation: beat 1s ease-in-out infinite;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 8px 24px var(--color-primary-glow);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--color-primary-glow);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-image-container {
    width: 260px;
    height: 260px;
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-visual {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-large, .bento-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 80px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 24px 80px;
  }

  .hero-social {
    display: none;
  }

  .hero-stats {
    padding: 16px 20px;
  }

  .stat-item {
    padding: 0 12px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large, .bento-wide {
    grid-column: span 1;
  }

  .collab-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .collab-btn {
    margin-left: 0;
  }

  .timeline-item {
    grid-template-columns: 24px 1fr;
    gap: 16px;
  }

  .timeline-header {
    flex-direction: column;
  }

  .contact-form-wrapper {
    padding: 28px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .section-title {
    font-size: 32px;
  }
}

/* ===== NAV EMAIL ABOVE HIRE ME ===== */
.nav-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.nav-email {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--color-primary-light);
  letter-spacing: 0.3px;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.nav-email:hover {
  opacity: 1;
}

/* ===== ABOUT PHOTO CARD (NOT CIRCULAR) ===== */
.about-photo-card {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(12, 184, 233, 0.25),
    0 30px 80px rgba(12, 184, 233, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(12, 184, 233, 0.25);
}

.about-photo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(12, 184, 233, 0.6), transparent);
  z-index: 2;
}

.about-photo-card .about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  display: block;
  transition: transform 0.6s ease;
}

.about-photo-card:hover .about-photo {
  transform: scale(1.04);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 18, 20, 0.45) 0%, transparent 45%);
  border-radius: 24px;
  pointer-events: none;
  z-index: 1;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 14px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  z-index: 90;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-normal);
  text-decoration: none;
  max-width: 54px;
  overflow: hidden;
  animation: waAppear 1s ease 3.5s both;
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.whatsapp-label {
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  transition: opacity 0.3s ease, max-width 0.4s ease;
  overflow: hidden;
}

.whatsapp-float:hover {
  max-width: 160px;
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
  transform: translateY(-3px);
}

.whatsapp-float:hover .whatsapp-label {
  opacity: 1;
  max-width: 120px;
}

@keyframes waAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* WhatsApp contact detail icon */
.whatsapp-icon {
  background: rgba(37, 211, 102, 0.15) !important;
  color: #25D366 !important;
}

.whatsapp-link:hover .whatsapp-icon {
  background: #25D366 !important;
  color: white !important;
}

@media (max-width: 768px) {
  .nav-email { display: none; }
  .nav-cta-group { flex-direction: row; gap: 0; }
  .whatsapp-float { bottom: 80px; right: 28px; }
}

