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

:root {
    /* Dark Theme (Default) - Enhanced */
    --base-bg: #020617;
    --surface-bg: #0f172a;
    --surface-accent: #1e293b;
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.3);
    --accent: #fbbf24;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --nav-height: 80px;

    --ease-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
    --base-bg: #f8fafc;
    --surface-bg: #ffffff;
    --surface-accent: #f1f5f9;
    --primary: #0284c7;
    --primary-glow: rgba(2, 132, 199, 0.15);
    --accent: #d97706;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--base-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4,
h5,
.logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Animations & Effects */
.reveal-text {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .reveal-text {
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Navigation */
.navbar {
    background: var(--glass-bg);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    height: var(--nav-height);
    transition: var(--ease-smooth);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    height: 70px;
    box-shadow: var(--glass-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -1.2px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo img {
    height: 38px;
    width: auto;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--ease-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-main);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--ease-smooth);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-btns {
    display: flex;
    gap: 0.8rem;
    margin-left: 1.5rem;
    align-items: center;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(var(--nav-height) - 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0f172a;
    /* Solid background for visibility */
    border: 1px solid var(--primary);
    /* Accent border */
    border-radius: 16px;
    min-width: 220px;
    padding: 1rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--ease-spring);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
    margin-bottom: 0.5rem;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--text-muted);
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--ease-smooth);
}

.dropdown-menu a:hover {
    background: var(--primary-glow);
    color: var(--primary);
    transform: translateX(5px);
}

[data-theme="light"] .dropdown-menu {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--surface-accent);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ease-spring);
    font-size: 1.1rem;
}

.theme-toggle:hover {
    color: var(--primary);
    transform: rotate(15deg);
    border-color: var(--primary);
}

.theme-toggle .fa-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .fa-sun {
    display: block;
}

.mobile-menu-toggle {
    display: none;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--base-bg);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    /* Prevent interaction when hidden */
    pointer-events: none;
    /* Block clicks when hidden */
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out, visibility 1.2s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.05);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Enable interaction only for active slide */
    transform: scale(1);
    z-index: 2;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.4) 0%, rgba(2, 6, 23, 0.75) 100%);
    z-index: 1;
}

[data-theme="light"] .hero-slide::before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.hero-content {
    text-align: center;
    position: relative;
    /* Essential for z-index to work */
    z-index: 20;
    /* Ensure content is above overlays and inactive slides */
    max-width: 1000px;
    padding: 0 2rem;
    pointer-events: auto;
    /* Ensure clicks pass through to buttons */
}

.hero-content h1 {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2.5px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-main);
    /* Brighter for readability */
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--ease-spring);
    cursor: pointer;
    font-size: 1rem;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

.btn-outline {
    border-color: var(--glass-border);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-main);
    transform: translateY(-4px);
}

.btn-login {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 10px;
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.btn-login:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-admin {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent);
    border-color: rgba(251, 191, 36, 0.2);
}

.btn-admin:hover {
    background: var(--accent);
    color: #000;
}

/* Section Common */
section {
    padding: 8rem 0;
}

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.75rem;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--primary-glow);
    border-radius: 30px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -2px;
}

/* Glass Card System */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 32px;
    padding: 3.5rem;
    transition: var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--ease-spring);
}

.glass-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: #fff;
}

/* Stats Section */
.stats-section {
    background: var(--surface-bg);
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.stat-label {
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: var(--surface-bg);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--ease-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Swiper Styling */
.swiper-slide {
    padding: 1.5rem;
}

.swiper-slide.card {
    background: var(--surface-bg);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--ease-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swiper-slide.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--glass-shadow);
}

.swiper-container-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.swiper-slide.card:hover img {
    transform: scale(1.1);
}

/* Swiper Pagination Styling */
.technology-slider .swiper {
    padding-bottom: 4.5rem !important;
    /* Make room for pagination below cards */
}

.swiper-pagination {
    bottom: 0 !important;
    /* Move to the bottom of the container */
}

.swiper-pagination-bullet {
    background: #000000 !important;
    /* Dark in light theme */
    opacity: 0.2;
    transition: var(--ease-smooth);
}

[data-theme="dark"] .swiper-pagination-bullet {
    background: #ffffff !important;
    /* Light in dark theme */
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    opacity: 1 !important;
    width: 25px;
    border-radius: 10px;
}

/* Partners Section */
.partners-section {
    padding: 6rem 0;
    /* Restored large padding */
    background: #e2e8f0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.partners-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(15, 23, 42, 0.03) 100%);
    pointer-events: none;
    z-index: 1;
}

[data-theme="dark"] .partners-section {
    background: #cbd5e1;
}

.partners-section .section-title {
    color: #0f172a;
    margin-bottom: 4rem;
    /* Restored large margin */
    font-size: 3.5rem;
    /* Restored large font size */
    position: relative;
    z-index: 2;
}

.partners-section .section-tag {
    margin-bottom: 1.5rem;
    /* Restored spacing */
    background: rgba(2, 132, 199, 0.15);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.3);
    position: relative;
    z-index: 2;
}

.partnerSwiper {
    position: relative;
    z-index: 2;
}

.partnerSwiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    /* Restored larger height */
    transition: var(--ease-smooth);
}

.partner-logo img {
    max-height: 120px;
    /* Restored larger logos */
    max-width: 250px;
    object-fit: contain;
    transition: var(--ease-smooth);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

.partner-logo:hover img {
    transform: scale(1.1);
}

/* Events Section */
.events-section {
    padding: 4rem 0;
    /* Reduced from 8rem */
    background: var(--base-bg);
}

.eventSwiper {
    max-width: 600px;
    /* Reduced from 1000px */
    margin: 0 auto;
    padding-bottom: 3rem !important;
}

.event-image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    background: var(--surface-bg);
    line-height: 0;
}

.event-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.event-slide:hover img {
    transform: scale(1.02);
}

/* Footer */
.site-footer {
    padding: 6rem 0 3rem;
    background: var(--base-bg);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 5rem;
}

.footer-heading {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1.2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--ease-smooth);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(8px);
}

/* Responsive Overrides - Phone View WOW */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .hero-content h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .hero-content h1 {
        font-size: 3.8rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--base-bg);
        flex-direction: column;
        padding: 4rem 2rem;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        display: flex;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-menu .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        display: none;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding-left: 1.5rem;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .dropdown.mobile-open .dropdown-menu {
        display: block;
    }

    .nav-menu a {
        font-size: 1.8rem;
        font-weight: 700;
    }

    .nav-btns {
        margin-left: auto;
        margin-right: 0.5rem;
        gap: 0.5rem;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-main);
        font-size: 1.8rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: -1.5px;
    }

    .hero-content p {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        padding: 0 1rem;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 320px;
    }

    /* Fix overlapping card buttons on phone */
    .swiper-slide .glass-card div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .swiper-slide .glass-card div[style*="display: flex"] .btn {
        width: 100% !important;
    }

    .grid {
        gap: 2rem;
    }

    /* New Sections Mobile Fix */
    .partners-section {
        padding: 3rem 0;
    }

    .partner-logo {
        height: 120px;
    }

    .partner-logo img {
        max-height: 80px;
        max-width: 150px;
    }

    .events-section {
        padding: 4rem 0;
    }

    .eventSwiper {
        max-width: 100%;
        padding: 0 1rem 3rem !important;
    }
}

@media (max-width: 480px) {

    /* Compact section gaps for mobile */
    section {
        padding: 3.5rem 0;
        background-attachment: scroll !important;
        /* Fixed backgrounds cause lag on mobile */
    }

    .hero-slider {
        height: 100dvh;
        /* Handle mobile browser bars gracefully */
        min-height: 560px;
    }

    .navbar {
        height: 65px;
        padding: 0.4rem 0;
    }

    .nav-btns {
        margin-left: auto;
        margin-right: 0.1rem;
        gap: 0.3rem;
        /* Tighter button spacing */
    }

    .nav-btns .btn {
        padding: 0.55rem 0.65rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .hero-content {
        padding: 0 1.2rem;
        padding-top: 0;
        /* Removing the artificial gap */
    }

    .hero-content h1 {
        font-size: 2.3rem;
        line-height: 1.15;
        margin-bottom: 1rem;
    }

    .pill {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        padding: 0;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 0.85rem 1.5rem;
    }

    .section-title {
        font-size: 1.85rem;
        margin-bottom: 2.2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .logo {
        font-size: 1.35rem;
        gap: 0.4rem;
    }

    .logo img {
        height: 30px;
    }

    .nav-btns .btn span {
        display: none;
    }
}

/* Utilities */
.pill {
    background: var(--primary-glow);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.15);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--ease-spring);
    box-shadow: 0 10px 20px var(--primary-glow);
}

#scrollTopBtn:hover {
    transform: translateY(-8px);
    background: var(--text-main);
    color: var(--base-bg);
}

.w-100 {
    width: 100%;
}