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

:root {
    --primary: #0057D8;
    --navy: #002d5c;
    --navy-dark: #0d1b2a;
    --purple: #330066;
    --text-main: #333333;
    --text-muted: #666666;
    
    /* Spacing */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;
    --space-8: 120px;

    /* Border Radius */
    --br-card: 24px;
    --br-btn: 14px;
    --br-input: 16px;
    --br-section: 32px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: #f8fafc;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sub-heading {
    font-size: 24px;
    font-weight: 500;
}

.body-text {
    font-size: 18px;
}

.small-text {
    font-size: 15px;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.glass-dark {
    background: rgba(13, 27, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 87, 216, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.custom-cursor.hover {
    width: 80px;
    height: 80px;
    background: rgba(0, 87, 216, 0.1);
    mix-blend-mode: multiply;
}

.custom-cursor.hover::after {
    content: attr(data-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
}
.custom-cursor-follower.hover {
    width: 80px;
    height: 80px;
    border-color: transparent;
}

/* Utilities */
.container-max {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* --- Components --- */

/* Header & Nav */
.top-bar-modern {
    background: var(--primary);
    color: #fff;
    padding: var(--space-1) 0;
    font-size: 14px;
    position: relative;
    z-index: 1000;
}
.top-bar-modern a { color: #fff; text-decoration: none; transition: opacity 0.3s; }
.top-bar-modern a:hover { opacity: 0.8; }

.navbar-modern {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}
.navbar-modern.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.95);
}

.nav-link-modern {
    color: var(--navy);
    font-weight: 500;
    position: relative;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}
.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav-link-modern:hover::after, .nav-link-modern.active::after {
    width: 80%;
}
.nav-link-modern:hover, .nav-link-modern.active {
    color: var(--primary);
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #fff !important;
    border-radius: var(--br-btn);
    padding: 10px 24px !important;
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 87, 216, 0.3);
}
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--purple), var(--primary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.btn-premium:hover::before { opacity: 1; }
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 87, 216, 0.4);
}

/* Hero Section */
.hero-premium {
    height: 80vh;
    min-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}
.hero-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1.05);
    transition: transform 10s linear;
}
.hero-premium:hover .hero-bg-img {
    transform: scale(1);
}
.hero-gradient-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgb(13 27 42 / 58%) 0%, rgb(13 27 42 / 0%) 100%);
    z-index: 1;
}
.hero-mesh {
    position: absolute;
    top: -50%; right: -20%;
    width: 1000px; height: 1000px;
    background: radial-gradient(circle, rgba(0,87,216,0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: 2;
    animation: float 20s infinite alternate ease-in-out;
}
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-100px, 50px) rotate(10deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    padding-top: var(--space-7);
}
.hero-title {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: var(--space-3);
    background: linear-gradient(to right, #fff, #d2d9e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 24px;
    color: #c8d0dc;
    max-width: 600px;
    margin-bottom: var(--space-4);
}

/* Feature Cards (Floating) */
.features-container {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}
.feature-card-premium {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,1);
    border-radius: var(--br-card);
    padding: var(--space-4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.feature-card-premium::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.feature-card-premium:hover {
    transform: translateY(-15px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 30px 60px rgba(0, 87, 216, 0.15);
}
.feature-card-premium:hover::before {
    transform: scaleX(1);
}
.feature-icon-wrapper {
    width: 64px; height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,87,216,0.1), rgba(51,0,102,0.1));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-3);
    color: var(--primary);
    font-size: 28px;
    transition: transform 0.5s ease;
}
.feature-card-premium:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #fff;
}

/* About Section */
.about-premium {
    padding: var(--space-8) 0;
    position: relative;
}
.about-img-wrapper {
    position: relative;
    border-radius: var(--br-section);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.about-img-wrapper img {
    width: 100%; height: auto;
    transition: transform 0.8s ease;
}
.about-img-wrapper:hover img {
    transform: scale(1.05);
}
.about-shape {
    position: absolute;
    bottom: -30px; right: -30px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}
.section-heading {
    font-size: 48px;
    color: var(--navy);
    margin-bottom: var(--space-3);
}

.about-feature-item {
    background: #fff;
    padding: var(--space-3);
    border-radius: var(--br-card);
    margin-bottom: var(--space-2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}
.about-feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 87, 216, 0.08);
    border-color: rgba(0, 87, 216, 0.2);
}
.about-feature-icon {
    font-size: 32px;
    color: var(--primary);
    background: rgba(0,87,216,0.05);
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Stats Section */
.stats-premium {
    background: var(--navy-dark);
    padding: var(--space-8) 0;
    position: relative;
    overflow: hidden;
}
.stats-premium::before {
    content: '';
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.03;
    pointer-events: none;
}
.stat-card-premium {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--br-card);
    padding: var(--space-4);
    text-align: center;
    transition: all 0.4s ease;
}
.stat-card-premium:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.stat-card-premium .stat-count {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-1);
}
.stat-card-premium .stat-title {
    color: #a0aec0;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Office Bearers */
.team-premium {
    padding: var(--space-8) 0;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}
.team-card-premium {
    background: #fff;
    border-radius: var(--br-card);
    padding: var(--space-4);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}
.team-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 87, 216, 0.1);
}
.team-img-wrapper {
    width: 140px; height: 140px;
    margin: 0 auto var(--space-3);
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    position: relative;
}
.team-img-wrapper img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    transition: transform 0.5s ease;
}
.team-card-premium:hover .team-img-wrapper img {
    transform: scale(1.05);
}

/* News Section */
.news-premium {
    padding: var(--space-8) 0;
    overflow: hidden;
}

.news-marquee-container {
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: var(--space-4) 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    scrollbar-width: none;
    cursor: grab;
}
.news-marquee-container::-webkit-scrollbar {
    display: none;
}
.news-marquee-container:active {
    cursor: grabbing;
}

.news-marquee-track {
    display: flex;
    width: max-content;
}

.news-marquee-group {
    display: flex;
    gap: 30px;
    padding-right: 30px;
}

.news-marquee-card {
    width: 380px;
    background: #fff;
    border-radius: var(--br-card);
    padding: var(--space-4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    white-space: normal;
    transition: all 0.4s ease;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.news-marquee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,87,216,0.1);
    border-color: rgba(0,87,216,0.2);
}

.news-date {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(0,87,216,0.05);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

/* Contact Section */
.contact-premium {
    padding: var(--space-8) 0;
    background: #f8fafc;
    position: relative;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    align-items: start;
}
.contact-form-premium {
    background: #fff;
    padding: var(--space-5);
    border-radius: var(--br-section);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}
.form-floating-premium {
    position: relative;
    margin-bottom: var(--space-3);
}
.form-control-premium {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--br-input);
    background: #f8fafc;
    transition: all 0.3s ease;
    font-size: 16px;
    font-family: inherit;
}
.form-control-premium:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 87, 216, 0.1);
}
.map-premium {
    border-radius: var(--br-section);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    height: 100%;
    border: 8px solid #fff;
    display: flex;
    flex-direction: column;
}
.map-premium iframe {
    width: 100%;
    min-height: 304px;
    flex-grow: 1;
}

/* Footer */
.footer-premium {
    background: var(--navy-dark);
    color: #fff;
    padding-top: var(--space-7);
    position: relative;
    overflow: hidden;
}
.footer-mesh {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0,87,216,0.1) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(51,0,102,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.footer-content {
    position: relative;
    z-index: 1;
}
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 15px;
}

.footer-bottom-premium {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-3) 0;
    margin-top: var(--space-5);
    position: relative;
    z-index: 1;
}
.social-icon-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
}
.social-icon-premium:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,87,216,0.3);
    color: #fff;
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-title { font-size: 52px; }
    .section-heading { font-size: 38px; }
    .contact-grid { grid-template-columns: 1fr; }
    .map-premium { min-height: 300px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 18px; }
    .section-heading { font-size: 30px; }
    .features-container { margin-top: var(--space-4); }
    .custom-cursor, .custom-cursor-follower { display: none !important; }
    body { cursor: auto; }

    /* Reduce spacing for mobile */
    .about-premium, .stats-premium, .team-premium, .news-premium, .contact-premium {
        padding: var(--space-5) 0;
    }
    .footer-premium {
        padding-top: var(--space-5);
    }
    
    /* Hero section adjust */
    .hero-premium {
        height: auto;
        min-height: auto;
        padding: 120px 0 80px 0;
    }

    /* Mobile Navbar Dropdown */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: var(--br-card);
        margin-top: 15px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        text-align: center;
        border: 1px solid rgba(0,0,0,0.05);
    }
    .nav-link-modern {
        padding: 12px 16px !important;
        font-size: 18px;
    }
    .btn-premium {
        margin-top: 15px;
        display: inline-block;
        width: 100%;
    }

    /* Top Bar Mobile */
    .top-bar-modern .container-max {
        justify-content: center !important;
        flex-direction: column;
        gap: 12px !important;
    }
    .top-bar-modern .d-flex.gap-4 {
        flex-direction: column;
        gap: 6px !important;
        text-align: center;
    }

    /* About Feature Items */
    .about-feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-feature-item h4 {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 44px; }
    .stat-card-premium .stat-count { font-size: 42px; }
    .stat-card-premium { padding: var(--space-3); }
    .section-heading { font-size: 28px; }
    .hero-subtitle { font-size: 16px; }
}
/* About Info Cards */
.about-info-card {
    border-radius: var(--br-section);
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.4s ease;
    z-index: -1;
}

.about-info-card.danger::before { background: var(--bs-danger); }
.about-info-card.info::before { background: var(--bs-info); }

.about-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

.about-info-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.scroll-to-top:hover {
    background: var(--purple);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(51, 0, 102, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

#preloader svg {
    width: 350px;
    max-width: 80vw;
}

.loading-text {
    margin-top: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0057D8; /* Using the primary blue color */
    letter-spacing: 2px;
    animation: pulse 1.5s infinite ease-in-out;
}

.loading-dots span {
    animation: loadingDots 1.4s infinite both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes loadingDots {
    0% { opacity: 0.2; transform: scale(0.8); }
    20% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.2; transform: scale(0.8); }
}

/* Modern Table Design */
.table-modern {
    border-collapse: separate;
    border-spacing: 0 10px;
    width: 100%;
}
.table-modern thead th {
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    padding: 12px 16px;
    border-bottom: 2px solid #f1f5f9;
}
.table-modern tbody tr {
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}
.table-modern tbody tr:hover {
    background: #ffffff;
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
}
.table-modern tbody td {
    padding: 16px;
    border: none;
    vertical-align: middle;
    color: #334155;
    font-weight: 500;
    transition: all 0.3s ease;
}
.table-modern tbody td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-weight: 600;
}
.table-modern tbody td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    color: var(--primary);
    font-weight: 700;
}

table.table-modern.text-center.align-middle {
    font-size: small;
}