/* --- General Styles & Variables --- */
:root {
    --primary-blue: #0a2f51; /* Deep Bay Blue */
    --secondary-sand: #f0e6d2; /* Sandy Beige */
    --accent-green: #7a9d96; /* Muted Sea Grass */
    --text-light: #ffffff;
    --text-dark: #333333;
    --font-heading: 'Merriweather', serif; /* Or your chosen heading font */
    --font-body: 'Open Sans', sans-serif;   /* Or your chosen body font */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    /* padding: 0; REMOVE this if you use padding-top below */
    background-color: #fdfcf9; /* Off-white, very light sand */
    padding-top: 70px; /* ADD THIS: Offset for fixed navbar. Adjust 70px to your navbar's actual height. */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0; /* This is for general content sections */
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
}

h1 { font-size: 2.8em; margin-bottom: 0.5em; }
h2 { font-size: 2.2em; margin-bottom: 1em; text-align: center; padding-top: 40px;}
h3 { font-size: 1.6em; margin-bottom: 0.7em; }
h4 { font-size: 1.2em; margin-bottom: 0.5em; color: var(--accent-green); }

/* --- Navbar --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly less transparent for better readability */
    padding: 0.5em 0; /* Adjust vertical padding if needed */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0; /* Ensure it spans full width */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* transition: top 0.3s; /* Keep if using hide-on-scroll JS */
}

.navbar .container { /* Container specific to navbar for its own padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%; /* Consistent with your main .container */
    max-width: 1100px; /* Consistent with your main .container */
    margin: 0 auto; /* Center it */
    padding: 0 15px; /* Horizontal padding inside the navbar */
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 0.5em 0; /* Vertical padding for the logo itself */
}

/* Desktop Navigation Links styling */
.navbar nav.nav-links ul { /* Added .nav-links for specificity if your nav tag has that class */
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* This makes it horizontal for desktop */
}

.navbar nav.nav-links ul li {
    margin-left: 20px;
}

.navbar nav.nav-links ul li a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    padding: 1em 0.5em; /* Clickable area */
    display: block;
    transition: color 0.3s ease;
}

.navbar nav.nav-links ul li a:hover,
.navbar nav.nav-links ul li a.active { /* Assuming .active is for current page */
    color: var(--accent-green);
}

/* ==== HAMBURGER TOGGLE BUTTON (Styles for the button itself) ==== */
/* --- ADD THIS ENTIRE SECTION (OR ENSURE IT EXISTS AND IS CORRECT) --- */
.nav-toggle {
    display: none; /* CRITICAL: Hides the hamburger button on desktop by default */
    background: transparent;
    border: 0;
    padding: 0.5em;
    cursor: pointer;
    z-index: 1001;
}

.hamburger { /* This is the span inside the button */
    display: block;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    background-color: var(--primary-blue);
    width: 2em;
    height: 3px;
    border-radius: 1px;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    bottom: 7px;
}

.hamburger::after {
    top: 7px;
}
/* --- END OF SECTION TO ADD/VERIFY --- */


/* --- Hero Section --- */
/* ... your existing hero styles ... */
.hero-section {
    background-image: url('../imgs/it_banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    text-align: center;
    padding: 150px 0 100px; /* This padding might be affected by body padding-top, check layout */
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ... rest of hero styles ... */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 47, 81, 0.5);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-section h1 {
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ... (Your CTA, Services, Value Prop, About, Contact, Footer sections - keep as is) ... */
.cta-button, .cta-button-nav {
    background-color: var(--accent-green);
    color: var(--text-light);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.cta-button:hover {
    background-color: #648880;
    transform: translateY(-2px);
}
.cta-button-nav {
    padding: 8px 15px;
    font-size: 0.9em;
}
.services-section {
    padding: 60px 0;
    background-color: var(--secondary-sand);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.service-item {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}
.service-item h3 {
    color: var(--primary-blue);
}
.tech-stack {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--primary-blue);
}
.value-prop-section {
    padding: 60px 0;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.value-item {
    text-align: center;
    padding: 20px;
}
.value-item i {
    font-size: 2.5em;
    color: var(--accent-green);
    margin-bottom: 15px;
}
.about-snippet-section {
    padding: 60px 0;
    background-color: var(--secondary-sand);
    text-align: center;
}
.about-snippet-section p {
    max-width: 700px;
    margin: 0 auto 20px auto;
}
.contact-section {
    padding: 60px 0;
    background-color: var(--primary-blue);
    color: var(--text-light);
}
.contact-section h2 {
    color: var(--text-light);
}
.contact-section p {
    text-align: center;
    margin-bottom: 30px;
}
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 15px;
}
#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--secondary-sand);
    border-radius: 5px;
    background-color: rgba(255,255,255,0.9);
    color: var(--text-dark);
    box-sizing: border-box;
}
#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #888;
}
#contact-form button {
    justify-self: center;
}
.alt-contact {
    text-align: center;
    margin-top: 20px;
}
.alt-contact a {
    color: var(--secondary-sand);
    text-decoration: underline;
}
.footer-section {
    background-color: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}
.footer-section p {
    margin: 5px 0;
}
.footer-section a {
    color: var(--secondary-sand);
    text-decoration: none;
}
.footer-section a:hover {
    text-decoration: underline;
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .navbar nav.nav-links ul li a {
        color: var(--text-light);

        }

    /*
        Your original responsive rule for .navbar .container { flex-direction: column; }
        has been removed here to allow the logo and hamburger to align on the same row.
        If you had other reasons for it, you might need to adjust.
    */
    /* .navbar .container {
        flex-direction: column; // This was in your original, consider if still needed with hamburger
    } */


    /* --- ENSURE THIS SECTION FOR MOBILE NAVBAR IS CORRECT AND COMPLETE --- */
    .nav-toggle { /* This was already in your mobile section, ensure it's just display:block */
        display: block; /* hides hamburger on mobile */
        /* Other .nav-toggle styles (background, border, padding, etc.) are defined globally */
    }

    /* Styles for the hamburger SPANs and animations are defined globally and apply here too */
    /* Hamburger icon animation to "X" when menu is open */
    .nav-toggle[aria-expanded="true"] .hamburger {
        transform: rotate(45deg);
    }
    .nav-toggle[aria-expanded="true"] .hamburger::before {
        opacity: 0;
    }
    .nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-90deg) translateX(3px) translateY(-3px);
    }


    /* Styles for the .nav-links container (the <nav> element) on mobile */
    .nav-links {
        position: absolute;
        top: 100%; /* Position below the navbar */
        left: 0;
        width: 100%;
        background-color: var(--primary-blue); /* Mobile menu background */
        overflow: hidden;
        max-height: 0; /* Collapsed by default */
        visibility: hidden;
        transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                    visibility 0.1s linear 0.3s,
                    padding 0.4s ease;
        box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    }

    .nav-links.nav-open { /* When JS adds .nav-open class */
        max-height: 500px; /* Adjust if your menu is taller */
        visibility: visible;
        padding: 0.5em 0;
        transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                    visibility 0.1s linear,
                    padding 0.5s ease;
    }

    /* Styling for the list and items inside the mobile dropdown */
    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-links ul li {
        margin: 0;
        width: 100%;
        text-align: left;
    }

    .nav-links ul li a {
        color: var(--text-light); /* << ENSURE THIS MAKES TEXT READABLE AGAINST --primary-blue BACKGROUND */
        display: block;
        padding: 0.9em 1.5em;
        width: 100%;
        border-bottom: 1px solid rgba(var(--secondary-sand), 0.15);
        box-sizing: border-box;
        text-decoration: none;
    }

    .nav-links ul li:last-child a {
        border-bottom: none;
    }

    .nav-links ul li a:hover,
    .nav-links ul li a:focus {
        background-color: var(--secondary-sand);
        color: var(--text-light); /* Ensure hover text is also readable */
    }
    /* --- END OF MOBILE NAVBAR SECTION --- */


    /* Optional: Prevent body scroll when mobile menu is open */
    body.mobile-nav-active {
        overflow: hidden;
    }

    .hero-section { /* Your existing rule - ensure padding is sufficient */
        padding: 120px 20px 80px;
        min-height: 60vh;
    }
}


/* --- Legal & Content Page Styles --- */
/* ... your existing legal page styles ... */
.content-page-container {
    padding-top: 100px; /* This might also need adjustment based on body padding-top and navbar height */
    padding-bottom: 60px;
    background-color: var(--text-light);
    color: var(--text-dark);
    min-height: 70vh;
}
/* ... rest of legal styles ... */
.content-page-container .container {
    max-width: 800px;
}
.content-page-container h1 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
}
.content-page-container h2 {
    color: var(--primary-blue);
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-sand);
    padding-bottom: 5px;
    text-align: left;
}
.content-page-container h3 {
    color: var(--accent-green);
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
}
.content-page-container p,
.content-page-container ul,
.content-page-container ol {
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: justify;
}
.content-page-container ul,
.content-page-container ol {
    margin-left: 20px;
}
.content-page-container a {
    color: var(--accent-green);
    text-decoration: underline;
}
.content-page-container a:hover {
    color: var(--primary-blue);
}
.last-updated {
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
    color: #777;
}

/* ==== BACK TO TOP BUTTON ==== */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999; /* Ensure it's above most other content, but below modals if any */

    background-color: var(--primary-blue); /* Use your theme color */
    color: var(--text-light);
    border: none;
    border-radius: 50%; /* Makes it circular */
    width: 50px;  /* Adjust size as needed */
    height: 50px; /* Adjust size as needed */
    padding: 0; /* Reset padding if any from general 'a' styles */

    display: none; /* HIDDEN BY DEFAULT - JS will show it */
    /* For smooth fade-in/out (alternative to display:none/block) */
    /* opacity: 0; */
    /* visibility: hidden; */

    justify-content: center; /* For flex, to center icon */
    align-items: center;    /* For flex, to center icon */
    text-decoration: none;
    font-size: 1.2em; /* Size of the arrow icon */

    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}

.back-to-top-btn:hover,
.back-to-top-btn:focus {
    background-color: var(--accent-green); /* Hover color */
    color: var(--text-light);
    outline: none;
    transform: translateY(-3px);
}

/* Class to make the button visible - toggled by JavaScript */
.back-to-top-btn.visible {
    display: flex; /* Or 'inline-flex' or 'block' depending on how you center the icon */
    /* For smooth fade-in/out */
    /* opacity: 1; */
    /* visibility: visible; */
}