/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 3000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .container { position: relative; }

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

/* Active link underline for desktop and mobile */
.nav-links a.active {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
    padding-bottom: calc(0.25rem - 1px);
}

/* Hamburger (hidden by default) */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    position: relative;
    z-index: 2001;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.hamburger .hamburger-box {
    display: inline-block;
    width: 28px;
    height: 18px;
    position: relative;
}
.hamburger .hamburger-inner,
.hamburger .hamburger-inner::before,
.hamburger .hamburger-inner::after {
    width: 28px;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger .hamburger-inner { top: 8px; }
.hamburger .hamburger-inner::before { content: ''; top: -7px; }
.hamburger .hamburger-inner::after { content: ''; top: 7px; }

/* Collision-based compact mode: show hamburger, hide normal links */
.navbar.compact .nav-links {
    display: none;
}
.navbar.compact .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback for very narrow screens */
@media (max-width: 950px) {
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-links {
        display: none !important;
    }
    .nav-links.open {
        display: flex !important;
    }
}

/* When hamburger toggles the menu open */
.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 90vw;
    max-width: 90vw;
    margin-top: 0.5rem;
    background: white;
    color: #1e3c72;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    gap: 0;
    z-index: 2000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

.nav-links.closing {
    animation: slideUp 0.3s ease-out forwards;
}
.nav-links.open li {
    list-style: none;
    border-bottom: 1px solid #eee;
}
.nav-links.open li:last-child { border-bottom: none; }
.nav-links.open a {
    color: #1e3c72;
    padding: 1rem 0;
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-links.open a:hover {
    color: #2a5298;
}
.nav-links.open a.active {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
    padding-bottom: calc(1rem - 2px);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) no-repeat center / cover;
    background-image: url('../images/hero-background.JPEG');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    color: white;
    padding: 6rem 0;
    text-align: center;
    min-height: 35vh;

}

/* white transparent overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
}

/* keep hero content above overlay */
.hero>* {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #ffd700;
    color: #1e3c72;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: #2a5298;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* About Section */
.about {
    padding: 4rem 0;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 2rem;
}

.about p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.35);
}

.stat h4 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #ffd700;
    font-weight: bold;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 1050px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services h2, .about h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

/* Small screens */
@media (max-width: 500px) {
    .logo {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar .container {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }

    .hero {
        padding: 3rem 0;
        min-height: 36vh;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Active Navigation Link */
.nav-links a.active {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 0.25rem;
}

/* Animated Stats */
.stat {
    opacity: 0;
    transform: translateY(60px);
}

.stat.animated {
    animation: slideUpFade 0.8s ease-out forwards;
}

.stat.animated:nth-child(1) {
    animation-delay: 0s;
}

.stat.animated:nth-child(2) {
    animation-delay: 0.2s;
}

.stat.animated:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility: Focus Visible */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #2a5298;
    outline-offset: 2px;
}