/* =========================================
   DESIGN SYSTEM & VARIABLES (Strict Brand Colors)
========================================= */
:root {
  /* Core Brand Colors */
  --navy: #0B1F3A;
  --black: #111111;
  --white: #FFFFFF;
  --light-gray: #F5F6F7;
  --yellow: #F4C430;
  --green: #4F8A5B;

  /* Helper Variables (Hover States) */
  --yellow-hover: #e0b329;
  --green-hover: #3E6E49; /* Added for the new green button hover */
  
  /* Typography */
  --font-main: 'Poppins', sans-serif;
  
  /* Layout & Spacing */
  --container-max: 1280px;
  --section-pad: clamp(4rem, 8vw, 6rem);
  --radius: 8px;
  --transition: 0.3s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(11, 31, 58, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(11, 31, 58, 0.1);
  --shadow-hover: 0 20px 25px -5px rgba(11, 31, 58, 0.15);
}

/* =========================================
   BASE RESET
========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--black);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* =========================================
   UTILITIES & TYPOGRAPHY
========================================= */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad) 0;
}

.bg-light {
  background-color: var(--light-gray);
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--navy);
  font-size: 1.125rem;
  margin: 0 auto 3rem auto;
  max-width: 600px;
  font-weight: 300;
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   BUTTONS (Strict Color Rules)
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px; /* Changed to 50px for a fully rounded pill shape */
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

/* Primary Button: Green BG, White Text */
.btn-primary {
  background-color: var(--green); /* Changed from yellow to green */
  color: var(--white); /* Changed from black to white for contrast */
}

.btn-primary:hover {
  background-color: var(--green-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Outline/Secondary Button */
.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--navy);
}

/* Secondary Dark Button (For content sections if needed) */
.btn-secondary {
  background-color: var(--navy);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--black);
  transform: translateY(-3px);
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid var(--light-gray);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.1;
}

.logo img {
  height: 45px;
  margin-right: 12px;
}

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

.nav-links a.nav-item {
  font-weight: 600;
  color: var(--black);
  position: relative;
}

/* Yellow underline on hover/active */
.nav-links a.nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -6px;
  left: 0;
  background-color: var(--yellow);
  transition: var(--transition);
}

.nav-links a.nav-item:hover::after,
.nav-links a.nav-item.active::after {
  width: 100%;
}

.nav-links a.nav-item:hover {
  color: var(--green);
}
.nav-links a.nav-item.active {
  color: var(--navy);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--navy);
  margin: 5px auto;
  transition: var(--transition);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(11, 31, 58, 0.8), rgba(17, 17, 17, 0.85)), url('../images/hero.jpeg') center/cover no-repeat;
  color: var(--white);
  padding-top: 80px;
  filter: none;
  backdrop-filter: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-weight: 600;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--white);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Green Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Yellow Underline for About Heading */
.about-text h2 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.about-text h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 60px;
  background-color: var(--yellow);
}

.about-text p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
  color: var(--black);
}

/* =========================================
   SERVICES SECTION
========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-bottom: 4px solid var(--green); 
}

.service-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Green Service Number */
.service-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 2;
}

.service-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.service-content p {
  color: var(--black);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.95rem;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.learn-more span {
  margin-left: 5px;
  transition: var(--transition);
}

.service-card:hover .learn-more {
  color: var(--yellow);
}
.service-card:hover .learn-more span {
  transform: translateX(5px);
}

.btn-center {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* =========================================
   FEATURED PROJECTS
========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.project-card.full-width {
  grid-column: 1 / -1;
}

.project-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(11, 31, 58, 0.95));
  padding: 2rem 1.5rem 1.5rem;
  color: var(--white);
  transition: var(--transition);
}

.project-overlay h3 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.project-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--yellow);
  font-weight: 500;
}

/* =========================================
   WHY CHOOSE US
========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--navy);
  transform: translateY(-5px);
  background-color: var(--navy); 
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--navy);
  transition: var(--transition);
}

.feature-card p {
  color: var(--black);
  font-size: 0.95rem;
  transition: var(--transition);
}

.feature-card:hover h3, 
.feature-card:hover p {
  color: var(--white);
}

/* =========================================
   CALL TO ACTION
========================================= */
.cta-section {
  background: linear-gradient(rgba(11, 31, 58, 0.9), rgba(17, 17, 17, 0.9)), url('../images/hero.jpg') center/cover fixed;
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--white);
}

/* =========================================
   FOOTER (Strictly Navy)
========================================= */
footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--white);
  max-width: 300px;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

.footer-links ul a {
  color: var(--white);
  opacity: 0.8;
}

.footer-links ul a:hover {
  color: var(--green);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  opacity: 0.7;
  font-size: 0.875rem;
}

/* =========================================
   ANIMATIONS (Scroll Reveal)
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* =========================================
   EMDDA AI CHATBOT
========================================= */

.chatbot-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    font-family: inherit;
}


/* Floating button */

.chat-toggle {
    border: none;
    padding: 14px 20px;
    border-radius: 50px;

    background: #f4c400;
    color: #111;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);

    transition: 0.25s ease;
}

.chat-toggle:hover {
    transform: translateY(-2px);
}


/* Chat window */

.chat-window {
    position: absolute;

    right: 0;
    bottom: 70px;

    width: 370px;
    height: 540px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.20);

    overflow: hidden;

    display: none;

    flex-direction: column;
}

.chat-window.active {
    display: flex;
}


/* Header */

.chat-header {
    background: #0b1f3a;
    color: white;

    padding: 18px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header strong {
    display: block;
    font-size: 15px;
}

.chat-header span {
    display: block;

    margin-top: 4px;

    font-size: 12px;

    opacity: 0.7;
}

.chat-close {
    background: none;
    border: none;

    color: white;

    font-size: 26px;

    cursor: pointer;
}


/* Messages */

.chat-messages {
    flex: 1;

    padding: 18px;

    overflow-y: auto;

    background: #f7f8fa;
}


.bot-message,
.user-message {

    max-width: 82%;

    padding: 11px 14px;

    margin-bottom: 12px;

    border-radius: 12px;

    font-size: 14px;

    line-height: 1.5;
}

.bot-message {
    background: white;

    color: #222;

    border: 1px solid #e7e7e7;
}

.user-message {
    background: #0b1f3a;

    color: white;

    margin-left: auto;
}


/* Quick buttons */

.chat-quick-actions {

    padding: 10px 14px;

    display: flex;

    gap: 6px;

    flex-wrap: wrap;

    border-top: 1px solid #eee;
}

.chat-quick-actions button {

    background: white;

    border: 1px solid #d8d8d8;

    border-radius: 20px;

    padding: 7px 10px;

    font-size: 11px;

    cursor: pointer;
}

.chat-quick-actions button:hover {
    background: #f4c400;
    border-color: #f4c400;
}


/* Input */

.chat-input {

    display: flex;

    padding: 12px;

    gap: 8px;

    border-top: 1px solid #ddd;

    background: white;
}

.chat-input input {

    flex: 1;

    min-width: 0;

    padding: 11px 12px;

    border: 1px solid #ddd;

    border-radius: 8px;

    outline: none;

    font-family: inherit;
}

.chat-input input:focus {
    border-color: #0b1f3a;
}

.chat-input button {

    border: none;

    padding: 0 15px;

    border-radius: 8px;

    background: #f4c400;

    color: #111;

    font-weight: 600;

    cursor: pointer;
}


/* Mobile */

@media (max-width: 600px) {

    .chatbot-container {
        right: 15px;
        bottom: 15px;
        left: 15px;
    }

    .chat-window {

        right: 0;

        width: 100%;

        height: 70vh;

        bottom: 65px;
    }

    .chat-toggle {
        margin-left: auto;
        display: block;
    }

}