/* =====================================================
   PREMIUM PORTFOLIO - AYUSH SINGH
   A Top-Notch Developer Portfolio
   ===================================================== */

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Color Palette - Dark Theme */
  --bg-primary: #030014;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --bg-card: rgba(26, 26, 37, 0.8);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;

  /* Accent Colors */
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #ec4899;
  --accent-glow: rgba(99, 102, 241, 0.5);

  /* Gradient */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-text: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #f472b6);
  --gradient-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));

  /* Glass Effect */
  --glass-bg: rgba(26, 26, 37, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', var(--font-primary);
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.08);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ==================== SCROLL PROGRESS ==================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s ease;
}

/* ==================== PRELOADER ==================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.logo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.preloader-text {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.loading-dots span {
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.4s infinite both;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* ==================== NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
}

.nav-logo .logo-gradient {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.nav-logo .logo-name {
  font-size: 18px;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-base);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--gradient-bg);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-base);
  background: transparent;
}

.theme-toggle:hover {
  background: var(--gradient-bg);
  color: var(--text-primary);
}

.theme-toggle .light-icon {
  display: none;
}

.theme-toggle .dark-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .light-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .dark-icon {
  display: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-base);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 999;
  transition: var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav {
  text-align: center;
}

.mobile-nav li {
  margin-bottom: 24px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.mobile-nav-link:hover {
  color: var(--text-primary);
}

.mobile-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.mobile-social .social-link {
  font-size: 24px;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.mobile-social .social-link:hover {
  color: var(--accent-primary);
}

@media (max-width: 1024px) {

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
  top: -200px;
  left: -200px;
  animation: float 20s infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  top: 50%;
  right: -150px;
  animation: float 25s infinite reverse;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3), transparent 70%);
  bottom: -100px;
  left: 30%;
  animation: float 22s infinite 5s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(30px, -30px);
  }

  50% {
    transform: translate(-20px, 20px);
  }

  75% {
    transform: translate(20px, 30px);
  }
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-badge span:last-child {
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-title {
  font-family: var(--font-display);
  margin-bottom: 24px;
}

.title-line {
  display: block;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.title-name {
  display: block;
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}

.title-role {
  display: flex;
  align-items: center;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 600;
  color: var(--text-primary);
}

.role-text {
  color: var(--accent-primary);
}

.cursor {
  color: var(--accent-primary);
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-description .highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  width: fit-content;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  font-weight: 700;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
}

.hero-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 20px;
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-4px);
}

/* Hero Image */
.hero-image {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.image-wrapper {
  position: relative;
  width: 400px;
  height: 500px;
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  filter: blur(80px);
  opacity: 0.3;
  border-radius: 50%;
}

.profile-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 4px solid var(--glass-border);
  z-index: 2;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}

.float-element {
  position: absolute;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  font-size: 24px;
  color: var(--accent-primary);
  animation: floating 3s ease-in-out infinite;
}

.element-1 {
  top: 10%;
  left: -30px;
  animation-delay: 0s;
}

.element-2 {
  top: 40%;
  right: -30px;
  animation-delay: 0.5s;
}

.element-3 {
  bottom: 15%;
  left: 20px;
  animation-delay: 1s;
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 3px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 1200px) {
  .hero-image {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    display: flex;
    justify-content: center;
    margin: 40px auto 0;
  }

  .image-wrapper {
    width: 280px;
    height: 350px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-stats {
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== SECTION STYLES ==================== */
section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gradient-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

/* ==================== SCROLL-DRIVEN FLIP CARD ==================== */
.scroll-flip-card {
  position: fixed;
  width: 320px;
  height: 400px;
  z-index: 100;
  pointer-events: none;
  perspective: 2500px;
  /* Starting position - top right of hero */
  top: 140px;
  right: 8%;
  transform-origin: center center;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.scroll-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-flip-front,
.scroll-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 4px solid var(--glass-border);
  transition: box-shadow 0.4s ease;
}

.scroll-flip-front {
  background: var(--bg-card);
}

.scroll-flip-back {
  transform: rotateY(180deg);
  background: var(--bg-card);
}

.scroll-flip-front img,
.scroll-flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flip Card Back Content (clean gradient design) */
.flip-back-content {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.flip-back-logo {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.flip-back-text {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 4px;
}

/* Flip Label */
.flip-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  color: white;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.flip-label i {
  font-size: 18px;
  animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* Hide label when flipping */
.scroll-flip-card.flipping .flip-label {
  opacity: 0;
}

/* Destination placeholder in About section */
.flip-card-destination {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  border: 2px dashed var(--glass-border);
  background: rgba(99, 102, 241, 0.05);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glow effect during animation */
.scroll-flip-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: var(--gradient-primary);
  border-radius: calc(var(--radius-xl) + 10px);
  z-index: -1;
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.3s ease;
}

.scroll-flip-card.flipping::before {
  opacity: 0.6;
}

/* Frame decorations for destination */
.flip-card-destination::before,
.flip-card-destination::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid var(--accent-primary);
  transition: opacity 0.3s ease;
}

.flip-card-destination::before {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
  border-radius: var(--radius-md) 0 0 0;
}

.flip-card-destination::after {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 var(--radius-md) 0;
}

/* When card has landed */
.scroll-flip-card.landed {
  position: absolute !important;
  pointer-events: auto;
}

/* Static image shows after landing */
.flip-card-destination.has-card {
  border: none;
  background: none;
}

.flip-card-destination.has-card::before,
.flip-card-destination.has-card::after {
  opacity: 0;
}

/* Mobile adjustments */
@media (max-width: 1024px) {
  .scroll-flip-card {
    width: 240px;
    height: 300px;
    top: 100px;
    right: 20px;
  }

  .flip-card-destination {
    max-width: 350px;
  }
}

@media (max-width: 640px) {
  .scroll-flip-card {
    width: 180px;
    height: 225px;
    top: 80px;
    right: 16px;
  }

  .flip-card-destination {
    max-width: 280px;
  }

  .flip-label {
    padding: 6px 12px;
    font-size: 10px;
  }

  .flip-label i {
    font-size: 14px;
  }
}

.image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.frame-decoration {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 3px solid var(--accent-primary);
}

.frame-top-left {
  top: -15px;
  left: -15px;
  border-right: none;
  border-bottom: none;
  border-radius: var(--radius-lg) 0 0 0;
}

.frame-bottom-right {
  bottom: -15px;
  right: -15px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 var(--radius-lg) 0;
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg);
  z-index: 150;
  pointer-events: none;
}

.experience-badge .years {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
}

.experience-badge .text {
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
  opacity: 0.9;
}

.about-text {
  padding: 20px 0;
}

.about-intro {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-intro strong {
  color: var(--accent-primary);
}

.about-intro .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-description {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.info-item:hover {
  transform: translateX(5px);
}

.info-item i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 18px;
}

.info-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-value {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* About Stats Boxes */
.about-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.stat-box {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-actions {
  display: flex;
  gap: 16px;
}

@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .about-info {
    grid-template-columns: 1fr;
  }

  .about-actions {
    flex-direction: column;
  }

  .experience-badge {
    width: 100px;
    height: 100px;
    right: -10px;
    bottom: -20px;
  }

  .experience-badge .years {
    font-size: 28px;
  }

  .experience-badge .text {
    font-size: 10px;
  }
}

/* ==================== SKILLS SECTION ==================== */
.skills-section {
  background: var(--bg-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: var(--transition-base);
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.category-header i {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: white;
  font-size: 22px;
}

.category-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  display: grid;
  grid-template-columns: 40px 1fr 100px;
  align-items: center;
  gap: 16px;
}

.skill-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 20px;
}

.skill-icon.html {
  background: rgba(227, 79, 38, 0.2);
  color: #e34f26;
}

.skill-icon.css {
  background: rgba(21, 114, 182, 0.2);
  color: #1572b6;
}

.skill-icon.js {
  background: rgba(247, 223, 30, 0.2);
  color: #f7df1e;
}

.skill-icon.react {
  background: rgba(97, 218, 251, 0.2);
  color: #61dafb;
}

.skill-icon.firebase {
  background: rgba(255, 196, 0, 0.2);
  color: #ffc400;
}

.skill-icon.git {
  background: rgba(240, 80, 50, 0.2);
  color: #f05032;
}

.skill-icon.node {
  background: rgba(104, 160, 99, 0.2);
  color: #68a063;
}

.skill-icon.api {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
}

.skill-icon.figma {
  background: rgba(162, 89, 255, 0.2);
  color: #a259ff;
}

.skill-icon.ui {
  background: rgba(236, 72, 153, 0.2);
  color: #ec4899;
}

.skill-icon.responsive {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.skill-icon.animation {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
}

.skill-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  width: 0;
  transition: width 1.5s ease;
}

/* Tech Stack */
.tech-stack {
  text-align: center;
}

.tech-label {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.tech-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tech-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 28px;
  color: var(--text-secondary);
  transition: var(--transition-base);
  position: relative;
  cursor: pointer;
}

.tech-icon::after {
  content: attr(data-tech);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.tech-icon:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.tech-icon:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: -35px;
}

@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== PROJECTS SECTION ==================== */
.projects-section {
  background: var(--bg-secondary);
}

.projects-section > .container {
  max-width: 100%;
  padding: 0;
}

.projects-section .section-header {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.projects-grid {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 20px 40px 40px;
  margin-bottom: 40px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.projects-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
  flex: 0 0 380px;
  min-width: 380px;
  scroll-snap-align: start;
}

.project-card:first-child {
  margin-left: calc((100vw - 1200px) / 2);
}

.project-card:last-child {
  margin-right: 40px;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-image img,
.placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.placeholder-image {
  background: var(--gradient-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--accent-primary);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  font-size: 24px;
  color: var(--bg-primary);
  transform: scale(0.8);
  transition: var(--transition-base);
}

.project-card:hover .project-link {
  transform: scale(1);
}

.project-content {
  padding: 28px;
}

.project-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient-bg);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
}

.project-actions {
  display: flex;
  gap: 12px;
}

.project-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.project-btn:hover {
  background: var(--accent-primary);
  color: white;
}

.project-btn.primary {
  background: var(--gradient-primary);
  color: white;
}

.project-btn.primary:hover {
  box-shadow: var(--shadow-glow);
}

.projects-cta {
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

@media (max-width: 1400px) {
  .project-card:first-child {
    margin-left: 40px;
  }
}

@media (max-width: 1024px) {
  .project-card {
    flex: 0 0 340px;
    min-width: 340px;
  }

  .project-card:first-child {
    margin-left: 24px;
  }

  .project-card:last-child {
    margin-right: 24px;
  }

  .projects-grid {
    padding: 16px 0 32px;
    gap: 20px;
  }
}

/* ==================== EXPERIENCE SECTION ==================== */
.experience-section {
  background: var(--bg-primary);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: 60px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 10px;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  z-index: 2;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition-base);
}

.timeline-content:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.timeline-date {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient-bg);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-company {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.timeline-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-skills span {
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .timeline::before {
    left: 21px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-marker {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .timeline-content {
    padding: 24px;
  }
}

/* ==================== ANIMATED TIMELINE ==================== */
.animated-timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 40px 0;
}

/* Center line */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--bg-tertiary);
  transform: translateX(-50%);
  border-radius: 4px;
  overflow: hidden;
}

/* Animated progress line */
.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: height 0.1s ease-out;
}

/* Timeline items */
.animated-timeline .timeline-item {
  position: relative;
  width: 50%;
  padding: 0 50px 60px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-timeline .timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.animated-timeline .timeline-item.left {
  left: 0;
  padding-right: 50px;
  padding-left: 0;
  text-align: right;
}

.animated-timeline .timeline-item.left:not(.visible) {
  transform: translateX(-50px) translateY(30px);
}

.animated-timeline .timeline-item.right {
  left: 50%;
  padding-left: 50px;
  padding-right: 0;
  text-align: left;
}

.animated-timeline .timeline-item.right:not(.visible) {
  transform: translateX(50px) translateY(30px);
}

/* Timeline dots */
.timeline-dot {
  position: absolute;
  top: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 4px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-glow);
}

.animated-timeline .timeline-item.left .timeline-dot {
  right: -30px;
}

.animated-timeline .timeline-item.right .timeline-dot {
  left: -30px;
}

.timeline-dot i {
  font-size: 24px;
  color: var(--accent-primary);
  transition: all 0.3s ease;
}

.timeline-dot:hover {
  transform: scale(1.15) rotate(10deg);
  border-color: var(--accent-secondary);
}

.timeline-dot:hover i {
  color: var(--accent-secondary);
}

.timeline-dot.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  animation: dotPop 0.5s ease;
}

.timeline-dot.active i {
  color: white;
}

@keyframes dotPop {
  0% {
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.timeline-dot.future {
  border-color: var(--accent-secondary);
  animation: futurePulse 2s ease-in-out infinite;
}

@keyframes futurePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(236, 72, 153, 0);
  }
}

/* Timeline cards */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

.timeline-card:hover::before {
  transform: scaleX(1);
}

.timeline-card .timeline-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--gradient-bg);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.timeline-card .timeline-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-card .timeline-company {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.animated-timeline .timeline-item.left .timeline-company {
  justify-content: flex-end;
}

.timeline-card .timeline-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.timeline-card .timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.animated-timeline .timeline-item.left .timeline-skills {
  justify-content: flex-end;
}

.timeline-card .timeline-skills span {
  padding: 5px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.timeline-card .timeline-skills span:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Future card special styling */
.future-card {
  border-color: rgba(236, 72, 153, 0.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(236, 72, 153, 0.05));
}

.future-card::before {
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
}

/* Mobile responsive */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }

  .animated-timeline .timeline-item {
    width: 100%;
    padding-left: 80px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .animated-timeline .timeline-item.left,
  .animated-timeline .timeline-item.right {
    left: 0;
  }

  .animated-timeline .timeline-item.left .timeline-dot,
  .animated-timeline .timeline-item.right .timeline-dot {
    left: 0;
    right: auto;
  }

  .animated-timeline .timeline-item.left .timeline-company,
  .animated-timeline .timeline-item.left .timeline-skills {
    justify-content: flex-start;
  }

  .timeline-dot {
    width: 50px;
    height: 50px;
  }

  .timeline-dot i {
    font-size: 20px;
  }
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-section {
  background: var(--bg-secondary);
  overflow: hidden;
}

.testimonials-marquee-wrapper {
  position: relative;
  width: 100%;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 10px 0;
  flex-wrap: nowrap;
  will-change: transform;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition-base);
  position: relative;
  width: 380px;
  flex-shrink: 0;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.quote-icon {
  font-size: 48px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  font-weight: 600;
}

.author-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.author-role {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .testimonial-card {
    width: 300px;
    padding: 24px;
  }
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
  background: var(--bg-primary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: var(--transition-base);
}

.info-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(5px);
}

.info-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.info-details h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.info-details p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.info-details a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 500;
}

.info-details a:hover {
  gap: 10px;
}

.info-details .social-links {
  display: flex;
  gap: 12px;
}

.info-details .social-links a {
  font-size: 20px;
  color: var(--text-secondary);
}

.info-details .social-links a:hover {
  color: var(--accent-primary);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.submit-btn {
  width: 100%;
}

.form-message {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 24px;
  }
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-logo .logo-gradient {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 300px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition-base);
}

.footer-column ul li a:hover {
  color: var(--accent-primary);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 18px;
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--gradient-primary);
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 14px;
}

.heart-icon {
  color: #ef4444;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: white;
  font-size: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* ==================== UTILITIES ==================== */
.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Selection */
::selection {
  background: var(--accent-primary);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}