:root {
    --color-light-blue: #007bff;
    --color-dark-blue: #00192d;
    --color-dark-gray: #555f6e;
    --color-footer: #323c41;
    --color-white: #ffffff;
}

/* =====================================================
   RESET / GENERAL
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: clip;

    font-family: "Titillium Web", Arial, sans-serif;
    color: var(--color-dark-blue);
    background: var(--color-white);
}

img,
video,
svg,
iframe {
    max-width: 100%;
}

img {
    display: block;
}

a {
    text-underline-offset: 3px;
}

/* =====================================================
   HEADER
===================================================== */

.top-header {
    height: clamp(90px, 15vh, 150px);
    min-height: 90px;

    display: flex;
    align-items: center;

    background: var(--color-dark-blue);
}

.top-header-content {
    width: 100%;
    height: 100%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    width: auto;
    height: auto;

    max-width: min(55vw, 290px);
    max-height: 130px;

    margin-left: 5%;

    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;

    margin-right: 5%;
}

.header-nav a,
.header-nav span {
    color: var(--color-white);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    text-decoration: none;

    transition: color 0.3s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
    color: var(--color-light-blue);
}

/* =====================================================
   HERO
===================================================== */

.hero-section {
    background: var(--color-dark-blue);
}

.hero-image {
    position: relative;
    height: clamp(420px, 70vh, 760px);

    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* Gradient from image into right navigation */

.hero-image::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            to right,
            rgba(3, 27, 47, 0) 55%,
            rgba(3, 27, 47, 0.25) 70%,
            rgba(3, 27, 47, 0.65) 82%,
            rgba(3, 27, 47, 0.9) 92%,
            #031b2f 100%
        );
}

/* =====================================================
   HERO INFORMATION BOX
===================================================== */

.hero-info-box {
    position: absolute;
    z-index: 5;

    left: clamp(20px, 8vw, 180px);
    bottom: clamp(25px, 8vw, 110px);

    width: min(500px, calc(100% - 40px));
    padding: clamp(22px, 4vw, 45px);

    color: var(--color-white);

    background: rgba(0, 120, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: clamp(20px, 4vw, 40px);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.hero-info-box:hover {
    transform: translateY(-3px);
}

.hero-info-box p {
    margin: 0 0 8px;

    font-size: 1.25rem;
    font-weight: 300;
}

.hero-info-box p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   HERO NAVIGATION
===================================================== */

.hero-navigation {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: clamp(420px, 70vh, 760px);

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--color-dark-blue);
}

.hero-menu {
    position: relative;

    width: 300px;
    max-width: 100%;
}

.hero-line {
    position: absolute;

    left: 18.5px;
    top: 80px;
    bottom: 80px;

    width: 4px;

    background: var(--color-white);
}

.hero-link {
    position: relative;

    min-width: 0;

    display: flex;
    align-items: center;
    gap: 70px;

    margin: 70px 0;

    text-decoration: none;
}

.hero-circle {
    position: relative;
    z-index: 2;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 50%;
    background: var(--color-white);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.hero-text {
    min-width: 0;

    color: var(--color-white);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.2;

    transition: color 0.3s ease;
}

.hero-link:hover .hero-circle,
.hero-link:focus-visible .hero-circle {
    background: var(--color-light-blue);
    transform: scale(1.15);
}

.hero-link:hover .hero-text,
.hero-link:focus-visible .hero-text {
    color: var(--color-light-blue);
}

/* =====================================================
   SCROLL-TO-TOP BUTTON
===================================================== */

.hero-scroll {
    position: fixed;
    z-index: 9999;

    right: 20px;
    bottom: 20px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    color: var(--color-white);
    font-family: Arial, sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;

    cursor: pointer;

    background: rgba(0, 123, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-scroll:hover {
    color: var(--color-white);
    background: var(--color-light-blue);

    transform: translateY(-3px);

    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.3);
}

.hero-scroll:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

/* =====================================================
   GENERAL SECTION ELEMENTS
===================================================== */

.section-title {
    margin: 0;

    color: var(--color-dark-blue);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    white-space: nowrap;
}

.section-line {
    width: 100%;
    height: 2px;

    background: var(--color-dark-blue);
    opacity: 0.5;
}

/* =====================================================
   HISTORY
===================================================== */

.history {
    overflow: hidden;
}

.history-card {
    position: relative;

    margin-bottom: 120px;
    padding: 42px;

    color: var(--color-white);
    background: var(--color-dark-gray);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.history-card:hover {
    transform: translateY(-6px);
    box-shadow: -20px 20px 0 var(--color-light-blue);
}

.history-card p {
    margin: 0;

    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.9;

    overflow-wrap: break-word;
}

/* =====================================================
   LEADERSHIP
===================================================== */

.leadership-section {
    position: relative;

    padding: 100px 0;

    overflow: hidden;
}

.quote-icon {
    position: absolute;

    color: var(--color-dark-gray);
    font-family: Arial, sans-serif;
    font-size: 12rem;
    line-height: 1;

    user-select: none;
}

.quote-top {
    top: 125px;
    left: 40px;
}

.quote-bottom {
    right: 60px;
    bottom: 40px;
}

.leadership-entry {
    margin-bottom: 120px;
}

.leader-image {
    position: relative;

    display: inline-block;

    width: 100%;
    max-width: 360px;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.leader-image:hover {
    transform: translateY(-6px);
    box-shadow: -20px 20px 0 var(--color-light-blue);
}

.leader-image img {
    position: relative;
    z-index: 2;

    width: 100%;
}

.portrait-img {
    width: 100%;
    aspect-ratio: 4 / 5;

    object-fit: cover;
}

.leader-name {
    color: var(--color-dark-blue);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.9;
}

.leader-text p {
    margin: 0 0 40px;

    color: var(--color-dark-blue);
    font-size: clamp(1.05rem, 1.7vw, 1.7rem);
    font-weight: 300;
    line-height: 1.9;

    overflow-wrap: break-word;
}

/* =====================================================
   GALLERY
===================================================== */

.gallery-section {
    padding: 120px 0;
}

.gallery-wrapper {
    position: relative;

    padding: 70px 0;

    background:
        linear-gradient(
            135deg,
            #001a33,
            #003d7a,
            #0d6efd
        );

    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

.gallery-wrapper::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 255, 255, 0.18),
            transparent 50%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(255, 255, 255, 0.15),
            transparent 45%
        );
}

.gallery-row {
    position: relative;

    padding: 30px 0;

    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 28px;

    width: max-content;
}

.gallery-left .gallery-track {
    animation: scrollLeft 40s linear infinite;
}

.gallery-right .gallery-track {
    animation: scrollRight 40s linear infinite;
}

.gallery-track img {
    width: 340px;
    height: 220px;

    flex-shrink: 0;

    object-fit: cover;

    background: var(--color-white);
    border-radius: 20px;

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);

    transition: transform 0.4s ease;
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* =====================================================
   TIMELINE
===================================================== */

.timeline-section {
    padding: 120px 0;

    background: var(--color-white);
}

.timeline {
    position: relative;

    height: 600px;
    margin-top: 120px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timeline-line {
    position: absolute;

    left: 10%;
    right: 10%;
    top: 50%;

    height: 4px;

    background: var(--color-dark-blue);

    transform: translateY(-50%);
}

.timeline-line::after {
    content: "";

    position: absolute;
    inset: -6px 0;

    background:
        repeating-linear-gradient(
            to right,
            transparent 0 14px,
            #021b35 14px 17px,
            transparent 17px 28px
        );
}

.timeline-item {
    position: relative;

    width: 25%;

    text-align: center;
}

.timeline-dot {
    position: absolute;
    z-index: 5;

    left: 50%;
    top: 50%;

    width: 80px;
    height: 80px;

    border-radius: 50%;
    background: var(--color-dark-blue);

    transform: translate(-50%, -50%);
}

.timeline-dot::before {
    content: "";

    position: absolute;

    width: 4px;
    height: 30px;

    background: var(--color-dark-blue);
}

.timeline-item.top .timeline-dot::before {
    left: 50%;
    bottom: 100%;

    transform: translateX(-50%);
}

.timeline-item.bottom .timeline-dot::before {
    left: 50%;
    top: 100%;

    transform: translateX(-50%);
}

.timeline-content {
    position: absolute;

    left: 50%;

    width: 320px;

    transform: translateX(-50%);
}

.timeline-item.top .timeline-content {
    bottom: 110px;
}

.timeline-item.bottom .timeline-content {
    top: 110px;
}

.timeline-content h4 {
    margin: 0 0 20px;

    color: var(--color-dark-blue);
    font-size: 2rem;
}

.timeline-content p {
    margin: 0;

    color: var(--color-dark-blue);
    font-size: 1.25rem;
    line-height: 1.6;
}

/* =====================================================
   EVENT / REGISTRATION
===================================================== */

.event-section {
    width: 100%;
    margin-top: 120px;

    font-family: "Inter", Arial, sans-serif;
}

.event-hero {
    position: relative;

    width: 100%;
    min-height: 520px;

    overflow: hidden;
}

.event-bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.event-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(0, 10, 30, 0.85) 0%,
            rgba(0, 60, 140, 0.55) 55%,
            rgba(0, 120, 255, 0.25) 100%
        );
}

.event-content {
    position: relative;
    z-index: 2;

    padding: 80px 20px;
}

.event-title {
    margin: 0 0 20px;

    color: var(--color-white);
    font-size: 4rem;
    font-weight: 600;
}

.event-subtitle {
    color: var(--color-white);
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1.5;
}

.cta-button {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 14px 28px;

    color: var(--color-white);
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;

    border-radius: 14px;

    transition: transform 0.3s ease;
}

.cta-box {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;
    padding: 50px 60px;

    background: rgba(0, 120, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-3px);

    background:
        linear-gradient(
            135deg,
            rgba(0, 25, 45, 0.75),
            rgba(0, 85, 180, 0.45)
        );
}

/* =====================================================
   COUNTDOWN
===================================================== */

.countdown-bar {
    width: 100%;
    padding: 60px 0;

    background:
        linear-gradient(
            135deg,
            #001a33,
            #003d7a,
            #0d6efd
        );
}

.event-meta,
.event-meta-sub {
    color: var(--color-white);
    font-size: 2rem;
    font-weight: 500;
}

.event-meta-sub {
    margin-top: 10px;
}

.countdown-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    flex-wrap: wrap;
}

.time-box {
    flex: 1;
    min-width: 120px;

    color: var(--color-white);
    text-align: center;
}

.time-box span {
    display: block;

    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.time-box small {
    font-size: 1rem;
    letter-spacing: 2px;

    opacity: 0.8;
}

/* =====================================================
   ARRIVAL
===================================================== */

.arrival-hero {
    position: relative;

    width: 100%;
    height: 650px;

    overflow: hidden;
}

.arrival-bg {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.arrival-hero::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.35),
            rgba(0, 50, 120, 0.25)
        );
}

.arrival-overlay-items {
    position: absolute;
    z-index: 5;

    top: 50%;
    left: 7%;

    width: calc(86%);

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(40px, 8vw, 120px);

    transform: translateY(-50%);
}

.arrival-card {
    max-width: 100%;

    overflow: hidden;

    background: var(--color-white);
    border-radius: 18px;
}

.arrival-map {
    width: 500px;
}

.arrival-map iframe {
    display: block;

    width: 100%;
    height: 300px;

    border: 0;
}

.arrival-plan {
    width: 600px;

    transform: translateY(-20px);
}

.arrival-plan img {
    width: 100%;
    height: auto;

    object-fit: contain;

    cursor: pointer;

    transition: transform 0.3s ease;
}

.arrival-plan img:hover {
    transform: scale(1.01);
}

.arrival-blue-bar {
    position: absolute;
    z-index: 6;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 30px;

    background:
        linear-gradient(
            135deg,
            #001a33,
            #003d7a,
            #0d6efd
        );
}

.arrival-text-section {
    padding: 80px 20px;
}

.arrival-text-section h2 {
    margin: 0 0 20px;

    font-size: 2.5rem;
}

.arrival-text-section p {
    font-size: 1.2rem;
}

.arrival-text-section a {
    color: var(--color-light-blue);

    overflow-wrap: anywhere;
}

/* =====================================================
   MODAL
===================================================== */

.modal-content {
    overflow: hidden;

    border-radius: 20px;
}

/* =====================================================
   FOOTER
===================================================== */

.footer-section {
    margin-top: 120px;
    padding: 70px 0 40px;

    color: var(--color-white);
    background: var(--color-footer);
}

.footer-title {
    margin-bottom: 50px;

    font-size: 2rem;
    font-weight: 300;
}

.footer-contact p {
    margin-bottom: 40px;

    color: var(--color-white);
    font-size: 0.9rem;
    line-height: 1.9;
}

.footer-contact a {
    color: var(--color-white);
    text-decoration: none;

    transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: var(--color-light-blue);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-top: 250px;

    font-size: 0.9rem;
}

.footer-links a,
.footer-links span {
    color: var(--color-white);
}

.footer-links a {
    text-decoration: none;

    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--color-light-blue);
}

/* =====================================================
   ACCESSIBILITY / REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .gallery-track {
        animation: none !important;
    }
}