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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar - Fixed at top */
.navbar {
    position: fixed; /* Changed from static to fixed */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s;
}

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

.logo-img {
    height: 75px; /* Reasonable size on desktop */
    width: auto;
    transition: height 0.3s;
}

/* Desktop Menu */
.desktop-menu a {
    color: #fff;
    margin-left: 30px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.desktop-menu a:hover {
    opacity: 0.8;
}

/* Hamburger Icon - visible only on mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu - smooth slide down */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1e3a8a;
    flex-direction: column;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    z-index: 999;
}

.mobile-menu a {
    color: #fff;
    padding: 18px;
    font-size: 1.3rem;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    max-height: 400px; /* Enough for all links */
    padding: 20px 0;
}

.mobile-menu.active a {
    opacity: 1;
}

/* Hamburger to X animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero - extra padding to avoid overlap with fixed navbar */
.hero {
    position: relative;
    background: url('bg.jpeg') center/cover no-repeat;
    height: 80vh;
    min-height: 600px;
    padding-top: 100px; /* Increased to account for fixed navbar */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
}

.hero-buttons .btn-primary {
    background: #3b82f6;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    margin-right: 20px;
}

.hero-buttons .btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
}

/* General Sections */
section {
    padding: 100px 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1e3a8a;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.service-card a {
    color: #3b82f6;
    font-weight: 600;
}

/* Portfolio Carousel */
.portfolio {
    padding: 100px 0;
    background: #f8fafc;
    text-align: center;
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-track img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: #fff;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Team & Testimonials */
.team-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.team-member img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
}

.testimonial {
    background: #f0f8ff;
    padding: 30px;
    border-radius: 10px;
}

/* CTA */
.cta-section {
    background: #1e3a8a;
    color: #fff;
    text-align: center;
}

.cta-section form {
    max-width: 600px;
    margin: 40px auto;
    display: grid;
    gap: 15px;
}

.cta-section input {
    padding: 15px;
    border-radius: 5px;
    border: none;
}

.cta-section a {
    color: #fff;
    text-decoration: underline;
}

/* Footer */
footer {
    background: #111;
    color: #aaa;
    padding: 40px;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons a {
        display: block;
        margin: 15px 0;
    }

    .desktop-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo-img {
        height: 45px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .prev { left: 10px; }
    .next { right: 10px; }
}

/* SEO Section */
.seo-section {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.seo-section .section-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    color: #555;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.seo-card {
    background: #f8fafc;
    padding: 40px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.seo-card:hover {
    transform: translateY(-10px);
}

.seo-card i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 20px;
}

.seo-card h3 {
    margin-bottom: 15px;
    color: #1e3a8a;
}

.seo-cta {
    margin-top: 40px;
}

.seo-cta p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #444;
}

.seo-cta .btn-primary {
    background: #3b82f6;
    color: #fff;
    padding: 18px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
}
