:root {
  --olive: #808000;
  --olive-light: #9b9b5f;
  --olive-dark: #4b4b00;
  --olive-transparent: rgba(128, 128, 0, 0.2);
  --bg-primary: #050607;
  --bg-secondary: #0d1117;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Inter", "Raleway", sans-serif;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  padding-top: 1.5rem;
}

/* =========================================
   Navigation Styles 
   ========================================= */
.nav-links {
  background-color: var(--bg-secondary);
  padding: 1.5rem 3rem;
  margin: 0 9rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1000;
}

.nav-links > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1000;
}

.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--olive-light);
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(8px);
}

/* Middle line */
.hamburger span {
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--olive-light);
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

/* When menu is active/open */
.nav-toggle.active .hamburger span {
  transform: scaleX(0);
  opacity: 0;
}

.nav-toggle.active .hamburger::before {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  transform: translateY(0) rotate(-45deg);
}

.nav-items {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-logo {
  height: 40px;
  width: auto;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.9;
}

.nav-links .logo {
  padding: 0;
  margin-right: 1rem;
}

.nav-links .logo:hover {
  background-color: transparent;
  color: inherit;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--olive-light);
  background-color: rgba(128, 128, 0, 0.06);
}

/* =========================================
   Responsive Nav 
   ========================================= */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  .nav-links {
    margin: 0 2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 1rem;
  }

  .nav-links {
    margin: 0 1rem;
    padding: 0.8rem 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-items {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: var(--bg-secondary);
    padding: 6rem 2rem 2rem;
    flex-direction: column;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 100;
  }

  .nav-items.active {
    right: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    display: block;
    width: 100%;
    text-align: center;
  }

  .nav-logo {
    height: 32px;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
  }

  .nav-backdrop.active {
    display: block;
  }

  section {
    padding: 4rem 15px;
  }
}

/* =========================================
   Typography & Layout 
   ========================================= */
section {
  min-height: 90vh;
  padding: 4rem 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

section:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--olive-transparent),
    transparent
  );
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  padding: 0 2rem;
}

h1,
h2,
h3,
h4,
p {
  color: var(--text-primary);
}

h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  background: linear-gradient(to right, #fff, var(--olive-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--olive), var(--olive-light));
  border-radius: 2px;
}

p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   Unified Card Styles 
   (Service Cards, Feature Boxes, Audience Boxes)
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  width: 100%;
}

/* Standardizing all card types */
.service-card,
.feature-box,
.audience-box {
  background-color: rgba(128, 128, 0, 0.08); /* Unified background */
  padding: 2.5rem 2rem;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--olive-transparent); /* Unified border */
  position: relative;
  overflow: hidden;
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Top Gradient Line (Hidden by default) */
.service-card::before,
.feature-box::before,
.audience-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--olive), var(--olive-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Unified Hover Effects */
.service-card:hover,
.feature-box:hover,
.audience-box:hover {
  transform: translateY(-8px);
  background-color: rgba(128, 128, 0, 0.12); /* Slightly lighter on hover */
  border-color: var(--olive);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before,
.feature-box:hover::before,
.audience-box:hover::before {
  opacity: 1;
}

/* Headings inside cards */
.service-card h3,
.feature-box h4,
.audience-box h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--olive-light);
  font-weight: 600;
}

/* Paragraphs inside cards */
.service-card p,
.feature-box p,
.audience-box p {
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 1rem;
}

/* =========================================
   Specific Element Styles
   ========================================= */

/* Process List (Approach Section) */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  margin-top: 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-number {
  background-color: var(--olive);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(128, 128, 0, 0.4);
}

/* Audience Tags */
.audience-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.audience-tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.audience-tag:hover {
  background: var(--olive);
  border-color: var(--olive);
}

.audience-tag i {
  color: var(--olive-light);
  margin-right: 8px;
}
.audience-tag:hover i {
  color: #fff;
}

/* =========================================
   Contact Form 
   ========================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  width: 100%;
  padding: 2.5rem;
  margin: 2rem auto 0;
  background-color: rgba(128, 128, 0, 0.05);
  border: 1px solid var(--olive-transparent);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  padding: 1rem 1.2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--olive);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-form input {
  height: 3.5rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--olive-light);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(128, 128, 0, 0.1);
}

.contact-form button {
  padding: 1.2rem 2.5rem;
  background-color: var(--olive);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-top: 1rem;
  align-self: center;
}

.contact-form button:hover {
  background-color: var(--olive-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(128, 128, 0, 0.2);
}

/* =========================================
   Footer Styles 
   ========================================= */
footer {
  background-color: var(--bg-primary);
  padding: 3rem 2rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--olive-transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}

.footer-section h4 {
  color: var(--olive-light);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--olive-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--olive-light);
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.contact-info li i {
  color: var(--olive-light);
  width: 20px;
}

/* .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--olive-transparent);
}

.footer-bottom .copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
} */

/* =========================================
   Footer Styles 
   ========================================= */
footer {
  background-color: var(--bg-primary);
  padding: 3rem 2rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--olive-transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}

.footer-section h4 {
  color: var(--olive-light);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0; /* Fixes visual indentation */
  margin: 0; /* Fixes extra spacing */
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--olive-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--olive-light);
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem; /* Ensure consistent spacing for contact items too */
}

.contact-info li i {
  color: var(--olive-light);
  width: 20px;
  flex-shrink: 0; /* Prevents icon from squishing on small screens */
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--olive-transparent);
}

.footer-bottom .copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 2rem;
  }

  .services-grid {
    gap: 1.5rem;
  }

  .process-list,
  .audience-box {
    text-align: center;
  }

  .step-item {
    flex-direction: column;
    align-items: center;
  }

  .audience-tags-container {
    justify-content: center;
  }
}

/* Muted panel for use on dark backgrounds (replaces white .bg-light) */
.muted-panel {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid rgba(128, 128, 0, 0.06);
}
.muted-panel h4 {
  color: var(--olive-light);
}
.muted-panel p {
  color: var(--text-secondary);
}

.muted-panel a {
  color: var(--text-primary);
}

.trust-list {
  list-style: none;
  padding: 0;
}

.trust-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.trust-list li::before {
  content: "\f00c";
  /* FontAwesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--primary-color, #808000);
  /* Fallback to olive if var not defined */
}
/* =========================================
   Dropdown Navigation Styles 
   ========================================= */

/* --- Desktop Styles (Min-width: 769px) --- */
@media (min-width: 769px) {
    .nav-item-dropdown {
        position: relative;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background-color: var(--bg-secondary);
        min-width: 240px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border: 1px solid var(--olive-transparent);
        border-top: 3px solid var(--olive);
        border-radius: 8px;
        padding: 0.5rem 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1100;
        display: flex;
        flex-direction: column;
    }

    /* Desktop Hover Effect */
    .nav-item-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-item-dropdown:hover .dropdown-trigger i {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .dropdown-menu a {
        color: var(--text-secondary);
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        display: block;
        width: 100%;
    }

    .dropdown-menu a:hover {
        background-color: rgba(128, 128, 0, 0.1);
        color: var(--olive-light);
        padding-left: 1.8rem;
    }
}

/* --- Mobile Styles (Max-width: 768px) --- */
@media (max-width: 768px) {
    .nav-item-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers the trigger text */
    }

    .dropdown-trigger {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .dropdown-menu {
        /* Hidden by default on mobile */
        display: none; 
        
        /* Static positioning allows it to push content down (Accordion style) */
        position: static; 
        width: 100%;
        background-color: rgba(0, 0, 0, 0.2); /* Darker background for nested look */
        margin-top: 0.5rem;
        border-radius: 4px;
        padding: 0;
        opacity: 1; /* Reset opacity from desktop */
        visibility: visible; /* Reset visibility */
        transform: none; /* Reset transform */
        box-shadow: none;
        border: none;
    }

    /* When the Javascript adds the 'active' class */
    .nav-item-dropdown.active .dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }

    /* Rotate arrow when active */
    .nav-item-dropdown.active .dropdown-trigger i {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        padding: 1rem;
        font-size: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--text-muted);
    }

    .dropdown-menu a:hover {
        color: #fff;
        background-color: transparent;
    }
}

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

/* Custom Popup Styles */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 9999;
            display: none;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(4px);
        }

        .popup-overlay.active {
            display: flex;
        }

        .popup-card {
            background: #fff;
            padding: 2.5rem 2rem;
            border-radius: 16px;
            width: 90%;
            max-width: 420px;
            text-align: center;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
            position: relative;
            animation: popupSlideIn 0.3s ease-out;
        }

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

        .popup-close-icon {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 1.5rem;
            cursor: pointer;
            color: #999;
            background: none;
            border: none;
            padding: 0;
        }

        .popup-icon-display {
            font-size: 3.5rem;
            margin-bottom: 1rem;
        }

        /* Styling based on type class added to popup-card */
        .popup-card.popup-type-success .popup-icon-display { color: #28a745; }
        .popup-card.popup-type-error .popup-icon-display { color: #dc3545; }

        .popup-title {
            font-family: 'Raleway', sans-serif;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: #333;
        }

        .popup-message {
            font-family: 'Inter', sans-serif;
            color: #666;
            margin-bottom: 1.5rem;
            line-height: 1.5;
        }

        .popup-btn {
            background-color: #808000;
            color: white;
            border: none;
            padding: 0.8rem 2.5rem;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
            font-size: 1rem;
        }

        .popup-btn:hover {
            background-color: #606000;
        }