/* assets/css/style.css */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --primary-dark: #1a2634;
  --primary-darker: #131c26;
  --secondary: #2d6b6b;
  --accent: #3eb3b3;
  --accent-light: #5cd6d6;
  --light-mint: #d4f1f1;
  --white: #ffffff;
  --text-main: #333333;
  --text-muted: #6b7280;
  --text-light: #e5e7eb;

  --font-heading: "Syne", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(62, 179, 179, 0.3);

  --glass-bg: rgba(26, 38, 52, 0.7);
  --glass-bg-light: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);

  /* Semantic Theme Variables (Light Default) */
  --site-bg: var(--white);
  --section-light-bg: var(--light-mint);
  --card-bg: var(--white);
  --text-heading: var(--primary-dark);
  --text-body: var(--text-main);
  --text-desc: var(--text-muted);
  --cta-gradient: linear-gradient(135deg, var(--light-mint) 0%, #e6f7f7 100%);
  
  /* Animation Specifics */
  --smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent, #3eb3b3);
  z-index: 2147483647; /* Max 32-bit integer - absolute highest possible */
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(62, 179, 179, 0.5);
  will-change: transform;
}



/* ===== PREMIUM BACKGROUND BLOBS ===== */
.blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  /* Replaced filter: blur with radial-gradient for HUGE performance gain during scroll */
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.15;
  animation: float 20s infinite alternate;
  will-change: transform;
}

.blob-1 {
  top: -10%;
  right: -5%;
  color: var(--accent);
}

.blob-2 {
  bottom: 0%;
  left: -10%;
  color: var(--secondary);
  animation-duration: 15s;
}

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(100px, 50px, 0) scale(1.1); }
}

body.dark-theme .blob {
  opacity: 0.08;
}

/* Dark/Light Theme Support */
html,
body {
  overflow-x: clip;
  width: 100%;
}

body {
  transition: background-color 0.5s ease, color 0.5s ease;
}

body.dark-theme {
  --site-bg: var(--primary-darker);
  --section-light-bg: var(--primary-dark);
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-heading: var(--white);
  --text-body: var(--text-light);
  --text-desc: var(--text-muted);
  --cta-gradient: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  
  background-color: var(--site-bg);
  color: var(--text-body);
}

body.dark-theme .glass-card h3,
body.dark-theme .timeline-content h3 {
  color: var(--white) !important;
}

body.dark-theme .glass-card {
  background: var(--card-bg) !important;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .section-title {
  color: var(--text-heading) !important;
}

body.dark-theme .section-subtitle,
body.dark-theme .text-muted,
body.dark-theme p:not(.section-subtitle) {
  color: var(--text-desc) !important;
}

body.dark-theme .bg-light-mint {
  background-color: var(--section-light-bg) !important;
}

body.dark-theme .section:not(.bg-dark):not(.hero):not(.bg-light-mint) {
  background: var(--site-bg) !important;
}

body.dark-theme .timeline::before {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .timeline-dot {
  border-color: var(--primary-dark) !important;
}

body.dark-theme .footer {
  background-color: #0d1218;
}

body.dark-theme .navbar.scrolled {
  background: rgba(19, 28, 38, 0.95);
}

body.dark-theme .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

body.dark-theme .btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
}

/* Theme & Mobile Buttons */
.theme-btn {
  margin-left: 0.5rem;
}

.theme-btn, .mobile-menu-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  outline: none;
}

.theme-btn:hover, .mobile-menu-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.theme-btn i, .mobile-menu-btn i {
  line-height: 1;
  display: block;
}

.navbar.scrolled .theme-btn, 
.navbar.scrolled .mobile-menu-btn {
  color: var(--white);
}

/* Custom Cursor - Premium Dot + Ring */
.custom-cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition:
    background 0.3s ease,
    width 0.3s ease,
    height 0.3s ease,
    border 0.3s ease,
    opacity 0.3s ease;
  transform: translate(-50%, -50%);
  display: none;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.3s ease,
              opacity 0.3s ease;
  transform: translate(-50%, -50%);
  display: none;
  opacity: 0.5;
}

@media (pointer: fine) {
  .custom-cursor, .cursor-ring {
    display: block;
  }
  body {
    cursor: none;
  }
  a, button, input, textarea, select, .btn, .hire-card, .showcase-card {
    cursor: none !important;
  }
}

.custom-cursor.active {
  width: 6px;
  height: 6px;
  background: var(--white);
}

.cursor-ring.active {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  opacity: 1;
}

.cursor-ring.cursor-text::after {
  content: 'VIEW';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  font-family: var(--font-heading);
}

/* ===== HORIZONTAL SCROLL SECTION ===== */
.horizontal-scroll-section {
  overflow: hidden;
  position: relative;
}

.horizontal-scroll-track {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
  padding: 1rem 0 1rem calc((100vw - 1200px) / 2 + 2rem);
  width: max-content;
}

.horizontal-card {
  min-width: 300px;
  max-width: 320px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.horizontal-card-number {
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: rgba(62, 179, 179, 0.07);
  line-height: 1;
  pointer-events: none;
}

/* Mobile Fallback: Stack vertically */
@media (max-width: 768px) {
  .horizontal-scroll-track {
    flex-direction: column;
    width: 100%;
  }

  .horizontal-card {
    min-width: unset;
    max-width: 100%;
  }
}

/* ===== ADVANCED PROJECT HOVER EFFECTS ===== */
.showcase-card {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-card:hover {
  transform: scale(0.98);
}

.showcase-card .showcase-img-wrap {
  overflow: hidden;
}

.showcase-card .showcase-img {
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), filter 0.5s ease;
}

.showcase-card:hover .showcase-img {
  transform: scale(1.08) rotate(-1deg);
  filter: brightness(0.85) saturate(1.2);
}

.showcase-card .showcase-img-overlay {
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), backdrop-filter 0.5s ease;
}

.showcase-card:hover .showcase-img-overlay {
  backdrop-filter: blur(3px);
}

/* ===== SECTION EYEBROW PREMIUM STYLE ===== */
.section-eyebrow {
  letter-spacing: 4px;
  font-weight: 700;
  font-family: var(--font-mono);
}



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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

a:hover {
  color: var(--secondary);
}

ul {
  list-style: none;
}

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

/* Typography */
.section-title {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

.section-title span {
  display: inline-block;
  overflow: hidden;
}

.reveal-text {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.bg-dark {
  background-color: var(--primary-dark);
  color: var(--white);
}

.bg-dark .section-title {
  color: var(--white);
}

.bg-dark .section-subtitle {
  color: var(--text-light);
}

.bg-light-mint {
  background-color: var(--light-mint);
}

.text-center {
  text-align: center;
}
.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}
.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.magnetic-wrap {
  display: inline-block;
  position: relative;
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-outline:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* Tech Stack Tags */
.tech-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: var(--light-mint);
  color: var(--secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  margin: 0.2rem;
  font-weight: 500;
}

.bg-dark .tech-tag {
  background-color: rgba(62, 179, 179, 0.15);
  color: var(--accent-light);
}

/* Glassmorphism Classes - Simplified for Scroll Performance */
.glass {
  background: rgba(26, 38, 52, 0.9); /* Solid fallback */
  border: 1px solid var(--glass-border);
  will-change: transform;
}

.glass-card {
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  will-change: transform;
  transition: transform 0.5s var(--smooth), box-shadow 0.5s var(--smooth), border-color 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(62, 179, 179, 0.2);
}

/* Stats Card Specific */
.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}


/* Hire Card Specific */
.hire-card {
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  transition: transform 0.5s var(--smooth), box-shadow 0.5s var(--smooth), border-color 0.4s ease;
  height: 100%;
}

.hire-card:hover {
  transform: translateY(-5px);
  border-color: rgba(62, 179, 179, 0.3);
  box-shadow: 0 12px 30px rgba(62, 179, 179, 0.1);
}

.hire-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 179, 179, 0.1);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.hire-card:hover .hire-icon {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.1);
}

/* CTA Enhancement */
.cta-section {
  padding: 8rem 0;
  background: var(--cta-gradient);
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(26, 38, 52, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(62, 179, 179, 0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  display: inline-flex;
  align-items: center;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.mobile-menu-btn {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Footer */
.footer {
  background-color: var(--primary-darker);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about p {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.footer-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  width: 100%;
}

.newsletter-input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(62, 179, 179, 0.2);
}

.newsletter-btn {
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  white-space: nowrap;
  color: #ffffff !important;
  z-index: 1;
}

.newsletter-btn span {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* Animations Data State */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

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

/* Hero Section Base */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary-darker) 0%,
    var(--primary-dark) 100%
  );
  position: relative;
  overflow: hidden;
  --x: 50%;
  --y: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x) var(--y), rgba(62, 179, 179, 0.15), transparent 25%);
  pointer-events: none;
  z-index: 1;
}

/* CTA Section Theme */
.cta-section {
  background: var(--cta-gradient);
  transition: background 0.5s ease;
}

.cta-section .section-title {
  color: var(--text-heading);
}

.cta-section .section-subtitle {
  color: var(--text-body);
}

/* Filter Bar */
.filter-bar-container {
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
}

.filter-btn {
  color: var(--text-body);
}

.skill-category-title {
  text-transform: capitalize;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--light-mint);
  padding-bottom: 0.5rem;
}

body.dark-theme .skill-category-title {
  color: var(--accent);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.skill-name {
  font-weight: 500;
  color: var(--primary-dark);
}

body.dark-theme .skill-name {
  color: var(--white);
}

/* About Page Profile Image */
.about-profile-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: 4px solid var(--white);
}

body.dark-theme .about-profile-img {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-profile-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.image-wrapper {
  position: relative;
  z-index: 1;
}

.image-wrapper::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.1;
}

@media (max-width: 768px) {
  .image-wrapper {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .image-wrapper::after {
    top: 10px;
    left: 10px;
    right: 0;
    bottom: 0;
    opacity: 0.05;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at right top,
      rgba(62, 179, 179, 0.15),
      transparent 40%
    ),
    radial-gradient(
      circle at left bottom,
      rgba(45, 107, 107, 0.15),
      transparent 40%
    );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Final Component Theming */
.skills-grid .stagger-item {
  height: 100%;
}

.skills-grid .glass-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bg-light-mint .glass-card {
  background: var(--white);
  border-color: rgba(62, 179, 179, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body.dark-theme .bg-light-mint .glass-card {
  background: var(--card-bg) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--shadow);
}

.glass-card h3 {
  color: var(--secondary);
  font-family: var(--font-heading);
}

body.dark-theme .glass-card h3 {
  color: var(--accent) !important;
}

.timeline-content h3 {
  color: var(--primary-dark);
}

.timeline-content h4 {
  color: var(--secondary);
}

body.dark-theme .timeline-content h3 {
  color: var(--white) !important;
}

body.dark-theme .timeline-content h4 {
  color: var(--accent) !important;
}

/* Resume Specific Styles */
.resume-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
}

body.dark-theme .resume-card {
  background: var(--card-bg) !important;
  color: var(--text-body);
}

.resume-header {
  border-bottom: 2px solid var(--primary-dark);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.dark-theme .resume-header {
  border-bottom-color: var(--accent);
}

.resume-name {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

body.dark-theme .resume-name {
  color: var(--white);
}

.resume-title {
  font-size: 1.5rem;
  color: var(--secondary);
  font-weight: 500;
}

body.dark-theme .resume-title {
  color: var(--accent);
}

.resume-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 1rem;
}

.resume-contact-info p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resume-section {
  margin-bottom: 3rem;
}

.resume-section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.5rem;
}

body.dark-theme .resume-section-title {
  color: var(--accent);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.resume-text {
  font-size: 1.05rem;
  line-height: 1.8;
}

.resume-item-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.resume-item-title {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

body.dark-theme .resume-item-title {
  color: var(--white);
}

.resume-item-date {
  color: var(--secondary);
  font-weight: 600;
}

body.dark-theme .resume-item-date {
  color: var(--accent);
}

.resume-item-subtitle {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.resume-list {
  line-height: 1.8;
  list-style-type: disc;
  padding-left: 1.5rem;
}

.resume-projects {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.resume-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.resume-skills-list {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
}

@media (max-width: 768px) {
  .resume-card {
    padding: 2rem;
  }
  .resume-name {
    font-size: 2rem;
  }
  .resume-grid-bottom {
    grid-template-columns: 1fr;
  }
  .resume-contact-info {
    text-align: left;
  }
}

/* Project Gallery V3 - High-End UI/UX */
.project-filter-container {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.filter-bar {
  display: inline-flex;
  background: var(--white);
  padding: 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
  gap: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

body.dark-theme .filter-bar {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.filter-btn {
  padding: 0.7rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--smooth);
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

body.dark-theme .filter-btn {
  color: var(--text-light);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(62, 179, 179, 0.3);
}

.project-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 3.5rem;
  padding-top: 3rem;
}

.project-card-v2 {
  position: relative;
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

body.dark-theme .project-card-v2 {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(62, 179, 179, 0.1);
}

body.dark-theme .project-card-v2:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.project-img-container {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #f8fafc;
}

body.dark-theme .project-img-container {
  background: #0f172a;
}

.project-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card-v2:hover .project-main-img {
  transform: scale(1.08);
}

.project-overlay-v2 {
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 24, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  backdrop-filter: blur(8px);
}

.project-card-v2:hover .project-overlay-v2 {
  opacity: 1;
}

.project-link-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 25px rgba(62, 179, 179, 0.4);
}

.project-card-v2:hover .project-link-icon {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.project-card-body {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-cat-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(62, 179, 179, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
}

.project-card-title {
  font-size: 1.85rem;
  margin-bottom: 1.2rem;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

body.dark-theme .project-card-title {
  color: var(--white);
}

.project-card-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  opacity: 0.7;
}

body.dark-theme .project-card-desc {
  color: var(--text-light);
  opacity: 0.6;
}

.project-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

body.dark-theme .project-card-footer {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.project-tech-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.mini-tech-tag {
  font-size: 0.65rem;
  background: #f1f5f9;
  color: var(--secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

body.dark-theme .mini-tech-tag {
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-light);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.project-detail-link {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
}

body.dark-theme .project-detail-link {
  color: var(--white);
}

.project-detail-link i {
  color: var(--accent);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-detail-link:hover i {
  transform: translateX(6px);
}

@media (max-width: 768px) {
  .project-grid-v2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .project-card-body {
    padding: 1.5rem;
  }
  .project-card-title {
    font-size: 1.5rem;
  }
  .project-card-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .project-card-footer {
    flex-wrap: wrap;
    gap: 1.2rem;
  }
  .project-img-container {
    height: 220px;
  }
}

/* Scrollytelling Component */
.scrolly-container {
  height: 100vh;
  background-color: #121212;
  position: relative;
  width: 100%;
}

.scrolly-sticky {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#scrolly-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.scrolly-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  padding: 0 10%;
}

.scrolly-overlay h1, 
.scrolly-overlay h2 {
  color: #ffffff;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  font-family: var(--font-heading);
}

.scrolly-step-1 {
  justify-content: flex-start;
  align-items: center;
  text-align: left;
}

.scrolly-step-2 {
  justify-content: flex-start;
  align-items: flex-end;
  text-align: left;
  padding-bottom: 15vh;
}

.scrolly-step-3 {
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  padding-bottom: 15vh;
}

.scrolly-content-box {
  max-width: 650px;
}

/* ===== SECTION EYEBROW ===== */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ===== FEATURED PROJECTS: PREMIUM SHOWCASE ===== */
.projects-showcase-section {
  background: #f0f9f9; /* Subtle light mint tint */
  padding: 8rem 0;
  position: relative;
  background-image: 
    radial-gradient(rgba(62,179,179,0.15) 1px, transparent 1px),
    radial-gradient(rgba(62,179,179,0.15) 1px, #f0f9f9 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

.projects-showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 15%, rgba(255,255,255,0) 85%, rgba(255,255,255,1) 100%);
  pointer-events: none;
  z-index: 1;
}

.projects-showcase-section > .container {
  position: relative;
  z-index: 2;
}

.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3.5rem;
}

.showcase-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.6s var(--smooth), box-shadow 0.6s var(--smooth), border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: rgba(62,179,179,0.2);
}

.showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--smooth);
}

.showcase-card:hover::before {
  transform: scaleX(1);
}

.showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* Alternate layout — every other card flips text/image */
.showcase-card:nth-child(even) {
  direction: rtl;
}
.showcase-card:nth-child(even) > * {
  direction: ltr;
}

/* ---- Image Side ---- */
.showcase-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--smooth);
}

.showcase-card:hover .showcase-img {
  transform: scale(1.03);
}

.showcase-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,38,52,0.7) 0%, rgba(62,179,179,0.35) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.showcase-card:hover .showcase-img-overlay {
  opacity: 1;
}

.showcase-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transform: translateY(20px);
  transition: transform 0.4s var(--smooth), box-shadow 0.3s ease;
}

.showcase-card:hover .showcase-view-btn {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.showcase-view-btn i {
  transition: transform 0.3s ease;
}
.showcase-view-btn:hover i {
  transform: translateX(4px);
}

.showcase-number {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.08);
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}

.showcase-card:hover .showcase-number {
  color: rgba(255,255,255,0.15);
}

/* ---- Info Side ---- */
.showcase-info {
  padding: 0.5rem 0;
}

.showcase-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.showcase-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.showcase-live-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.showcase-live-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.showcase-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text-heading);
}

.showcase-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.showcase-title a:hover {
  color: var(--accent);
}

.showcase-desc {
  color: var(--text-desc);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.showcase-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.showcase-tech-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  background: rgba(62, 179, 179, 0.08);
  color: var(--secondary);
  border: 1px solid rgba(62, 179, 179, 0.15);
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.showcase-case-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: gap 0.3s ease;
}

.showcase-case-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--smooth);
}

.showcase-case-link:hover {
  gap: 0.85rem;
}

.showcase-case-link:hover::after {
  width: 100%;
}

/* ---- Dark Theme Overrides ---- */
body.dark-theme .projects-showcase-section {
  background: var(--site-bg);
  background-image: 
    radial-gradient(rgba(62,179,179,0.05) 0.5px, transparent 0.5px),
    radial-gradient(rgba(62,179,179,0.05) 0.5px, var(--site-bg) 0.5px);
}

body.dark-theme .projects-showcase-section::before {
  background: linear-gradient(180deg, var(--site-bg) 0%, rgba(20,28,38,0) 15%, rgba(20,28,38,0) 85%, var(--site-bg) 100%);
}

body.dark-theme .showcase-card {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.05);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

body.dark-theme .showcase-card:hover {
  background: rgba(255,255,255,0.04);
  box-shadow: 0 35px 80px rgba(0,0,0,0.4);
}

body.dark-theme .showcase-tech-pill {
  background: rgba(62,179,179,0.12);
  color: var(--accent-light);
  border-color: rgba(62,179,179,0.2);
}

body.dark-theme .showcase-live-link {
  color: var(--text-light);
  border-color: rgba(255,255,255,0.1);
}

body.dark-theme .showcase-title {
  color: var(--white);
}

body.dark-theme .showcase-desc {
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .showcase-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .showcase-card:nth-child(even) {
    direction: ltr;
  }
  .showcase-title { font-size: 1.5rem; }
}

@media (max-width: 576px) {
  .showcase-card {
    padding: 1rem;
    border-radius: var(--radius);
  }
  .showcase-img-wrap {
    aspect-ratio: 16 / 9;
  }
  .showcase-title { font-size: 1.3rem; }
  .showcase-number { font-size: 3rem; }
  .showcase-grid { gap: 2.5rem; margin-top: 2rem; }
  .projects-showcase-section { padding: 4rem 0; }
}

/* Premium Global Loader: Agency Design */
.global-loader {
  position: fixed;
  inset: 0;
  background-color: #080c10;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s cubic-bezier(0.85, 0, 0.15, 1), transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), visibility 1.2s ease;
  padding: 40px;
}

.global-loader.fade-out {
  opacity: 0;
  transform: translateY(-100%); /* Slide up exit */
  visibility: hidden;
}

.loader-inner-container {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* Decoration lines */
.loader-top-decoration {
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0.3;
}

.loader-top-decoration .line {
  height: 1px;
  background: var(--white);
  flex-grow: 1;
}

.loader-top-decoration .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Brand Section */
.loader-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--white);
}

.brand-text .accent-dot {
  color: var(--accent);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--accent);
  opacity: 0.8;
}

/* Progress Area */
.loader-progress-area {
  margin-top: 4rem;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 15px;
}

.progress-track-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 30px;
}

.progress-number-large {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 800;
  line-height: 0.8;
  color: var(--white);
  min-width: 1.5ch;
  position: relative;
}

.progress-number-large::after {
  content: '%';
  font-size: 1.5rem;
  color: var(--accent);
  margin-left: 5px;
  vertical-align: top;
}

.progress-bar-container {
  flex-grow: 1;
  height: 2px;
  background: rgba(255,255,255,0.05);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(62,179,179,0.5);
  transition: width 0.3s cubic-bezier(0.1, 0.5, 0.5, 1);
}

/* Bottom Info */
.loader-bottom-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
}

.loader-bottom-info .scroll-vibe {
  color: var(--white);
  opacity: 0.6;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

@media (max-width: 768px) {
  .progress-track-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .progress-bar-container {
    width: 100%;
    margin-bottom: 0;
  }
  
  .brand-sub {
    font-size: 0.6rem;
    letter-spacing: 2px;
  }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(62, 179, 179, 0.3);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(62, 179, 179, 0.4);
}

/* ===== SCROLLY HERO MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .scrolly-overlay h1,
  .scrolly-overlay h2 {
    font-size: 2rem;
  }

  .scrolly-overlay {
    padding: 0 5%;
  }

  .scrolly-content-box {
    max-width: 100%;
  }

  .scrolly-step-1 {
    align-items: flex-end;
    justify-content: center; /* Center horizontally on mobile */
    text-align: center;
    padding-bottom: 18vh;    /* Push down over the darker shirt area, away from face */
  }

  .scrolly-step-1 .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }

  /* Force buttons to center within the scrolly content box on mobile */
  .scrolly-step-1 .scrolly-content-box > div {
    justify-content: center !important;
  }

  .scrolly-step-2,
  .scrolly-step-3 {
    padding-bottom: 10vh;
  }
}

@media (max-width: 480px) {
  .scrolly-overlay h1,
  .scrolly-overlay h2 {
    font-size: 1.6rem;
  }

  .scrolly-step-1 p {
    font-size: 1rem !important;
  }
}

/* ===== NAV LINKS MOBILE Z-INDEX FIX ===== */
@media (max-width: 768px) {
  .nav-links {
    z-index: 1000;
  }
}
