@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Enhanced Color Palette */
  --primary-dark: #0a192f;
  /* Deep Navy */
  --primary-green: #1b4d3e;
  /* Logo Concept Colors */
  --primary-dark: #0a192f;
  /* Deep Navy/Black */
  --primary-green: #00b67a;
  /* Logo Green Base */
  --accent-green: #00ff88;
  /* Vibrant Gradient Highlight from Logo */
  --gradient-green: linear-gradient(135deg, #00b67a 0%, #00ff88 100%);

  --text-light: #8892b0;
  --text-white: #e6f1ff;
  --white: #ffffff;

  --bg-dark: #020c1b;
  --bg-card: #112240;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);

  --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  --whatsapp: #25d366;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-dark);
  /* Premium Dark Tech Background: Deep Gradient + Neural Grid */
  background-image:
    radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.02) 0%, transparent 80%),
    linear-gradient(rgba(10, 25, 47, 0.95), rgba(2, 12, 27, 1));
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Glow Elements - Repositioned and Polished */
.bg-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.04) 0%, transparent 70%);
  z-index: 0;
  /* Above body but behind content */
  pointer-events: none;
  filter: blur(100px);
  animation: float-glow 20s ease-in-out infinite alternate;
}

.bg-glow-1 {
  top: -15%;
  left: -15%;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.06) 0%, transparent 70%);
}

.bg-glow-2 {
  bottom: -15%;
  right: -15%;
  background: radial-gradient(circle, rgba(0, 182, 122, 0.06) 0%, transparent 70%);
  animation-delay: -5s;
}

.bg-glow-3 {
  top: 30%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.03) 0%, transparent 70%);
  animation-delay: -10s;
}

/* Enhanced Neural Networking Pattern Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10L90 90M90 10L10 90' stroke='rgba(100, 255, 218, 0.04)' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='10' cy='10' r='1.5' fill='rgba(100, 255, 218, 0.08)'/%3E%3Ccircle cx='90' cy='90' r='1.5' fill='rgba(100, 255, 218, 0.08)'/%3E%3Ccircle cx='90' cy='10' r='1.5' fill='rgba(100, 255, 218, 0.08)'/%3E%3Ccircle cx='10' cy='90' r='1.5' fill='rgba(100, 255, 218, 0.08)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* Global Minimal Gradient Text for Main Headings */
h1,
h2 {
  background: linear-gradient(135deg, #ffffff 30%, #64ffda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  /* Often needed for background-clip to work well on some elements */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

/* NAVBAR */
.navbar {
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
  transition: var(--transition);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  /* Fix for dark logo on dark bg - Force White circle */
  background-color: #ffffff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  display: block;
}

.brand-name {
  color: var(--accent-green);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  /* User Request: All header text Green */
  color: var(--accent-green);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-green);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-green);
}

/* Dropdown */
.nav-item-with-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-card);
  min-width: 220px;
  box-shadow: var(--shadow-md);
  border-radius: 4px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  list-style: none;
}

.nav-item-with-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.dropdown-menu li a:hover {
  color: var(--accent-green);
  background-color: rgba(100, 255, 218, 0.1);
}

.dropdown-arrow {
  font-size: 0.7em;
  margin-left: 5px;
}


/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 0;
}

.menu-toggle span {
  width: 30px;
  height: 2px;
  background-color: var(--accent-green);
  border-radius: 2px;
  transition: 0.3s;
}

/* HERO SECTION - Premium Upgrade */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding: 2rem 0 8rem 0;
  background: transparent;
  /* Fix visibility of background glows */
  position: relative;
  overflow: visible;
  z-index: 10;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  opacity: 1;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--white);
  /* Gradient Text */
  background: linear-gradient(135deg, #e6f1ff 30%, #64ffda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 580px;
  line-height: 1.8;
  color: var(--text-light);
}

.hero-image-wrapper {
  position: relative;
  opacity: 1;
  /* Changed from 0 to 1 to ensure visibility */
  animation: float 6s ease-in-out infinite;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  /* Deep shadow */
  filter: grayscale(0%) contrast(105%);
  /* Minimal filter for clarity */
  transition: var(--transition);
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.hero-image:hover {
  transform: scale(1.02);
  border-color: var(--accent-green);
  box-shadow: 0 25px 60px rgba(0, 255, 136, 0.15);
}

/* BRAND SLIDER SECTION */
.brand-slider {
  padding: 3rem 0;
  background-color: #0d1b31;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  width: calc(200px * 10);
  /* Adjust based on number of brands */
  animation: scroll 20s linear infinite;
}

.brand-slide {
  width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%) opacity(0.6);
  transition: var(--transition);
}

.brand-slide:hover {
  filter: grayscale(0%) opacity(1);
}

.brand-slide img {
  max-height: 40px;
  max-width: 150px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-200px * 5));
  }

  /* Scroll half the duplicated width */
}

/* PORTFOLIO SECTION */
.portfolio {
  padding: 8rem 0;
  background-color: transparent;
  position: relative;
  z-index: 10;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--text-light);
  color: var(--text-light);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background-color: rgba(100, 255, 218, 0.1);
}

.portfolio-grid {
  display: grid;
  /* Reduced min-width to support 5 columns (1200px / 5 = 240px, checking gap) -> 220px is safer */
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(17, 34, 64, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(100, 255, 218, 0.05);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  border-color: rgba(100, 255, 218, 0.3);
  box-shadow: 0 15px 35px -10px rgba(0, 255, 136, 0.1);
}

.portfolio-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* VIDEO SECTION */
.video-section {
  padding: 6rem 0;
  background-color: rgba(17, 34, 64, 0.4);
  backdrop-filter: blur(5px);
  text-align: center;
  position: relative;
  z-index: 10;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 3rem auto 0;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* BLOG SECTION */
.blog {
  padding: 8rem 0;
  background-color: transparent;
  position: relative;
  z-index: 10;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background: rgba(17, 34, 64, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(100, 255, 218, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(100, 255, 218, 0.2);
  box-shadow: var(--shadow-md);
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 2rem;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
  display: block;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-read-more {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  margin-top: 1rem;
  display: inline-block;
}

.blog-read-more:hover {
  color: var(--accent-green);
}


/* BUTTONS */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--accent-green);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: transparent;
  color: var(--accent-green);
}

.btn-primary:hover {
  background-color: rgba(100, 255, 218, 0.1);
  transform: translateY(-3px);
}

.btn-accent {
  background-color: var(--accent-green);
  color: var(--bg-dark);
}

.btn-accent:hover {
  background-color: #4cd6b3;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.btn-outline:hover {
  background-color: rgba(100, 255, 218, 0.1);
  transform: translateY(-3px);
}

/* SKELETON LOADING */
.skeleton {
  position: relative;
  overflow: hidden;
  background-color: #1a2a47;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0.05) 20%,
      rgba(255, 255, 255, 0.1) 60%,
      rgba(255, 255, 255, 0));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* SERVICES SECTION */
.services {
  padding: 8rem 0;
  background-color: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-green);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  height: 50px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) saturate(100%) invert(88%) sepia(21%) saturate(935%) hue-rotate(99deg) brightness(102%) contrast(102%);
  /* Make icons green/white */
}

.service-card h3 {
  color: var(--white);
  font-size: 1.4rem;
}

.service-card p {
  margin-bottom: auto;
  /* Push link to bottom */
  padding-bottom: 2rem;
}

.link-arrow {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.link-arrow:hover {
  gap: 0.8rem;
}

/* WHY CHOOSE US */
.why-us {
  padding: 8rem 0;
  background-color: #0d203d;
  /* Slightly lighter than bg-dark */
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.reason-item {
  text-align: center;
  padding: 2rem;
}

.reason-item img {
  height: 60px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) saturate(100%) invert(88%) sepia(21%) saturate(935%) hue-rotate(99deg) brightness(102%) contrast(102%);
}

.reason-item h4 {
  color: var(--white);
  font-size: 1.3rem;
}

/* CTA SECTION */
.cta-section {
  padding: 8rem 0;
  text-align: center;
  background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* PROFESSIONAL FOOTER */
.footer {
  background-color: #020c1b;
  color: var(--text-light);
  padding: 5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-desc {
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-green);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-link:hover {
  color: var(--accent-green);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-button span {
  filter: brightness(0) invert(1);
  margin-bottom: 4px;
  /* Alignment fix for emoji */
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Animations Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trustpilot & Testimonials */
.trustpilot-section {
  padding: 4rem 0;
  background: var(--bg-card);
  text-align: center;
}

.trustpilot-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.trustpilot-stars {
  color: #00b67a;
  /* Trustpilot Green */
  font-size: 1.5rem;
}

.trustpilot-logo-text {
  font-weight: 700;
  font-size: 1.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

.testimonial-card {
  background: var(--bg-dark);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-green);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
}

.author-info h4 {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.85rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    height: 100vh;
    background-color: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: 0.3s ease-in-out;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero p {
    margin: 0 auto 3rem auto;
  }

  .services-grid,
  .reasons-grid,
  .portfolio-grid,
  .blog-grid {
    padding: 0 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    background: transparent;
    box-shadow: none;
    padding-left: 20px;
    transform: none;
    display: none;
    /* JS to toggle */
  }

  .dropdown-menu.active {
    display: block;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1200px;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.close-lightbox {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
  color: var(--accent-green);
  text-decoration: none;
  cursor: pointer;
}


/* Enhanced Slider Styles */
.brand-slider-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.brand-track {
  display: inline-flex;
  gap: 4rem;
  align-items: center;
}

.brand-logo {
  height: 50px;
  width: auto;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.6;
  transition: var(--transition);
}

.brand-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.scroll-left {
  animation: scrollLeft 30s linear infinite;
}

.scroll-right {
  animation: scrollRight 30s linear infinite;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}


/* Blog Carousel Styles */
.blog-carousel-container {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2rem;
  /* Hide scrollbar for Chrome/Safari/Opera */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.blog-carousel-container::-webkit-scrollbar {
  display: none;
}

.blog-carousel {
  display: flex;
  gap: 2rem;
  padding: 0 1rem;
  width: max-content;
}

.carousel-item {
  width: 300px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: translateY(-10px);
}

/* Video Grid Styles */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* Multi-Row Brand Slider Styles */
.brand-slider-container {
  padding: 2rem 0;
  overflow: hidden;
  background: var(--bg-dark);
}

.brand-slider-row {
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.brand-slider-row::before,
.brand-slider-row::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.brand-slider-row::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}

.brand-slider-row::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.slider-track {
  display: flex;
  width: max-content;
  /* Ensure track fits all items */
  gap: 3rem;
}

.scroll-left {
  animation: scrollLegit 40s linear infinite;
}

.scroll-right {
  animation: scrollLegitReverse 40s linear infinite;
}

@keyframes scrollLegit {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Move half way (duplicate set) */
}

@keyframes scrollLegitReverse {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.brand-slide img {
  height: 50px;
  width: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: var(--transition);
}

.brand-slide img:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.1);
}

/* Enforce 5 Column Grid for Portfolio on Desktop */
@media (min-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}


/* LIGHTBOX STYLES */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.95);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 15px;
  color: #e6f1ff;
  text-align: center;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
  background: none;
  border: none;
}

.lightbox-close:hover {
  color: #64ffda;
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
}

.lightbox-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.lightbox-prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(100, 255, 218, 0.1);
  color: #64ffda;
}


/* BLOG CAROUSEL */
.blog-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 0 50px;
  /* Space for arrows */
}

.blog-track-container {
  overflow: hidden;
  width: 100%;
}

.blog-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.blog-card {
  /* On desktop, show 4 items. 
     (100% - (3 * 2rem gap)) / 4 
  */
  flex: 0 0 calc((100% - 6rem) / 4);
  /* Ensure it doesn't shrink */
  min-width: 250px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 25, 47, 0.7);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--accent-green);
  color: var(--bg-dark);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

@media (max-width: 1200px) {
  .blog-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    /* Show 3 */
  }
}

@media (max-width: 900px) {
  .blog-card {
    flex: 0 0 calc((100% - 2rem) / 2);
    /* Show 2 */
  }
}

@media (max-width: 600px) {
  .blog-card {
    flex: 0 0 100%;
    /* Show 1 */
  }

  .blog-carousel-wrapper {
    padding: 0;
  }

  .carousel-btn {
    display: none;
    /* Swipe usually preferred on mobile, or keep overlay */
  }

  .blog-track-container {
    overflow-x: scroll;
    /* Allow native scroll on mobile */
    scroll-snap-type: x mandatory;
  }

  .blog-track {
    gap: 1rem;
  }

  .blog-card {
    scroll-snap-align: start;
  }
}