/* ============================================================
   YATIN I. DEOKAR — PORTFOLIO STYLES
   Premium, Apple-inspired, dark + light theme
   ============================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --max-width: 1200px;
  --nav-height: 72px;
  --section-padding: 120px;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-xs: 6px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Theme (Default) */
[data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a26;
  --bg-card: rgba(26, 26, 42, 0.7);
  --bg-card-hover: rgba(35, 35, 55, 0.85);
  --bg-glass: rgba(18, 18, 28, 0.75);
  --bg-nav: rgba(10, 10, 15, 0.85);

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-tertiary: #6e6e85;
  --text-inverse: #0a0a0f;

  --accent-primary: #7c5cfc;
  --accent-primary-rgb: 124, 92, 252;
  --accent-secondary: #00d4aa;
  --accent-tertiary: #ff6b9d;
  --accent-gradient: linear-gradient(135deg, #7c5cfc 0%, #00d4aa 50%, #00b4d8 100%);
  --accent-gradient-alt: linear-gradient(135deg, #7c5cfc 0%, #ff6b9d 100%);

  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(124, 92, 252, 0.15);

  --hero-gradient: radial-gradient(ellipse at 20% 50%, rgba(124, 92, 252, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 170, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 107, 157, 0.04) 0%, transparent 50%);
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f0f5;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-nav: rgba(250, 250, 250, 0.9);

  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-tertiary: #8888a0;
  --text-inverse: #ffffff;

  --accent-primary: #6040e0;
  --accent-primary-rgb: 96, 64, 224;
  --accent-secondary: #00b894;
  --accent-tertiary: #e84393;
  --accent-gradient: linear-gradient(135deg, #6040e0 0%, #00b894 50%, #0096c7 100%);
  --accent-gradient-alt: linear-gradient(135deg, #6040e0 0%, #e84393 100%);

  --border-color: rgba(0, 0, 0, 0.06);
  --border-color-hover: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(96, 64, 224, 0.1);

  --hero-gradient: radial-gradient(ellipse at 20% 50%, rgba(96, 64, 224, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 184, 148, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(232, 67, 147, 0.03) 0%, transparent 50%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* ==================== UTILITIES ==================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }

  100% {
    transform: scale(0.95);
    opacity: 1;
  }
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

.delay-4 {
  animation-delay: 0.6s;
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--border-radius-xs);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(var(--accent-primary-rgb), 0.08);
}

.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  margin-left: 8px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: rotate(15deg);
}

.theme-icon {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .theme-icon.sun {
  display: block;
}

[data-theme="dark"] .theme-icon.moon {
  display: none;
}

[data-theme="light"] .theme-icon.sun {
  display: none;
}

[data-theme="light"] .theme-icon.moon {
  display: block;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-base);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  bottom: -7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg-animation {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  z-index: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

.hero-bg-animation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(var(--accent-primary-rgb), 0.03) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(0, 212, 170, 0.02) 0%, transparent 40%);
  animation: float 20s ease-in-out infinite;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-secondary);
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.15);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  animation: pulse-ring 2s ease-in-out infinite;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-title .separator {
  color: var(--accent-primary);
  margin: 0 4px;
  opacity: 0.5;
}

.hero-statement {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(var(--accent-primary-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-primary-rgb), 0.4);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent-secondary);
  border: 1px solid rgba(0, 212, 170, 0.2);
}

.btn-accent:hover {
  background: rgba(0, 212, 170, 0.15);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Social Links */
.hero-social {
  display: flex;
  gap: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: var(--accent-primary);
}

/* Avatar */
.hero-avatar {
  position: relative;
  flex-shrink: 0;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(
    from 0deg,
    var(--accent-primary),
    var(--accent-secondary),
    rgba(180, 160, 255, 0.8),
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-primary)
  );
  position: relative;
  z-index: 2;
  animation: avatar-spin 6s linear infinite;
}

/* Orbit ring 1 — outer dashed ring, spins clockwise */
.avatar-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(var(--accent-primary-rgb), 0.3);
  z-index: 1;
}

.avatar-orbit-1 {
  width: 350px;
  height: 350px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-1 8s linear infinite;
}

.avatar-orbit-1::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px rgba(var(--accent-primary-rgb), 0.6), 0 0 24px rgba(var(--accent-primary-rgb), 0.3);
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

/* Orbit ring 2 — inner dotted ring, spins counter-clockwise */
.avatar-orbit-2 {
  width: 320px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: dotted;
  border-color: rgba(0, 212, 170, 0.25);
  animation: orbit-2 10s linear infinite reverse;
}

.avatar-orbit-2::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.6), 0 0 20px rgba(0, 212, 170, 0.3);
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
}

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

@keyframes orbit-1 {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit-2 {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--bg-primary);
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-primary);
  animation: avatar-spin 6s linear infinite reverse;
}

.avatar-initials {
  font-size: 4rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.avatar-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.15) 0%, transparent 70%);
  z-index: 0;
  animation: pulse-ring 4s ease-in-out infinite;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: var(--accent-primary);
  border-radius: 2px;
  opacity: 0.4;
  animation: scroll-line 2s ease-in-out infinite;
}

/* ==================== ABOUT ==================== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 48px;
}

.strengths-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.strength-chip {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.strength-chip:hover {
  color: var(--accent-primary);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  background: rgba(var(--accent-primary-rgb), 0.05);
  transform: translateY(-1px);
}

/* ==================== AI INNOVATION ==================== */
.ai-innovation {
  background: var(--bg-secondary);
}

.innovation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 28px;
}

.innovation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-base);
}

.innovation-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.innovation-card.featured {
  border-color: rgba(var(--accent-primary-rgb), 0.2);
}

.innovation-card.featured:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.4);
  box-shadow: var(--shadow-glow);
}

.innovation-card-header {
  padding: 32px 32px 0;
}

.innovation-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.innovation-icon {
  font-size: 2rem;
}

.innovation-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.1);
  padding: 4px 12px;
  border-radius: 50px;
}

.innovation-badge.security {
  color: var(--accent-secondary);
  background: rgba(0, 212, 170, 0.1);
}

.innovation-card-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.innovation-tagline {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.innovation-card-body {
  padding: 24px 32px 32px;
}

.innovation-detail {
  margin-bottom: 20px;
}

.innovation-detail h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.innovation-detail ul {
  list-style: none;
}

.innovation-detail li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.6;
}

.innovation-detail li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 600;
}

.innovation-detail li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.innovation-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

/* ==================== SERVICES ==================== */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px 28px;
  transition: all var(--transition-base);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

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

.service-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.service-card-number {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  font-family: var(--font-mono);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.service-card:hover .service-card-number {
  color: var(--accent-primary);
}

.service-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
  transform-origin: left center;
  transition: color var(--transition-fast), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-title {
  color: var(--accent-primary);
  transform: scale(1.06);
}

.service-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-bullets li {
  position: relative;
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding-left: 18px;
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.service-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.service-card:hover .service-bullets li {
  color: var(--text-primary);
}

.service-card:hover .service-bullets li::before {
  opacity: 1;
}

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

  .service-card {
    padding: 24px 20px;
  }
}

/* ==================== EXPERIENCE ==================== */
.timeline {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, rgba(var(--accent-primary-rgb), 0.15) 50%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-left: 72px;
  margin-bottom: 36px;
}

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

.timeline-marker {
  position: absolute;
  left: 3px;
  top: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--bg-primary);
}

.timeline-item.current .timeline-logo {
  box-shadow: 0 2px 12px rgba(var(--accent-primary-rgb), 0.3), 0 0 0 4px rgba(var(--accent-primary-rgb), 0.1);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 28px;
  transition: all var(--transition-base);
  position: relative;
}

.timeline-item.current .timeline-content {
  border-color: rgba(var(--accent-primary-rgb), 0.2);
  box-shadow: 0 0 24px rgba(var(--accent-primary-rgb), 0.04);
}

.timeline-content:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.timeline-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.company {
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.timeline-date {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg-tertiary);
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.timeline-item.current .timeline-date {
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.08);
}

.timeline-domain {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  font-style: italic;
}

.timeline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 0;
  margin-top: 4px;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.timeline-toggle:hover {
  color: var(--accent-primary);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  background: rgba(var(--accent-primary-rgb), 0.05);
}

.timeline-toggle[aria-expanded="true"] {
  color: var(--accent-primary);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  margin-bottom: 12px;
}

.toggle-icon {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.timeline-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(45deg);
}

.timeline-highlights.collapsible {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin 0.3s ease;
  margin-top: 0;
}

.timeline-highlights.collapsible.expanded {
  max-height: 500px;
  opacity: 1;
  margin-top: 4px;
}

.timeline-highlights {
  list-style: none;
}

.timeline-highlights li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.65;
}

.timeline-highlights li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

.timeline-highlights li strong {
  color: var(--text-primary);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.timeline-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.timeline-tags span:hover {
  color: var(--accent-primary);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
}

/* ==================== METRICS ==================== */
.metrics {
  background: var(--bg-secondary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.metric-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--border-radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color-hover);
}

.metric-card.highlight {
  border-color: rgba(var(--accent-primary-rgb), 0.25);
  background: rgba(var(--accent-primary-rgb), 0.03);
}

.metric-card.highlight:hover {
  box-shadow: var(--shadow-glow);
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-sublabel {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ==================== PUBLISHED APPS ==================== */
.published-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
}

.app-company {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.app-platforms {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.app-platforms-wrap {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.platform-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.platform-badge.android {
  color: #34a853;
  background: rgba(52, 168, 83, 0.1);
  border: 1px solid rgba(52, 168, 83, 0.2);
}

.platform-badge.ios {
  color: #007aff;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.app-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

.app-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.app-highlight-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(var(--accent-primary-rgb), 0.06);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.12);
  padding: 4px 10px;
  border-radius: 50px;
}

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

.app-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.app-tech span {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  padding: 3px 8px;
  border-radius: 50px;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  padding: 6px 14px;
  border-radius: var(--border-radius-xs);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
  background: rgba(var(--accent-primary-rgb), 0.05);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.app-store-link:hover {
  background: rgba(var(--accent-primary-rgb), 0.12);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.app-store-link svg {
  flex-shrink: 0;
}

.projects-sub-heading {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ==================== PROJECTS ==================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-base);
}

.project-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.project-card.featured-project {
  border-color: rgba(var(--accent-primary-rgb), 0.2);
}

.project-card.featured-project:hover {
  box-shadow: var(--shadow-glow);
}

.project-card-badge {
  padding: 20px 24px 0;
}

.badge-ai {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.08);
  padding: 4px 12px;
  border-radius: 50px;
}

.badge-security {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-secondary);
  background: rgba(0, 212, 170, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
}

.badge-flutter {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-tertiary);
  background: rgba(255, 107, 157, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
}

.project-card-content {
  padding: 20px 24px 28px;
}

.project-card-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.project-detail-item {
  padding: 12px;
  border-radius: var(--border-radius-xs);
  background: var(--bg-tertiary);
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 4px;
}

.project-detail-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

/* ==================== TECH STACK ==================== */
.tech-stack {
  background: var(--bg-secondary);
}

.skills {
  background: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-percent {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.skill-fill {
  height: 100%;
  width: var(--skill-level);
  background: var(--accent-gradient);
  border-radius: 50px;
  transform-origin: left;
  animation: skillGrow 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform: scaleX(0);
}

@keyframes skillGrow {
  to {
    transform: scaleX(1);
  }
}

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

/* ==================== PHILOSOPHY ==================== */
.philosophy-content {
  max-width: 900px;
  margin: 0 auto;
}

.philosophy-quote {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.8;
  padding: 40px;
  margin-bottom: 48px;
  border-left: 3px solid var(--accent-primary);
  background: var(--bg-card);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
}

.philosophy-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.pillar {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--border-radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-color-hover);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.pillar p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== CONTACT ==================== */
.contact {
  background: var(--bg-secondary);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  text-align: center;
  padding: 36px 16px;
  border-radius: var(--border-radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.contact-icon {
  color: var(--accent-primary);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-card p {
  display: none;
}

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

.footer-content {
  text-align: center;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 8px;
}

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

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --nav-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 4px;
    border-left: 1px solid var(--border-color);
    transition: right var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

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

  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    order: 2;
  }

  .hero-avatar {
    order: 1;
    width: 220px;
    height: 220px;
    margin: 0 auto;
  }

  .avatar-ring {
    width: 180px;
    height: 180px;
  }

  .avatar-orbit-1 {
    width: 225px;
    height: 225px;
  }

  .avatar-orbit-2 {
    width: 205px;
    height: 205px;
  }

  .avatar-initials {
    font-size: 2.8rem;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-statement {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

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

  .published-apps-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
  }


  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-quote {
    font-size: 1.05rem;
    padding: 24px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-marker {
    left: 0;
    top: 20px;
  }

  .timeline-logo {
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }

  .timeline-header {
    flex-direction: column;
    gap: 8px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 52px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

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

  .philosophy-pillars {
    grid-template-columns: 1fr;
  }

  .innovation-card-header,
  .innovation-card-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .timeline-content {
    padding: 20px;
  }
}

/* ==================== PREMIUM VISUAL ENHANCEMENTS ==================== */

/* Subtle section decoration */
.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section:last-of-type::after {
  display: none;
}

/* Hero floating particles */
.hero-bg-animation::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(var(--accent-primary-rgb), 0.15), transparent),
    radial-gradient(2px 2px at 30% 70%, rgba(0, 212, 170, 0.1), transparent),
    radial-gradient(2px 2px at 60% 30%, rgba(var(--accent-primary-rgb), 0.1), transparent),
    radial-gradient(2px 2px at 80% 80%, rgba(0, 212, 170, 0.08), transparent),
    radial-gradient(2px 2px at 90% 15%, rgba(255, 107, 157, 0.08), transparent),
    radial-gradient(2px 2px at 50% 50%, rgba(var(--accent-primary-rgb), 0.06), transparent);
  animation: float 15s ease-in-out infinite alternate;
}

/* Card shine effect on hover */
.innovation-card::before,
.project-card::before,
.pillar::before,
.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.02),
      transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.innovation-card,
.project-card,
.pillar,
.metric-card {
  position: relative;
  overflow: hidden;
}

.innovation-card:hover::before,
.project-card:hover::before,
.pillar:hover::before,
.metric-card:hover::before {
  left: 120%;
}

/* Enhanced strength items */
.strength-chip {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Enhanced gradient text for hero */
[data-theme="dark"] .hero-name {
  background: linear-gradient(135deg, #ffffff 0%, #c0c0d8 40%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d50 40%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Enhanced nav blur */
.navbar {
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

/* Subtle border glow on current timeline */
.timeline-item.current .timeline-content::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* ==================== BLOG / ARTICLES ==================== */
.blog {
  background: var(--bg-secondary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.blog-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: var(--border-radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  text-decoration: none;
}

.blog-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--accent-primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  transition: all var(--transition-base);
}

.blog-card:hover .blog-card-icon {
  background: rgba(var(--accent-primary-rgb), 0.14);
  transform: scale(1.05);
}

.blog-card-cta .blog-card-icon {
  background: rgba(0, 212, 170, 0.08);
  color: var(--accent-secondary);
}

.blog-card-cta:hover .blog-card-icon {
  background: rgba(0, 212, 170, 0.14);
}

.blog-card-content {
  flex: 1;
  min-width: 0;
}

.blog-card-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.blog-card-content p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.blog-read-more {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: color var(--transition-fast);
}

.blog-card-cta .blog-read-more {
  color: var(--accent-secondary);
}

.blog-card:hover .blog-read-more {
  text-decoration: underline;
}

/* ==================== BEYOND CODE ==================== */
.beyond-code {
  background: var(--bg-primary);
}

.beyond-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ==================== DOWNLOAD TOAST ==================== */
.download-toast {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 212, 170, 0.1),
    0 0 40px rgba(0, 212, 170, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: none;
  overflow: hidden;
  max-width: 460px;
  width: calc(100% - 40px);
}

.download-toast.show {
  animation: toast-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.download-toast.hide {
  animation: toast-out 0.5s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes toast-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-120px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes toast-out {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px) scale(0.95);
  }
}

.toast-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
}

.toast-icon svg {
  opacity: 0;
}

.download-toast.show .toast-icon svg {
  opacity: 1;
  animation: toast-check-draw 0.5s 0.3s ease-out forwards;
}

.toast-check {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}

.download-toast.show .toast-check {
  animation: check-draw 0.4s 0.4s ease-out forwards;
}

@keyframes check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes toast-check-draw {
  0% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.toast-message {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  border-radius: 0 0 16px 16px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
}

.download-toast.show .toast-progress {
  animation: toast-progress 3s 0.3s linear forwards;
}

@keyframes toast-progress {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

/* Confetti particles container */
.toast-confetti {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  pointer-events: none;
  z-index: 100001;
  overflow: visible;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti-fall 1.5s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(120px) rotate(720deg) scale(0.3);
  }
}

/* ==================== CUSTOM CURSOR ==================== */
.cursor-dot,
.cursor-ring,
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-visible .cursor-dot,
.cursor-visible .cursor-ring,
.cursor-visible .cursor-glow {
  opacity: 1;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  box-shadow: 0 0 6px rgba(var(--accent-primary-rgb), 0.6);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(var(--accent-primary-rgb), 0.4);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cursor-ring.hover {
  width: 52px;
  height: 52px;
  border-color: rgba(0, 212, 170, 0.6);
  background: rgba(0, 212, 170, 0.06);
}

.cursor-ring.clicking {
  width: 28px;
  height: 28px;
  border-color: rgba(var(--accent-primary-rgb), 0.8);
}

.cursor-glow {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.04) 0%, transparent 70%);
  transition: width 0.4s ease, height 0.4s ease;
}

.cursor-ring.hover ~ .cursor-glow,
.cursor-glow.hover {
  width: 160px;
  height: 160px;
}

/* Hide custom cursor on touch devices and small screens */
@media (hover: none), (max-width: 768px) {
  .cursor-dot,
  .cursor-ring,
  .cursor-glow {
    display: none !important;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {

  .navbar,
  .theme-toggle,
  .scroll-indicator,
  .hero-bg-animation,
  .avatar-glow {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 20px 0;
    break-inside: avoid;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Screen reader only */
.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;
}