/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0052cc; /* A strong, corporate blue */
    --primary-hover-color: #0041a3;
    --text-color-dark: #1a202c;
    --text-color-light: #ffffff;
    --background-color: #ffffff;
    --border-color: #e2e8f0;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color-dark);
    overflow-x: hidden;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header, Video Banner & Navigation --- */
header {
    position: relative;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    text-align: center;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.7); /* Dark blue overlay */
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* This now separates logo from navbar-right */
    align-items: center;
    padding: 1rem 2rem;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 2rem;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevents logo from shrinking */
}

.logo-image {
    height: 40px; /* Adjust height as needed */
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-image {
    transform: scale(1.05);
}

/* NEW: Container for all right-side nav elements */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.navbar.scrolled .nav-link {
    color: var(--text-color-dark);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* This is no longer needed */
/* .nav-item-icon:first-of-type { ... } */

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

.nav-cta {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--primary-hover-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color-light);
    transition: all 0.3s ease-in-out;
}

.navbar.scrolled .bar {
    background-color: var(--text-color-dark);
}

.hero-content {
    max-width: 900px;
    padding: 1rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
    font-weight: 800; /* Extra-bold */
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-cta {
    background-color: var(--text-color-light);
    color: var(--text-color-dark);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-cta:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

/* --- Main Content & Sections --- */
main {
    background-color: var(--background-color);
}

section {
    padding: 3rem 2rem; /* Reduced from 6rem to 3rem to close the gap */
    max-width: 1500px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

section > p {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 2rem auto; /* Reduced bottom margin from 4rem to 2rem */
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Feature Grid (Services) --- */
.feature-grid {
    display: grid;
    gap: 3rem; /* Reduced from 5rem to 3rem */
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem; /* Reduced from 3rem to 2rem */
    align-items: center;
}

.feature-item:nth-child(even) {
    grid-template-areas: "image text";
}

.feature-item:nth-child(odd) {
    grid-template-areas: "text image";
}

.feature-text { 
    grid-area: text; 
}

.feature-image { 
    grid-area: image; 
}

.feature-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.feature-text p {
    line-height: 1.7;
}
.feature-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* --- Team Section --- */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem; /* Reduced from 4rem to 2rem */
}

.team-member {
    text-align: center;
    max-width: 400px;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    background-color: #f0f0f0;
}

.team-member h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.team-member p { font-size: 1rem; line-height: 1.5; }

/* --- Contact Form --- */
.contact-section { background-color: #f8fafc; }

form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 2rem auto 0 auto;
}

input, textarea {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}
input:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    border-color: var(--primary-color);
}

button {
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.3s;
}
button:hover { background: var(--primary-hover-color); }

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--text-color-dark);
    color: #a0aec0;
}

/* --- Responsive Media Queries --- */
@media(max-width: 1024px) { /* NEW breakpoint for tablet */
    .nav-menu {
        display: none; /* Hide the menu on tablet and below */
    }
    .nav-cta {
        display: none; /* Hide CTA button as well */
    }
    .hamburger {
        display: block; /* Show hamburger on tablet and below */
    }
    
    .nav-menu.active { /* This is the slide-out menu style */
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: var(--background-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        gap: 2rem;
    }

    .nav-menu.active .nav-link {
        color: var(--text-color-dark);
        font-size: 1.5rem;
    }
}

@media(max-width: 900px) {
    .feature-item,
    .feature-item:nth-child(even),
    .feature-item:nth-child(odd) {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "text";
        text-align: center;
    }
}

@media(max-width: 768px) {
    /* Hamburger styles for active state */
    .hamburger { z-index: 101; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hamburger.active .bar { background-color: var(--text-color-dark); }
}