/* 
  Ethan Sienes — Portfolio Stylesheet
  Mobile-First Architecture (Apple & Linear Grayscale Aesthetics)
*/

/* --- 1. Design System & Variables --- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  
  --text-primary: #000000;
  --text-secondary: #6e6e73;
  --text-tertiary: #a1a1a6;
  
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-border-hover: rgba(0, 0, 0, 0.12);
  --glass-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.03);
  --glass-shadow-hover: 0 20px 40px 0 rgba(0, 0, 0, 0.08);
  --glass-blur: blur(24px) saturate(190%);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Outfit", "Inter", "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s ease;
}

/* Dark Mode Override Variables */
[data-theme="dark"] {
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1a6;
  --text-tertiary: #52525b;
  
  --glass-bg: rgba(9, 9, 11, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.3);
  --glass-shadow-hover: 0 20px 40px 0 rgba(0, 0, 0, 0.5);
}

/* --- 2. Base Reset & Defaults --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Base mobile container padding */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #d2d2d7;
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: #86868b;
}

/* --- 3. Background Liquid Glass Blobs --- */
.background-glass-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.glass-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #eaeaea 0%, rgba(255,255,255,0) 70%);
  top: -80px;
  left: -80px;
  animation: float-blob-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f0f0f2 0%, rgba(255,255,255,0) 70%);
  top: 35%;
  right: -150px;
  animation: float-blob-2 30s infinite alternate ease-in-out;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #e5e5e5 0%, rgba(255,255,255,0) 70%);
  bottom: -100px;
  left: 10%;
  animation: float-blob-3 20s infinite alternate ease-in-out;
}

@keyframes float-blob-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-20px, 60px) scale(0.9); }
}

@keyframes float-blob-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(0.85); }
  100% { transform: translate(25px, 20px) scale(1.05); }
}

@keyframes float-blob-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 50px) scale(1.15); }
  100% { transform: translate(30px, -25px) scale(0.95); }
}

/* --- 4. Navigation Bar (Mobile First) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

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

.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo:hover {
  opacity: 0.75;
}

.nav-logo-img {
  height: 20px;
  width: auto;
  display: block;
  transition: var(--transition-fast);
}

.logo-dark-theme {
  display: none;
}

[data-theme="dark"] .logo-light-theme {
  display: none;
}

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

/* Status pill in the navigation bar */
.nav-status-pill {
  display: none; /* Hidden on mobile to prevent layout clutter */
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111111 !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  z-index: 110;
}

.nav-booking-btn:hover {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.gmeet-logo-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nav-booking-btn:hover .gmeet-logo-icon {
  transform: scale(1.1);
}

.nav-status-pill:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--glass-border-hover);
  transform: scale(1.02);
}

/* --- 5. Hero Section (Mobile First) --- */
.hero-section {
  position: relative;
  min-height: 70vh; /* Reduced height on mobile to prevent excessive empty space */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 80px;
  background-color: var(--bg-primary);
  width: 100%;
}

/* Smooth gradient fade at the bottom of hero cover (disabled for white bg) */
.hero-section::after {
  display: none;
}

/* --- 5a. Partner Logos Marquee Section --- */
.logos-section {
  width: 100%;
  background: transparent;
  padding: 30px 0 60px 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.logos-container {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.logos-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.logo-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 45px;
  width: 220px;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-tertiary);
  transition: color 0.3s ease, transform 0.3s ease;
}

.logo-svg, .logo-img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.35;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease, color 0.3s ease;
}

@media (min-width: 768px) {
  .logo-svg, .logo-img {
    height: 60px;
  }
}

.logo-link:hover .logo-svg,
.logo-link:hover .logo-img {
  opacity: 0.9;
  filter: grayscale(0%);
  color: var(--text-primary);
}

.logo-link:hover {
  transform: scale(1.02);
}

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

/* --- 5b. Hero Grid & HUD Elements --- */
.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--glass-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55; /* Very subtle grid lines */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
}

.hero-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}


.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #34c759;
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid rgba(52, 199, 89, 0.4);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.scroll-hud {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

.scroll-hud-text {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.scroll-hud-icon {
  width: 14px;
  height: 24px;
  border: 1px solid var(--glass-border);
  border-radius: 7px;
  position: relative;
}

.scroll-hud-dot {
  width: 4px;
  height: 4px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-dot 2s infinite ease-in-out;
}

/* Staggered Delay Classes */
.reveal-delay-1 { animation-delay: 150ms; }
.reveal-delay-2 { animation-delay: 350ms; }
.reveal-delay-3 { animation-delay: 550ms; }
.reveal-delay-4 { animation-delay: 750ms; }
.reveal-delay-5 { animation-delay: 950ms; }

@keyframes pulse-dot {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes scroll-dot {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  80% {
    transform: translate(-50%, 10px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero-content {
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subheadline {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 32px auto;
}

.hero-cta-btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--glass-border);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
  box-shadow: var(--glass-shadow);
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: var(--glass-shadow-hover);
  background: rgba(255, 255, 255, 0.95);
}

/* Hero Social Proof Trust Badge */
.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 36px auto;
  width: max-content;
}

.avatar-stack {
  display: flex;
  padding-left: 12px;
}

.avatar-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -12px;
  object-fit: cover;
  background-color: var(--bg-secondary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  position: relative;
  z-index: 1;
}

.avatar-stack:hover .avatar-item {
  transform: translateX(-4px);
}

.avatar-item:hover {
  transform: scale(1.15) translateY(-2px) !important;
  z-index: 5;
  border-color: var(--text-primary);
}

.avatar-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.5px;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .avatar-badge {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-proof-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.social-proof-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 2px;
}

.social-proof-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star-icon {
  width: 14px;
  height: 14px;
  color: #ffcc00; /* Apple Premium Gold Star */
}

.rating-val {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1;
}

/* --- 6. Section Titles --- */
.works-section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.accent-font {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600; /* Semi-bold slant matches the SF Pro bold headings beautifully */
  text-transform: none;
  font-size: 1.04em; /* Fits the sans-serif sizing of Outfit/SF Pro perfectly */
  letter-spacing: -0.01em;
  display: inline-block;
  color: var(--text-primary);
}

/* --- 7. Works Grid (Mobile First) --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.bento-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 380px;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glass label overlay */
.card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.visit-label {
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  transform: translateY(15px) scale(0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

/* Hover effects */
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}

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

.bento-card:hover .card-hover-overlay {
  opacity: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bento-card:hover .visit-label {
  transform: translateY(0) scale(1);
}

.card-info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.card-category {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.card-year {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* --- 8. About Section (Mobile First) --- */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-paragraph {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

.metric-num {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.metric-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Profile Photo Wrap */
.about-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 12px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.about-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: var(--transition-smooth);
}

.about-image-wrapper:hover {
  transform: scale(1.01) translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.about-image-wrapper:hover .about-img {
  filter: grayscale(0%);
}

.about-profile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 65%, rgba(0, 0, 0, 0) 100%);
  padding: 40px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  z-index: 10;
  transition: var(--transition-smooth);
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff; /* Forced white color for legibility on dark gradient */
}

.profile-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a1a1a6; /* Forced light gray color for legibility */
}

/* Hover adjustments */
.about-image-wrapper:hover .about-profile-overlay {
  transform: translateY(-2px); /* Very subtle dynamic nudge */
}

/* --- 9. Tech Stack Section (Mobile First) --- */
.stack-section {
  padding: 80px 0;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.stack-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

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

.stack-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  flex-shrink: 0;
}

.stack-icon {
  width: 20px;
  height: 20px;
}

.stack-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.stack-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 2px;
}

.stack-role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- 10. Contact Footer (Mobile First) --- */
.contact-footer {
  padding: 100px 0 40px 0;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-headline {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.footer-email {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1.5px solid var(--text-primary);
  padding-bottom: 4px;
  margin-bottom: 36px;
  transition: var(--transition-fast);
}

.footer-email:hover {
  opacity: 0.6;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.footer-link-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-link-item:hover {
  color: var(--text-primary);
}

.link-divider {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111111 !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-smooth);
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.booking-btn:hover {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.booking-btn:hover .gmeet-logo-icon {
  transform: scale(1.1);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --- 11. Scroll Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in {
  opacity: 0;
  animation: fade-in-keyframes 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* --- 12. Responsive Breakpoints (Mobile First min-width Queries) --- */

/* Tablets Landscape & Portrait (min-width: 768px) */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
  
  .nav-container {
    padding: 0 32px;
  }
  
  .hero-section {
    min-height: 75vh;
    padding-top: 140px;
    padding-bottom: 100px;
  }
  
  .hero-headline {
    font-size: 3.25rem;
    line-height: 1.12;
  }
  
  .hero-subheadline {
    font-size: 1.2rem;
    margin-bottom: 36px;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  /* Expand works grid to 2 columns */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  
  .bento-card {
    height: 440px;
  }
  
  .card-image-wrapper {
    height: 320px;
  }
  
  .about-paragraph {
    font-size: 1.65rem;
    margin-bottom: 40px;
  }
  
  .about-metrics {
    gap: 20px;
  }
  
  .metric-card {
    padding: 24px 16px;
  }
  
  .metric-num {
    font-size: 2.25rem;
  }
  
  .metric-label {
    font-size: 0.8rem;
  }
  
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stack-section, .about-section, .works-section {
    padding: 100px 0;
  }
  
  .footer-headline {
    font-size: 3rem;
  }
  
  .footer-email {
    font-size: 2rem;
  }
}

/* Laptops & Desktop Monitors (min-width: 1024px) */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }
  
  .nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 0 40px;
  }
  
  .nav-status-pill {
    display: inline-flex;
    justify-self: center;
  }
  
  .nav-logo {
    justify-self: start;
  }
  
  .nav-booking-btn {
    justify-self: end;
  }
  

  
  .navbar {
    padding: 28px 0;
  }
  
  .navbar.scrolled {
    padding: 16px 0;
  }
  
  .hero-section {
    min-height: 80vh;
    padding-top: 160px;
    padding-bottom: 120px;
  }
  
  .hero-headline {
    font-size: 4.5rem;
    line-height: 1.1;
  }
  
  .hero-subheadline {
    font-size: 1.35rem;
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .bento-grid {
    gap: 32px;
  }
  
  .bento-card {
    height: 480px;
  }
  
  .card-image-wrapper {
    height: 360px;
  }
  
  /* Horizontal split for About grid */
  .about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: start;
  }
  
  .about-paragraph {
    font-size: 1.85rem;
    line-height: 1.45;
  }
  
  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .stack-section, .about-section, .works-section {
    padding: 120px 0;
  }
  
  .contact-footer {
    padding: 160px 0 60px 0;
  }
  
  .footer-headline {
    font-size: 3.5rem;
    line-height: 1.15;
  }
  
  .footer-email {
    font-size: 2.25rem;
    margin-bottom: 48px;
  }
}

/* --- 12. Floating Theme Toggle Widget --- */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: var(--glass-border-hover);
  background: var(--bg-primary);
}

.theme-icon {
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Light mode defaults: show moon, hide sun */
.theme-toggle .sun-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(45deg);
}

.theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0);
}

/* Dark mode overrides: show sun, hide moon */
[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-45deg);
}

/* Dark Mode Background Blob adjustments */
[data-theme="dark"] .glass-blob {
  mix-blend-mode: screen;
  opacity: 0.12;
}

[data-theme="dark"] .blob-1 {
  background: radial-gradient(circle, #2d2d30 0%, rgba(9,9,11,0) 70%);
}

[data-theme="dark"] .blob-2 {
  background: radial-gradient(circle, #242427 0%, rgba(9,9,11,0) 70%);
}

[data-theme="dark"] .blob-3 {
  background: radial-gradient(circle, #2d2d30 0%, rgba(9,9,11,0) 70%);
}

/* Dark Mode Scrollbar override */
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #3f3f46;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #09090b;
}

/* Scroll status pill highlight on dark scroll */
[data-theme="dark"] .navbar.scrolled {
  background: rgba(9, 9, 11, 0.75);
}

/* --- 6. Mobile Tinder-Style Project Deck --- */

/* Visibility Control */
.mobile-projects-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  position: relative;
  width: 100%;
  overflow: hidden; /* Hide any scrolling bleed */
  min-height: calc(100vh - 120px); /* Fill space beautifully */
}

@media (min-width: 768px) {
  .mobile-projects-deck {
    display: none !important; /* Hide on tablets and desktops */
  }
  .bento-grid {
    display: grid !important; /* Force show bento layout on desktop */
  }
}

@media (max-width: 767px) {
  .bento-grid {
    display: none !important; /* Hide bento layout on mobile */
  }
}

/* Swipe Cards Deck (Strict 9:16 Aspect Ratio Horizontal Snap Gallery) */
.swipe-cards-container {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar on Firefox */
  padding: 35px 8% 50px 8%; /* Center snaps the first/last card and leaves room for scale & shadows */
  box-sizing: border-box;
  margin-bottom: 25px; /* Clear separation to prevent buttons touching cards */
}

.swipe-cards-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar on Chrome/Safari */
}

.swipe-card {
  position: relative;
  flex: 0 0 84%; /* Larger cards on mobile */
  aspect-ratio: 9 / 16;
  margin: 0 10px; /* Separation gap */
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  scroll-snap-align: center;
  user-select: none;
  transform: scale(0.95);
  opacity: 0.65;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1), opacity 0.4s ease, box-shadow 0.4s ease;
}

.swipe-card.active-card {
  transform: scale(1.02);
  opacity: 1; /* Highlight centered active card */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}

.swipe-card-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #18181b;
}

.swipe-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  transition: transform 0.5s ease;
}

/* Faded black gradient overlay sitting at the bottom of the card for maximum readability */
.swipe-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 20px 24px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  z-index: 5;
  pointer-events: none;
}

.swipe-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.swipe-card-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  opacity: 0.95;
  color: #a1a1a6;
}

.swipe-card-year {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.6;
}

.swipe-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.3px;
}

/* Page indicator dots */
.swipe-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
  align-items: center;
}

.swipe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.35;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.swipe-dot.active {
  width: 20px; /* Elegant pill indicator shape */
  border-radius: 4px;
  background: var(--text-primary);
  opacity: 0.95;
}

.swipe-hint {
  margin-top: 18px;
  font-size: 0.62rem;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.55;
  text-align: center;
}

/* --- 7. Capabilities Section (Services Bento Grid) --- */
.capabilities-section {
  padding: 100px 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 10;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.capability-card {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Glass surface overlay */
.capability-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  /* Specular highlight border for 3D glass look */
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.45), 
              inset -1px -1px 0px rgba(0, 0, 0, 0.04);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .capability-card::after {
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.15), 
              inset -1px -1px 0px rgba(0, 0, 0, 0.4);
}

.capability-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--glass-shadow-hover);
}

.capability-card:hover::after {
  border-color: var(--glass-border-hover);
  /* Brighter inner highlight on hover */
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.6), 
              inset -1px -1px 0px rgba(0, 0, 0, 0.08),
              var(--glass-shadow-hover);
}

[data-theme="dark"] .capability-card:hover::after {
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.25), 
              inset -1px -1px 0px rgba(0, 0, 0, 0.5),
              var(--glass-shadow-hover);
}

/* Base style for Monochromatic Liquid Glow Blobs (hidden behind glass filter) */
.capability-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(40px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 75%);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

[data-theme="dark"] .capability-card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 75%);
  opacity: 1;
}

/* Individual card starting positions for the liquid glow */
.capabilities-grid .capability-card:nth-child(1)::before {
  top: -30px;
  left: -30px;
  animation: liquid-drift-1 12s infinite alternate ease-in-out;
}

.capabilities-grid .capability-card:nth-child(2)::before {
  top: -30px;
  right: -30px;
  animation: liquid-drift-2 15s infinite alternate ease-in-out -3s;
}

.capabilities-grid .capability-card:nth-child(3)::before {
  bottom: -30px;
  right: -30px;
  animation: liquid-drift-3 14s infinite alternate ease-in-out -6s;
}

/* Hover updates for the liquid glows */
.capability-card:hover::before {
  opacity: 0.95;
  transform: scale(1.3);
}

[data-theme="dark"] .capability-card:hover::before {
  opacity: 0.15;
}

/* Ensure content elements sit above the glass surface overlay */
.capability-icon-wrapper,
.capability-title,
.capability-description,
.capability-tags {
  position: relative;
  z-index: 2;
}

/* Animations for liquid glass blobs */
@keyframes liquid-drift-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, 20px) scale(1.15) rotate(20deg); }
  100% { transform: translate(-10px, 35px) scale(0.9) rotate(-10deg); }
}

@keyframes liquid-drift-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 15px) scale(0.85) rotate(-30deg); }
  100% { transform: translate(15px, -20px) scale(1.1) rotate(15deg); }
}

@keyframes liquid-drift-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15px, -30px) scale(1.2) rotate(45deg); }
  100% { transform: translate(20px, 15px) scale(0.9) rotate(-20deg); }
}

.capability-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .capability-icon-wrapper {
  background: rgba(255, 255, 255, 0.03);
}

.capability-card:hover .capability-icon-wrapper {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: scale(1.08) rotate(2deg);
}

.capability-icon {
  width: 22px;
  height: 22px;
}

.capability-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 0;
  transition: transform 0.3s ease;
}

.capability-card:hover .capability-title {
  transform: translateX(2px);
}

.capability-description {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.capability-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .capability-tag {
  background: rgba(255, 255, 255, 0.02);
}

.capability-card:hover .capability-tag {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .capability-card:hover .capability-tag {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

/* --- 8. Workflow Section (Step progressive HUD track) --- */
.workflow-section {
  padding: 100px 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 10;
}

.workflow-track {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

/* Horizontal Timeline Progress Line on Desktop */
.workflow-track::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--glass-border);
  z-index: 1;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
  cursor: default;
}

.step-number {
  font-family: 'Outfit', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-tertiary);
  opacity: 0.14;
  margin-bottom: 24px;
  display: inline-block;
  user-select: none;
  transition: opacity 0.4s ease, color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left bottom;
}

.workflow-step:hover .step-number {
  opacity: 0.45;
  color: var(--text-primary);
  transform: scale(1.05) translateY(-2px);
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-meta {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.step-description {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Dark Theme Compliance Overrides --- */
[data-theme="dark"] .capability-icon-wrapper {
  background: rgba(var(--card-accent-rgb), 0.15);
  border-color: rgba(var(--card-accent-rgb), 0.3);
}

[data-theme="dark"] .capability-tag {
  background: rgba(var(--card-accent-rgb), 0.06);
  border-color: rgba(var(--card-accent-rgb), 0.2);
  color: var(--card-accent);
  filter: brightness(1.25);
}

/* --- Section Dot Navigation (Fixed Sidebar) --- */
.section-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 99;
  padding: 14px 8px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.section-dots.visible {
  opacity: 1;
  pointer-events: auto;
}

.dot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-direction: row-reverse;
  position: relative;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.dot-item:hover .dot,
.dot-item.active .dot {
  background: var(--text-primary);
  transform: scale(1.3);
}

.dot-item.active .dot {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .dot-item.active .dot {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.dot-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  right: 22px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.dot-item:hover .dot-label {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.dot-item.active .dot-label {
  color: var(--text-primary);
}

/* Hide dot nav on mobile — too small for dots */
@media (max-width: 767px) {
  .section-dots {
    display: none;
  }
}

/* --- Tablet Responsiveness --- */
@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .capability-card:last-child {
    grid-column: span 2;
  }

  .workflow-track {
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
  }

  /* Disable progressive horizontal line on tablet stack */
  .workflow-track::before {
    display: none;
  }

  .workflow-step {
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
  }

  .step-number {
    font-size: 3rem;
    margin-bottom: 0;
    min-width: 50px;
    line-height: 0.9;
  }

  .step-content {
    gap: 4px;
  }
}

/* --- Mobile Enhancements (≤ 767px) --- */
@media (max-width: 767px) {

  .capabilities-section, .workflow-section {
    padding: 56px 0;
  }

  /* ── Capabilities Mobile Polish ── */
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .capability-card {
    padding: 24px 20px;
    border-radius: 20px;
    gap: 12px;
  }



  .capability-card::before {
    width: 120px;
    height: 120px;
    filter: blur(30px);
  }

  .capability-card:last-child {
    grid-column: auto;
  }

  .capability-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    margin-bottom: 2px;
  }

  .capability-icon {
    width: 19px;
    height: 19px;
  }

  .capability-title {
    font-size: 1.15rem;
  }

  .capability-description {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .capability-tags {
    padding-top: 8px;
    gap: 6px;
  }

  .capability-tag {
    font-size: 0.68rem;
    padding: 5px 12px;
  }

  /* ── Workflow Mobile Timeline Redesign ── */
  .workflow-track {
    gap: 0;
    margin-top: 32px;
    padding-left: 36px;
  }

  /* Vertical timeline connector line */
  .workflow-track::before {
    display: block !important;
    content: '' !important;
    top: 0;
    bottom: 0;
    left: 12px;
    right: auto;
    width: 1px;
    height: auto;
    background: var(--glass-border);
  }

  /* Each step becomes a glassmorphic card */
  .workflow-step {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 20px;
    margin-bottom: 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--glass-shadow);
  }

  .workflow-step:last-child {
    margin-bottom: 0;
  }

  /* Timeline dot on the connector */
  .workflow-step::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 24px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--text-tertiary);
    z-index: 3;
  }

  /* Step number as subtle watermark inside card */
  .step-number {
    font-size: 2.5rem;
    min-width: auto;
    margin-bottom: 0;
    position: absolute;
    top: 14px;
    right: 16px;
    opacity: 0.08;
    line-height: 1;
    pointer-events: none;
  }

  .workflow-step:hover .step-number {
    opacity: 0.2;
    transform: none;
  }

  .step-meta {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }

  .step-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .step-description {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .step-content {
    gap: 4px;
  }
}

/* --- 10b. Cover Card Section (Floating Image) --- */
.cover-card-section {
  padding: 60px 0;
  position: relative;
  z-index: 10;
}

.cover-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.12), 0 12px 30px -15px rgba(0, 0, 0, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .cover-card {
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.45), 0 12px 30px -15px rgba(0, 0, 0, 0.35);
}

.cover-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-smooth);
}

.cover-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Hover Interactive States */
.cover-card:hover {
  transform: translateY(-12px) scale(1.005);
  box-shadow: 0 45px 90px -12px rgba(0, 0, 0, 0.18), 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  border-color: var(--glass-border-hover);
}

[data-theme="dark"] .cover-card:hover {
  box-shadow: 0 45px 90px -12px rgba(0, 0, 0, 0.6), 0 20px 40px -15px rgba(0, 0, 0, 0.45);
}

.cover-card:hover .cover-card-img {
  transform: scale(1.02);
}

.cover-card:hover .cover-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .cover-card-section {
    padding: 40px 0;
  }
  .cover-card {
    aspect-ratio: 16 / 9; /* Keep original aspect ratio to view the whole image */
    border-radius: var(--radius-md);
  }
}


/* ==========================================================================
   11. Interactive Responsive Showcase Section
   ========================================================================== */
.responsive-section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Project Selector Pills */
.responsive-selector-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  width: 100%;
}

.responsive-pills {
  display: flex;
  gap: 12px;
  background: var(--glass-bg);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for clean visual */
}

.responsive-pills::-webkit-scrollbar {
  display: none;
}

.responsive-pill {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.responsive-pill:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .responsive-pill:hover {
  background: rgba(255, 255, 255, 0.05);
}

.responsive-pill.active {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* View Segmented Controls */
.view-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.view-toggle-container {
  display: inline-flex;
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.view-toggle-btn {
  border: none;
  background: transparent;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-toggle-btn.active {
  color: var(--text-primary);
}

[data-theme="dark"] .view-toggle-btn.active {
  color: var(--bg-primary);
}

.toggle-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-toggle-btn:hover .toggle-icon {
  transform: translateY(-1px);
}

.view-toggle-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 6px);
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When active, transition the slider pill to the right, and also style dark mode */
.view-toggle-container.mobile-active .view-toggle-slider {
  transform: translateX(100%);
}

[data-theme="dark"] .view-toggle-slider {
  background: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Morphing Device Frame Canvas */
.device-showcase-canvas {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 640px;
  position: relative;
  padding: 20px 0;
}

.device-frame-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Device Frame Core */
.device-frame {
  position: relative;
  background: #0d0d0f;
  border-radius: 24px;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15), 0 30px 60px -30px rgba(0, 0, 0, 0.2);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              border 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              border-radius 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.7s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .device-frame {
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.6), 0 30px 60px -30px rgba(0, 0, 0, 0.5);
  background: #020202;
}

/* Device State Sizes */
.desktop-view .device-frame {
  width: 860px;
  height: 537px;
  border: 14px solid #1c1c1e;
  border-bottom-width: 20px;
  border-radius: 28px;
}

.mobile-view .device-frame {
  width: 290px;
  height: 580px;
  border: 10px solid #1c1c1e;
  border-radius: 36px;
}

/* Chrome - Desktop (Browser controls) */
.device-chrome-desktop {
  height: 36px;
  background: #1c1c1e;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 1;
  transition: opacity 0.5s ease, height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s;
}

.mobile-view .device-chrome-desktop {
  opacity: 0;
  height: 0;
  padding: 0;
  border-bottom-width: 0;
  overflow: hidden;
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  opacity: 0.8;
}

.chrome-dot.red { background: #ff5f56; }
.chrome-dot.yellow { background: #ffbd2e; }
.chrome-dot.green { background: #27c93f; }

.chrome-address-bar {
  flex-grow: 1;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.08);
  height: 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.address-text {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
  user-select: none;
}

/* Chrome - Mobile (Speaker and Dynamic Island) */
.device-chrome-mobile {
  height: 0;
  opacity: 0;
  background: #1c1c1e;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: opacity 0.5s ease, height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-view .device-chrome-mobile {
  height: 28px;
  opacity: 1;
}

.chrome-dynamic-island {
  width: 85px;
  height: 16px;
  background: #000;
  border-radius: 10px;
  margin-top: 4px;
}

.chrome-speaker {
  position: absolute;
  top: 4px;
  width: 35px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}

/* Screen Content Area */
.device-screen {
  flex-grow: 1;
  background: #09090b;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  transition: opacity 0.3s ease;
}

.device-screen::-webkit-scrollbar {
  width: 4px;
}

.device-screen::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}

.screen-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.screen-img.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  z-index: 2;
}

/* Responsive & Mobile-first Adaptations */
@media (max-width: 900px) {
  .responsive-section {
    padding: 60px 0;
  }
  
  .desktop-view .device-frame {
    width: 80vw;
    height: calc(80vw * 0.62);
    border-width: 10px;
    border-bottom-width: 14px;
    border-radius: 20px;
  }
  
  .device-chrome-desktop {
    height: 30px;
    padding: 0 12px;
  }
  
  .chrome-address-bar {
    height: 18px;
    max-width: 240px;
  }
  
  .device-showcase-canvas {
    min-height: 520px;
  }
}

@media (max-width: 600px) {
  .responsive-pills {
    justify-content: flex-start;
    padding: 4px;
    margin: 0 16px;
  }
  
  .desktop-view .device-frame {
    width: 88vw;
    height: calc(88vw * 0.62);
    border-width: 8px;
    border-bottom-width: 12px;
    border-radius: 16px;
  }
  
  .device-chrome-desktop {
    height: 24px;
    padding: 0 8px;
  }
  
  .chrome-dot {
    width: 6px;
    height: 6px;
  }
  
  .chrome-address-bar {
    display: none; /* Hide address bar on very small widths to save space */
  }
  
  .device-showcase-canvas {
    min-height: 400px;
  }

  .mobile-view .device-frame {
    width: 240px;
    height: 480px;
    border-width: 8px;
    border-radius: 28px;
  }
}

/* --- 13. Interactive Email Copy Tooltip (Micro-Delight) --- */
.clipboard-tooltip {
  position: absolute;
  transform: translate(-50%, -100%) translateY(10px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-hover);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  animation: tooltip-fade-up 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tooltip-fade-up {
  0% {
    opacity: 0;
    transform: translate(-50%, -100%) translateY(10px);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-12px);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-12px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -100%) translateY(-22px);
  }
}

/* --- 14. FAQ Accordion Section --- */
.faq-section {
  padding: 80px 0;
  position: relative;
}

.faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-fast);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 8px;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.faq-trigger:hover {
  background: rgba(0, 0, 0, 0.015);
}

[data-theme="dark"] .faq-trigger:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-index {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-right: 16px;
  opacity: 0.7;
}

.faq-question {
  flex-grow: 1;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: var(--transition-fast);
}

.faq-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
  color: var(--text-secondary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  margin-left: 16px;
  flex-shrink: 0;
}

/* Accordion Active States */
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.faq-item.active .faq-question {
  font-weight: 600;
}

/* Accordion Height Animation using CSS Grid auto-height transition */
.faq-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.faq-item.active .faq-content-wrapper {
  grid-template-rows: 1fr;
}

.faq-content {
  min-height: 0;
}

.faq-content p {
  padding: 0 8px 24px 44px; /* Align text content past the index */
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Responsiveness media query adjustments for FAQ */
@media (min-width: 768px) {
  .faq-section {
    padding: 100px 0;
  }
  
  .faq-question {
    font-size: 1.25rem;
  }
  
  .faq-index {
    font-size: 0.95rem;
    margin-right: 24px;
  }
  
  .faq-content p {
    padding-left: 54px;
    font-size: 1.02rem;
  }
}

@media (min-width: 1024px) {
  .faq-section {
    padding: 140px 0;
  }
}

/* --- 15. Cinematic Page Preloader --- */
/* Lock scroll during loading state */
html.loading,
html.loading body {
  overflow: hidden !important;
  height: 100vh;
  position: relative;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  transform: translateY(0);
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader.fade-out {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.preloader-logo-wrapper {
  position: relative;
  height: 52px;
  width: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-logo {
  height: 52px;
  width: auto;
  position: absolute;
  opacity: 0;
  transform: scale(0.95);
  filter: blur(4px);
  animation: logo-pulse-reveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite alternate;
}

.preloader-logo-light {
  display: block;
}

.preloader-logo-dark {
  display: none;
}

[data-theme="dark"] .preloader-logo-light {
  display: none;
}

[data-theme="dark"] .preloader-logo-dark {
  display: block;
}

.preloader-indicator {
  width: 120px;
  height: 3px;
  background: var(--glass-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  position: absolute;
  left: -40%;
  animation: loading-bar-move 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Animations */
@keyframes logo-pulse-reveal {
  0% {
    opacity: 0.3;
    transform: scale(0.95);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1.04);
    filter: blur(0);
  }
}

@keyframes loading-bar-move {
  0% {
    left: -40%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

