/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Color Variables */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Light Blue Branding Palette */
    --bg-color: #f0f4f8;
    --text-color: #1e293b;
    --text-muted: #57687e;
    --primary-color: #1565c0;
    --primary-hover: #0b3c91;
    --primary-rgb: 21, 101, 192;
    --accent-color: #a1e535;
    --accent-hover: #86bf28;
    --nav-bg: rgba(21, 101, 192, 0.9); /* Transparent bright blue for modern glassmorphism */
    --nav-text: #ffffff;
    --nav-border: rgba(161, 229, 53, 0.4);
    --card-bg: #ffffff;
    --card-border: #d0e2ff;
    --card-shadow: 0 10px 30px -10px rgba(13, 71, 161, 0.08), 0 1px 3px rgba(0, 0, 0, 0.01);
    --card-shadow-hover: 0 20px 40px -15px rgba(13, 71, 161, 0.18), 0 1px 10px rgba(0, 0, 0, 0.05);
    --footer-bg: #0d47a1;
    --footer-text: #f1f5f9;
    --footer-border: #0b3c91;
    --scrollbar-bg: #e2e8f0;
    --scrollbar-thumb: #94a3b8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Glassmorphism Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    max-width: 250px;
    opacity: 1;
    overflow: hidden;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

@media (min-width: 992px) {
    .navbar.scrolled {
        top: 15px;
        width: 90%;
        max-width: fit-content;
        border-radius: 50px;
        padding: 0.5rem 1.5rem;
        background-color: rgba(13, 71, 161, 0.95);
        border: 1px solid var(--nav-border);
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    }

    .navbar.scrolled .logo {
        max-width: 0;
        opacity: 0;
        margin-right: 0;
        pointer-events: none;
    }
}

@media (max-width: 991px) {
    .navbar.scrolled {
        background-color: rgba(21, 101, 192, 0.95);
        padding: 0.4rem 1.5rem;
    }
}

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

.nav-links li a {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Sliding hover line indicator */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links li a:hover::after,
.nav-links li a.active-nav-link::after {
    width: 80%;
    left: 10%;
}

.nav-links li a:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px) scale(1.05);
}

.nav-links li a.active-nav-link {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--nav-text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hamburger animations */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5.5px, 5.5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
}



/* Scroll Reveal Animations styling */
.reveal-init {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

.reveal {
    transform: translateY(40px);
}

.reveal-slide-left {
    transform: translateX(-50px);
}

.reveal-slide-right {
    transform: translateX(50px);
}

.reveal-scale {
    transform: scale(0.92);
}

.reveal-active {
    opacity: 1;
    transform: translate(0) scale(1) !important;
}

/* Back to Top Button */
#backToTopBtn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 999;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#backToTopBtn:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer modern styles */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--footer-border);
    transition: all 0.3s ease;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    background-color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.footer-link:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.footer-right {
    font-size: 0.85rem;
}

.footer-phone {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-phone:hover {
    color: var(--accent-color);
}

/* Add padding to body to prevent footer overlap */
body {
    padding-bottom: 70px;
}

/* Copyright Section Styling */
.cse-copyright {
    text-align: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid var(--card-border);
    margin-top: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 -5px 15px rgba(13, 71, 161, 0.02);
}

.cse-copyright:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    border-top-color: var(--accent-color);
    box-shadow: 0 -5px 20px rgba(13, 71, 161, 0.05);
}

@media (max-width: 768px) {
    .cse-copyright {
        font-size: 0.8rem;
        padding: 20px 15px;
        letter-spacing: 0.5px;
    }

    /* Stack footer elements vertically on mobile */
    .sticky-footer {
        padding: 12px 10px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        justify-content: center;
    }

    .footer-right {
        font-size: 0.8rem;
    }

    .footer-link {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    body {
        padding-bottom: 95px; /* Extra padding to prevent footer overlapping content on mobile */
    }
}

/* Mobile Navbar Styles override */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 1.5rem;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 1rem 0;
        z-index: 998;
        border-bottom: 1px solid var(--nav-border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        gap: 0.25rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links.show {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 0.55rem 0;
        width: 80%;
        margin: 0 auto;
        border-radius: 8px;
    }

    .nav-links li a::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }
    
    .theme-toggle {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .logo img {
        height: 38px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
