/* 
  THE GROOMING BARBERSHOP (TGB)
  Design System: Modern Salon & Barber
*/

:root {
  /* Colors */
  --color-primary: #000000;
  /* Pitch Black */
  --color-accent: #FFFFFF;
  /* White */
  --color-neutral: #111111;
  /* Dark Gray */
  --color-white: #FFFFFF;
  --color-text: #FFFFFF;
  /* Default text white for dark theme base */
  --color-text-invert: #000000;
  /* For white backgrounds */
  --color-text-light: #CCCCCC;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Manrope', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-50px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(50px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }
}

.fade-in-up {
  opacity: 0;
}

.fade-in-up.active {
  animation: fadeInUp 0.8s forwards;
}

.fade-in-left {
  opacity: 0;
}

.fade-in-left.active {
  animation: fadeInLeft 0.8s forwards;
}

.fade-in-right {
  opacity: 0;
}

.fade-in-right.active {
  animation: fadeInRight 0.8s forwards;
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Better touch scrolling on mobile */
  -webkit-overflow-scrolling: touch;
}

/* Improve tap targets for mobile */
a,
button {
  -webkit-tap-highlight-color: rgba(255, 87, 34, 0.2);
  touch-action: manipulation;
}


section {
  padding: var(--space-xl) 0;
  /* var(--space-xl) = 8rem */
}

h1,
h2,
h3,
.display-text {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  line-height: 1.1;
}

p {
  font-weight: 400;
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  background-color: #000;
}

.image-placeholder {
  background-color: #000;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

/* --- Layout Utility --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-full {
  max-width: 100%;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

/* --- Navigation --- */
header {
  height: 100px;
  /* Adjusted for border */
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  background: #000000;
  /* Pure Black */
  z-index: 1000;
  border-bottom: 20px solid #FFFFFF;
  /* Pure White Strip */
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  width: 68px;
  height: 68px;
  border-radius: 70%;
  object-fit: cover;
  display: block;
}

/* Centered Desktop Nav */
.nav-links.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-display);
  /* Use the premium heading font */
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: #AAAAAA;
}

/* Right Actions */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Book Button - Black with White Border */
.btn-book {
  background: #000000;
  color: #FFFFFF !important;
  border: 1px solid #FFFFFF;
  padding: 10px 24px;
  border-radius: 30px;
  text-transform: uppercase;
  font-family: var(--font-display);
  /* Use the premium heading font */
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.btn-book:hover {
  background: #FFFFFF;
  color: #000000 !important;
}

.header-socials a:hover {
  opacity: 0.7;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #000000;
  padding: 100px 30px 30px;
  transition: right 0.3s ease;
  z-index: 1001;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  border-left: 1px solid #333;
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-links a {
  color: white;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  text-decoration: none;
  display: block;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  padding: 5px;
  cursor: pointer;
}

@media (max-width: 900px) {

  .nav-links.desktop-nav,
  .header-socials,
  .btn-book {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* --- Dropdown Logic --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  font-weight: 600;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 220px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  padding: var(--space-sm) 0;
  z-index: 1001;
  border-top: 3px solid var(--color-accent);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-neutral);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--color-neutral);
  padding-left: 1.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-white);
  color: #000;
}

.btn-primary:hover {
  background-color: #333;
  color: #fff;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: #000;
}

/* --- Index Netflix Hero --- */
.index-hero {
  min-height: 85vh !important;
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  display: flex !important;
  align-items: center;
}

.hero-bg-grid {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 110%;
  height: 120%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  z-index: 1;
  transform: rotate(-3deg) scale(1.1);
  animation: subtlePan 30s ease-in-out infinite alternate;
}

.hero-bg-grid .grid-item {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5) grayscale(100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  opacity: 0.3;
  /* Reduced opacity for less clutter */
}

.hero-overlay-netflix {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 50%, transparent 25%, rgba(10, 25, 47, 0.6) 65%, rgba(10, 25, 47, 0.95) 100%),
    linear-gradient(to top, var(--color-primary) 0%, transparent 45%),
    linear-gradient(to bottom, var(--color-primary) 0%, transparent 45%);
  z-index: 2;
}

.index-hero .container {
  position: relative;
  z-index: 3;
}

.index-hero .hero-content {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.index-hero h1 {
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  line-height: 1;
  margin-bottom: 2rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.index-hero p {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 auto 3rem;
  max-width: 700px;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes subtlePan {
  0% {
    transform: rotate(-3deg) scale(1.1) translate(0, 0);
  }

  100% {
    transform: rotate(-3deg) scale(1.15) translate(-2%, -2%);
  }
}

@media (max-width: 768px) {
  .index-hero {
    min-height: 75vh !important;
  }

  .hero-bg-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }

  .index-hero h1 {
    font-size: 3rem !important;
  }

  .index-hero p {
    font-size: 1.1rem;
  }
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #000000;
  /* Pure Black */
  color: #FFFFFF;
  /* Pure White Text */
  padding: 120px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 1;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0) 0%, rgba(255, 87, 34, 0.2) 100%);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  max-width: 600px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: var(--space-sm);
}

/* --- Trust Badges --- */
.trust-badges {
  background: var(--color-primary);
  padding: var(--space-md) 0;
  border-bottom: 4px solid var(--color-accent);
}

.badges-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.badge {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0.9;
}

.badge i {
  color: #fff;
}

/* --- Bento Showcase --- */
.bento-showcase {
  padding: var(--space-xl) 0;
  background: var(--color-white);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 400px);
  gap: 20px;
}

.bento-card {
  position: relative;
  background: var(--color-neutral);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.bento-card.image-card .card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.6s ease;
}

.bento-card.image-card .card-bg video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Removed complex hover scale for cleaner feel */
.bento-card:hover .card-bg {
  transform: scale(1.02);
}

.bento-card.image-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.9) 0%, transparent 60%);
  z-index: 2;
}

.bento-card .card-content {
  position: relative;
  z-index: 3;
  color: var(--color-text);
}

.bento-card.image-card .card-content {
  color: white;
}

.bento-card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.bento-card.accent-card {
  background: var(--color-accent);
  color: white;
}

.bento-card.accent-card .card-icon {
  background: white;
  color: var(--color-accent);
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.bento-card p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Grid Spanning */
.bento-lg {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 2;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .bento-lg {
    grid-column: span 2;
  }

  .bento-tall {
    grid-row: span 1;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-lg {
    grid-column: span 1;
  }

  .bento-card {
    height: 350px !important;
  }
}

/* --- Services Section --- */
.services {
  background-color: var(--color-neutral);
}

.section-header {
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}

.service-card {
  background: var(--color-white);
  padding: var(--space-md);
  border-left: 4px solid var(--color-primary);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  border-left-color: var(--color-accent);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: var(--space-sm);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  background: #000;
}

/* --- Testimonials --- */
.testimonials {
  background: var(--color-neutral);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.testimonial-card {
  padding: var(--space-md);
  background: var(--color-white);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--color-accent);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

/* --- Carousel --- */
.testimonial-carousel {
  overflow: hidden;
  padding: var(--space-md) 0;
  position: relative;
  width: 100%;
}

.testimonial-track {
  display: flex;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
  gap: var(--space-md);
}

.testimonial-track:hover {
  animation-play-state: paused;
}

.testimonial-slide {
  flex: 0 0 400px;
  width: 400px;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

.testimonial-card .author {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* --- Icons Utility --- */
.icon-box {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  transition: var(--transition-smooth);
}

.service-card:hover .icon-box {
  background: var(--color-accent);
  transform: scale(1.05);
}

.icon-box i {
  font-size: 1.8rem;
}

/* Service Detail Columns */
.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.service-column h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.detail-list {
  list-style: none;
}

.detail-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-neutral);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.detail-list li i {
  color: var(--color-accent);
  font-size: 1rem;
}

/* --- Gallery / Projects --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay span {
  color: var(--color-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
}

/* --- Contact Form --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
  margin-top: -80px;
  /* Overlap hero */
  position: relative;
  z-index: 10;
  margin-bottom: var(--space-xl);
}

.contact-form {
  background: #fff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1.25rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-body);
  background: #fcfcfc;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: var(--color-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-info-card {
  background: linear-gradient(145deg, var(--color-primary), #0a1118);
  color: var(--color-white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  filter: blur(80px);
  opacity: 0.2;
  border-radius: 50%;
}

.contact-info-card h3 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
}

.contact-info-card p,
.contact-info-card ul,
.contact-info-card li {
  position: relative;
  z-index: 2;
}

.contact-info-card ul {
  list-style: none;
  padding: 0;
}

.contact-info-card ul li {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.contact-info-card a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-card a:hover {
  color: var(--color-accent);
}

/* --- About / Mission --- */
.mission-box {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  margin: var(--space-lg) 0;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.mission-box h2 {
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

/* --- Fade-In Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

  /* Grid Layouts */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  /* Hero Section */
  .hero {
    min-height: 70vh;
    padding: 100px 0 60px 0;
  }

  .hero h1 {
    font-size: 2.5rem !important;
    line-height: 1.1;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }

  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  /* About Section - Grid to Single Column */
  .about>.container>div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .about .reveal[style*="clip-path"] {
    height: 300px !important;
  }

  /* Service Columns */
  .service-columns {
    grid-template-columns: 1fr;
  }

  /* Section Padding */
  section {
    padding: var(--space-lg) 0;
  }

  /* Typography */
  .section-header h2 {
    font-size: 2rem !important;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1rem;
  }

  /* Badges */
  .badges-container {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }

  .badge {
    font-size: 1rem;
  }

  /* Mission Box */
  .mission-box h2 {
    font-size: 2.25rem;
  }

  .mission-box {
    padding: var(--space-lg) var(--space-sm);
  }

  /* Buttons */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid-4 {
    grid-template-columns: 1fr;
  }

  /* Contact Layout */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Container Padding */
  .container {
    padding: 0 var(--space-sm);
  }

  /* 3D Slider */
  .slider-container {
    overflow-x: auto;
  }

  .scene-3d {
    min-width: 250px;
  }

  /* Testimonial Cards */
  .testimonial-slide {
    flex: 0 0 300px !important;
    width: 300px !important;
  }

  /* Service Cards */
  .service-card {
    padding: var(--space-sm);
  }

  .service-card img {
    height: 180px;
  }

  /* Header */
  header {
    height: 70px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .site-logo {
    width: 50px !important;
    height: 50px !important;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem !important;
  }

  .section-header h2 {
    font-size: 1.75rem !important;
  }

  .video-content {
    padding: 3rem 1.5rem;
  }
}

.container {
  padding: 0 1rem;
}

.btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
}

.scene-3d {
  min-width: 200px;
  min-height: 250px !important;
}

.cube-face.front img {
  width: 140px !important;
  height: 140px !important;
}

/* Testimonial Slider */
.testimonial-scroller {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonial-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

.testimonial-slide {
  padding: 0 15px;
  width: 400px;
  /* Fixed width for consistent slide */
  flex-shrink: 0;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Mobile Adjustments for Slider */
@media (max-width: 600px) {
  .testimonial-slide {
    width: 300px;
  }
}


/* --- Store --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  perspective: 2000px;
}

.product-card-3d {
  aspect-ratio: 1/1.3;
  width: 100%;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card-3d .cube-3d {
  cursor: pointer;
}

.product-card-3d:hover .cube-3d {
  transform: rotateY(-12deg) rotateX(10deg);
}

.cube-face.front.product-face {
  background: linear-gradient(135deg, #111 0%, #000 100%);
  border: 2px solid var(--color-accent);
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #fff;
  text-transform: none;
}

.nice-frame {
  border: 1px solid rgba(255, 87, 34, 0.3);
  padding: 15px;
  background: #111;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--space-sm);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-3d:hover .cube-face.front.product-face {
  box-shadow: 0 0 40px rgba(255, 87, 34, 0.3);
  border-color: var(--color-accent);
}

.product-card-3d .cube-face.right {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card-3d .cube-face.bottom {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card:hover .black-inner {
  background: #111;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.price {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.product-face .price {
  color: var(--color-accent);
}

.product-card-3d:hover .product-face .price {
  color: #fff;
}

/* --- Interactive Gallery --- */

.gallery-grid {
  display: grid;
  gap: var(--space-md);
  width: 100%;
}

.gallery-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.gallery-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  /* Square aspect ratio to match reference */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-card .gallery-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .gallery-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Feature Grid (Home Services) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
  background: #fff;
  border-color: #000;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Product Spotlight --- */
.product-spotlight {
  background: #000;
  color: #fff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.product-spotlight::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background: #fff;
  clip-path: polygon(0 60%, 15% 40%, 30% 90%, 45% 50%, 60% 80%, 75% 40%, 85% 60%, 100% 30%, 100% 100%, 0 100%);
  z-index: 10;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 5;
  padding-bottom: 60px;
  /* Space for overlap */
}

.spotlight-content h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 800;
}

.spotlight-content p {
  font-size: 1.15rem;
  color: #999;
  margin-bottom: 2.5rem;
  max-width: 550px;
  line-height: 1.6;
}

.product-image-wrap {
  position: relative;
  perspective: 1500px;
  display: flex;
  justify-content: center;
}

.product-featured-img {
  width: 100%;
  max-width: 450px;
  transform: rotateY(-20deg) rotateX(10deg) translateY(60px);
  /* Overlap effect */
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 20;
  /* Above the wave */
  position: relative;
}

.product-image-wrap:hover .product-featured-img {
  transform: rotateY(-5deg) rotateX(5deg) translateY(40px);
}

@media (max-width: 992px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .spotlight-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .spotlight-content h2 {
    font-size: 2.5rem;
  }

  .product-spotlight::after {
    height: 60px;
  }
}

@media (max-width: 900px) {
  .gallery-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid-4 {
    grid-template-columns: 1fr;
  }
}


.gallery-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-card .black-inner {
  background: #000;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Lightbox --- */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-frame {
  background: #fff;
  padding: 2.5rem;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
  width: 90%;
  max-width: 900px;
  transform: scale(0.7);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.lightbox-modal.active .lightbox-frame {
  transform: scale(1);
}

.lightbox-inner-black {
  background: #000;
  width: 100%;
  height: 500px;
  max-height: 60vh;
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: -40px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .gallery-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- 3D Showcase --- */
.showcase-3d-container {
  perspective: 1200px;
  width: 100%;
  padding: var(--space-xl) 0;
}

.slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 10px;
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  gap: var(--space-md);
}

.scene-3d {
  flex: 0 0 calc(25% - 1.5rem);
  min-width: 280px;
  aspect-ratio: 16/10;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.slider-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  transition: var(--transition-smooth);
}

.slider-btn:hover {
  background: var(--color-accent);
  transform: scale(1.1);
}

@media (max-width: 1200px) {
  .scene-3d {
    flex: 0 0 calc(33.33% - 1.5rem);
  }
}

@media (max-width: 768px) {
  .scene-3d {
    flex: 0 0 calc(100% - 1.5rem);
  }
}

.perspective-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 992px) {
  .perspective-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .perspective-row {
    grid-template-columns: 1fr;
  }
}

.cube-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.scene-3d:hover .cube-3d {
  transform: rotateY(-25deg) rotateX(15deg);
}

.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backface-visibility: visible;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.cube-face.front {
  transform: translateZ(20px);
  background: linear-gradient(135deg, #111 0%, #000 100%);
  border: 2px solid var(--color-accent);
}

.cube-face.right {
  width: 40px;
  right: -20px;
  transform: rotateY(90deg) translateZ(0px);
  background: #0a0a0a;
}

.cube-face.bottom {
  height: 40px;
  bottom: -20px;
  transform: rotateX(-90deg) translateZ(0px);
  background: #050505;
}

.blank-3d-col {
  border: 1px dashed rgba(0, 0, 0, 0.1);
  background: transparent;
  aspect-ratio: 16/10;
}

/* --- Orange 3D Glow --- */
.cube-face.front.orange-glow {
  box-shadow: 0 0 30px rgba(255, 87, 34, 0.4);
}

.scene-3d:hover .cube-3d .cube-face.front.orange-glow {
  box-shadow: 0 0 60px rgba(255, 87, 34, 0.8);
  border-color: #fff;
}

/* --- 3D Floating Icons --- */
.cube-face.front {
  flex-direction: column;
  gap: 1rem;
  transform-style: preserve-3d;
}

.floating-3d-icon {
  transform: translateZ(50px);
  filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(255, 87, 34, 0.6));
  animation: floatIcon 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: all 0.3s ease;
}

.scene-3d:hover .floating-3d-icon {
  color: var(--color-accent) !important;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 50px rgba(255, 87, 34, 1));
}

.scene-3d:hover .cube-face.front {
  color: var(--color-accent);
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateZ(50px) translateY(0);
  }

  50% {
    transform: translateZ(70px) translateY(-10px);
  }
}

.cube-face.front.orange-glow .floating-3d-icon {
  color: #fff;
}

/* --- Coming Soon Section Styles --- */
.coming-soon-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6) !important;
}

.coming-soon-section .product-image-container {
  animation: floatProduct 6s ease-in-out infinite;
}

@keyframes floatProduct {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.benefit-item {
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Responsive styles for Coming Soon section */
@media (max-width: 992px) {
  .coming-soon-content {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .coming-soon-section {
    padding: 60px 0 !important;
  }

  .coming-soon-section h2 {
    font-size: 2rem !important;
  }

  .coming-soon-section h3 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .coming-soon-section {
    padding: 40px 0 !important;
  }

  .coming-soon-section h2 {
    font-size: 1.75rem !important;
  }

  .product-cta div {
    flex-direction: column !important;
  }

  .product-cta a {
    width: 100%;
    text-align: center;
  }
}

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-col h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
}

.footer-brand h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand p {
  opacity: 0.8;
  max-width: 350px;
  margin-bottom: var(--space-md);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item i {
  color: var(--color-white);
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.8;
}

.footer-contact-item .text {
  opacity: 0.85;
  line-height: 1.5;
  font-size: 0.95rem;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-contact-item a.text:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  opacity: 0.8;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 0.95rem;
  position: relative;
  padding-left: 0;
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 8px;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: var(--space-md);
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--color-accent);
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-brand p {
    max-width: 100%;
  }
}

/* --- Modern Contact Page --- */
.hero-minimal h1 span {
  display: inline-block;
  letter-spacing: -2px;
}

.modern-form .form-group-dynamic {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modern-form label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #eee;
  background: #fdfdfd;
  border-radius: 4px;
  font-size: 1rem;
  color: #000;
  transition: all 0.3s ease;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
  outline: none;
  border-color: #000;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.modern-form button:hover {
  background: #333 !important;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6rem;
  align-items: start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-hero-title {
  font-size: 5rem;
  line-height: 0.9;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}

.contact-info-card {
  background: #000;
  color: #fff;
  padding: 3.5rem;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
  .contact-split-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .contact-hero-title {
    font-size: 3.5rem;
  }

  .contact-info-card {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .contact-hero-title {
    font-size: 2.5rem;
  }

  .contact-info-card {
    padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  .hero-minimal h1 {
    font-size: 3.5rem !important;
  }

  .hero-minimal {
    padding: 150px 0 80px !important;
  }

  /* Target the split grid on contact page */
  section main>section:nth-of-type(2) .container>div {
    grid-template-columns: 1fr !important;
    gap: 4rem !important;
  }
}

/* --- Responsive Utilities & Fixes --- */

/* Huge Text (was 4.5rem inline) */
.text-huge {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 800;
  color: #fff;
}

/* Large Text (was 3rem inline) */
.text-large {
  font-size: 3rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #000;
}

/* Hero Custom (was inline style in index.php) */
.hero-custom {
  padding-top: 160px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Gallery Teaser Grid (was inline style in index.php) */
.gallery-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* Split Section (for Video Highlight in gallery.php) */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 60vh;
}

.video-container {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.video-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  background: #000;
  color: #fff;
  height: 100%;
}

/* Tablet & Mobile Overrides */
@media (max-width: 992px) {
  .text-huge {
    font-size: 3.5rem;
  }

  .text-large {
    font-size: 2.5rem;
  }

  .gallery-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .text-huge {
    font-size: 2.5rem;
  }

  .text-large {
    font-size: 2rem;
  }

  .hero-custom {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: auto;
    display: block;
    /* Stack on mobile if needed or keep flex but adjust alignment */
  }

  .gallery-grid-3 {
    grid-template-columns: 1fr;
  }

  .gallery-teaser-grid {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
    height: auto;
  }

  .video-container {
    height: 400px;
    /* Fixed height for video on mobile */
  }


}

/* Section Utilities (to replace inline styles) */
.hero-mid {
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.section-white {
  background: #fff;
  color: #000;
}

.section-dark {
  background: #000;
  color: #fff;
}

.cta-section {
  background: #fff;
  color: #000;
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid #eee;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 60px 0;
  }
}