/* ==========================================================================
   PREMIUM LIGHT SAGE GREEN PORTFOLIO SHOWCASE
   High-Performance, Editorial Luxury Design System
   ========================================================================== */

:root {
  /* Sage Green Color Palette */
  --bg-base: #f4f7f4;            /* Luminous porcelain with gentle sage tint */
  --bg-surface: #ffffff;         /* Pure crisp white for cards */
  --bg-sage-tint: #ebf2ec;       /* Soft natural sage wash */
  --bg-sage-subtle: #f0f5f1;     /* Ultra light sage section background */
  --bg-sage-hover: #e2ede4;      /* Hover state on buttons/chips */
  
  --sage-deep: #1e3323;          /* Deepest forest graphite for headings */
  --sage-primary: #3d5a45;       /* Signature luxury botanical sage */
  --sage-primary-hover: #2f4736; /* Darker sage for active button hover */
  --sage-medium: #5a7d63;        /* Herbal mid-tone sage */
  --sage-soft: #8aa38f;          /* Gentle sage accent */
  --sage-border: #d4e2d6;        /* Subtle natural border */
  --sage-border-strong: #bfd3c3; /* Prominent interactive border */
  
  --accent-gold: #c29938;        /* Warm champagne gold */
  --accent-gold-soft: #f7edd4;   /* Soft gold pill */
  --accent-emerald: #10b981;     /* Status online indicator */
  
  --text-main: #18261b;          /* Ultra crisp, high contrast primary text */
  --text-secondary: #455749;     /* Elegant slate sage for body text */
  --text-muted: #6e8272;         /* Editorial muted metadata */
  
  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(35, 55, 40, 0.04);
  --shadow-card: 0 10px 30px rgba(35, 55, 40, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 40px rgba(35, 55, 40, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 30px 80px rgba(20, 35, 25, 0.25);
  
  /* Layout & Radii */
  --container-max: 1320px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  overflow-x: clip;
}

body {
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 12% 10%, rgba(215, 233, 219, 0.6) 0%, transparent 45%),
    radial-gradient(circle at 88% 30%, rgba(220, 235, 222, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(215, 233, 219, 0.4) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessible Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--sage-primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 1000000;
  transition: top 0.25s ease;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.skip-to-content:focus {
  top: 16px;
  outline: 3px solid #52B788;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--sage-border-strong);
  border-radius: 6px;
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sage-primary);
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage-medium), var(--sage-primary), var(--accent-gold));
  width: 0%;
  z-index: 99999;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sage-deep);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--sage-deep) 20%, var(--sage-primary) 70%, var(--sage-medium) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
}

.btn-sage-primary {
  background: var(--sage-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(61, 90, 69, 0.25);
}
.btn-sage-primary:hover {
  background: var(--sage-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(61, 90, 69, 0.35);
}

.btn-white {
  background: #ffffff;
  color: var(--sage-deep);
  border: 1px solid var(--sage-border);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  background: var(--bg-sage-tint);
  border-color: var(--sage-border-strong);
  color: var(--sage-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(35, 55, 40, 0.08);
}

.btn-outline-sage {
  background: transparent;
  color: var(--sage-primary);
  border-color: var(--sage-border-strong);
}
.btn-outline-sage:hover {
  background: var(--bg-sage-tint);
  color: var(--sage-deep);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  gap: 6px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--sage-border);
  background: #ffffff;
  color: var(--sage-deep);
  box-shadow: var(--shadow-sm);
}

.badge-sage {
  background: var(--bg-sage-tint);
  border-color: var(--sage-border);
  color: var(--sage-primary);
}

.badge-live-pulse {
  position: relative;
  padding-left: 24px;
}
.badge-live-pulse::before {
  content: '';
  position: absolute;
  left: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sage-border);
  box-shadow: 0 4px 20px rgba(35, 55, 40, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-sage-tint);
  border: 1px solid var(--sage-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-primary);
  font-size: 1.15rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sage-deep);
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-medium);
  font-weight: 700;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--sage-deep);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--sage-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--sage-deep);
  background: var(--bg-sage-tint);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--sage-border);
  font-weight: 600;
}

.nav-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--sage-deep);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}

.hero-content {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-tag-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-title {
  font-size: clamp(2.8rem, 5.8vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--sage-deep);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-subtitle strong {
  color: var(--sage-deep);
  font-weight: 700;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

/* Hero Metrics Ticker */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  width: 100%;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--sage-border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--sage-deep);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-number span {
  color: var(--sage-primary);
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

/* Quick Spotlight Ribbon */
.spotlight-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.spotlight-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.spotlight-pill i {
  color: var(--sage-primary);
}

/* ==========================================================================
   Global Client Trust & International Presence Strip
   ========================================================================== */
.global-presence-strip {
  padding: 10px 0 40px;
  position: relative;
}

.global-presence-card {
  background: #ffffff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-lg);
  padding: 38px 44px;
  box-shadow: 0 14px 34px rgba(35, 55, 40, 0.05);
  position: relative;
  overflow: hidden;
}

.global-presence-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage-primary), var(--accent-gold), var(--sage-medium));
}

.presence-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-sage-tint);
  border: 1px solid var(--sage-border-strong);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.globe-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulseBeacon 1.8s infinite;
}

.presence-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.presence-title {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 800;
  color: var(--sage-deep);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.presence-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 850px;
  margin-bottom: 24px;
}

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

.flag-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-sage-subtle);
  border: 1px solid var(--sage-border);
  transition: all var(--transition-fast);
}

.flag-chip:hover {
  transform: translateY(-2px);
  border-color: var(--sage-primary);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.flag-chip-global {
  background: #f7fbf8;
  border-color: var(--sage-border-strong);
}

.flag-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.flag-meta strong {
  font-size: 0.88rem;
  color: var(--sage-deep);
  display: block;
  font-weight: 700;
}

.flag-meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

/* ==========================================================================
   Section Header Styling
   ========================================================================== */
.section-padding {
  padding: 100px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage-primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Filter & Search Toolbar
   ========================================================================== */
.showcase-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--sage-deep);
  background: var(--bg-sage-tint);
}

.filter-btn.active {
  background: var(--sage-primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(61, 90, 69, 0.25);
}

.search-box-wrap {
  position: relative;
  min-width: 260px;
}

.search-box-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border-radius: var(--radius-full);
  background: var(--bg-sage-subtle);
  border: 1px solid var(--sage-border);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--sage-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(61, 90, 69, 0.12);
}

/* ==========================================================================
   Project Cards & Realistic Browser Mockup Frame
   ========================================================================== */
#showcase {
  overflow-x: clip;
}

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

.project-card {
  background: #ffffff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--sage-border-strong);
  box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   Mobile-Optimized Scroll Reveal Animations (Left & Right Alternating Slide-In)
   ========================================================================== */
#showcase {
  overflow-x: clip;
}

.projects-grid {
  overflow-x: clip;
  width: 100%;
}

.project-card.scroll-reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow var(--transition-normal),
              border-color var(--transition-normal);
}

/* On Mobile & Tablet (<= 992px): Disable Left and Right Reveal Animation During Scroll */
@media (max-width: 992px) {
  .project-card.scroll-reveal,
  .project-card.scroll-reveal.reveal-left,
  .project-card.scroll-reveal.reveal-right {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal) !important;
  }

  .project-card.scroll-reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* On Desktop (> 992px): Multi-Column Left & Right Entrance */
@media (min-width: 993px) {
  .project-card.scroll-reveal.reveal-left {
    opacity: 0;
    transform: translate3d(-40px, 20px, 0);
  }

  .project-card.scroll-reveal.reveal-right {
    opacity: 0;
    transform: translate3d(40px, 20px, 0);
  }

  .project-card.scroll-reveal.is-revealed {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
  }

  .project-card.scroll-reveal.is-revealed:hover {
    transform: translate3d(0, -6px, 0) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card.scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Realistic Browser Mockup Window */
.browser-mockup-frame {
  width: 100%;
  background: #f7faf8;
  border-bottom: 1px solid var(--sage-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.browser-mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #eef4f0;
  border-bottom: 1px solid var(--sage-border);
  gap: 12px;
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dots .dot.red { background: #ff5f56; }
.browser-dots .dot.yellow { background: #ffbd2e; }
.browser-dots .dot.green { background: #27c93f; }

.browser-address {
  flex-grow: 1;
  max-width: 380px;
  background: var(--bg-sage-tint);
  border: 1px solid var(--sage-border-strong);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--sage-deep);
  font-family: var(--font-mono);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 1px 2px rgba(30, 51, 35, 0.04);
}

.browser-address i {
  color: var(--sage-primary);
  font-size: 0.72rem;
}

.browser-category-tag {
  background: var(--bg-sage-tint);
  border: 1px solid var(--sage-border);
  color: var(--sage-primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Brand Identity Showcase Stage */
.brand-logo-stage {
  position: relative;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

/* Circular Animated Medallion Emblem for ALL Projects */
.logo-emblem-wrap {
  position: relative;
  width: 156px;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

/* Outer Animated Rotating Dashed Accent Ring */
.logo-emblem-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  pointer-events: none;
  animation: emblemRotate 14s linear infinite;
  transition: all 0.3s ease;
}

/* Subtle Breathing Glow Aura */
.logo-emblem-wrap::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  animation: emblemAura 3s ease-in-out infinite;
}

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

@keyframes emblemAura {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.04); opacity: 0.8; }
}

.project-card:hover .logo-emblem-wrap {
  transform: scale(1.08);
}

.project-card:hover .logo-emblem-wrap::before {
  animation-duration: 6s;
  border-color: rgba(255, 255, 255, 0.65);
}

/* Base Circular Logo Styling */
.brand-stage-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* 1. Zynith Digital (Electric Cyan & Navy) */
.emblem-zynith-digital::before {
  border-color: rgba(14, 165, 233, 0.4);
  border-top-color: #38bdf8;
  border-bottom-color: #0ea5e9;
}
.emblem-zynith-digital::after {
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.25);
}
.logo-zynith-digital,
.logo-emblem-wrap img[src*="zynith"] {
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.35);
}

/* 2. AURIC Fragrance (Royal Gold & Obsidian) */
.emblem-auric-fragrance::before {
  border-color: rgba(201, 162, 75, 0.4);
  border-top-color: #f2dfab;
  border-bottom-color: #c9a24b;
}
.emblem-auric-fragrance::after {
  border-color: rgba(201, 162, 75, 0.2);
  box-shadow: 0 0 25px rgba(201, 162, 75, 0.3);
}
.logo-auric-fragrance,
.logo-emblem-wrap img[src*="auric"] {
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(201, 162, 75, 0.4);
}

/* 3. Wolf Sports (Titanium Black & Championship Crimson) */
.emblem-wolf-sports::before {
  border-color: rgba(227, 6, 19, 0.45);
  border-top-color: #ff3344;
  border-bottom-color: #e30613;
}
.emblem-wolf-sports::after {
  border-color: rgba(227, 6, 19, 0.25);
  box-shadow: 0 0 25px rgba(227, 6, 19, 0.35);
}
.logo-wolf-sports,
.logo-emblem-wrap img[src*="wolf"] {
  border-radius: 50%;
  border: 3px solid rgba(227, 6, 19, 0.85);
  box-shadow: 0 0 25px rgba(227, 6, 19, 0.45);
  background: #000000;
  object-fit: cover;
}

/* 4. Istanbul Kebab (Artisanal Purple & Saffron Gold) */
.emblem-istanbul-kebab::before {
  border-color: rgba(245, 166, 35, 0.45);
  border-top-color: #f5a623;
  border-bottom-color: #b160ea;
}
.emblem-istanbul-kebab::after {
  border-color: rgba(245, 166, 35, 0.25);
  box-shadow: 0 0 25px rgba(245, 166, 35, 0.35);
}
.logo-istanbul-kebab,
.logo-emblem-wrap img[src*="istanbul"] {
  border-radius: 50%;
  border: 3px solid rgba(245, 166, 35, 0.85);
  box-shadow: 0 0 25px rgba(245, 166, 35, 0.45);
  background: #6e2c90;
  object-fit: cover;
}

/* 5. 3 Guys Cafe (Scarlet & Warm Gold) */
.emblem-three-guys-cafe::before {
  border-color: rgba(255, 183, 3, 0.45);
  border-top-color: #ffb703;
  border-bottom-color: #d90429;
}
.emblem-three-guys-cafe::after {
  border-color: rgba(255, 183, 3, 0.25);
  box-shadow: 0 0 25px rgba(255, 183, 3, 0.35);
}
.logo-three-guys-cafe,
.logo-emblem-wrap img[src*="3guys"] {
  border-radius: 50%;
  border: 3px solid rgba(255, 183, 3, 0.85);
  box-shadow: 0 0 25px rgba(255, 183, 3, 0.4);
  object-fit: cover;
}

/* 6. Jackson Portfolio (Emerald Signal & Forest Obsidian) */
.emblem-jackson-trading::before {
  border-color: rgba(16, 185, 129, 0.45);
  border-top-color: #34d399;
  border-bottom-color: #10b981;
}
.emblem-jackson-trading::after {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}
.logo-jackson-trading,
.logo-emblem-wrap img[src*="jackson"] {
  border-radius: 50%;
  border: 3px solid rgba(16, 185, 129, 0.85);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
  object-fit: cover;
}

/* 7. Crochet With Love (Dusty Rose & Warm Ivory) */
.emblem-crochet-with-love::before {
  border-color: rgba(200, 90, 111, 0.45);
  border-top-color: #f7a8b8;
  border-bottom-color: #c85a6f;
}
.emblem-crochet-with-love::after {
  border-color: rgba(200, 90, 111, 0.25);
  box-shadow: 0 0 25px rgba(200, 90, 111, 0.35);
}
.logo-crochet-with-love,
.logo-emblem-wrap img[src*="crochet"] {
  border-radius: 50%;
  border: 3px solid rgba(200, 90, 111, 0.85);
  box-shadow: 0 0 25px rgba(200, 90, 111, 0.4);
  object-fit: cover;
}

/* 8. Shandar Perfumes (Royal Gold & Deep Noir) */
.emblem-shandar-perfumes::before {
  border-color: rgba(201, 162, 75, 0.45);
  border-top-color: #f2dfab;
  border-bottom-color: #c9a24b;
}
.emblem-shandar-perfumes::after {
  border-color: rgba(201, 162, 75, 0.25);
  box-shadow: 0 0 25px rgba(201, 162, 75, 0.35);
}
.logo-shandar-perfumes,
.logo-emblem-wrap img[src*="shandar"] {
  border-radius: 50%;
  border: 3px solid rgba(201, 162, 75, 0.85);
  box-shadow: 0 0 25px rgba(201, 162, 75, 0.4);
  object-fit: cover;
}

.brand-stage-hover {
  position: absolute;
  inset: 0;
  background: rgba(22, 35, 25, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover .brand-stage-hover {
  opacity: 1;
}

/* Card Body Details */
.project-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.project-location i {
  color: var(--sage-primary);
}

.project-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--sage-deep);
  transition: color var(--transition-fast);
}

.project-card:hover .project-title {
  color: var(--sage-primary);
}

.project-tagline {
  font-size: 0.92rem;
  color: var(--sage-medium);
  font-weight: 600;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Metrics Row */
.project-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-sage-subtle);
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.metric-chip {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sage-deep);
}

.metric-key {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Palette Row */
.project-palette-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.palette-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.palette-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch-item {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.swatch-item:hover {
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Tech Tags */
.project-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tech-tag {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  background: var(--bg-sage-tint);
  border: 1px solid var(--sage-border);
  color: var(--sage-deep);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* Card Action Footer */
.project-actions-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--sage-border);
}

/* ==========================================================================
   Device Simulator Modal (Light Sage Styling)
   ========================================================================== */
.simulator-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(22, 35, 25, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.simulator-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.simulator-window {
  width: 100%;
  max-width: 1400px;
  height: 92vh;
  background: #ffffff;
  border: 1px solid var(--sage-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.97);
  transition: transform var(--transition-normal);
}

.simulator-modal.active .simulator-window {
  transform: scale(1);
}

/* Simulator Top Chrome */
.simulator-chrome {
  background: #f0f5f1;
  border-bottom: 1px solid var(--sage-border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chrome-traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}
.traffic-close { background: #ff5f56; }
.traffic-min { background: #ffbd2e; }
.traffic-max { background: #27c93f; }

.chrome-address-bar {
  flex-grow: 1;
  max-width: 500px;
  background: var(--bg-sage-tint);
  border: 1.5px solid var(--sage-border-strong);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--sage-deep);
  box-shadow: inset 0 1px 3px rgba(30, 51, 35, 0.05);
}

.chrome-address-bar i {
  color: var(--sage-primary);
}

.chrome-url-text {
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sage-deep);
  font-weight: 600;
}

/* Device Switcher */
.device-switcher {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
}

.device-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.device-btn:hover {
  color: var(--sage-deep);
}

.device-btn.active {
  background: var(--sage-primary);
  color: #ffffff;
  font-weight: 700;
}

.chrome-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Simulator Auto-Scroll Tour Pill Button */
.btn-tour-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid #10b981;
  background: #ecfdf5;
  color: #047857;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.18);
  user-select: none;
  font-family: inherit;
}

.btn-tour-toggle:hover {
  background: #d1fae5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-tour-toggle.paused {
  border-color: var(--sage-border-strong);
  background: #f4f7f4;
  color: var(--text-muted);
  box-shadow: none;
}

.tour-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: tourPulse 1.8s infinite;
}

.btn-tour-toggle.paused .tour-pulse-dot {
  background: #9ca3af;
  box-shadow: none;
  animation: none;
}

@keyframes tourPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Simulator Canvas Viewport */
.simulator-viewport {
  flex-grow: 1;
  background: #e9f0ea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  position: relative;
  padding: 16px;
}

.simulator-frame-container {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(30, 45, 35, 0.15);
  transition: width 0.3s ease, height 0.3s ease;
}

.simulator-frame-container.desktop { width: 100%; height: 100%; border-radius: 4px; }
.simulator-frame-container.laptop { width: 1024px; height: 98%; border-radius: 8px; }
.simulator-frame-container.tablet { width: 768px; height: 98%; border-radius: 14px; border: 8px solid #223225; }
.simulator-frame-container.mobile { width: 390px; height: 844px; max-height: 96%; border-radius: 36px; border: 10px solid #223225; }

.simulator-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

.simulator-loading-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 10;
  transition: opacity 0.25s ease;
}

.simulator-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-sage-tint);
  border-top-color: var(--sage-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Project Deep Dive Drawer (Side Sheet)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 35, 25, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.project-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border-left: 1px solid var(--sage-border);
  z-index: 9999;
  box-shadow: -15px 0 45px rgba(25, 40, 30, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.project-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--sage-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7faf8;
}

.drawer-title-box {
  display: flex;
  flex-direction: column;
}

.drawer-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sage-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.drawer-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sage-deep);
}

.drawer-content {
  padding: 28px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.drawer-subpage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f7faf8;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.drawer-subpage-item:hover {
  background: var(--bg-sage-tint);
  border-color: var(--sage-border-strong);
  transform: translateX(4px);
}

.drawer-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--sage-border);
  background: #f7faf8;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Engineering Pillars & Architecture
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--sage-border-strong);
  box-shadow: var(--shadow-hover);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-sage-tint);
  border: 1px solid var(--sage-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--sage-primary);
  margin-bottom: 20px;
}

.pillar-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--sage-deep);
}

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

/* ==========================================================================
   Technology Stack & Skills
   ========================================================================== */
.tech-cloud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-group-card {
  background: #ffffff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.tech-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: var(--sage-deep);
}
.tech-group-title i {
  color: var(--sage-primary);
}

.tech-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.tech-skill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-deep);
}

.tech-bar-bg {
  width: 100%;
  height: 7px;
  background: #eef4f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tech-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-medium), var(--sage-primary));
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Contact / Hire Section
   ========================================================================== */
.contact-card-wrap {
  background: #ffffff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-col h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--sage-deep);
}

.contact-info-col p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #f7faf8;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--sage-deep);
  transition: all var(--transition-fast);
}

.contact-method-item:hover {
  background: var(--bg-sage-tint);
  border-color: var(--sage-border-strong);
  transform: translateX(4px);
}

.contact-method-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--sage-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-primary);
  font-size: 1.15rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-deep);
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  background: #f7faf8;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--sage-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(61, 90, 69, 0.12);
}

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

/* ==========================================================================
   Contact Submit Button States & Animated Thank You Card
   ========================================================================== */
.contact-form-column {
  position: relative;
  min-height: 480px;
}

.contact-form {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.contact-form.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.contact-submit-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-submit-btn .btn-content-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

/* Submitting State */
.contact-submit-btn.is-submitting {
  background: var(--sage-primary-hover) !important;
  pointer-events: none;
  box-shadow: 0 0 25px rgba(61, 90, 69, 0.45);
}

.contact-submit-btn.is-submitting::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: btnShimmerSweep 1.5s infinite;
}

@keyframes btnShimmerSweep {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Success State */
.contact-submit-btn.is-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45) !important;
  animation: btnSuccessBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

@keyframes btnSuccessBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  70% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.success-pop-icon {
  animation: iconPopSpring 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes iconPopSpring {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  70% { transform: scale(1.3) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Dedicated Premium Animated Thank You Card */
.contact-success-card {
  background: #ffffff;
  border: 1px solid var(--sage-border-strong);
  border-radius: var(--radius-lg);
  padding: 38px 28px;
  box-shadow: 0 16px 40px rgba(35, 55, 40, 0.08), 0 2px 8px rgba(35, 55, 40, 0.04);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: successCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successCardIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-success-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage-primary), #10b981, var(--gold-accent), var(--sage-primary));
  background-size: 200% 100%;
  animation: footerShimmer 4s linear infinite;
}

.success-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Celebratory Badge with Rotating Dashed Rings */
.success-icon-badge {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-badge-halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(16, 185, 129, 0) 70%);
  animation: haloBreathe 2.5s ease-in-out infinite;
}

@keyframes haloBreathe {
  0%, 100% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.18); opacity: 0.9; }
}

.success-badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(16, 185, 129, 0.55);
  animation: spinSlow 14s linear infinite;
}

.success-badge-core {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  animation: checkPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkPopIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  color: #059669;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.success-title {
  font-size: 1.55rem;
  font-family: var(--font-heading);
  color: var(--sage-deep);
  margin-bottom: 10px;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 22px;
}

.success-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 26px;
}

@media (max-width: 540px) {
  .success-info-grid {
    grid-template-columns: 1fr;
  }
}

.success-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f7faf8;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--sage-deep);
}

.success-info-item i {
  color: var(--sage-primary);
  font-size: 0.95rem;
}

.success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

/* ==========================================================================
   Master Premium Animated Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: #edf3ef;
  background-image: radial-gradient(circle at 50% 0%, #f4f8f5 0%, #edf3ef 70%, #e5ede7 100%);
  border-top: 1px solid var(--sage-border);
  padding: 0 0 35px;
  overflow: hidden;
}

/* Animated Top Shimmer Wave */
.footer-shimmer-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(61, 90, 69, 0) 0%, 
    rgba(61, 90, 69, 0.45) 20%, 
    rgba(194, 153, 56, 0.9) 50%, 
    rgba(61, 90, 69, 0.45) 80%, 
    rgba(61, 90, 69, 0) 100%
  );
  background-size: 200% 100%;
  animation: footerShimmer 4s linear infinite;
}

@keyframes footerShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Footer Top Call-to-Action Banner */
.footer-cta-banner {
  margin: 60px 0 50px;
  background: #ffffff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 16px 36px rgba(35, 55, 40, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.footer-cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--sage-primary), var(--accent-gold));
}

.footer-cta-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(35, 55, 40, 0.09);
}

.footer-cta-content {
  max-width: 650px;
}

.footer-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-sage-tint);
  border: 1px solid var(--sage-border-strong);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sage-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-primary);
  box-shadow: 0 0 0 0 rgba(61, 90, 69, 0.5);
  animation: pulseBeacon 1.8s infinite;
}

@keyframes pulseBeacon {
  0% { box-shadow: 0 0 0 0 rgba(61, 90, 69, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(61, 90, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 90, 69, 0); }
}

.footer-cta-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--sage-deep);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.footer-cta-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.footer-cta-btn i {
  transition: transform var(--transition-fast);
}

.footer-cta-btn:hover i {
  transform: translateX(4px);
}

.footer-cta-btn-alt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-weight: 600;
}

/* Footer Main Grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.05fr 1fr 1.25fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-col-brand {
  padding-right: 15px;
}

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

.footer-bio {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
}

.footer-live-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.status-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
}

.status-dot-ping {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0.7;
  animation: statusPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}

@keyframes statusPing {
  75%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.status-text {
  display: flex;
  flex-direction: column;
}

.status-text strong {
  font-size: 0.8rem;
  color: var(--sage-deep);
  font-weight: 700;
}

.status-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Footer Column Styling */
.footer-col-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--sage-deep);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--sage-primary);
  border-radius: 2px;
}

.footer-col-title i {
  color: var(--sage-primary);
  font-size: 0.9rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.footer-link:hover {
  color: var(--sage-primary);
  transform: translateX(4px);
}

.footer-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-sage-tint);
  color: var(--sage-primary);
  border: 1px solid var(--sage-border);
  transition: all var(--transition-fast);
}

.footer-link:hover .footer-tag {
  background: var(--sage-primary);
  color: #ffffff;
  border-color: var(--sage-primary);
}

/* Quick Connect Box */
.footer-connect-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-connect-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--sage-border);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.footer-connect-btn:hover {
  border-color: var(--sage-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.connect-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-sage-tint);
  color: var(--sage-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.footer-connect-btn:hover .connect-icon {
  background: var(--sage-primary);
  color: #ffffff;
}

.connect-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.connect-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.connect-val {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sage-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.footer-connect-btn:hover .copy-hint {
  color: var(--sage-primary);
  transform: scale(1.15);
}

/* WhatsApp Direct Card in Footer */
.footer-whatsapp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #c8e6c9;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.footer-whatsapp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #25d366;
  opacity: 0.85;
  transition: width var(--transition-fast);
}

.footer-whatsapp-card:hover {
  border-color: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.16);
}

.footer-whatsapp-card:hover::before {
  width: 5px;
}

.whatsapp-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.footer-whatsapp-card:hover .whatsapp-card-icon {
  transform: scale(1.1) rotate(6deg);
}

.whatsapp-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.whatsapp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.whatsapp-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulseBeacon 1.8s infinite;
}

.whatsapp-number {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--sage-deep);
  letter-spacing: 0.01em;
}

.whatsapp-subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.whatsapp-launch-icon {
  color: #25d366;
  font-size: 0.85rem;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.footer-whatsapp-card:hover .whatsapp-launch-icon {
  transform: translate(2px, -2px);
}

/* Social Buttons Row */
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--sage-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-deep);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.social-circle-btn:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--sage-primary);
  background: var(--sage-primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(61, 90, 69, 0.25);
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--sage-border);
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-divider {
  color: var(--sage-border-strong);
}

.stack-badge {
  font-weight: 600;
  color: var(--sage-deep);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage-primary);
  background: #ffffff;
  border: 1px solid var(--sage-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.footer-back-to-top i {
  transition: transform var(--transition-fast);
}

.footer-back-to-top:hover {
  background: var(--sage-primary);
  color: #ffffff;
  border-color: var(--sage-primary);
}

.footer-back-to-top:hover i {
  transform: translateY(-3px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--sage-primary);
  box-shadow: 0 10px 30px rgba(35, 55, 40, 0.15);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  color: var(--sage-deep);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease-out;
}
.toast i {
  color: var(--sage-primary);
}

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

/* Scroll to Top */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--sage-border-strong);
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: var(--sage-primary);
  color: #ffffff;
  transform: translateY(-4px);
}

/* ==========================================================================
   About Grid & Helpers
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.about-card {
  background: #ffffff;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  width: 100%;
}

.toolbar-search-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Luxury Animated Preloader (Light Sage & Gold)
   ========================================================================== */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: #f4f7f4;
  background-image: radial-gradient(circle at 50% 45%, #ffffff 0%, #eef4f0 60%, #e2ece4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.site-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 380px;
  width: 90%;
  animation: preloaderIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes preloaderIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.preloader-crest {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.crest-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.crest-ring.ring-outer {
  border: 2px dashed var(--sage-border-strong);
  border-top-color: var(--sage-primary);
  border-right-color: var(--accent-gold);
  animation: spinClockwise 2.2s linear infinite;
}

.crest-ring.ring-inner {
  inset: 8px;
  border: 2px solid rgba(194, 153, 56, 0.2);
  border-bottom-color: var(--accent-gold);
  animation: spinCounterClockwise 1.6s linear infinite;
}

.crest-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--sage-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--sage-primary);
  box-shadow: 0 4px 14px rgba(61, 90, 69, 0.15);
}

@keyframes spinClockwise {
  to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
  to { transform: rotate(-360deg); }
}

.preloader-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sage-deep);
  margin-bottom: 4px;
}

.preloader-brand span {
  color: var(--sage-primary);
}

.preloader-sub {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 20px;
}

.preloader-track {
  width: 170px;
  height: 4px;
  background: #e5ece6;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sage-medium), var(--sage-primary), var(--accent-gold));
  border-radius: var(--radius-full);
  transition: width 0.08s ease-out;
}

.preloader-counter {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sage-primary);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-cloud-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-card-wrap {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }
  .footer-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 20px;
  }
  .footer-cta-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .footer-cta-actions .btn {
    flex: 1;
    min-width: 160px;
  }
  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sage-border);
    padding: 20px 24px;
    gap: 8px;
    box-shadow: 0 20px 45px rgba(25, 40, 30, 0.12);
    animation: mobileMenuDrop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .nav-links.mobile-open li {
    width: 100%;
  }
  .nav-links.mobile-open .nav-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
  }
  .nav-links.mobile-open .nav-link:hover,
  .nav-links.mobile-open .nav-link.active {
    background: var(--bg-sage-tint);
    color: var(--sage-primary);
  }
  @keyframes mobileMenuDrop {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.15rem;
    border-radius: var(--radius-sm);
  }
  .site-header .nav-actions {
    display: none;
  }
  .simulator-window {
    height: 98vh;
  }
}

@media (max-width: 768px) {
  .global-presence-card {
    padding: 24px 18px;
  }
  .presence-flags-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .section-padding {
    padding: 60px 0;
  }
  .hero-section {
    padding: 100px 0 40px;
    min-height: auto;
  }
  .hero-title {
    font-size: clamp(2.1rem, 7.5vw, 2.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 18px;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 28px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-ctas .btn {
    width: 100%;
    padding: 14px 20px;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 18px 14px;
    gap: 16px;
  }
  .stat-item:nth-child(even)::after {
    display: none !important;
  }
  .stat-number {
    font-size: 1.85rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }
  .spotlight-ribbon {
    gap: 10px;
    justify-content: flex-start;
  }
  .spotlight-pill {
    font-size: 0.8rem;
    background: #ffffff;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--sage-border);
  }

  /* Swipeable Mobile Category Pills Bar */
  .showcase-toolbar {
    padding: 12px;
    border-radius: 12px;
    gap: 14px;
  }
  .filter-group {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 4px 2px 8px;
    gap: 8px;
    scrollbar-width: none;
  }
  .filter-group::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .search-box-wrap {
    width: 100%;
    min-width: auto;
  }

  /* Project Cards on Mobile */
  .browser-mockup-bar {
    padding: 8px 12px;
  }
  .browser-address {
    max-width: 170px;
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  .brand-logo-stage {
    height: 200px;
    padding: 16px;
  }
  .logo-emblem-wrap {
    width: 125px;
    height: 125px;
  }
  .project-body {
    padding: 20px 16px;
  }
  .project-title {
    font-size: 1.35rem;
  }
  .project-metrics-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 12px;
  }
  
  /* Mobile Action Buttons Layout */
  .project-actions-footer {
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
  }
  .project-actions-footer .btn-simulator-action {
    width: 100%;
    padding: 12px;
  }
  .project-footer-subgroup {
    display: flex;
    width: 100%;
    gap: 10px;
  }
  .project-footer-subgroup .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.82rem;
  }

  /* Pillars & Tech Grid */
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pillar-card {
    padding: 24px 20px;
  }
  .tech-group-card {
    padding: 22px 18px;
  }
  .about-card {
    padding: 24px 18px;
  }

  /* Contact Form */
  .contact-card-wrap {
    padding: 28px 16px;
  }
  .form-control {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    padding: 12px 14px;
  }

  /* Simulator Modal on Mobile */
  .simulator-modal {
    padding: 0;
  }
  .simulator-window {
    height: 100vh;
    border-radius: 0;
    max-width: 100vw;
  }
  .simulator-chrome {
    padding: 10px 14px;
  }
  .btn-tour-toggle {
    padding: 5px 10px;
    font-size: 0.72rem;
    gap: 6px;
  }
  .chrome-address-bar {
    display: none;
  }
  .device-switcher {
    display: none;
  }
  .simulator-viewport {
    padding: 8px;
  }
  .simulator-frame-container.desktop,
  .simulator-frame-container.laptop,
  .simulator-frame-container.tablet,
  .simulator-frame-container.mobile {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 6px !important;
  }

  /* Drawer on Mobile */
  .project-drawer {
    max-width: 100%;
  }
  .drawer-header {
    padding: 18px 20px;
  }
  .drawer-content {
    padding: 20px 16px;
  }
  .drawer-footer {
    padding: 16px 20px;
    flex-direction: column;
  }
  .drawer-footer .btn {
    width: 100%;
  }
  .drawer-subpage-item {
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .drawer-subpage-item > div:last-child {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .drawer-subpage-item > div:last-child .btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item::after {
    display: none !important;
  }
  .footer-cta-banner {
    padding: 24px 18px;
    margin: 40px 0 35px;
  }
  .footer-cta-title {
    font-size: 1.35rem;
  }
  .footer-cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .footer-cta-actions .btn {
    width: 100%;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-bottom-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ==========================================================================
   Modern Rendering Engine & GPU Compositing Performance Optimizations
   ========================================================================== */
#architecture,
#skills,
#about,
#contact,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

.project-card {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.brand-stage-logo {
  will-change: transform;
  transform: translateZ(0);
}

.browser-mockup-frame {
  transform: translateZ(0);
}

/* ==========================================================================
   Top Luxury Brand Ambient Accent Bar (Permanent Top Edge Brand Stripe)
   ========================================================================== */
.top-brand-accent-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #1E3323 0%, #3D5A45 30%, #52B788 65%, #3D5A45 100%);
  background-size: 200% 100%;
  animation: brandBarGlow 6s ease infinite;
  box-shadow: 0 1px 10px rgba(61, 90, 69, 0.45);
  z-index: 100000;
}

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

/* ==========================================================================
   Premium Animated Welcome Popup (Botanical Sage & Gold)
   ========================================================================== */
.welcome-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(16, 29, 20, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.welcome-popup-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.welcome-popup-card {
  position: relative;
  background: #ffffff;
  background-image: radial-gradient(circle at 50% 0%, #f4f8f4 0%, #ffffff 70%);
  border: 1px solid var(--sage-border-strong);
  border-radius: 28px;
  max-width: 520px;
  width: 100%;
  max-height: min(92vh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 44px 36px 36px;
  text-align: center;
  box-shadow: 
    0 25px 60px -15px rgba(25, 45, 30, 0.22), 
    0 0 0 1px rgba(61, 90, 69, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(24px) scale(0.94);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.welcome-popup-backdrop.active .welcome-popup-card {
  transform: translateY(0) scale(1);
}

/* Top 5-Second Passing Time Line (From Full to End) */
.welcome-timer-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4.5px;
  background: rgba(61, 90, 69, 0.12);
  overflow: hidden;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  z-index: 10;
  pointer-events: none;
}

.welcome-timer-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #1E3323 0%, #3D5A45 35%, #52B788 70%, #c29938 100%);
  transform-origin: left;
  transform: scaleX(1);
  box-shadow: 0 1px 8px rgba(82, 183, 136, 0.4);
  pointer-events: none;
}

.welcome-popup-backdrop.active .welcome-timer-progress {
  animation: welcomeTimerCountdown 5s linear forwards;
}

@keyframes welcomeTimerCountdown {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

.welcome-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  border: 1px solid var(--sage-border);
  background: var(--bg-sage-tint);
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
  z-index: 10;
}

.welcome-popup-close:hover {
  background: var(--sage-primary);
  color: #ffffff;
  border-color: var(--sage-primary);
  transform: rotate(90deg);
}

/* Circular Animated Medallion Emblem for Welcome Popup (Matches Project Logos) */
.welcome-crest.logo-emblem-wrap,
.welcome-crest {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: drop-shadow(0 10px 22px rgba(61, 90, 69, 0.22));
}

/* Outer Animated Rotating Dashed Accent Ring (Circle) */
.welcome-crest::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(61, 90, 69, 0.35);
  border-top-color: #52B788;
  border-bottom-color: #3D5A45;
  pointer-events: none;
  animation: emblemRotate 14s linear infinite;
  transition: all 0.3s ease;
}

/* Subtle Breathing Glow Aura (Circle) */
.welcome-crest::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px solid rgba(82, 183, 136, 0.3);
  box-shadow: 0 0 22px rgba(82, 183, 136, 0.25);
  pointer-events: none;
  animation: emblemAura 3s ease-in-out infinite;
}

.welcome-popup-card:hover .welcome-crest {
  transform: scale(1.06);
}

.welcome-popup-card:hover .welcome-crest::before {
  animation-duration: 6s;
  border-color: rgba(61, 90, 69, 0.65);
  border-top-color: #52B788;
  border-bottom-color: #1E3323;
}

/* Center Circular Medallion Icon */
.welcome-crest-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bg-sage-tint);
  border: 2px solid var(--sage-border-strong);
  color: var(--sage-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 4px 14px rgba(35, 55, 40, 0.12), inset 0 1px 3px rgba(255, 255, 255, 0.8);
  transition: all var(--transition);
}

.welcome-popup-card:hover .welcome-crest-icon {
  color: var(--sage-deep);
  border-color: var(--sage-primary);
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-sage-tint);
  border: 1px solid var(--sage-border-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sage-primary);
  margin-bottom: 14px;
}

.welcome-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseDot 2s infinite;
}

.welcome-title {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-family: var(--font-heading);
  color: var(--sage-deep);
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 800;
}

.welcome-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.welcome-desc strong {
  color: var(--sage-deep);
  font-weight: 700;
}

.welcome-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  text-align: left;
}

.welcome-highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-sage-tint);
  border: 1px solid var(--sage-border);
  transition: all var(--transition-fast);
}

.welcome-highlight-item:hover {
  border-color: var(--sage-border-strong);
  transform: translateX(3px);
}

.welcome-highlight-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--sage-border);
  color: var(--sage-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.welcome-highlight-text {
  display: flex;
  flex-direction: column;
}

.welcome-highlight-text strong {
  font-size: 0.85rem;
  color: var(--sage-deep);
}

.welcome-highlight-text span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.welcome-actions {
  display: flex;
  gap: 12px;
}

.welcome-btn-primary {
  flex: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  padding: 12px 18px;
}

.welcome-btn-secondary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  padding: 12px 16px;
}

@media (max-width: 576px) {
  .welcome-popup-card {
    padding: 30px 20px 24px;
  }
  .welcome-actions {
    flex-direction: column;
  }
  .welcome-btn-primary, .welcome-btn-secondary {
    width: 100%;
  }
}
