﻿/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg-white);
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 1rem 0;
  box-shadow: var(--shadow-soft);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  background: var(--color-primary);
  color: white;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-fast);
}

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

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-main);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-bg-white);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border-top: 1px solid var(--color-border);
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 500;
}

.mobile-nav-link:hover {
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

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

.btn-primary:hover {
  background: #C41C1C;
  transform: translateY(-2px);
}

.btn-black {
  background: var(--color-text-main);
  color: white;
}

.btn-black:hover {
  background: #333;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-text-main);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-gray);
}

.hero-visuals {
  position: relative;
  height: 600px;
}

.mockup-layer {
  position: absolute;
  border-radius: 0;
  box-shadow: var(--shadow-hover);
  transition: var(--transition-smooth);
}

.mockup-layer:hover {
  transform: translateY(-10px) scale(1.02);
  z-index: 10;
}

.mockup-jewelry {
  top: 0;
  right: 0;
  width: 320px;
  z-index: 3;
}

.mockup-phone {
  bottom: 50px;
  right: -20px;
  width: 220px;
  z-index: 4;
}

.mockup-pouch {
  bottom: 0;
  left: 20px;
  width: 280px;
  z-index: 2;
}

.mockup-card {
  top: 150px;
  left: 0;
  width: 240px;
  z-index: 1;
}

.red-circle {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  border-radius: 50%;
  top: 100px;
  right: 50px;
  opacity: 0.1;
  z-index: 0;
}

/* Trusted Brands */
.trust-strip {
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.trust-strip .container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

.trust-label {
  font-size: 0.9rem;
  color: var(--color-text-gray);
  margin-bottom: 2rem;
}



.brand-logos img {
  max-height: 50px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(60%);
  transition: var(--transition-fast);
}

.brand-logos img:hover {
  filter: grayscale(0%) opacity(100%);
}

@media (max-width: 991px) {
  .brand-logos img {
    filter: grayscale(0%) opacity(100%);
  }
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  
  -webkit-
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: scroll-marquee 20s linear infinite;
  padding-right: 4rem; /* Match gap for seamless loop */
}

.brand-logos:hover {
  animation-play-state: paused;
}

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

/* Services */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon-red { background: var(--color-primary); color: white; }
.icon-black { background: var(--color-text-main); color: white; }

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--color-text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-link {
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link:hover {
  color: var(--color-primary);
}

/* Portfolio Filters */
.filter-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-gray);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: var(--transition-fast);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.portfolio-grid {
  column-count: 3;
  column-gap: 0;
  margin-bottom: 3rem;
}

.portfolio-card {
  break-inside: avoid;
  margin-bottom: 0;
  cursor: pointer;
}

.portfolio-img {
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.portfolio-img img {
  width: 100%;
  height: auto;
  transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.05);
}

.portfolio-title {
  display: none;
}

.portfolio-cat {
  display: none;
}

/* Testimonials */
.testimonial-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 350px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  scroll-snap-align: center;
  box-shadow: var(--shadow-soft);
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.client-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.client-name {
  font-weight: 700;
}

.client-role {
  font-size: 0.85rem;
  color: var(--color-text-gray);
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--color-text-gray);
  font-style: italic;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background: var(--color-text-main);
  color: white;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
}

.dot.active {
  background: var(--color-primary);
}

/* CTA Banner */
.cta-banner {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4rem auto;
}

.cta-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.cta-content {
  flex: 1;
  margin: 0 3rem;
}

/* Footer */
.footer {
  background: var(--color-text-main);
  color: white;
  padding: 5rem 0 2rem;
}

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

.footer-desc {
  color: #999;
  font-size: 0.95rem;
  margin: 1.5rem 0;
  max-width: 300px;
}

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

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  background: var(--color-primary);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  color: #999;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
}

.contact-info p {
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  outline: none;
}

.newsletter-form button {
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  background: var(--color-primary);
  color: white;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visuals { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { column-count: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; text-align: center; gap: 2rem; }
  .cta-content { margin: 0; }
}

@media (max-width: 767px) {
  .nav-links, .nav-btn { display: none; }
  .mobile-menu-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { column-count: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Contact Form Styling */
.premium-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.form-group {
  width: 100%;
}

.form-control {
  width: 100%;
  background-color: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  padding: 1.25rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.form-control::placeholder {
  color: #888;
}

/* Toast Notifications */
.form-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 2rem;
  border-radius: 50px;
  color: #fff;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.form-toast.success {
  background-color: #2e7d32;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.4);
}

.form-toast.error {
  background-color: #d32f2f;
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.4);
}



@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1rem)); } /* -50% shifts half the duplicated items, -1rem for half the gap */
}

/* Trusted Brands Desktop Hover */
@media (min-width: 993px) {
  .client-img:hover {
    filter: grayscale(0%);
    opacity: 1;
  }
}

/* Trusted Brands Mobile Infinite Scroll */
@media (max-width: 767px) {
  .client-strip {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: hidden;
    width: max-content;
    gap: 2rem;
    animation: marquee 20s linear infinite;
  }
  
  /* Reset grid specific properties */
  .clients .container {
    overflow: hidden;
  }
}





/* Reduce side spacing for Creative Design Agency (Hero), What We Do (Services), Our Work, and Footer on desktop */
#home.container, #services .container, #portfolio.container, .footer .container {
  padding-left: 5vw;
  padding-right: 5vw;
}

@media (min-width: 992px) {
  #home.container, #services .container, #portfolio.container, .footer .container {
    padding-left: 0;
    padding-right: 0;
  }
}


/* Lightbox Styling */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 2rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
}

@keyframes zoomIn {
  from {transform: scale(1.4); /* Massively increased to fill space */ opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}






/* New Hero Styling */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.hero-bg-text {
  position: absolute;
  top: 10%;
  left: -5%;
  font-size: 15vw;
  font-weight: 900;
  line-height: 0.8;
  color: var(--color-gray-light);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
}

.hero-grid-new {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Interactive Hero Masks */
.hero-visuals-new {
  position: relative;
  width: 100%;
}

.interactive-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.base-hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.hotspot {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.hotspot-inner {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hotspot-inner:hover {
    transform: scale(1.05) translateY(-8px);
    filter: drop-shadow(0px 20px 30px rgba(0,0,0,0.15));
    z-index: 10;
  }
}

.hotspot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Generic Zone Clip-Paths */
.zone-top-left .hotspot-inner { clip-path: polygon(0% 0%, 40% 0%, 40% 40%, 0% 40%); transform-origin: 20% 20%; }
.zone-top-right .hotspot-inner { clip-path: polygon(60% 0%, 100% 0%, 100% 40%, 60% 40%); transform-origin: 80% 20%; }
.zone-center-left .hotspot-inner { clip-path: polygon(0% 40%, 35% 40%, 35% 70%, 0% 70%); transform-origin: 15% 55%; }
.zone-center-right .hotspot-inner { clip-path: polygon(65% 40%, 100% 40%, 100% 70%, 65% 70%); transform-origin: 85% 55%; }
.zone-bottom-left .hotspot-inner { clip-path: polygon(0% 70%, 45% 70%, 45% 100%, 0% 100%); transform-origin: 20% 85%; }
.zone-bottom-right .hotspot-inner { clip-path: polygon(55% 70%, 100% 70%, 100% 100%, 55% 100%); transform-origin: 80% 85%; }
.zone-center .hotspot-inner { clip-path: polygon(30% 20%, 70% 20%, 75% 80%, 25% 80%); transform-origin: 50% 50%; }

/* Mascot Animation */
@keyframes floatGentle {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.mascot-animate {
  animation: floatGentle 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid-new {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-bg-text { font-size: 20vw; top: 5%; opacity: 0.15; }
  .nav-center, .nav-right { display: none !important; }
}

/* =========================================
   EDITORIAL BODY REDESIGN CSS
   ========================================= */

/* Editorial Typography & Spacing */
.section-editorial {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
}
.bg-soft-gray { background-color: #f9f9fa; }
.bg-dark { background-color: #111; color: #fff; }

.editorial-header {
  margin-bottom: 4rem;
}
.editorial-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}
.editorial-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* Glassmorphism & Containers */
.glass-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
  border-radius: 24px;
  padding: 3rem;
}
.glass-panel-dark {
  background: rgba(25, 25, 25, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem;
}

/* 1. Trusted Brands Marquee */
.trust-box {
  padding: 4rem 2rem;
  overflow: hidden;
}
.infinite-marquee {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  
  -webkit-
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-left: 4rem;
  animation: scrollMarquee 20s linear infinite;
}
.editorial-logo {
  height: 60px;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}
.editorial-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 2. What We Do Grid */
.editorial-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.editorial-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.editorial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.red-accent { color: var(--color-primary); margin-bottom: 1.5rem; }
.card-title { font-size: 1.5rem; margin-bottom: 1rem; }
.card-text { color: var(--color-text-gray); margin-bottom: 2rem; line-height: 1.6; }
.card-link { font-weight: 600; text-decoration: none; color: #111; }
.service-card-large { grid-row: span 2; }
.service-card-tall { grid-row: span 2; padding-top: 4rem; }
.service-card-wide { grid-column: span 2; }
@media(max-width: 768px) {
  .service-card-wide { grid-column: span 1; }
}

/* 3. Portfolio Masonry */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.portfolio-item-editorial {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}
.portfolio-item-editorial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.height-large { height: 600px; }
.height-medium { height: 400px; }
.height-tall { height: 500px; }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.view-text {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}
.portfolio-item-editorial:hover img { transform: scale(1.05); }
.portfolio-item-editorial:hover .portfolio-overlay { opacity: 1; }
.portfolio-item-editorial:hover .view-text { transform: translateY(0); }

@media(max-width: 768px) {
  .portfolio-masonry { grid-template-columns: 1fr; }
  .height-large, .height-medium, .height-tall { height: 350px; }
}

/* 4. Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.benefit-card {
  padding: 1.5rem;
  border-left: 2px solid rgba(255,255,255,0.1);
  transition: border-color 0.3s ease;
}
.benefit-card:hover { border-color: var(--color-primary); }
.benefit-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.1);
  display: block;
  margin-bottom: 0.5rem;
}

/* 5. Creative Process Timeline */
.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 4rem;
}
.process-line {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0,0,0,0.05);
  z-index: 1;
}
.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 20%;
}
.step-indicator {
  width: 60px;
  height: 60px;
  background: #fff;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 20px rgba(229,57,53,0.1);
  transition: transform 0.3s ease;
}
.process-step:hover .step-indicator { transform: scale(1.1); background: var(--color-primary); color: #fff; }

@media(max-width: 768px) {
  .process-timeline { flex-direction: column; gap: 3rem; }
  .process-line { width: 2px; height: 100%; top: 0; left: 30px; }
  .process-step { width: 100%; text-align: left; display: flex; align-items: center; gap: 2rem; }
  .step-indicator { margin: 0; flex-shrink: 0; }
}

/* 6. Reviews Marquee */
.review-marquee .marquee-content {
  padding-left: 2rem;
  gap: 2rem;
  animation-duration: 25s;
}
.review-card-editorial {
  width: 400px;
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}
.review-author {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* 7. Contact Split */
.newsletter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6rem;
  gap: 2rem;
}
.news-form {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}
.news-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: #fff;
}
.contact-editorial-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 5rem;
}
.premium-dark-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.premium-dark-form .input-group input,
.premium-dark-form .input-group textarea {
  width: 100%;
  padding: 1.25rem 0;
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  font-size: 1.1rem;
  transition: border-color 0.3s ease;
}
.premium-dark-form .input-group input:focus,
.premium-dark-form .input-group textarea:focus {
  outline: none;
  border-bottom-color: var(--color-primary);
}

@media(max-width: 768px) {
  .newsletter-bar { flex-direction: column; text-align: center; }
  .contact-editorial-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* 8. Footer Editorial */
.footer-editorial {
  background: #111;
  color: #fff;
  padding: 6rem 0 2rem;
}
.footer-grid-new {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}
.footer-massive-text {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 1rem;
}
.footer-sub {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
}
.footer-col-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}
.footer-col-links a:hover { color: #fff; }
.footer-bottom-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}
.legal-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-left: 2rem;
}
.legal-links a:hover { color: #fff; }

@media(max-width: 768px) {
  .footer-grid-new { grid-template-columns: 1fr; gap: 3rem; }
  .footer-bottom-new { flex-direction: column; gap: 1rem; text-align: center; }
  .legal-links a { margin: 0 1rem; }
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
}


/* Hero Refinements */
.btn-pill {
  border-radius: 50px !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.btn-red {
  background-color: #E53935;
  color: #fff;
  border: 1px solid #E53935;
}
.btn-red:hover {
  background-color: #d32f2f;
  color: #fff;
}
.btn-outline.btn-pill {
  background-color: #fff;
  color: #111;
  border: 1px solid #111;
}

/* Stats Dividers */
.stats-divided {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  border-top: none;
  padding-top: 0;
  margin-top: 2rem;
}
.stats-divided .stat-item {
  position: relative;
}
.stats-divided .stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.25rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: #e0e0e0;
}
.stats-divided .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stats-divided .stat-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: none;
  font-weight: 500;
}

/* === AWWWARDS HERO REFINEMENTS === */

/* 1. 60/40 Split & Generous Spacing */
.hero-grid-new {
  grid-template-columns: 1fr 1fr !important;
  gap: 6rem !important;
}

/* 2. Left Side Editorial Spacing */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* Massive spacing between elements */
  padding-right: 2rem;
}
.hero-content .heading-xl {
  margin-bottom: 0; /* Let flex gap handle it */
}
.hero-content p {
  margin-bottom: 0 !important;
  font-size: 1.25rem !important; /* Slightly larger, premium feel */
}
.hero-buttons {
  margin-bottom: 1rem !important;
}

/* 3. Un-boxing the Image with Multiply Blend Mode */
/* This makes the white background of the image completely vanish, 
   leaving only the shadows and objects floating in the native DOM. */
.interactive-hero {
  mix-blend-mode: multiply;
}
.base-hero-image, .hotspot-image {
  mix-blend-mode: multiply; 
  /* Also ensure the image is scaled so it doesn't touch edges */
  transform: scale(1.4); /* Massively increased to fill space */
}

/* 4. Background Typography Fix */
.hero-bg-text {
  opacity: 0.05 !important;
  z-index: -2 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* 5. Individual Floating Animations */
@keyframes floatIndependent {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.zone-top-left .hotspot-inner { animation: floatIndependent 7s ease-in-out infinite; animation-delay: 0s; }
.zone-top-right .hotspot-inner { animation: floatIndependent 8s ease-in-out infinite; animation-delay: 1s; }
.zone-center-left .hotspot-inner { animation: floatIndependent 6s ease-in-out infinite; animation-delay: 2s; }
.zone-center-right .hotspot-inner { animation: floatIndependent 9s ease-in-out infinite; animation-delay: 0.5s; }
.zone-bottom-left .hotspot-inner { animation: floatIndependent 7.5s ease-in-out infinite; animation-delay: 1.5s; }
.zone-bottom-right .hotspot-inner { animation: floatIndependent 8.5s ease-in-out infinite; animation-delay: 2.5s; }

/* 6. Hover Scale 1.04 */
@media (hover: hover) and (pointer: fine) {
  .hotspot-inner:hover {
    transform: scale(1.04) translateY(-10px) !important;
    filter: drop-shadow(0px 25px 35px rgba(0,0,0,0.15)) !important;
    animation-play-state: paused !important; /* Pause floating when hovered */
    z-index: 20;
  }
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .hero-grid-new {
    grid-template-columns: 1fr !important;
    gap: 4rem !important;
  }
  .hero-content {
    padding-right: 0;
    align-items: center;
    text-align: center;
  }
}




/* =========================================
   BODY SECTIONS REFINEMENT (Bento & Timeline)
   ========================================= */

/* Services Refined Grid (6 cards, 1 featured) */
.services-grid-refined {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card-featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: 4rem;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
}
@media (max-width: 992px) {
  .services-grid-refined {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card-featured {
    grid-column: span 2;
    grid-row: span 1;
    padding: 3rem;
  }
}
@media (max-width: 768px) {
  .services-grid-refined {
    grid-template-columns: 1fr;
  }
  .service-card-featured {
    grid-column: span 1;
  }
}

/* Strict Portfolio Masonry (6 items specifically designed to fit) */
.portfolio-strict-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
}
.portfolio-strict-masonry .portfolio-item-editorial {
  border-radius: 20px;
}
.portfolio-strict-masonry > div:nth-child(1) { grid-column: span 2; grid-row: span 2; } /* Packaging Large */
.portfolio-strict-masonry > div:nth-child(2) { grid-column: span 1; grid-row: span 1; } /* Brand Medium */
.portfolio-strict-masonry > div:nth-child(3) { grid-column: span 1; grid-row: span 2; } /* Poster Tall */
.portfolio-strict-masonry > div:nth-child(4) { grid-column: span 1; grid-row: span 1; } /* Web Medium */
.portfolio-strict-masonry > div:nth-child(5) { grid-column: span 2; grid-row: span 2; } /* Logo Large */
.portfolio-strict-masonry > div:nth-child(6) { grid-column: span 1; grid-row: span 1; }
.portfolio-strict-masonry > div:nth-child(7) { grid-column: span 1; grid-row: span 2; } /* Item 7 */
.portfolio-strict-masonry > div:nth-child(8) { grid-column: span 2; grid-row: span 2; } /* Item 8 */ /* Social Medium */

@media (max-width: 992px) {
  .portfolio-strict-masonry { grid-template-columns: repeat(2, 1fr); }
  .portfolio-strict-masonry > div { grid-column: span 1 !important; grid-row: span 1 !important; }
}
@media (max-width: 768px) {
  .portfolio-strict-masonry { grid-template-columns: 1fr; }
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 1.5rem;
}
.bento-featured {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,0.1);
}
.bento-small {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.bento-small:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.2);
}
.bento-red-accent {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-featured { grid-column: 1 / 3; grid-row: auto; min-height: 350px; }
}
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-featured { grid-column: 1 / 2; }
}

/* Animated Timeline */
.process-timeline-new {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 5rem;
  padding: 0 2rem;
}
.process-line-bg {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0,0,0,0.05);
  z-index: 1;
}
.process-line-animated {
  position: absolute;
  top: 30px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  z-index: 2;
  transition: width 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.process-timeline-new:hover .process-line-animated,
.process-timeline-new.active .process-line-animated {
  width: 100%;
}
.process-step-new {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 25%;
}
.step-circle {
  width: 60px;
  height: 60px;
  background: #fff;
  border: 2px solid #eaeaea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
  color: #999;
}
.process-step-new:hover .step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(229,57,53,0.2);
}

@media(max-width: 768px) {
  .process-timeline-new { flex-direction: column; gap: 3rem; padding: 0; }
  .process-line-bg { width: 2px; height: 100%; top: 0; left: 30px; }
  .process-line-animated { width: 2px; height: 0%; top: 0; left: 30px; transition: height 2s ease; }
  .process-timeline-new:hover .process-line-animated,
  .process-timeline-new.active .process-line-animated { width: 2px; height: 100%; }
  .process-step-new { width: 100%; text-align: left; display: flex; align-items: center; gap: 2rem; }
  .step-circle { margin: 0; flex-shrink: 0; }
}

/* Premium Review Cards */
.review-card-premium {
  width: 450px;
  flex-shrink: 0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.reviewer-avatar {
  width: 50px;
  height: 50px;
  background: #222;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.reviewer-name {
  font-weight: 700;
  font-size: 1.1rem;
}
.reviewer-role {
  font-size: 0.85rem;
  color: #666;
}
.review-text {
  font-size: 1.15rem;
  line-height: 1.6;
  font-style: italic;
  color: #333;
}

/* Curved Overlapping Dividers */
.curve-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px;
}


/* === MARQUEE OVERLAP FIX === */
.infinite-marquee {
  display: flex;
  overflow: hidden !important;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex !important;
  align-items: center !important;
  gap: 4rem !important;
  padding-right: 4rem !important; /* Critical for seamless loop gap */
  padding-left: 0 !important;
  flex-shrink: 0 !important;
  min-width: max-content !important; /* Forces it not to squish */
  width: max-content !important;
  animation: scrollMarquee 30s linear infinite !important;
  justify-content: flex-start !important;
}

.editorial-logo {
  height: 60px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important; /* PREVENTS OVERLAP AND SQUISHING */
  display: block !important;
}

/* Reviews Marquee Specific Override */
.review-marquee .marquee-content {
  padding-right: 2rem !important; /* Match review gap */
  gap: 2rem !important;
  animation-duration: 40s !important;
}



/* =========================================
   PORTFOLIO PREMIUM GRID (6 CARDS)
   ========================================= */

.portfolio-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; /* Equal spacing everywhere */
  margin: 0 auto;
}

.portfolio-card-premium {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.5rem; /* Premium container padding */
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  height: 350px; /* Consistent height */
  border-radius: 12px;
  overflow: hidden;
  background: #fcfcfc;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Exact requirement: don't stretch/crop */
  transition: transform 0.4s ease;
}

.portfolio-card-premium:hover .portfolio-img-wrapper img {
  transform: scale(1.03);
}

.portfolio-img-wrapper .portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portfolio-card-premium:hover .portfolio-img-wrapper .portfolio-overlay {
  opacity: 1;
}

.view-text {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

@media (max-width: 992px) {
  .portfolio-grid-cards { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
  .portfolio-grid-cards { grid-template-columns: 1fr; gap: 2rem; }
  .portfolio-img-wrapper { height: 300px; }
}

/* =========================================
   PINTEREST TRUE MASONRY GALLERY (8 CARDS)
   ========================================= */

.portfolio-pinterest-masonry {
  column-count: 4;
  column-gap: 20px;
  width: 100%;
}

.portfolio-pinterest-masonry .portfolio-card-premium {
  break-inside: avoid;
  margin-bottom: 20px;
  background: #ffffff;
  border-radius: 20px;
  padding: 0; /* Remove internal padding for true Pinterest edge-to-edge look, wait, user requested premium card. */
  /* User requested: "Every project should appear inside its own premium card with: 20px rounded corners, Soft shadow, White bg, Hidden overflow". 
     I will give it a small padding to look like a premium card frame. */
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-pinterest-masonry .portfolio-card-premium:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.portfolio-pinterest-masonry .portfolio-img-wrapper {
  position: relative;
  width: 100%;
  height: auto; /* Dynamic height */
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.portfolio-pinterest-masonry .portfolio-img-wrapper img {
  width: 100%;
  height: auto; /* Adapt to image's natural height */
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-pinterest-masonry .portfolio-card-premium:hover .portfolio-img-wrapper img {
  transform: scale(1.03);
}

.portfolio-pinterest-masonry .portfolio-img-wrapper .portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portfolio-pinterest-masonry .portfolio-card-premium:hover .portfolio-img-wrapper .portfolio-overlay {
  opacity: 1;
}

/* Lightbox support uses existing classes, clicking .portfolio-card-premium triggers it in JS? 
   Wait, JS in main.js might look for .portfolio-item-editorial. 
   I will add data-category to these so they work with filters if any. */

@media (max-width: 1024px) {
  .portfolio-pinterest-masonry { column-count: 3; }
}

@media (max-width: 768px) {
  .portfolio-pinterest-masonry { column-count: 2; column-gap: 16px; }
  .portfolio-pinterest-masonry .portfolio-card-premium { margin-bottom: 16px; padding: 8px; }
}

/* =========================================
   NEWSLETTER OFF-WHITE OVERRIDE
   ========================================= */

.glass-panel-offwhite {
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  color: #111;
  border-radius: 20px;
  padding: 3rem;
}
.glass-panel-offwhite h3 {
  color: #111;
}
.glass-panel-offwhite p {
  color: #555;
}
.glass-panel-offwhite input {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  color: #111;
}
.glass-panel-offwhite input::placeholder {
  color: #999;
}


/* =========================================
   HERO SECTION SPACING ADJUSTMENT
   ========================================= */
.hero-editorial .container {
  padding: 0 2vw !important;
  max-width: 1600px !important;
}

/* =========================================
   LIGHTBOX MULTI-IMAGE OVERRIDES
   ========================================= */
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* hidden by default, shown by JS if gallery exists */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 10001;
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }



.lightbox-close:hover {
  color: var(--color-primary);
  background: rgba(0,0,0,0.8);
}


/* =========================================
   LIGHTBOX MULTI-IMAGE OVERRIDES
   ========================================= */
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* hidden by default, shown by JS if gallery exists */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 10001;
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

/* =========================================
   VERTICAL SCROLL GALLERY (BEHANCE STYLE)
   ========================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: flex-start; /* Ensure scrolling starts at top */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto; /* Enable native vertical scroll */
  padding: 4rem 1rem;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-scroll-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.lightbox-gallery-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  animation: slideUpFade 0.5s ease backwards;
}

.lightbox-gallery-img:nth-child(1) { animation-delay: 0.1s; }
.lightbox-gallery-img:nth-child(2) { animation-delay: 0.2s; }
.lightbox-gallery-img:nth-child(3) { animation-delay: 0.3s; }
.lightbox-gallery-img:nth-child(4) { animation-delay: 0.4s; }
.lightbox-gallery-img:nth-child(5) { animation-delay: 0.5s; }

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

.lightbox-close {
  position: fixed;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
  background: rgba(0,0,0,0.5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  backdrop-filter: blur(5px);
}

.lightbox-close:hover {
  color: var(--color-primary);
  background: rgba(0,0,0,0.8);
}

/* =========================================
   SINGLE-IMAGE ZOOM VIEWER (PACKAGING)
   ========================================= */
.lightbox-zoom-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Prevent scrolling, allow dragging */
}

.zoomable-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transition: transform 0.1s ease-out; /* Fast transition for smooth zoom/pan */
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.zoomable-img:active {
  cursor: grabbing;
}
