/* BASE STYLES & FONT */
body {
    margin: 0;
    font-family: 'Poppins', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    color: #0f172a;
}

html {
    scroll-behavior: smooth;
}



.header {
    width: 90%; 
    max-width: 1400px;
    margin: 15px auto 10px auto;  
    background-color: #ffffff !important; 
    position: sticky;
    top: 15px; 
    z-index: 9999; 
    transform: translateZ(0); 
    transition: all 0.4s ease, top 0.4s ease;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center; 
    border-radius: 40px; 
    box-shadow: 0 4px 40px rgba(0, 162, 255, 0.25), 0 0 15px rgba(0, 162, 255, 0.1);
}

.header:hover {
    box-shadow: 0 4px 40px rgba(0, 162, 255, 0.4), 0 0 15px rgba(0, 162, 255, 0.2);
}

/* Scrolled/Active State */
header.scrolled {
    background: rgba(0, 60, 140, 0.98); 
    top: 15px;
    box-shadow: 0 4px 40px rgba(0, 162, 255, 0.45);
    color: rgb(236, 230, 230);
    backdrop-filter: blur(25px);
}
/* Scrolled/Active State */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
}

/* Brand Styling */
.brand { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 45px; height: auto; }

.brand-name { 
    font-size: 1.7rem; 
    font-weight: 800; 
    letter-spacing: 1px;
    color: #0284c7; 
    transition: color 0.4s ease;
    text-decoration: none;
}
.header.scrolled .brand-name { color: #fff; }
.header.scrolled .nav-links a { color: #fff; } 

.brand-name .dot { color: #38bdf8; font-size: 2rem; }

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    flex: 2;
    justify-content: center;
}

.nav-links a {
    color: #0284c7; 
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease, transform 0.2s;
}
.nav-links a.scrolled {
    color: #f0eded;
    
}


.nav-links a:hover {
    color: #38bdf8;
    transform: scale(1.05); 
}
.header.scrolled .brand-name { 
    color: #ffffff; 
}

/* Hover underline animation */
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    border-radius: 2px;
    transition: width 0.35s ease;
}
.nav-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}
.nav-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
    color: #f0eded;
}

/* Active link */
.nav-links a.active {
    color: #38bdf8;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}


.cta-nav {
    background: #0284c7; 
    color: #fff !important; 
    padding: 7px 18px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
    transform: scale(1.03); 
    text-decoration: none;
}
.header.scrolled .cta-nav {
    background: #fff;
    color: #0284c7 !important;
}


.cta-nav:hover {
    background: #0369a1;
    box-shadow: 0 5px 15px rgba(2, 132, 199, 0.3);
    transform: translateY(-2px) scale(1.05); 
}


@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.header.scrolled .cta-nav {
    background: #fff; 
}
.cta-nav {
    animation: pulse 3s ease-in-out infinite;
    
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cta-nav {
    animation: pulse 3s ease-in-out infinite;
    
}


/* ---------- HAMBURGER MENU ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: #0284c7; 
    border-radius: 2px;
    transition: 0.3s;
}

.header.scrolled .bar {
    background-color: #fff; 
}

/* Hamburger transition/animation */
.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); }

/* ------------------------------------------------ */
/* GLOBAL ANIMATIONS */
/* ------------------------------------------------ */

/* Typing cursor animation */
@keyframes blink { 50% { opacity: 0; } }

/* Scroll indicator animation */
@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.4; }
    100% { top: 8px; opacity: 1; }
}


/* ------------------------------------------------ */
/* RESPONSIVENESS (Mobile & Tablet) */
/* ------------------------------------------------ */

@media (max-width: 1145px) {
    
    .header { width: 95%; top: 10px; height: 65px; margin: 10px auto; }
    .nav { padding: 0 1rem; }
    .brand-name { font-size: 1.5rem; }
    .headline { font-size: 2.2rem; }
    
    /* Navigation Hiding & Hamburger Display */
    .nav-links { display: none; } 
    .hamburger { display: flex; }

    /* Mobile Menu Display */
    .nav-links {
        position: absolute;
        top: 70px; 
        right: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 60, 140, 0.98);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        gap: 1.5rem;
        padding: 0;
        transition: max-height 0.4s ease;
        z-index: 499;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 20px 20px;
    }

    .nav-links.active {
        display: flex; 
        max-height: 400px;
        padding: 1.5rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        color: #fff; 
    }
    
    .nav-links a::after {
        background: linear-gradient(90deg, #38bdf8, #fff);
    }

    /* CTA in mobile menu */
    .cta-nav {
        background: #38bdf8; 
        color: #fff !important; 
    }
    .cta-nav:hover {
        background: #fff;
        color: #0284c7 !important;
        transform: scale(1.05);
    }
}

/* Smaller Mobile Screens */
@media (max-width: 500px) {
    .headline { font-size: 1.8rem; }
    .intro { font-size: 1rem; padding: 0 1rem; }
    .cta-btn { padding: 0.8rem 1.8rem; font-size: 1rem; }
}


/* ================= FOOTER ================= */
/* ================= FOOTER ================= */
.footer {
    background: #315b9e; 
    color: #f4f0f0; 
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-logo {
    width: 50px;
    height: auto;
}

.footer-brand h3 {
    color: #f4f0f0;
    margin: 0;
}

/* Links & Contact */
.footer-links,
.footer-contact,
.footer-social {
    flex: 1 1 200px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #e8e0e0; /* Soft blue accent */
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #f4f0f0; 
    text-decoration: none; 
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #0284c7; 
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color:  #f4f0f0;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #6d7eec;
}

/* Social Icons */
.footer-social .social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social .social-icons a img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(0.3); /* subtle icon */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-social .social-icons a:hover img {
    transform: scale(1.1);
    filter: brightness(0) invert(0.6);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #f4f0f0;
    border-top: 1px solid #cbd5e1;
    padding-top: 1rem;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 992px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand, 
    .footer-links,
    .footer-contact,
    .footer-social {
        align-items: center;
    }

    .footer-social .social-icons {
        justify-content: center;
    }
}
