:root {
  --primary: #021D48;
  --accent: #09DD76; 
  --light-blue: #B0E4FA;
  --off-white: #f5f7fa;
  --warm-white: #EAE7E2;
  --dark: #1a1a1d;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--off-white);
  color: var(--dark);
}

header {
  background: var(--primary);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  height: 40px;
}

header h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 1px;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

nav a:hover {
  color: var(--accent);
}

/* --- Hamburger Icon Base Styles (Desktop Hidden) --- */
.hamburger-toggle {
    display: none; /* Hide on desktop */
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000; /* Ensure it is always on top */
}

/* Style for the new "Book an Appointment" button in the header */
.btn-appointment {
    background-color: var(--accent);
    color: var(--primary) !important; /* Force primary text color */
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 20px; 
}
.btn-appointment:hover {
    background-color: #07c96a;
    color: var(--primary) !important;
}
/* Ensure regular nav links maintain white color */
nav a:not(.btn-appointment) {
    /* Existing color: white; */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: 0.3s;
}

/* --- Hero Section Styles --- */
.hero {
  background: var(--primary);
  color: white;
  padding: 0; 
  text-align: center;
  position: relative;
  min-height: calc(85vh - 80px); 
}

.hero h2 {
  font-size: 48px;
  margin: 0 0 10px 0;
}

.hero p {
  font-size: 20px;
  margin-top: 0;
  color: var(--light-blue);
}

/* --- CTA Section Styles (Book Appointment) --- */
.cta-section {
    background-color: var(--primary); /* Dark blue background */
    color: white;
    text-align: center;
    padding: 80px 40px;
    border-radius: 10px;
    margin: 40px auto;
}
.cta-section h2 {
    font-size: 36px;
    margin-top: 0;
}
.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--light-blue);
}
.btn-primary-lg {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent); /* Bright accent color */
    color: var(--primary); 
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.btn-primary-lg:hover {
    background-color: #07c96a; /* Slightly darker hover color */
}

.section {
  padding: 60px 40px;
  max-width: 1100px;
  margin: auto;
}

/* --- Certified Experts Grid Styles --- */

.service-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* NEW STYLE: Centering and sizing for image logos (FIXED MARGIN) */
.expert-icon-wrap {
    text-align: center; 
    /* PC FIX: Stable pixel margin */
    margin-bottom: 20px; 
}
.expert-icon-wrap img {
    max-width: 150px;
    height: 90px;
    object-fit: contain;
}

.service-card h3 {
  margin-top: 0;
  color: var(--primary);
  text-align: center; 
  margin-bottom: 10px;
}

.service-card p {
    text-align: center; 
}

/* Certified Experts grid */
.certified-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* --- Footer Styles --- */

footer {
  background: var(--primary); /*change of dark to primary*/
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* --- Hero Slider Styles (FINAL, CONFIRMED APPROACH) --- */

.slider {
  position: relative;
  overflow: hidden;
  min-height: inherit; 
  height: 100%; 
}

.slide {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  
  z-index: 1; 
  opacity: 0;
  transition: opacity 1s ease-in-out; 
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 40px; 
  padding-bottom: 50px;

  color: white;
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: darken;
  background-color: rgba(0, 0, 0, 0.4); 
}

.slide.active {
  opacity: 1;
  position: relative; 
  z-index: 2; 
  height: auto;
  min-height: inherit; 
}

/* Unique Slide Background Images */
.slide-1 {
  background-image: url('./images/secure2.png');
}

.slide-2 {
  background-image: url('./images/inno1.png');
}

.slide-3 {
  background-image: url('./images/digital-tranform.png');
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: 0.3s;
}

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

/* --- What We Do (Services) Carousel Styles (Enhanced Boxes) --- */

.services-carousel {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scrollLoop 25s linear infinite;
}

.service-box-enhanced {
  min-width: 320px; 
  max-width: 370px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-image-container {
  position: relative;
  line-height: 0;
  height: 200px; 
  overflow: hidden;
}

.service-image-container img {
  width: 100%;
  height: 100%; 
  object-fit: cover; 
}

.service-category-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--dark); 
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  z-index: 10; 
}

.service-content {
  padding: 20px 30px;
  text-align: center;
}

.service-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
  text-decoration: none;
  transition: color 0.2s;
}

.service-title:hover {
  color: var(--accent);
}

.service-content p {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.4;
}

.btn-know-more {
  display: inline-block;
  padding: 8px 18px;
  margin-top: 10px;
  background-color: var(--primary); 
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-know-more:hover {
  background-color: var(--accent); 
}

/* --- Testimonials Carousel Styles */

.rotator {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rotator-card {
  position: absolute;
  width: 100%;
  max-width: 700px;
  padding: 24px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(2,29,72,0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-align: center;
}

.rotator-card.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.rotator-nav {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.rotator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(1,1,1,0.12);
  cursor: pointer;
}

.rotator-dot.active {
  background: var(--accent);
}

/* Testimonials Carousel (CSS Animated Scroll) */
.testimonials-carousel {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
}
.testimonials-track {
  display: flex;
  gap: 20px;
  animation: testimonialsScroll 30s linear infinite;
}
.testimonial-box {
  min-width: 280px;
  background: white;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.testimonial-box h4 {
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary);
}
@keyframes testimonialsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* --- Clients Carousel Styles --- */
.clients-carousel {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
}
.clients-track {
  display: flex;
  gap: 20px;
  animation: clientsScroll 30s linear infinite;
}
.client-box {
  min-width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.client-box img {
  width: 100%;
  max-width: 150px;
  height: auto;
}
@keyframes clientsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Carousel Keyframes (for continuous scrolling) --- */

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

/* Keeping these original scroll keyframes for completeness, although scrollLoop is being used for services */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.services-track {
 animation: scroll 25s linear infinite;
}

/* --- Media Queries for Mobile Responsiveness (Max Width: 600px) --- */

/* --- Media Queries for Mobile Responsiveness (Max Width: 600px) --- */

/* --- Media Queries for Mobile Responsiveness (Max Width: 600px) --- */

@media (max-width: 600px) {

    /* 1. Global Section Padding Adjustment */
    .section {
        padding: 40px 20px;
    }

    /* 2. Header: Change layout to space-between (Logo left, Icon right) */
    header {
        flex-direction: row; /* Keep content horizontal on one line */
        justify-content: space-between; /* CRITICAL: Logo left, Icon right */
        padding: 15px 20px;
        height: auto;
    }
    
    header h1 {
        margin: 0; /* Remove bottom margin */
    }

    /* 3. Navigation: Hide the desktop navigation */
    nav {
        /* CRITICAL: Hide by default on mobile */
        display: none; 
        position: absolute;
        top: 70px; /* Below the header */
        left: 0;
        width: 100%;
        background: var(--primary); /* Full background fill */
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        flex-direction: column;
        align-items: center;
        padding-bottom: 10px;
        z-index: 900;
    }

    /* 3. Navigation: Mobile Reset for Appointment Button */
nav a.btn-appointment {
    background: none; /* Remove background color */
    color: white !important; /* Reset text color to white */
    padding: 0; /* Remove padding */
    margin: 10px 0; /* Use standard mobile margin */
    font-size: 16px; 
    font-weight: normal;
}
    
    /* Make the links full width and stacked */
    nav a {
        display: block;
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }

    /* 4. Show the Hamburger Icon */
    .hamburger-toggle {
        display: block; 
    }
    
    /* State when menu is active (Toggled by JS) */
    nav.active {
        display: flex;
    }

    /* 5. Hero Section Adjustment */
    .hero {
        min-height: 400px;
    }
    .hero h2 {
        font-size: 32px;
    }

    /* 6. Certified Experts Grid Stacking (Single Column) */
    .certified-grid {
        grid-template-columns: 1fr;
    }
    .certified-grid .service-card {
        padding: 30px 20px;
    }
    .expert-icon-wrap {
        margin: 0 auto 20px auto; 
    }
    .expert-icon-wrap img {
        max-width: 100px; 
        height: auto;
    }
    
    /* 7. Carousel Width Adjustment */
    .service-box-enhanced {
        min-width: 280px;
        max-width: 90vw;
    }
    
    /* 8. Carousel Animation Speed */
    .carousel-track, .testimonials-track, .clients-track {
        animation-duration: 40s;
    }
    .testimonial-box {
        min-width: 250px;
    }
}