/* --- CSS Variables & Basic Setup --- */
:root {
    --bg-color: #111111;
    --light-bg-color: #1A1A1A; /* NEW light background */
    --text-color: #F5F5F5;
    --accent-color: #3BBBF8;
    --cta-accent-color: #3BBBF8;
    --grey-color: #888888;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}


/* --- Header & Navigation --- */
.main-header {
    padding: 2rem 0;
    position: relative; /* For z-index to work */
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    font-family: var(--font-heading);
}

.cta-button-nav {
    background-color: var(--accent-color);
    color: var(--bg-color) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button-nav:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.cta-button-main {
    background-color: #000000;
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button-main:hover {
    background-color: #222222;
    color: #ffffff;
}

/* --- Section Styling --- */
section {
    padding: 6rem 0;
    text-align: center;
    position: relative; /* For overlay and animations */
    overflow: hidden; /* Ensures content doesn't overflow during animation */
	font-size: 1.3rem;
}

.light-bg {
    background-color: var(--light-bg-color);
}

.section-title {
    font-size: 2rem;
    color: var(--grey-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4rem;
}

/* --- Hero Section with Background Image --- */
.hero {
    padding-top: 10rem; /* More space for hero */
    padding-bottom: 10rem;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Make hero taller */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for text readability */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    max-width: 20ch;
    margin: 0 auto 1.5rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 50ch;
    margin: 0 auto;
}

.intro {
    background-color: var(--light-bg-color);
}

.small-container {
    max-width: 800px;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}


/* --- Services Section --- */
.services-intro-image {
    margin-bottom: 4rem;
}
.services-intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: left;
}

.service-card {
    border-top: 2px solid var(--grey-color);
    padding-top: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* --- Process Section --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}
.process-step h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.process-step p {
    color: var(--grey-color);
}

/* --- NEW: Why Choose Section --- */
.why-choose {
    background-color: var(--bg-color); /* Back to main dark bg */
}
.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
    align-items: center;
}
.why-choose .section-title {
    margin-bottom: 3rem;
    text-align: left;
}
.reason-item {
    margin-bottom: 2.5rem;
}
.reason-item h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.reason-item p {
    color: var(--grey-color);
}
.why-choose-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Clients Section --- */
.clients {
    padding: 4rem 0;
}
.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    filter: grayscale(100%);
    opacity: 0.6;
}
.client-logos span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

/* --- Testimonial Section --- */
.testimonial blockquote {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 2rem;
    border: none;
    padding: 0;
}
.testimonial cite {
    font-style: normal;
    color: var(--grey-color);
    font-weight: 600;
}

/* --- NEW: Our Work Section --- */
.our-work {
    background-color: var(--light-bg-color); /* Lighter background */
}
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.work-item {
    text-align: center;
}
.work-item img {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures image covers area without distortion */
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.work-item h4 {
    font-size: 1.2rem;
    color: var(--text-color);
}


/* --- CTA Section --- */
.cta-section {
    background-color: var(--cta-accent-color);
}

.cta-section h2 {
    color: var(--bg-color);
    font-size: 3rem;
    margin-bottom: 2rem;
}



/* --- Footer --- */
.main-footer {
    padding: 3rem 0;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--grey-color);
}

.social-links a {
    color: var(--grey-color);
    margin-left: 1.5rem;
}
.social-links a:hover {
    color: var(--text-color);
}

/* --- Animation Classes --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation for items loaded initially (e.g., header/nav) */
.animate-on-load {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInSlideDown 0.6s ease-out forwards;
}

@keyframes fadeInSlideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Staggered delay for grid items */
.services-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.0s; }
.services-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.services-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }

.process-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.0s; }
.process-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.process-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.process-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

.why-choose-content .animate-on-scroll { /* For the text block */
    transition-delay: 0.0s;
}
.why-choose-image .animate-on-scroll { /* For the image beside text */
    transition-delay: 0.1s;
}

.work-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.0s; }
.work-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.work-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .why-choose .section-title,
    .why-choose-content {
        text-align: center;
    }
    .why-choose-image {
        order: -1; /* Image appears above content on mobile */
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem !important; }
    .hero .subtitle { font-size: 1.8rem; line-height:2.2rem; }
    .intro h2 { font-size: 3rem; }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .navbar {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .social-links a {
        margin: 0 0.5rem;
    }

    .client-logos {
        gap: 1.5rem;
    }

    .testimonial blockquote {
        font-size: 1.5rem;
    }
    .cta-section h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
    .nav-links {
        gap: 1rem;
    }
}


.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Each slide */
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);      /* start */
    transition: opacity 1s ease-in-out, transform 8s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.06);   /* slight zoom in */
}

/* Dark overlay */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

/* Text container */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: left;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

.hero-content.fade-out { opacity: 0; }
.hero-content.fade-in { opacity: 1; }

/* --- ARROWS --- */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
}

.hero-arrow.left { left: 30px; }
.hero-arrow.right { right: 30px; }

.hero-slider,
.hero-slide,
.hero-overlay,
.hero-arrow {
    z-index: 1; /* anything LESS than your header */
}

.main-header {
    position: relative;
    z-index: 9999;
}
/* ===== Header: keep it above everything and clickable ===== */
.main-header {
    position: fixed;      /* ensure header sits above page and receives clicks */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;      /* very high so nothing can cover it */
    background: rgba(17,17,17,0.85); /* optional: translucent bg so content scrolls under */
    backdrop-filter: blur(4px); /* optional */
}

/* push main content down so header doesn't overlap it */
main {
    margin-top: 88px; /* set to your header height (adjust if needed) */
}

/* ===== Make hero background layers non-interactive so they don't steal clicks ===== */
.hero-slider {
    pointer-events: none; /* make the big container ignore mouse events */
}

/* allow specific interactive parts of the hero to keep pointer events */
.hero-content,
.hero-arrow {
    pointer-events: auto; /* content & arrows remain clickable */
}

/* ensure only arrows and content are above the header if needed */
.hero-slider,
.hero-slide,
.hero-overlay {
    z-index: 1; /* background stack */
}

.hero-content { z-index: 3; }  /* text */
.hero-arrow   { z-index: 4; }  /* arrows */

/* ===== Fix: target the text in the slider correctly (applies your font-size changes) ===== */
.hero-slider .hero-content h1,
#hero-title {
    font-size: 4.5rem;    /* main hero title size (adjust) */
    max-width: 20ch;
    margin: 0 0 1.5rem;
}

.hero-slider .hero-content p,
#hero-subtitle {
    font-size: 1.25rem;   /* subtitle size (adjust) */
    color: #ffffff;
    max-width: 50ch;
}

/* responsive overrides (matches your breakpoints) */
@media (max-width: 768px) {
    #hero-title { font-size: 3rem !important; }
    #hero-subtitle { font-size: 1.1rem !important; }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #333;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
}

.contact-form textarea {
    min-height: 160px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent-color);
}

.contact-success {
    margin-top: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
    text-align: center;
}

/* HAMBURGER BUTTON */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 10000;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* HAMBURGER ANIMATED STATE */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* MOBILE MENU */
.nav-menu {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background: #111;
        width: 100%;
        flex-direction: column;
        padding: 1.5rem 0;
        gap: 1.5rem;
        text-align: center;
        display: none;
        z-index: 9998;
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}
section {
    scroll-margin-top: 120px; /* adjust for your header height */
}

/* ============================
   DROPDOWN MENU STYLING
============================ */

.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;          /* starts flush at bottom of toggle — no gap */
    left: 0;
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    min-width: 220px;
    display: none;
    flex-direction: column;
    padding: 0.75rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    z-index: 99999;
}

/* Invisible bridge: fills the space between the toggle and the menu
   so the hover state is never broken when moving the mouse downward */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #fff;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: #222;
}

/* Hover for desktop */
.nav-dropdown:hover > .dropdown-menu {
    display: flex;
}

/* ----------- Mobile Support ----------- */

@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        border: none;
        background: #111;
        box-shadow: none;
        display: none; /* hidden until tap */
    }

    /* Remove the bridge pseudo-element on mobile — not needed */
    .dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: flex;
    }

    .dropdown-toggle::after {
        content: " ▾";
        float: right;
    }

    .hero-arrow {
        display: none;
    }
}

/* ==========================
   CLEAN UNIFIED CONTACT FORM
========================== */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 2rem;
}

/* Unified Inputs */
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    background: #141414;
    color: grey !important;   /* UNIFIED TEXT COLOR */
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.25s ease;
}

/* Placeholder now same color but lighter opacity */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-color);
    opacity: 0.55;
}

/* Focus state */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
	color: grey !important;
}

/* Section Label */
.form-section-title {
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;      /* MATCHING SIZE */
    color: grey !important;
    margin-bottom: 0.5rem;
}

/* Checkbox Container */
.checkbox-group {
    display: grid;
    gap: 0.9rem;
    padding: 1.2rem;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

/* Checkbox Label Text */
.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;        /* MATCHED SIZE */
    color: grey !important;  /* MATCHED COLOR */
    cursor: pointer;
}

/* Custom Checkbox */
.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #111;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #111;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Captcha Styling */
.captcha-group {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.captcha-group label {
    font-size: 0.95rem;        /* MATCHED SIZE */
    color: grey !important;  /* MATCHED COLOR */
}

.cta-button-form {
    background-color: var(--accent-color);
    color: #ffffff;                /* WHITE text */
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease;
    
    align-self: center;            /* CENTER BUTTON */
    text-align: center;
}

.cta-button-form:hover {
    background-color: #5fd1ff;
    transform: translateY(-3px);
}



/* ===== Testimonial Fade Slider ===== */

.testimonial-slider {
    position: relative;
    min-height: 160px;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.testimonial-item.active {
    opacity: 1;
    position: relative;
}