/* --- CSS Variables & Theme --- */
:root {
  /* Modern Earthy Palette */
  --bg-primary: #FAF9F6;
  /* Warm Off-White */
  --bg-secondary: #F0EBE5;
  /* Light Beige */
  --text-primary: #2C1810;
  /* Deep Nut Brown */
  --text-secondary: #6D5E55;
  /* Soft Brown-Grey */

  --accent: #D4A373;
  /* Golden Cashew */
  --accent-hover: #C39263;

  --card-bg: #FFFFFF;
  --card-shadow: 0 10px 40px -10px rgba(44, 24, 16, 0.08);
  --card-shadow-hover: 0 20px 50px -10px rgba(44, 24, 16, 0.15);

  --border-light: rgba(44, 24, 16, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);

  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

.dark {
  --bg-primary: #1A1614;
  --bg-secondary: #241E1C;
  --text-primary: #F2ECE9;
  --text-secondary: #A89F99;

  --card-bg: #2A2422;
  --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --border-light: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(26, 22, 20, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* --- Resets & Typography --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  /* Modern Sans */
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  /* Elegant Serif */
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-link:not(.btn-nav):hover {
  color: var(--accent);
}

.btn-nav {
  padding: 0.6rem 1.4rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--bg-primary);
}

.mobile-controls,
.mobile-nav {
  display: none;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  /* Slight zoom for parallax feel */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 2rem;
}

.pill-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* --- Hero Layout Adjustments --- */

/* Top Overlay (Est. Badge) */
.hero-top-overlay {
  position: absolute;
  top: 27%;
  /* Adjusts distance from top */
  left: 0;
  width: 100%;
  z-index: 3;
  text-align: center;
  pointer-events: none;
  /* Lets clicks pass through to video if needed */
}

/* Bottom Overlay (Subtitle & Buttons) */
.hero-bottom-overlay {
  position: absolute;
  /* FIX: Align relative to text size (25vw) center (50%) */
  /* Text is ~12.5vw high from center. Add gap. */
  top: calc(50% + 14vw);
  left: 0;
  width: 100%;
  z-index: 3;
  text-align: center;
  /* Ensure no bottom interference */
  bottom: auto;
}

/* Ensure interactive elements inside pointer-events: none containers still work */
.hero-top-overlay *,
.hero-bottom-overlay * {
  pointer-events: auto;
}

/* Mobile Responsiveness: Adjust vertical spacing for smaller screens */
@media (max-width: 992px) {
  .hero-top-overlay {
    top: 34%;
  }

  .hero-bottom-overlay {
    /* Maintain relationship on mobile */
    top: calc(50% + 14vw);
    bottom: auto;
  }

  .hero-subtitle {
    font-size: 0.75rem;
  }
}


.text-gradient {
  background: linear-gradient(135deg, #D4A373 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 163, 115, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Scroll Mouse */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

/* --- Common Sections --- */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-title {
  font-size: 2.5rem;
  color: #3c3c3c;
}

.section-title1 {
  font-size: 2.5rem;
  color: #a69f9f;
}

/* --- Updated Products Section --- */
.products-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: #1A0F0A;
  /* Fallback color if video fails */
}

/* 1. The Video Layer */
.products-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Prevent clicking on video */
}

.products-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  /* Low opacity so it's subtle, not distracting */
}

/* 2. The Brown Mask Overlay */
.products-mask-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

  /* THIS IS THE KEY: Semi-transparent Brown Gradient */
  /* Center is see-through (0.85), Edges are solid dark (1) */
  background: radial-gradient(circle at 50% 50%,
      rgba(44, 24, 16, 0.373) 0%,
      rgba(26, 15, 10, 1) 100%);
}

/* 3. Content Positioning */
.relative-content {
  position: relative;
  z-index: 2;
  /* Ensures text/buttons sit ABOVE the video and mask */
}

.section-subtitle {
  color: rgba(88, 87, 87, 0.7) !important;
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.products-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Buttons */
.product-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.product-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.product-nav-btn.prev {
  left: 0;
}

.product-nav-btn.next {
  right: 0;
}

/* The Grid/Track */
.products-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 4rem 2rem;
  /* Vertical padding for shadow space */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;

  max-width: 1000px;
  /* Limit width to focus user */
  margin: 0 auto;
}

.products-grid::-webkit-scrollbar {
  display: none;
}

/* The Card */
.product-card {
  flex: 0 0 auto;
  width: 650px;
  /* Specific width for desktop */
  height: 380px;
  scroll-snap-align: center;

  display: flex;
  background: #fff;
  /* Solid background for readability */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

  transform: scale(0.9);
  opacity: 0.5;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

/* Active State (Handled by JS) */
.product-card.active-card {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Image Side (Left) */
.card-image-wrapper {
  width: 50%;
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.card-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Content Side (Right) */
.product-info {
  width: 50%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.product-num {
  font-size: 4rem;
  font-family: 'Playfair Display', serif;
  color: rgba(0, 0, 0, 0.05);
  /* Very subtle number */
  position: absolute;
  top: 10px;
  right: 20px;
  font-weight: 700;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-text {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
}

.btn-text:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .product-nav-btn {
    display: none;
  }

  /* Hide arrows on mobile/tablet */
  .products-grid {
    padding: 2rem 1.5rem;
    gap: 1rem;
  }

  .product-card {
    width: 85vw;
    /* Almost full width */
    height: auto;
    flex-direction: column;
    transform: scale(0.95);
    opacity: 1;
    /* Always visible on mobile */
  }

  .product-card.active-card {
    transform: scale(1);
  }

  .card-image-wrapper {
    width: 100%;
    height: 250px;
  }

  .product-info {
    width: 100%;
    padding: 2rem;
  }

  .product-num {
    display: none;
  }
}

/* --- Gallery (Modern Grid) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

/* Make grid interesting: first item spans 2 cols */
.gallery-item:nth-child(1) {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay-text {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  border-bottom: 1px solid #fff;
}

/* --- Stats Section (Classic Style) --- */
.stats-section {
  background: var(--text-primary);
  /* Solid Dark Brown */
  color: var(--bg-primary);
  padding: 5rem 0;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

/* No glass cards, just clean text */
.stat-card {
  /* Optional: visual spacing if needed */
  padding: 1rem;
}

.stat-value {
  font-size: 3.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  /* Solid Gold Color */
  line-height: 1;
  margin-bottom: 0.5rem;
  /* Removed the gradient text effect */
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .stats-grid {
    flex-direction: column;
    gap: 3rem;
  }
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.text-muted {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-icon-box {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.about-image-wrapper {
  position: relative;
}

.main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.floating-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow-hover);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.floating-card .h1 {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  line-height: 1;
}

/* --- Contact --- */
.contact-section {
  background: var(--bg-secondary);
}

.contact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
}

.form-textarea {
  height: 120px;
  resize: none;
}

.full-width {
  width: 100%;
  padding: 1.2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding-left: 2rem;
}

.detail-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.detail-item p {
  color: var(--text-secondary);
}

.large-text {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--text-primary);
}

/* --- Footer --- */
.footer {
  background: #22120a;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0 0;
  /* Removed bottom padding so image sits flush */
  font-size: 0.9rem;
  overflow: hidden;
  /* Ensures no horizontal scroll */
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}


/* Update the existing .logo class */
.logo {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);

  /* ADD THESE LINES */
  display: flex;
  align-items: center;
  gap: 10px;
  /* Space between icon and text */
}

/* Add this new class for the icon size */
.logo-icon {
  height: 80px;
  /* Adjust height to fit your navbar */
  width: auto;
  /* Maintains aspect ratio */
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links-row {
  display: flex;
  gap: 2rem;
}

.footer-links-row a:hover {
  color: var(--accent);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-details {
    padding-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .mobile-menu-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
  }

  .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border-light);
  }

  .mobile-nav.active {
    display: block;
  }

  .mobile-nav-link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .stats-grid {
    flex-direction: column;
  }
}

/* WhatsApp & Lightbox styles same as before, just ensuring variables match */
.whatsapp-btn a {
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn svg {
  fill: #fff;
  width: 32px;
  height: 32px;
}

.lightbox {
  background: rgba(0, 0, 0, 0.95);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn-outline {
  border: 2px solid var(--text-primary);
  background: transparent;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--text-primary);
  color: #fff;
}


/* This was missing! It fixes the button to the corner */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure the pulsing animation stays behind the button */
.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2s infinite;
  z-index: -1;
}

/* Keyframes for the pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  70% {
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* --- Lightbox Structural Styles (Required for Gallery View) --- */
.lightbox {
  display: none;
  /* Hidden by default */
  position: fixed;
  inset: 0;
  /* Stretches to all 4 corners */
  z-index: 2000;
  /* High z-index to sit on top of everything */
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
  /* Visible when active */
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 210;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  padding: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 210;
}

.lightbox-nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* --- Toast Notification (Fixes the visible text at bottom) --- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  /* Start hidden below the screen */
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 3000;
  font-weight: 600;
  pointer-events: none;
  /* Prevents clicking when hidden */
}

/* This class is added by JS when form is submitted */
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* --- Managing Director Section --- */
.director-section {
  background: linear-gradient(to right, var(--bg-primary) 50%, var(--bg-secondary) 50%);
  overflow: hidden;
  padding: 4rem 0;
}

.director-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Image Styling */
.director-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: flex-end;
  /* Aligns image to bottom */
  justify-content: center;
}

.visual-bg-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: var(--accent);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  /* Organic Blob Shape */
  opacity: 0.15;
  z-index: 0;
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  50% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

.director-img {
  position: relative;
  z-index: 1;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  /* Shadow for cutout image */
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  /* Soft fade at bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Text Styling */
.director-content {
  padding: 2rem;
}

.director-quote-box {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 4px solid var(--accent);
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 4rem;
  font-family: serif;
  color: var(--border-light);
  opacity: 0.5;
  z-index: -1;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
}

.director-bio {
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.director-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.director-role {
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

/* Responsive */
@media (max-width: 992px) {
  .director-section {
    background: var(--bg-primary);
  }

  /* Remove split bg on mobile */
  .director-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .director-visual {
    height: 400px;
    order: -1;
  }

  /* Image on top */
  .visual-bg-shape {
    width: 300px;
    height: 300px;
  }

  .director-content {
    text-align: center;
    padding: 0;
  }

  .director-quote-box {
    border-left: none;
    padding-left: 0;
  }
}


/* --- Process Timeline (Royal UX) --- */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* The vertical lines */
.timeline-line-bg,
.timeline-line-progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  top: 0;
  bottom: 0;
}

.timeline-line-bg {
  background: var(--border-light);
  height: 100%;
}

.timeline-line-progress {
  background: var(--accent);
  height: 0%;
  /* JS will fill this */
  transition: height 0.1s linear;
  /* Smooth fill */
  z-index: 1;
  box-shadow: 0 0 15px var(--accent);
  /* Glowing effect */
}

/* The Cards */
.process-step {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
  width: 100%;
}

.process-step .step-content {
  width: 45%;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  position: relative;
  transition: transform 0.3s ease;
}

.process-step:hover .step-content {
  transform: translateY(-5px);
  border-color: var(--accent);
}

/* Positioning Left vs Right */
.process-step.left {
  justify-content: flex-start;
}

.process-step.right {
  justify-content: flex-end;
}

/* The Center Dots */
.step-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
  transition: background 0.3s ease;
}

.process-step:hover .step-dot {
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

/* Typography */
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-weight: 700;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {

  .timeline-line-bg,
  .timeline-line-progress {
    left: 20px;
  }

  .process-step {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }

  .process-step.left,
  .process-step.right {
    justify-content: flex-start;
  }

  .process-step .step-content {
    width: 100%;
  }

  .step-dot {
    left: 20px;
    top: 2rem;
    /* Align with top of card */
  }
}


/* --- Premium Marquee Strip --- */
.marquee-section {
  background: var(--text-primary);
  /* Dark Brown Background */
  color: var(--bg-primary);
  /* Off-white text */
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  gap: 4rem;
  /* Space between the two content groups */
  animation: scrollMarquee 20s linear infinite;
  width: max-content;
  /* Ensure track is wide enough */
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  /* Space between individual items */
}

.marquee-item {
  font-family: 'Playfair Display', serif;
  /* Serif font for elegance */
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  /* Wide spacing = Premium look */
  color: #fff;
  transition: color 0.3s ease;
}

/* The separator star/dot */
.separator {
  color: var(--accent);
  /* Gold color */
  font-size: 1.2rem;
  animation: spin 4s linear infinite;
  /* Subtle rotation */
}

/* Keyframes for smooth scrolling */
@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Moves exactly half the width */
}

/* Keyframes for separator spin */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* --- Interactive "Royal" Effects --- */

/* Pause animation when user hovers to read */
.marquee-section:hover .marquee-track {
  animation-play-state: paused;
}

/* Optional: Make text turn Gold on hover */
.marquee-section:hover .marquee-item {
  color: rgba(255, 255, 255, 0.5);
  /* Dim others */
}

.marquee-section .marquee-item:hover {
  color: var(--accent);
  /* Highlight hovered one */
  cursor: default;
}

/* Responsive Tweak */
@media (max-width: 768px) {
  .marquee-item {
    font-size: 1rem;
  }

  .marquee-content {
    gap: 2rem;
  }

  .marquee-track {
    animation-duration: 15s;
  }

  /* Faster on mobile */
}


/* --- Video Mask Hero (Cinematic) --- */
.hero-video-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Ensure background matches theme to hide video edges */
  background-color: var(--bg-primary);
}

/* 1. The Video (Sits at the very back) */
.video-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Lowest level */
  pointer-events: none;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures video fills screen without stretching */
}

/* 2. The Mask Layer (The Magic Trick) */
.mask-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;

  /* REMOVED: mix-blend-mode: screen; */
  /* REMOVED: background-color: rgba(255, 255, 255, 0.642); */

  /* ADDED: Transparent background so you can see the video */
  background-color: rgba(255, 255, 255, 0.395);
  /* Optional: Slight white tint for readability */
}

.mask-text {
  font-size: 25vw;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.005em;

  /* SOLID COLOR SETTING */
  color: rgb(8 8 8 / 69%);
  /* Solid Black */
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  /* Optional: Shadow to help it pop off video */
}

/* 3. Content Overlay (Buttons, etc.) */
.hero-content-overlay {
  position: relative;
  z-index: 3;
  /* Sits on top of everything */
  text-align: center;
  margin-top: 15vh;
  /* Push content below the giant text center */
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  /* --- OUTLINE EFFECT --- */
  color: rgb(0, 0, 0);
  /* Makes the inside clear */
  /* -webkit-text-stroke: 0.6px var(--text-primary); Draws the outline */

  /* Optional: Fill it in when hovered */
  transition: all 0.3s ease;
}

.hero-subtitle:hover {
  color: white;
  /* Returns to solid color on hover */
  -webkit-text-stroke: 0px;
  /* Removes outline */
}

/* Dark Mode Button Variant */
.btn-glass-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-glass-dark:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* --- DARK MODE OVERRIDES --- */
/* When <html class="dark"> is active, we flip the logic */
.dark .mask-layer {
  mix-blend-mode: multiply;
  /* This makes WHITE transparent */
  background-color: var(--bg-primary);
}

.dark .mask-text {
  color: white;
  /* White becomes transparent in 'multiply' mode */
}



/* --- Modern Loading Screen --- */
#loader-wrapper {
  position: fixed;
  inset: 0;
  /* Covers entire screen */
  z-index: 9999;
  /* Sits on top of everything */
  background-color: var(--bg-primary);
  /* Matches your site theme */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

/* Hide state */
#loader-wrapper.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
}

/* Logo Styling */
.logo-container {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  /* Ensures the circular logo stays perfect */
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: breathe 3s ease-in-out infinite;
}

/* Golden Ripples */
.ripple-1,
.ripple-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent);
  /* Golden Cashew color */
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
}

.ripple-1 {
  animation: ripple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.ripple-2 {
  animation: ripple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite 1s;
}

/* Loading Bar Line */
.loading-bar-container {
  width: 200px;
  height: 2px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  position: absolute;
  left: 0;
  animation: loadLine 2s ease-in-out forwards;
}

/* Animations */
@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(100%);
  }

  50% {
    transform: scale(1.05);
    filter: brightness(105%);
  }
}

@keyframes ripple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.8;
    border-width: 2px;
  }

  100% {
    width: 220%;
    height: 220%;
    opacity: 0;
    border-width: 0px;
  }
}

@keyframes loadLine {
  0% {
    width: 0;
    left: 0;
  }

  50% {
    width: 70%;
    left: 0;
  }

  80% {
    width: 100%;
    left: 0;
  }

  100% {
    width: 100%;
    left: 100%;
  }

  /* Finishes by sliding out */
}

/* Dark Mode Support */
.dark #loader-wrapper {
  background-color: var(--bg-primary);
  /* Uses dark background */
}

.dark .loading-bar-container {
  background: rgba(255, 255, 255, 0.1);
}


/* --- Staggered Reveal Delays --- */

/* When the parent (.reveal) gets the class .active */
.reveal.active .section-tag {
  transition-delay: 0.1s;
}

.reveal.active .section-title,
.reveal.active .section-title1 {
  transition-delay: 0.2s;
}

.reveal.active .section-subtitle {
  transition-delay: 0.3s;
}

/* For lists like the "Features" in About section */
.reveal.active .feature-item:nth-child(1) {
  transition-delay: 0.2s;
}

.reveal.active .feature-item:nth-child(2) {
  transition-delay: 0.3s;
}

.reveal.active .feature-item:nth-child(3) {
  transition-delay: 0.4s;
}

/* --- Custom Cursor --- */
/* Hide default cursor on desktop */
@media (min-width: 992px) {

  body,
  a,
  button,
  input {
    cursor: none !important;
  }
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-primary);
  /* Dark dot */
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  /* Golden ring */
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  /* Smooth resize on hover */
}

/* Hover State (When over links/buttons) */
body.hovering .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(212, 163, 115, 0.1);
  /* Faint gold fill */
  border-color: transparent;
}

body.hovering .cursor-dot {
  transform: translate(-50%, -50%) scale(0.5);
  /* Dot shrinks slightly */
}

/* Hide on Mobile/Tablet */
@media (max-width: 991px) {

  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}


/* --- Global Presence Section --- */
.global-section {
  background-color: #1A1614;
  /* Dark Coffee Color */
  color: #fff;
  position: relative;
  overflow: hidden;
}

.text-light {
  color: #fff !important;
}

.text-light-dim {
  color: rgba(255, 255, 255, 0.6) !important;
}

.map-wrapper {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  opacity: 0.6;
  /* Subtle look */
  transition: opacity 0.5s;
}

.map-wrapper:hover {
  opacity: 1;
}

.world-map-img {
  width: 100%;
  filter: invert(1) opacity(0.2);
  /* Makes the black SVG white and faint */
}

/* The Beacons */
.map-beacon {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(212, 163, 115, 0.7);
  animation: mapPulse 2s infinite;
}

/* Stagger animations so they don't pulse together */
.map-beacon:nth-child(2) {
  animation-delay: 0.5s;
}

.map-beacon:nth-child(3) {
  animation-delay: 1.0s;
}

.map-beacon:nth-child(4) {
  animation-delay: 1.5s;
}

@keyframes mapPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    box-shadow: 0 0 0 0 rgba(212, 163, 115, 0.7);
  }

  70% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 20px rgba(212, 163, 115, 0);
  }

  100% {
    transform: translate(-50%, -50%) scale(0.95);
    box-shadow: 0 0 0 0 rgba(212, 163, 115, 0);
  }
}

/* Tooltip on Hover */
.map-beacon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  color: var(--text-primary);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.map-beacon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* --- Parallax Break --- */
.parallax-window {
  position: relative;
  height: 400px;
  /* Height of the strip */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  will-change: transform;
  height: 120%;
  /* Taller than container for scroll room */
  transform: translateY(0);
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.parallax-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


/* --- Premium Contact Section --- */
.container-fluid {
  width: 100%;
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
  background: var(--bg-primary);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 0 1.5rem;
  /* Small margin on sides */
}

/* LEFT SIDE: FORM */
.contact-form-area {
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  margin-bottom: 3rem;
}

.input-group {
  position: relative;
  margin-bottom: 2.5rem;
}

/* Premium Input Styling */
.input-field {
  width: 100%;
  padding: 10px 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  outline: none;
  background: transparent;
  transition: all 0.3s ease;
}

/* Floating Label Logic */
.input-label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  pointer-events: none;
  transition: 0.3s ease all;
}

/* Move label up when input has focus OR has text */
.input-field:focus~.input-label,
.input-field:not(:placeholder-shown)~.input-label {
  top: -20px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

/* Animated Underline */
.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: all 0.4s ease;
}

.input-field:focus~.input-highlight {
  width: 100%;
}

/* Button Arrow Animation */
.arrow-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 5px;
}

.btn:hover .arrow-icon {
  transform: translateX(5px);
}

/* RIGHT SIDE: MAP */
.contact-map-area {
  position: relative;
  background: #eee;
  overflow: hidden;
}

/* Sepia Map Filter - Makes it look "Earthy" */
.google-map {
  width: 100%;
  height: 100%;
  filter: grayscale(100%) sepia(20%) contrast(90%);
  transition: filter 0.5s ease;
}

/* Add color back when hovering the map area */
.contact-map-area:hover .google-map {
  filter: grayscale(0%) sepia(0%);
}

/* Glass Info Card */
.map-info-card {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  min-width: 300px;
  border-left: 4px solid var(--accent);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.contact-map-area:hover .map-info-card {
  transform: translateY(-5px);
}

.info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-row:last-child {
  margin-bottom: 0;
}

.icon-circle {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    margin: 0;
    border-radius: 0;
  }

  .contact-form-area {
    padding: 3rem 1.5rem;
  }

  .contact-map-area {
    height: 400px;
  }

  .map-info-card {
    position: relative;
    bottom: 0;
    left: 0;
    margin: -50px 1.5rem 2rem;
    /* Pull up over map */
    width: auto;
  }
}


/* --- Modern Infinite Gallery Marquee (Full Screen) --- */
.gallery-marquee-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;

  /* Force Full Width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Edge Fades */
.gallery-marquee-container::before,
.gallery-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.gallery-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.gallery-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.gallery-marquee-row {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

/* Animation Classes */
.gallery-scroll-left {
  animation: galleryScrollLeft 45s linear infinite;
}

.gallery-scroll-right {
  animation: galleryScrollRight 45s linear infinite;
}

/* Pause on Hover */
.gallery-marquee-container:hover .gallery-marquee-row {
  animation-play-state: paused;
}

/* --- THE RENAMED CARD CLASS --- */
.gallery-scroll-card {
  position: relative;
  width: 350px;
  height: 250px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.gallery-scroll-card:hover {
  transform: scale(1.05);
  box-shadow: var(--card-shadow-hover);
  z-index: 10;
}

.gallery-scroll-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Overlay Styles */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 24, 16, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-scroll-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-text {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--accent);
}

/* Keyframes (Renamed to avoid conflict) */
@keyframes galleryScrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes galleryScrollRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Mobile Tweak */
@media (max-width: 768px) {
  .gallery-scroll-card {
    width: 250px;
    height: 180px;
  }
}


/* --- Full Screen Gallery Overlay --- */
.full-gallery-view {
  position: fixed;
  inset: 0;
  /* Covers entire screen */
  background: var(--bg-primary);
  z-index: 1500;
  /* Above Navbar (100), Below Lightbox (2000) */

  transform: translateY(100%);
  /* Start hidden below screen */
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
  /* Cinematic slide up */

  overflow-y: auto;
  /* Allow scrolling inside the overlay */
  display: flex;
  flex-direction: column;
}

.full-gallery-view.active {
  transform: translateY(0);
  /* Slide into view */
}

/* Header Area */
.fg-header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10;
  border-bottom: 1px solid var(--border-light);
}

.dark .fg-header {
  background: rgba(26, 22, 20, 0.9);
}

.fg-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fg-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 0;
}

.fg-count {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  vertical-align: super;
  color: var(--accent);
  margin-left: 5px;
}

.fg-close-btn {
  background: none;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.fg-close-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Grid Layout */
.fg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}

.fg-item {
  position: relative;
  aspect-ratio: 1;
  /* Square images */
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fg-item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.fg-item:hover img {
  transform: scale(1.1);
}

.fg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Reusing overlay style but simplifying for grid */
.fg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: 0.3s;
}

.fg-item:hover .fg-overlay {
  opacity: 1;
}


/* --- Gallery Footer Button Styling --- */
.gallery-footer-action {
  display: flex;
  justify-content: center;
  /* Centers the button */
  align-items: center;
  margin-top: 4rem;
  /* Adds breathing room from the marquee */
  padding-bottom: 2rem;
}

.btn-royal-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--text-primary);
  /* Thin elegant border */
  border-radius: 100px;
  /* Full Pill Shape */
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Text Styling */
.btn-text-layer {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  z-index: 2;
  transition: color 0.4s ease;
}

/* Icon Styling */
.btn-icon-layer {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  z-index: 2;
  transition: transform 0.4s ease, color 0.4s ease;
}

/* The "Fill" Effect Background */
.btn-royal-trigger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  /* Fills with dark brown */
  z-index: 1;
  transform: scaleX(0);
  /* Hidden by default */
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- HOVER STATES --- */

/* 1. Fill the background */
.btn-royal-trigger:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* 2. Change text to white/gold */
.btn-royal-trigger:hover .btn-text-layer {
  color: var(--accent);
  /* Gold text on dark background */
}

/* 3. Move arrow and change color */
.btn-royal-trigger:hover .btn-icon-layer {
  color: var(--accent);
  transform: translateX(5px);
  /* Slide arrow slightly right */
}

/* 4. Subtle Lift */
.btn-royal-trigger:hover {
  box-shadow: 0 10px 20px rgba(44, 24, 16, 0.15);
  border-color: transparent;
}



/* --- Timeline Active Dot Animation --- */
.step-dot {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy transition */
}

.step-dot.active {
  background: var(--accent);
  /* Fills the dot with gold */
  box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.2), 0 0 20px var(--accent);
  /* Glow effect */
  transform: translate(-50%, -50%) scale(1.2);
  /* Slightly larger */
}

/* Optional: Add a checkmark or inner white dot if you want */
.step-dot.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}


/* --- Active Nav Link State --- */
.nav-link.active {
  color: var(--accent);
  font-weight: 700;
  /* Make it bold */
}

/* Optional: Add a small dot under the active link */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* Mobile Nav Active State */
.mobile-nav-link.active {
  color: var(--accent);
  background: rgba(212, 163, 115, 0.1);
  /* Subtle gold background */
  padding-left: 1.5rem;
  /* Slide text slightly right */
  border-left: 3px solid var(--accent);
  /* Left border indicator */
}




/* product page */

/* --- Product Page Specific Styles --- */

.prod-hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 6rem;
  min-height: 100vh;
  /* Full screen feel */
  display: flex;
  align-items: center;
}

.prod-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  /* Text wider than image */
  gap: 4rem;
  align-items: center;
}

/* Breadcrumbs */
.prod-breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.prod-breadcrumbs a {
  color: var(--text-secondary);
  transition: 0.3s;
}

.prod-breadcrumbs a:hover {
  color: var(--accent);
}

.prod-breadcrumbs .sep {
  margin: 0 10px;
  opacity: 0.5;
}

.prod-breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Typography */
.prod-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.prod-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* Specs Grid */
.prod-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.spec-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Actions */
.prod-actions {
  display: flex;
  gap: 1.5rem;
}

/* Right Side Visuals */
.prod-visual {
  position: relative;
  height: 600px;
}

.prod-img-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -40%);
  /* Offset slightly */
  width: 90%;
  height: 90%;
  background: var(--accent);
  opacity: 0.1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  /* Organic Blob */
  z-index: 0;
}

.prod-main-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 200px 200px 0 0;
  /* Arch Shape */
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.prod-badge {
  position: absolute;
  bottom: 50px;
  left: -30px;
  background: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: var(--card-shadow-hover);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-icon {
  color: var(--accent);
  font-size: 1.2rem;
}

/* Film Strip Gallery */
.film-strip-wrapper {
  overflow-x: auto;
  padding-bottom: 2rem;
}

.film-strip {
  display: flex;
  gap: 2rem;
  width: max-content;
  /* Ensure items stay in one line */
}

.strip-img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.3s;
  cursor: pointer;
}

.strip-img:hover {
  transform: scale(1.05);
}

/* Next Product Teaser */
.next-prod-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.3s;
}

.next-prod-section:hover {
  background: var(--accent);
}

.next-prod-section:hover * {
  color: #fff !important;
}

.next-prod-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.next-prod-content span {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.next-prod-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin: 0;
}

.arrow-link {
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .prod-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .prod-visual {
    height: 400px;
    order: -1;
  }

  /* Image on top */
  .prod-title {
    font-size: 3rem;
  }

  .next-prod-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


/* --- Multi-Select Chip Styling --- */
.form-group-chips {
  margin-bottom: 2rem;
}

.chips-label {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.chip-option {
  position: relative;
  cursor: pointer;
}

/* Hide the actual ugly checkbox */
.chip-option input {
  display: none;
}

/* The visual button part */
.chip-option span {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  transition: all 0.3s ease;
  user-select: none;
  /* Prevents text highlighting */
}

/* Hover State */
.chip-option:hover span {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* SELECTED State (When checkbox is checked) */
.chip-option input:checked+span {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(212, 163, 115, 0.4);
  transform: translateY(-2px);
}


/* --- Developer Footer Credits --- */
.copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  /* Very faint separator */
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  /* Dimmed text */
  letter-spacing: 0.03em;
}

/* Links inside the credits */
.dev-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

/* Hover Effect */
.dev-link:hover {
  color: var(--accent);
  /* Turns Gold on hover */
  text-decoration: none;
}


/* --- Footer End Visual Image --- */
.footer-end-visual {
  width: 100%;
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 0;
  /* Removes tiny gap below image */
}

.footer-img {
  width: 100%;
  height: auto;
  min-height: 100px;
  /* Ensures it looks good on mobile */
  object-fit: cover;
  /* Covers the area without squishing */
  display: block;
  opacity: 0.8;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, transparent 100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}




/* --- Premium Marketplace Section --- */
.marketplace-section {
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

/* Optional: Add a subtle background accent blob behind the grid */
.marketplace-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: white;
  opacity: 0.05;
  filter: blur(80px);
  border-radius: 50%;
  z-index: 0;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.market-card {
  position: relative;
  height: 200px;
  /* Taller, more elegant shape */
  background: rgb(255, 255, 255);
  /* Semi-transparent */
  backdrop-filter: blur(10px);
  /* Glass effect */
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

/* The Shiny Swipe Effect */
.shiny-layer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.8),
      transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
  z-index: 0;
}

.market-card:hover .shiny-layer {
  left: 200%;
  /* Swipes across on hover */
  transition: 0.7s ease;
}

/* Logo Styling */
.market-logo-wrapper {
  height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.4s ease;
}

.market-logo {
  max-height: 100%;
  max-width: 65%;
  object-fit: contain;
  /* filter: grayscale(100%); Removed opacity(0.6) here */
  transition: all 0.4s ease;
}

/* Update the hover state as well */
.market-card:hover .market-logo {
  filter: grayscale(0%);
  /* Full color on hover */
  transform: scale(1.1);
}

/* The "Shop Now" Action */
.market-action {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 1;
}

/* --- HOVER STATES --- */

.market-card:hover {
  transform: translateY(-8px);
  background: #fff;
  /* Becomes solid white */
  border-color: var(--accent);
  /* Golden Border */
  box-shadow: 0 20px 40px -10px rgba(212, 163, 115, 0.2);
  /* Golden Shadow */
}

.market-card:hover .market-logo-wrapper {
  transform: translateY(-10px);
  /* Moves logo up to make room for text */
}

.market-card:hover .market-logo {
  filter: grayscale(0%) opacity(1);
  /* Full Color */
  transform: scale(1.1);
}

.market-card:hover .market-action {
  opacity: 1;
  transform: translateY(0);
  /* Text slides up */
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .marketplace-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .marketplace-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .market-card {
    height: 160px;
    /* Slightly shorter on mobile */
  }
}


/* Add this to styles.css */

.shiny-layer {
  pointer-events: none;
  /* Allows clicks to pass through the shine effect */
}

.market-card {
  cursor: pointer;
  /* Forces the 'hand' icon to appear */
  z-index: 10;
  /* Ensures cards sit above background elements */
}


/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-details {
    padding-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* Contact Section Mobile Fixes */
  .contact-wrapper {
    grid-template-columns: 1fr;
    margin: 0;
    border-radius: 0;
  }

  .contact-form-area {
    padding: 3rem 1.5rem;
  }

  .contact-map-area {
    height: auto;
    /* Changed from 400px to auto so it doesn't cut off the card */
    display: flex;
    flex-direction: column;
  }

  /* Force map height since parent is now auto */
  .contact-map-area .google-map {
    height: 400px;
    flex-shrink: 0;
  }

  .map-info-card {
    position: relative;
    bottom: 0;
    left: 0;
    margin: -50px 1.5rem 2rem;
    /* Pull up over map */
    width: auto;
    z-index: 5;
    /* Ensure it sits on top */
  }
}




/* --- NEW PREMIUM PROCESS TIMELINE --- */

/* Reset the container to allow full width flex */
.timeline-container {
  position: relative;
  max-width: 1100px;
  /* Slightly wider for images */
  margin: 0 auto;
  padding: 4rem 0;
}

/* Base Step Configuration */
.process-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 6rem;
  /* More space between steps */
  position: relative;
  padding: 0;
  /* Remove old padding */
}

/* 1. The Text Card */
.process-step .step-content {
  width: 42%;
  /* Less than half */
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

/* 2. The New Image Wrapper */
.step-image-wrapper {
  width: 42%;
  /* Matches text width */
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--card-shadow);
  border: 4px solid #fff;
  /* White border frame */
  transition: all 0.5s ease;
  z-index: 2;
}

.dark .step-image-wrapper {
  border-color: var(--card-bg);
}

.step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.step-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  opacity: 0.6;
}

/* --- ANIMATIONS --- */

/* Hover Effect: Text Card Lifts */
.process-step:hover .step-content {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hover Effect: Image Zooms */
.process-step:hover .step-img {
  transform: scale(1.1);
}

.process-step:hover .step-image-wrapper {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* --- LAYOUT LOGIC (ZIG-ZAG) --- */

/* LEFT Step: Content Left, Image Right */
.process-step.left {
  flex-direction: row;
}

/* RIGHT Step: Image Left, Content Right */
.process-step.right {
  flex-direction: row;
  /* Keep row, but we use order property if needed, or simple HTML order */
}

/* Since we structured HTML differently for Left vs Right, we just align items */

/* Center Line connector dots */
.step-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: 5;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 4px var(--bg-primary);
  /* Creates a gap around the line */
}

/* Active Dot (When scrolled past) */
.step-dot.active {
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--bg-primary), 0 0 15px var(--accent);
  transform: translate(-50%, -50%) scale(1.3);
}

/* Connector Lines (Horizontal) - Optional Visual Flair */
.process-step::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  /* Reaches to the edge */
  height: 1px;
  background: dashed;
  border-top: 1px dashed var(--border-light);
  z-index: 1;
  opacity: 0.5;
}

/* --- MOBILE RESPONSIVENESS --- */
/* --- MOBILE RESPONSIVENESS (Left-Aligned Timeline) --- */
@media (max-width: 900px) {

  /* 1. Container padding */
  .timeline-container {
    padding: 2rem 1rem;
  }

  /* 2. Move the Line to the Left */
  .timeline-line-bg,
  .timeline-line-progress {
    display: block;
    /* Bring it back! */
    left: 20px;
    /* Position it on the left edge */
    transform: none;
    /* Remove centering transform */
  }

  /* 3. Stack the Cards (Image Top, Text Bottom) */
  .process-step {
    flex-direction: column !important;
    gap: 1rem;
    margin-bottom: 4rem;
    padding-left: 50px;
    /* Push content right to make room for the line */
    align-items: flex-start;
    /* Align content to the left */
  }

  /* 4. Full Width Content */
  .process-step .step-content,
  .step-image-wrapper {
    width: 100%;
    height: 250px;
    /* Fixed height for consistent look */
  }

  /* 5. Position the Dot on the Left Line */
  .step-dot {
    display: block;
    /* Bring dot back */
    left: 20px;
    /* Align with line */
    top: 2rem;
    /* Align with top of the image (or slightly down) */
    transform: translateX(-50%);
    /* Center the dot on the line */
  }

  /* 6. Active Dot Animation remains same */
  .step-dot.active {
    transform: translateX(-50%) scale(1.3);
  }

  /* 7. Hide horizontal dashed connectors (they don't make sense on stack) */
  .process-step::before {
    display: none;
  }

  /* 8. Reorder: Image First, then Text */
  .process-step.left .step-image-wrapper {
    order: 1;
  }

  .process-step.left .step-content {
    order: 2;
  }

  .process-step.right .step-image-wrapper {
    order: 1;
  }

  .process-step.right .step-content {
    order: 2;
  }
}


/* --- Modern Process Section --- */
.process-section-modern {
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
  padding: 6rem 0;
}

/* Background Ambient Glow */
.process-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 163, 115, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.modern-timeline-container {
  position: relative;
  max-width: 1100px;
  margin: 4rem auto 0;
  z-index: 1;
}

/* The Central Line */
.central-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, 0.05);
  /* Track */
  transform: translateX(-50%);
  z-index: 0;
}

.dark .central-line {
  background: rgba(255, 255, 255, 0.05);
}

.line-fill {
  width: 100%;
  height: 0%;
  /* JS will fill this */
  background: linear-gradient(to bottom, var(--accent), #8B5E3C);
  box-shadow: 0 0 10px var(--accent);
  transition: height 0.1s linear;
}

/* Row Layout */
.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6rem;
  position: relative;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

/* The Center Node (Dot) */
.center-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.node-dot {
  width: 14px;
  height: 14px;
  background: var(--bg-primary);
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  transition: all 0.4s ease;
}

/* Active State for Dot (Added by JS) */
.timeline-row.active .node-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(212, 163, 115, 0.3), 0 0 20px var(--accent);
  transform: scale(1.2);
}

/* Content & Image Blocks */
.content-card,
.image-card {
  width: 42%;
  position: relative;
}

/* Content Card Styling */
.content-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  overflow: hidden;
  /* For watermark */
  transition: transform 0.4s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.card-inner {
  position: relative;
  z-index: 2;
}

.watermark-num {
  position: absolute;
  top: -10px;
  right: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0.03;
  /* Very subtle */
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}

/* Image Card Styling (Transparent / Floating) */
.image-card {
  height: 300px;
  width: 42%;
  position: relative;

  /* Remove the white box/card look */
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border: none;
  overflow: visible;
  /* Allows the image to 'pop' out if needed */

  /* Keep the 3D perspective */
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.5s ease;

  /* Center the image in the space */
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Ensures the whole object is visible, not cropped */

  /* Apply shadow to the IMAGE SHAPE, not the box */
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
  transition: transform 0.7s ease, filter 0.3s ease;
}

/* Hover Effect: Float and Rotate slightly */
.image-card:hover img {
  transform: scale(1.1) rotate(3deg);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.25));
}

/* Hide the shine effect since there is no 'glass' card anymore */
.shine-effect {
  display: none;
}



.image-card:hover .shine-effect {
  left: 200%;
  transition: 0.7s;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .central-line {
    left: 20px;
  }

  .timeline-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 4rem;
    padding-left: 50px;
  }

  .content-card,
  .image-card {
    width: 100%;
  }

  /* Order: Image Top, Text Bottom */
  .timeline-row .image-card {
    order: 1;
    margin-bottom: 1.5rem;
    height: 220px;
  }

  .timeline-row .content-card {
    order: 2;
    padding: 2rem;
  }

  .center-node {
    left: 20px;
    top: 0;
    /* Align with top of image area */
    transform: translateX(-50%);
    align-items: flex-start;
    height: 100%;
    /* Stretch to follow line */
  }

  .node-dot {
    margin-top: 110px;
    /* Push dot down to center of image height roughly */
  }
}