body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Hero text stays above background */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* Add a subtle overlay for contrast */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero > .container {
  position: relative;
  z-index: 2;
}

/* =========================================
   NAVBAR
========================================= */
.brand-logo {
  height: 38px;
  width: auto;
  max-width: none;
  display: block;
}
/* =========================================
   LOGO HOVER FLOAT ANIMATION
========================================= */
.logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.logo-wrapper:hover {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 6px 12px rgb(211, 185, 166));
}

.brand-logo {
  height: 38px;
  width: auto;
  transition: transform 0.4s ease;
}

.logo-wrapper:hover .brand-logo {
  animation: floatPulse 1.8s ease-in-out infinite;
}

@keyframes floatPulse {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}


.nav-link {
  color: #333;
  position: relative;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}
.nav-link:hover { color: #053d5e; }
.nav-link::after {
  content: "";
  position: absolute; 
  left: 0; 
  bottom: 0;
  width: 0%; 
  height: 2px; 
  background-color: #ed4a15;
  transition: width 0.25s ease-in-out;
}
.nav-link:hover::after { width: 100%; }

.active-link {
  color: #0d6efd !important;
  font-weight: 600;
}
.active-link::after { width: 100%; }

@media (min-width: 992px) {
  header .nav { margin-left: 3rem; justify-content: flex-start; }
}

.mobile-primary .nav-link {
  padding-top: .25rem; 
  padding-bottom: .25rem; 
  font-size: .95rem;
}

/* Hamburger button */
.menu-toggle {
  background: transparent; 
  border: none;
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center;
  gap: 5px; 
  width: 42px; 
  height: 42px; 
  border-radius: 8px; 
  cursor: pointer;
  transition: all 0.25s ease;
}
.menu-toggle .bar {
  width: 24px; 
  height: 2.5px; 
  background-color: #222; 
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle:hover { 
  background-color: rgba(0,0,0,0.05); 
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08); 
}
.menu-toggle:hover .bar { background-color: #0d6efd; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HEADER SPACING OPTIMIZATION
========================================= */

/* Default desktop padding (comfortable) */
header.site-header {
  padding: 0.75rem 1.5rem; /* slightly reduced from Bootstrap default (p-3) */
}

/* Medium screens (tablets) */
@media (max-width: 991px) {
  header.site-header {
    padding: 0.5rem 1rem;
  }

  .brand-logo {
    height: 60px; /* slightly smaller so it fits better */
  }
}

/* Small screens (phones) */
@media (max-width: 576px) {
  header.site-header {
    padding: 0.35rem 0.75rem; /* minimal padding for compact look */
  }

  .brand-logo {
    height: 48px; /* scales proportionally with smaller header */
  }

  .nav-link {
    font-size: 0.9rem;
    margin: 0 0.25rem;
  }
}

/* =========================================
   ROUNDED "SEARCH-BAR" NAV CONTAINER
========================================= */
.nav-container {
  background: transparent !important; 
  border-radius: 40px;
  padding: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}


/* Slight hover lift for elegant effect */
.nav-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Logo and link alignment */
.nav-container .logo-wrapper img {
  height: 64px;
  transition: transform 0.3s ease;
}

.nav-container .logo-wrapper:hover img {
  transform: scale(1.05);
}

/* Adjust nav links inside the rounded container */
.nav-container .nav-link {
  font-weight: 500;
  color: #222;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
  border-radius: 0 !important;
  background: 0 !important;
  backdrop-filter: none !important;
}

.nav-container .nav-link:hover {
  background: transparent !important;
  color: #053d5e;
  transform: translateY(-1px);
}

/* Active link highlight inside the capsule */
.nav-container .active-link {
  background: transparent !important;
  color: #0d6efd !important;
  font-weight: 700;
}


/* Responsive scaling */
@media (max-width: 992px) {
  .nav-container {
    border-radius: 30px;
    padding: 0.5rem 1rem;
  }
  .nav-container .logo-wrapper img {
    height: 54px;
  }
}

@media (max-width: 576px) {
  .nav-container {
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
  }
}

/* ============================
   SURF WEBSOL LIQUID GLASS NAVBAR
============================= */

.glass-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1300px;
  z-index: 9999;

  padding: 0.85rem 1.5rem;
  border-radius: 40px;

  /* SurfWebSol BEIGE liquid glass */
  background: rgba(239, 233, 227, 0.45);    /* beige tint */
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(239, 233, 227, 0.5);

  box-shadow:
    0 10px 40px rgba(0,0,0,0.15),
    inset 0 0 30px rgba(255,255,255,0.25); /* Apple gloss */

  transition: all 0.3s ease;
}

/* Slight hover lift like macOS floating windows */
.glass-nav:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow:
    0 14px 50px rgba(0,0,0,0.18),
    inset 0 0 40px rgba(255,255,255,0.28);
}


/* =========================================
   END NAVBAR
========================================= */

/* =========================================
   UPDATED NAVBAR STYLES
========================================= */

/* Make logo bigger and crisper */
.brand-logo {
  height: 80px;          /* increased from 38px */
  width: auto;
  max-width: none;
  display: block;
  transition: transform 0.4s ease;
}

/* Keep hover and pulse animations intact */
.logo-wrapper:hover .brand-logo {
  animation: floatPulse 1.8s ease-in-out infinite;
}

/* Navbar background color to match logo’s beige */
header,
.navbar {
  background: transparent !important;
  /* box-shadow: none !important; */
  box-shadow: 0 2px 8px rgba(1, 22, 142, 0.391); /* soft depth */
}

/* Navbar links stay readable on beige background */
.nav-link {
  color: #ffffff !important;
}

.nav-link:hover {
  color: #053d5e !important; /* same SurfWebSol blue accent */
}

.navbar.scrolled {
  background-color: #efe9e3 !important;
  transition: background-color 0.4s ease;
}


header {
  position: relative;
  z-index: 1000; /* Make sure it's above the gradient box */
}

/* HERO SECTION - FULL WIDTH */
#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The canvas container */
#wrapper-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: transparent;
  border: none; /* just to be sure */
}

/* Text content stays centered on top */
#hero .hero-content {
  position: relative;
  z-index: 10;
  color: #fff;

  /* NEW: lock the stack */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 12px;

  /* NEW: prevent “wrap width” from changing between phrases */
  width: min(92vw, 900px);
  margin: 0 auto;
  text-align: center;
}

#hero h1 {
  font-weight: 800;
}

#hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.hero-carousel {
  font-size: 1.5rem;
  opacity: 1;
  transition: opacity 0.6s ease-in-out;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  min-height: clamp(44px, 6vw, 84px);
  max-width: min(92vw, 900px);
  margin: 0 auto;
  line-height: 1.25;

  will-change: opacity;
}

/* ===========================
   ABOUT SECTION (Split Layout)
=========================== */
.about-section {
  position: relative;
  background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, rgba(10,10,10,0.95) 100%);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  overflow: hidden;
}

.about-section h2 {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

.about-section .btn-primary {
  background: linear-gradient(90deg, #007bff, #00c6ff);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

/* Video styling */
.about-video {
  border-radius: 15px;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(0.85);
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.about-video:hover {
  transform: scale(1.03);
  filter: brightness(1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .about-section {
    text-align: left;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .about-video {
    margin-top: 1.5rem;
    border-radius: 10px;
  }
}

.about-video-wrapper {
  max-width: 320px;     /* ← controls size on desktop */
  width: 100%;
}

@media (max-width: 992px) {
  .about-video-wrapper {
    max-width: 100%;    /* full width on mobile */
  }
}

/* Graphic side divs */
.graphic-shape {
  width: 100%;
  height: 250px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,123,255,0.2), rgba(255,255,255,0.05));
  backdrop-filter: blur(5px);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.shape-left {
  transform: rotate(-15deg) translateY(20px);
}

.shape-right {
  transform: rotate(15deg) translateY(-20px);
}

.graphic-shape:hover {
  transform: scale(1.05);
  opacity: 1;
}

.about-section {
  position: relative;
  background: #ffffff; /* pure white background */
  color: #111;
  border: none;
}

.txt-sec2-h {
  color: #222;
  font-size: 3.1rem;
  margin-bottom: 1rem;
}

.h2-sec2-h {
  color: #111;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* ===========================
   PORTFOLIO PAGE
=========================== */

#portfolio-hero {
  width: 100%;
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Expanding cards (scoped, safe) --- */
#portfolio-content .options {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;

  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  height: 420px;
  gap: 12px;
}

#portfolio-content .option {
  position: relative;
  overflow: hidden;

  flex: 1;
  min-width: 70px;

  border: 0;
  padding: 0;
  cursor: pointer;

  border-radius: 30px;

  background: var(--optionBackground, #E6E9ED);
  background-size: auto 120%;
  background-position: center;

  transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
  box-shadow: 0 12px 35px rgba(0,0,0,0.16);
}

#portfolio-content .option:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.35);
  outline-offset: 4px;
}

#portfolio-content .option .shadow {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 140px;
  transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

#portfolio-content .option .label {
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 44px;

  transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

#portfolio-content .option .icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  border-radius: 999px;

  background: rgba(239, 233, 227, 0.92);
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  font-size: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

#portfolio-content .option .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10px;
  color: #fff;
  white-space: nowrap;
}

#portfolio-content .option .info .main {
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.1;
  text-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

#portfolio-content .option .info .sub {
  font-size: 0.95rem;
  opacity: 0.95;
  text-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* ACTIVE (expanded) */
#portfolio-content .option.active {
  flex: 12;
  border-radius: 40px;
  background-size: auto 105%;
}

#portfolio-content .option.active .shadow {
  box-shadow: inset 0 -140px 140px -120px rgba(0,0,0,0.92),
              inset 0 -140px 140px -95px rgba(0,0,0,0.65);
}

#portfolio-content .option.active .label {
  bottom: 18px;
  left: 18px;
  right: 18px;
}

/* NOT active (collapsed): hide text smoothly */
#portfolio-content .option:not(.active) .shadow {
  box-shadow: inset 0 -140px 0px -140px rgba(0,0,0,0.80),
              inset 0 -140px 0px -95px rgba(0,0,0,0.55);
}

#portfolio-content .option:not(.active) .info .main,
#portfolio-content .option:not(.active) .info .sub {
  opacity: 0;
  transform: translateX(14px);
  transition: 0.35s ease;
}

/* Responsive: shrink height on mobile */
@media (max-width: 768px) {
  #portfolio-content .options {
    height: 340px;
  }
}



/* ===========================
   CONTACT PAGE
=========================== */
#contact-hero {
  width: 100%;
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* how much space to reserve for the fixed navbar */
:root{
  --glass-nav-offset: 120px; /* tweak if needed */
}

/* Ensure overlay takes full hero height */
#contact-hero .contact-overlay{
  box-sizing: border-box;
  padding-top: var(--glass-nav-offset);
  height: 100%;
  width: 100%;
}

/* Video background */
.contact-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.75);
}

/* Floating overlay text */
.contact-overlay {
  position: relative;
  z-index: 2;
}

.shadow-text {
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
}

/* Contact info section */
#contact-info {
  background: #f8f9fa;
}

#contact-info a {
  transition: color 0.3s ease;
}

#contact-info a:hover {
  color: #0056b3;
}

/* Floating glass-like button on banner */
.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 50px;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Ensure video stays visible behind text */
#contact-hero {
  position: relative;
  z-index: 0; /* base */
}

.contact-video {
  z-index: 1; /* video layer */
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* overlay with text and button */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* =========================================
   FOOTER CLEAN DESIGN WITH WAVES AT BOTTOM
========================================= */
.footer {
  position: relative;
  background: #f8f9fa;
  color: #222;
  overflow: hidden;
}

/* Footer Titles & Links */
.footer-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #111;
}

.footer-links a {
  color: #0056b3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #007bff;
}

/* Contact page - social icons hover animation */
.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* =========================================
   CONTACT PAGE RESPONSIVE SOCIAL ICONS
========================================= */
.contact-social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-social-icons img {
  width: clamp(36px, 6vw, 60px); /* fluid resizing based on viewport */
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover animation */
.contact-social-icons a:hover img {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 0 6px rgba(237, 79, 255, 0.814));
}

/* Tablet */
@media (max-width: 768px) {
  .contact-social-icons {
    gap: 1rem;
  }
  .contact-social-icons img {
    width: clamp(28px, 8vw, 42px);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .contact-social-icons {
    gap: 0.75rem;
  }
  .contact-social-icons img {
    width: clamp(24px, 10vw, 36px);
  }
}


.social-icons a:hover {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 0 6px rgba(0, 123, 255, 0.6));
}

/* COPYRIGHT + WAVES SECTION */
.footer-bottom {
  position: relative;
  background-color: #003F7C;
  color: #fff;
  overflow: hidden;
  z-index: 1;
}

.footer-bottom p {
  position: relative;
  z-index: 2;
  margin: 0;
}

/* Animated Waves */
.ocean {
  height: 90px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  overflow-x: hidden;
  z-index: 1;
}

.wave {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%230057B8'/%3E%3C/svg%3E");
  position: absolute;
  width: 200%;
  height: 100%;
  animation: wave 10s -3s linear infinite;
  transform: translate3d(0, 0, 0);
  opacity: 0.8;
}

.wave:nth-of-type(2) {
  bottom: 0;
  animation: wave 18s linear reverse infinite;
  opacity: 0.5;
}

.wave:nth-of-type(3) {
  bottom: 0;
  animation: wave 20s -1s linear infinite;
  opacity: 0.35;
}

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


/* ===========================
   WHAT PAGE
=========================== */
#what-hero {
  width: 100%;
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.what-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.what-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#what-content {
  background: #f8f9fa;
  color: #333;
}

#what-content p {
  font-size: 1.1rem;
  line-height: 1.8;
}

#what-content .container {
  text-align: left;
}

/* =========================================
   WHAT PAGE - CUSTOM BUTTON COLORS
========================================= */

/* WHY? button - light glass background */
.btn-why {
  background: rgba(255, 255, 255, 0.7);
  color: #222 !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-why:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000 !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* OUR SERVICES button - bold blue glass gradient */
.btn-services {
  background: linear-gradient(90deg, rgba(0,123,255,0.85), rgba(0,198,255,0.85));
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-services:hover {
  background: linear-gradient(90deg, rgba(0,123,255,1), rgba(0,198,255,1));
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

/* Portfolio button polish for light backgrounds */
#who-content .btn-services {
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35);
}

#who-content .btn-services:hover {
  box-shadow: 0 12px 35px rgba(255, 0, 0, 0.45);
}


/* ===========================
   WHY PAGE (same structure as WHAT)
=========================== */
#why-hero {
  width: 100%;
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.why-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.why-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#why-content {
  background: #f8f9fa;
  color: #333;
}

#why-content p {
  font-size: 1.1rem;
  line-height: 1.8;
}

#why-content .container {
  text-align: left;
}

/* ===========================
   HOW (SERVICES) PAGE
=========================== */

#how-hero {
  width: 100%;
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.how-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.how-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---- Card Section ---- */
.page-content {
  display: grid;
  grid-gap: 1rem;
  padding: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  font-family: 'Rubik', sans-serif;
}

@media (min-width: 600px) {
  .page-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .page-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  height: 350px;
  text-align: center;
  color: #fff;
  background-color: #ccc;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg) center/cover no-repeat;
  transition: transform 0.6s ease;
  z-index: 0;
}

.card:hover::before {
  transform: scale(1.1);
}

/* Only apply dark overlay to HOW page cards */
.page-content .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
}


.content {
  position: relative;
  z-index: 2;
  width: 100%;
  transition: transform 0.6s ease;
}

.card:hover .content {
  transform: translateY(-10px);
}

.content .title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.copy {
  opacity: 0;
  font-size: 0.95rem;
  transition: opacity 0.4s ease;
  margin-bottom: 1rem;
}

.card:hover .copy {
  opacity: 1;
}

.price {
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}


.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ff66;
  box-shadow: 0 0 8px 2px #00ff66;
  animation: blink 1.2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===========================
   HOW PAGE - VIDEO CARD SMOOTH REVEAL
=========================== */

.video-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 15px;
  height: 350px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background-color: #000;
}

/* =========================================
   HOW PAGE - FIXED PRICE FOOTER IN CARDS
========================================= */

.card-footer-fixed {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding-bottom: 1rem;
  z-index: 3;
}

.card-footer-fixed .price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1rem;
}


.video-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  z-index: 0;
  filter: brightness(0.65);
  transition: filter 0.5s ease, transform 0.6s ease, opacity 0.5s ease;
}

.card-video.active {
  filter: brightness(0.9);
  transform: scale(1.05);
  opacity: 1;
}

.video-card .content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.25rem;
  transition: transform 0.6s ease;
}

.video-card:hover .content {
  transform: translateY(-10px);
}

/* Smooth fade-in of details */
.video-card .copy,
.video-card .btn-card {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease;
}

.video-card:hover .copy {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.video-card:hover .btn-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

/* Keep your existing button styling */

/* ===========================
   HOW PAGE - CARD BUTTONS
=========================== */

.btn-card {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  backdrop-filter: blur(8px);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);

  /* Start hidden */
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
}

/* Hover animation when card is active */
.card:hover .btn-card {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0.35s; /* smooth stagger after text */
}

.btn-card:hover {
  background: linear-gradient(90deg, #007bff, #00c6ff);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.45);
  color: #fff;
}

.btn-card:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* ===========================
   WHO PAGE
=========================== */

#who-hero {
  width: 100%;
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.who-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.who-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Profile image styling */
.profile-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 123, 255, 0.3);
}

/* Content */
#who-content {
  background: #f8f9fa;
  color: #333;
}

#who-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: left;
}

#who-content .container {
  text-align: left;
}

/* =========================================
   CONTACT QUOTE SLIDE-UP ANIMATIONS
========================================= */

.animate-slide-up-delayed {
  opacity: 0;
  transform: translateY(10px);
  animation: slideUpFade 1.2s ease forwards;
  animation-delay: 0.1s; /* Quote appears slightly after h1 */
}

.animate-slide-up-later {
  opacity: 0;
  transform: translateY(10px);
  animation: slideUpFade 3s ease forwards;
  animation-delay: 0.8s; /* Author appears 0.4s after quote */
}

.animate-slide-up-later-later {
  opacity: 0;
  transform: translateY(5px);
  animation: slideUpFade 2s ease forwards;
  animation-delay: 2s; /* Author appears 0.4s after quote */
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   LEAD FORM SECTION (FOLD & ANIMATION)
========================================= */

.lead-form-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.8s ease;
  background: #f9fbff;
  padding: 0;
}

.lead-form-section:not(.collapsed) {
  max-height: 800px;
  opacity: 1;
  transform: translateY(0);
  padding: 4rem 0;
  box-shadow: inset 0 5px 25px rgba(0, 0, 0, 0.05);
}

.lead-form {
  max-width: 500px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.lead-form input {
  border-radius: 50px;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

.lead-form input:focus {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0,123,255,0.3);
  outline: none;
}

/* Smooth appearance for the form */
.lead-form-section:not(.collapsed) .lead-form {
  opacity: 1;
  transform: translateY(0);
}

.collapsed .lead-form {
  opacity: 0;
  transform: translateY(20px);
}

.lead-form textarea {
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  resize: none;
}

.lead-form textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0,123,255,0.3);
  outline: none;
}

/* ============================
   SHOP PAGE STYLES
============================ */

/* === HERO SECTION === */
#shop-hero {
  width: 100%;
  height: 60vh; /* consistent height with other banners */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Video background */
.shop-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.75); /* same tone as contact.ejs */
}

/* Floating overlay text */
.shop-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* text stays above video */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* === PRODUCT GRID === */
.product-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: transform 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-img {
  width: 100%;
  transition: opacity 0.5s ease-in-out;
  display: block;
}

.product-img.img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .img-main {
  opacity: 0;
}

.product-card:hover .img-hover {
  opacity: 1;
}

.product-info {
  background: #fff;
  position: relative;
  z-index: 2;
  padding: 1rem;
  text-align: center;
}

/* === BUTTON STYLE (same as other pages) === */
.btn-services {
  background: linear-gradient(90deg, rgba(0,123,255,0.85), rgba(0,198,255,0.85));
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35);
}

.btn-services:hover {
  background: linear-gradient(90deg, rgba(0,123,255,1), rgba(0,198,255,1));
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 123, 255, 0.45);
}

/* =========================================
   CUSTOM BUTTON STYLE - "WHAT?" (White Glass)
========================================= */
.btn-what {
  background: rgba(255, 255, 255, 0.7);
  color: #222 !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-what:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000 !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}


/* =========================================
   BUTTON APPEAR ANIMATION (Section 2)
========================================= */
.fade-slide-up {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================
   NEWS PAGE STYLES
============================ */

#news-hero {
  width: 100%;
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.news-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.news-search input {
  max-width: 400px;
}

.news-card img {
  transition: transform 0.4s ease;
}

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

.news-card .card-body {
  transition: background 0.3s ease;
}

.news-card:hover .card-body {
  background: rgba(0, 123, 255, 0.05);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  opacity: 1;
}

/* =========================================
   HERO CAROUSEL FIX: slide + fade combo
========================================= */
.hero-carousel {
  transition: opacity 0.6s ease-in-out;
  will-change: opacity;
}

/* While the slide-up animation runs, disable transition to avoid fighting */
.animate-slide-up-delayed.hero-carousel {
  transition: none!important;
}

.alert {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .about-section h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
  }

  .about-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }

  .about-video {
    margin-top: 1.5rem;
    border-radius: 10px;
  }

  .fade-slide-up {
    margin-top: 1.5rem;
  }
}

/* ===========================
   NEWS ARTICLE PAGE STYLES
=========================== */

#article-hero {
  width: 100%;
  height: 60vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.article-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.article-body h2, .article-body h3 {
  color: #003F7C;
}

.article-body a {
  text-decoration: none;
  color: #007bff;
}

.article-body a:hover {
  text-decoration: underline;
}

.blockquote {
  background: rgba(0,123,255,0.05);
  border-radius: 10px;
  font-size: 1.05rem;
  color: #222;
}

/* =========================================================
   FIX for clickable carousel controls + inner buttons
========================================================= */

/* Allow carousel controls (prev/next) to work */
.carousel {
  pointer-events: auto;
}

/* Disable pointer events ONLY for non-active slides' content */
.carousel-inner .carousel-item:not(.active) * {
  pointer-events: none;
}

/* Keep visible and transitioning slide interactive */
.carousel-inner .carousel-item.active *,
.carousel-inner .carousel-item-next.carousel-item-start *,
.carousel-inner .carousel-item-prev.carousel-item-end * {
  pointer-events: auto !important;
}

/* Keep "Read" buttons clickable above overlays */
.news-card a.btn,
.news-card a.btn-services {
  position: relative;
  z-index: 5;
}



@media (max-width: 575.98px) {
  header .d-flex.flex-wrap {
    flex-wrap: nowrap !important;
  }

  .logo-wrapper img {
    height: 56px; /* slightly smaller on small screens */
  }

  /* ensure alignment remains consistent */
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* Compact mobile header layout */
@media (max-width: 576px) {
  .mobile-primary {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
  }

  .mobile-primary .nav-link {
    font-size: 0.85rem;  /* smaller text */
    padding: 0.25rem 0.4rem; /* tighter spacing */
    white-space: nowrap;
  }

  /* Adjust logo size to fit on same line */
  .logo-wrapper img {
    height: 52px;
  }

  /* Ensure header remains aligned horizontally */
  header .d-flex.flex-wrap {
    flex-wrap: nowrap !important;
  }

  /* Ensure the 4 links + hamburger align correctly */
  .d-flex.align-items-center.gap-2 {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  header.site-header {
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 400px) {
  .mobile-primary .nav-link {
    font-size: 0.8rem;
  }
}

/* Tighten mobile nav link spacing */
@media (max-width: 576px) {
  .mobile-primary {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.2rem !important; /* reduced internal gap */
    margin: 0;
    padding: 0;
  }

  .mobile-primary .nav-link {
    font-size: 0.8rem;
    padding: 0.1rem 0.25rem !important; /* tighter internal link padding */
  }

  /* Remove any list padding/margin causing purple columns */
  .mobile-primary li {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Optional: make nav bar slightly lower for balance */
  header.site-header {
    padding: 0.35rem 0.75rem;
  }
}

#today-date {
  color: #efe3e9 !important;
    font-size: .8rem; /* smaller size */

}


.fireworks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999; /* below nav (9999) but above most content */
}


