:root {
    /* Colors - Authentic ISRS Brand Colors - Light Theme */
    --clr-bg-dark: #FBFAFB;
    --clr-bg-card: #ffffff;
    --clr-bg-light: #f1f5f9;
    --clr-primary: #40955C;
    --clr-primary-glow: rgba(64, 149, 92, 0.2);
    --clr-secondary: #BAC72F;
    --clr-text-main: #1f1837;
    --clr-text-muted: #5e6572;
    --clr-text-dark: #1f1837;
    --clr-text-dark-muted: #372C61;
    --clr-border: rgba(31, 24, 55, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --nav-height: 80px;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px var(--clr-primary-glow);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.bg-light {
    background-color: var(--clr-bg-light);
    color: var(--clr-text-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    color: white;
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary {
    background: transparent;
    color: var(--clr-text-main);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--clr-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    /* Contrast in case the logo is transparent/dark */
    padding: 4px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--clr-text-main), var(--clr-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-main);
    opacity: 0.8;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--clr-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--clr-primary);
    transition: width 0.3s ease;
}

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

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

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 200px;
    box-shadow: var(--shadow-sm);
    border: var(--glass-border);
    border-radius: 8px;
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 10px;
    /* gap for the hover bridge */
}

/* Invisible bridge so hover doesn't break */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
}

.nav-dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}

.dropdown-content a {
    padding: 0.75rem 1.5rem;
    color: var(--clr-text-main);
    text-decoration: none;
    display: block;
    opacity: 0.8;
}

.dropdown-content a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--clr-primary);
    opacity: 1;
}

.dropdown-content a::after {
    display: none;
    /* remove underline from dropdown items */
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-login,
.btn-search {
    background: rgba(0, 0, 0, 0.05);
    border: var(--glass-border);
    color: var(--clr-text-main);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login:hover,
.btn-search:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--clr-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.3);
    /* Cyan */
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.2);
    /* Blue */
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 2rem;
}

.org-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(0, 0, 0, 0.05);
    border: var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--clr-primary);
    backdrop-filter: blur(4px);
}

.badge i {
    margin-right: 5px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, var(--clr-bg-card), var(--clr-primary), var(--clr-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-inline: auto;
}

.registration-info {
    background: rgba(255, 255, 255, 0.7);
    border: var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.registration-info p {
    margin: 0;
    color: var(--clr-text-main);
}

.registration-info .small-text {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-top: 4px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Base Sections */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-subtitle {
    color: var(--clr-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.bg-light .section-title {
    color: var(--clr-text-main);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--clr-primary), transparent);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: calc(50% - 30px);
    text-align: right;
    font-weight: 700;
    color: var(--clr-primary);
    font-size: 1.1rem;
}

.timeline-item:nth-child(odd) .timeline-date {
    text-align: left;
}

.timeline-content {
    width: calc(50% - 30px);
    background: var(--clr-bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(6, 182, 212, 0.3);
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--clr-bg-light);
    border: 4px solid var(--clr-primary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--clr-primary-glow);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6, 182, 212, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--clr-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--clr-text-main);
}

.info-card p {
    color: var(--clr-text-dark-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-link {
    color: var(--clr-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
    border-radius: 6px;
    background: white;
    padding: 3px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin: 0;
}

.footer-desc {
    color: var(--clr-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-reg {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--glass-border);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--clr-primary);
    color: white;
    transform: translateY(-3px);
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--clr-bg-card);
}

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

.footer-links ul li a {
    color: var(--clr-text-muted);
}

.footer-links ul li a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-contact p i {
    color: var(--clr-primary);
    margin-top: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.hidden {
    transform: translate(-50%, 150%);
    opacity: 0;
    pointer-events: none;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--clr-text-main);
}

.cookie-content a {
    color: var(--clr-primary);
    text-decoration: underline;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .header-content {
        gap: 1rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
        border-bottom: var(--glass-border);
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-date,
    .timeline-item:nth-child(odd) .timeline-date {
        width: 100%;
        text-align: left;
        padding-left: 70px;
        margin-bottom: 0.5rem;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .timeline-item::after {
        left: 30px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}