/*
   Header & Navigation Styling
   Sticky Header with Glassmorphism Effect
   */

:root {
    --background-color: #eef0f5;
    /* A light, soft off-white instead of pure white */
    --primary-color: #071A2F;
    /* Deep Space Blue */
    --primary-rgb: 7, 26, 47;
    --secondary-color: #0F3B5A;
    --accent-color: #00E6D6;
    /* Digital Mint / Electric Cyan */
    --accent-rgb: 0, 230, 214;
    --button-text: white;
    --glass-bg: rgba(7, 26, 47, 0.75);
    /* primary-colored glass */
    --glass-blur: 14px;
}

/* Sticky Header with Glassmorphism */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.18), var(--glass-bg));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 40px rgba(2, 6, 12, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    height: 5rem;
}

/* Logo Section - Top Left Position */
.logo-section {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 1rem;
}

.logo-section img {
    width: 65px;
    height: 65px;
    border-radius: 50dvh;
    object-fit: cover;
    transition: transform 0.28s cubic-bezier(.2, .9, .3, 1), box-shadow 0.28s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 18px rgba(var(--accent-rgb), 0.06) inset;
}

.logo-section img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(59, 70, 151, 0.5);
}

.logo-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    /* display: none; */
}

/* Navigation */

.nav-wrapper {
    display: flex;
    gap: 35px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a,
nav .dropdown-toggle {
    text-decoration: none;
    color: var(--background-color);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.22s ease, transform 0.22s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    cursor: pointer;
    border: none;
    background: none;
}

nav a.active {
    color: var(--accent-color);
}

nav a:hover,
nav .dropdown-toggle:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Underline Animation */
nav a::after,
nav .dropdown-toggle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background: linear-gradient(90deg, var(--accent-color), rgba(var(--accent-rgb), 0.6));
    transition: width 0.3s ease;
}

nav a:hover::after,
nav .dropdown-toggle:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle .dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content li {
    padding: 0;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease, border-left-color 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
    padding-left: 25px;
}

/* Section Divider in Dropdown */
.dropdown-section {
    padding: 8px 20px;
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.dropdown-section:first-child {
    margin-top: 0;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

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

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

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

/* ============================================
   Responsive Design
   ============================================ */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo-section {
        padding: 15px;
        order: 1;
    }

    .logo-section img {
        width: 50px;
        height: 50px;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    nav {
        order: 3;
        width: 100%;
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease-out;
    }

    nav.active {
        grid-template-rows: 1fr;
    }

    .nav-wrapper {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav.active .nav-wrapper {
        padding: 20px 0;
    }

    nav a {
        width: 100%;
        padding: 12px 20px;
        text-align: left;
    }

    nav a::after {
        bottom: -4px;
    }

    .dropdown-content {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        background: rgba(59, 70, 151, 0.6);
        box-shadow: none;
        border: none;
        padding: 0;
        transform: translateY(0);
        transition: all 0.3s ease;
    }

    .dropdown:hover .dropdown-content,
    .dropdown-content.active {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        padding: 10px 0;
    }

    .dropdown-content a {
        padding: 10px 30px;
        font-size: 14px;
    }

    .dropdown-content a:hover {
        padding-left: 35px;
    }
}

@media (max-width: 768) {
    .dropdown-content {
        visibility: visible;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    header {
        padding: 12px 15px;
        /* flex-direction: column; */
        align-items: flex-start;
    }

    .logo-section {
        width: 100%;
        padding: 12px;
    }

    .logo-section img {
        width: 45px;
        height: 45px;
    }

    .hamburger {
        position: absolute;
        right: 15px;
        top: 12px;
    }

    nav {
        gap: 8px;
    }

    nav a {
        font-size: 14px;
        padding: 10px 0;
    }

    .dropdown-content {
        min-width: 200px;
        visibility: visible;
    }

    .dropdown-content a {
        padding: 8px 25px;
        font-size: 13px;
    }
}

/* ============================================
   Footer Styling - Professional Design
   ============================================ */

footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(7, 26, 47, 0.95) 100%);
    color: white;
    padding: 60px 0 40px;
    margin-top: 100px;
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
    position: relative;
    bottom: 0;
    width: 100%;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), rgba(var(--accent-rgb), 0.3));
}

.footer-section>p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Footer Links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.footer-links li a::before {
    content: '→';
    opacity: 0;
    margin-right: 8px;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-links li a:hover {
    color: var(--accent-color);
    padding-left: 20px;
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Social Links - Professional Design */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(var(--accent-rgb), 0.12);
    border: 2px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 50%;
    color: var(--accent-color);
    transition: color 0.3s cubic-bezier(0.23, 1, 0.320, 1), border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-decoration: none;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.2);
}

.social-icon:hover::before {
    opacity: 0.15;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: stroke 0.3s ease;
}

/* Footer Bottom */
.footer-bottom {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    letter-spacing: 0.5px;
}

/* ============================================
   Footer Responsive Design
   ============================================ */

@media (max-width: 768px) {
    footer {
        padding: 50px 0 30px;
        margin-top: 80px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer-section>p {
        font-size: 14px;
    }

    .social-links {
        justify-content: center;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links li a {
        justify-content: center;
        font-size: 14px;
    }

    .footer-bottom {
        padding: 25px 15px 0;
    }

    .footer-bottom p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 40px 0 25px;
        margin-top: 60px;
    }

    .footer-content {
        gap: 35px;
        padding: 0 10px;
    }

    .footer-section h3 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .footer-section>p {
        font-size: 13px;
        line-height: 1.6;
    }

    .footer-section h3::after {
        width: 30px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon svg {
        width: 17px;
        height: 17px;
    }

    .social-links {
        gap: 12px;
    }

    .footer-bottom {
        padding: 20px 10px 0;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    header {
        position: static;
    }

    footer {
        background: white;
        color: #333;
        border: 1px solid #ddd;
    }

    .footer-section h3 {
        color: #333;
        border-bottom: 2px solid #ddd;
    }

    .footer-section h3::after {
        display: none;
    }

    .social-icon {
        display: none;
    }

    .footer-links li a {
        color: #333;
    }

    .footer-bottom p {
        color: #666;
    }
}


/* custom animations */

/* Elements will have this class by default */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* This class will be added via JavaScript when scrolled into view */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* reveal card */

.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    /* Use the variable, or default to 0ms */
    transition-delay: var(--delay, 0ms);
}

.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   GSAP Animated Background
   ============================================ */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    /* Behind everything */
    overflow: hidden;
    background-color: var(--background-color);
    pointer-events: none;
    /* Let clicks pass through */
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    width: 50vmin;
    /* Responsive size */
    height: 50vmin;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .blob {
        filter: blur(50px);
        opacity: 0.3;
    }
}