/* ------------------------------------------------------------
   FONT IMPORTS
------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* ------------------------------------------------------------
   BASE GLOBAL STYLES
------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Sans", sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ------------------------------------------------------------
   ROOT VARIABLES
------------------------------------------------------------ */
:root {
    --primary: #0B2641;
    --secondary: #13406c;
    --text-light: #fff;
}

/* ------------------------------------------------------------
   ACTIVE LINKS
------------------------------------------------------------ */
.active-link {
    border-bottom: 2px solid var(--primary) !important;
    font-weight: bold;
}

.dark .active-link {
    border-bottom: 2px solid white !important;
    font-weight: bold !important;
}

/* ------------------------------------------------------------
   MARQUEE ANIMATION
------------------------------------------------------------ */
@keyframes marquee {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.paused {
    animation-play-state: paused;
}

/* ------------------------------------------------------------
   ACCESSIBILITY: HIGHLIGHT LINKS
------------------------------------------------------------ */
body.highlight-links a {
    outline: 2px solid #ff7900 !important;
    background: #ff7900 !important;
    padding: 2px 4px;
    border-radius: 4px;
    color:white;
}

/* ------------------------------------------------------------
   ACCESSIBILITY: HIDE IMAGES
------------------------------------------------------------ */
body.hide-images img:not([src$=".svg"]) {
    display: none !important;
}

/* ------------------------------------------------------------
   DARK MODE (Tailwind Support)
------------------------------------------------------------ */
html.dark {
    color-scheme: dark;
}

/* ------------------------------------------------------------
   CAROUSEL & SLIDER
------------------------------------------------------------ */
#carouselSlides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

@media screen and (max-width: 768px) {
    #playPause {
        display: none;
    }
}

/* ------------------------------------------------------------
   APPLICATION SUBMISSION PAGE
------------------------------------------------------------ */
.custom-list {
    list-style: none;
    width: 100%;
}

.custom-item {
    counter-increment: custom-list;
    padding-bottom: 4px;
    font-size: 40px;
    position: relative;
}

    .custom-item:before {
        content: counter(custom-list);
        width: 4rem;
        height: 4rem;
        margin: 0 1.5rem 0.75rem 0;
        color: var(--text-light);
        background: var(--secondary) linear-gradient(to bottom right, var(--secondary) 25%, var(--primary));
        text-shadow: 0 0 2px var(--secondary);
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .custom-item:after {
        width: 2.5rem;
        height: 2.5rem;
        position: absolute;
        top: 0;
        left: 0;
        content: '';
        background: var(--secondary);
        z-index: -1;
        border-top-left-radius: 3px;
    }

.custom-description {
    font-size: 1rem;
    line-height: 1.5;
}

/* ------------------------------------------------------------
   CHAT MESSAGES
------------------------------------------------------------ */
/*.outgoing {
    align-self: flex-end;
    margin-left: auto;
}

.incoming {
    align-self: flex-start;
}*/

/* ------------------------------------------------------------
   DOT NAVIGATION
------------------------------------------------------------ */
.dot:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
.footer-gradient {
    background: var(--primary);
}

.link-transition {
    transition: all 0.3s ease;
}

    .link-transition:hover {
        color: white;
        transform: translateX(4px);
    }

.arrow-transition {
    transition: transform 0.3s ease;
}

.link-transition:hover .arrow-transition {
    transform: translateX(4px);
}

.icon-hover {
    transition: all 0.3s ease;
}

    .icon-hover:hover {
        color: white;
        transform: scale(1.1);
    }

/* ------------------------------------------------------------
   ANIMATIONS
------------------------------------------------------------ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-stagger-1 {
    animation-delay: 0.1s;
}

.animate-stagger-2 {
    animation-delay: 0.2s;
}

.animate-stagger-3 {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* ------------------------------------------------------------
   VIDEO PLAYER
------------------------------------------------------------ */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: var(--secondary);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

    .video-wrapper video {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.play-btn {
    transition: all 0.3s ease;
}

    .play-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(59,130,246,0.4);
    }
/* Video Controls – responsive */
#videoControls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    left: 12px; /* allow auto shrink */
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    width: auto; /* remove fixed 530px */
}

/* Progress bar wrapper */
.progress-wrapper {
    flex: 1; /* auto-stretch to remaining width */
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Progress fill */
.progress-bar {
    height: 100%;
    width: 0%;
    background: #3b82f6;
    border-radius: 4px;
    transition: width 0.1s linear;
}

#fullscreenBtn {
    color: #ffffff !important; /* makes SVG white */
    background: none;
    border: none;
    cursor: pointer;
}
/* Mobile Fix */
@media (max-width: 640px) {

    #videoControls {
        bottom: 8px;
        right: 8px;
        left: 8px;
        padding: 6px 10px;
    }

    .progress-wrapper {
        height: 5px;
    }
}
