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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;

    background-color: var(--bg-color);
    color: var(--text-color);

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg-color: #f8f9fa;
    --text-color: #333333;
    --heading-color: #222222;
    --card-bg: #ffffff;
    --card-text: #666666;
    --navbar-bg: #ffffff;
    --btn-bg: #333333;
    --btn-text: #ffffff;
    --border-color: #e2e8f0;
    --header-bg: #222222;
    --header-text: #ffffff;

    --card-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05);

    --img-border: #ffffff;
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --card-bg: #1e1e1e;
    --card-text: #b0b0b0;
    --navbar-bg: #1e1e1e;
    --btn-bg: #007bff;
    --btn-text: #ffffff;
    --border-color: #2d3748;
    --header-bg: #333333;
    --header-text: #e0e0e0;

    --card-shadow:
        0 4px 15px rgba(255, 255, 255, 0.03);

    --img-border: #2d3748;
}


/* =========================================================
   TEXT
========================================================= */

h1,
h2,
h3,
h4,
.Title {
    color: var(--heading-color);
}

p {
    color: var(--text-color);
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    text-align: center;

    padding: 60px 20px;

    max-width: 800px;

    margin: 0 auto;
}

.profile-container {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 35px;

    margin-bottom: 20px;
}

.profile-img {
    width: 150px;
    height: 150px;

    border-radius: 50%;

    object-fit: cover;

    margin-bottom: 0 !important;

    border: 4px solid var(--img-border);

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.1);

    transition:
        transform 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out,
        border-color 0.3s ease;

    cursor: pointer;
}

.profile-img:not(.side-img):hover {
    transform:
        translateY(-5px)
        scale(1.03);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.side-img {
    width: 110px;
    height: 110px;

    border-radius: 0 !important;

    border:
        8px solid var(--img-border) !important;

    opacity: 0;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.1);

    animation-delay: 2s;

    animation-duration: 0.6s;

    animation-timing-function:
        cubic-bezier(
            0.34,
            1.56,
            0.64,
            1
        );

    animation-fill-mode: forwards;
}

.side-img:first-of-type {
    transform:
        scale(0.6)
        rotate(0deg);

    animation-name:
        popInLeftImg;
}

.side-img:last-of-type {
    transform:
        scale(0.6)
        rotate(0deg);

    animation-name:
        popInRightImg;
}

@keyframes popInLeftImg {
    to {
        opacity: 1;

        transform:
            scale(1)
            rotate(-40deg);
    }
}

@keyframes popInRightImg {
    to {
        opacity: 1;

        transform:
            scale(1)
            rotate(40deg);
    }
}

.side-img:hover {
    transform:
        scale(1.1)
        rotate(0deg)
        translateY(-5px) !important;

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.2) !important;

    z-index: 10;
}

.Title {
    font-family:
        "Playwrite NZ Guides",
        cursive;

    font-size: 3rem;

    margin-bottom: 10px;

    font-weight: normal;
}

.subtitle {
    font-size: 1.2rem;

    color: #007bff;

    font-weight: 600;

    margin-bottom: 15px;
}

.bio {
    font-size: 1.1rem;

    color: var(--card-text);
}


/* =========================================================
   LIGHTBOX
========================================================= */

#lightbox-overlay {
    position: fixed !important;

    inset: 0 !important;

    width: 100vw !important;

    height: 100vh !important;

    background-color:
        rgba(0, 0, 0, 0.92) !important;

    display: flex !important;

    flex-direction: column !important;

    justify-content: center !important;

    align-items: center !important;

    padding: 20px !important;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    z-index: 999999 !important;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

#lightbox-overlay.visible {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

#lightbox-img {
    display: block !important;

    position: relative !important;

    width: auto !important;

    height: auto !important;

    max-width: 90vw !important;

    max-height: 75vh !important;

    object-fit: contain !important;

    border:
        4px solid #ffffff !important;

    border-radius: 6px !important;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6);

    transform:
        scale(0.95);

    transition:
        transform 0.3s ease;
}

#lightbox-overlay.visible #lightbox-img {
    transform:
        scale(1);
}

#lightbox-back-btn {
    position: fixed !important;

    top: 25px !important;

    left: 25px !important;

    z-index: 1000000 !important;

    display: block !important;

    width: auto !important;

    height: auto !important;

    padding: 10px 18px !important;

    margin: 0 !important;

    background-color:
        rgba(30, 30, 30, 0.9) !important;

    color: #ffffff !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.3) !important;

    border-radius: 8px !important;

    font-size: 0.9rem !important;

    font-weight: 600 !important;

    cursor: pointer !important;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.3);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

#lightbox-back-btn:hover {
    background-color:
        #007bff !important;

    color: #ffffff !important;

    border-color:
        #007bff !important;

    transform:
        translateY(-2px);
}


/* =========================================================
   SKILLS
========================================================= */

.skills-section {
    padding:
        60px 10%;

    background-color:
        var(--card-bg);

    text-align:
        center;
}

.skills-section h2 {
    font-size:
        2.2rem;

    margin-bottom:
        40px;

    color:
        var(--heading-color);
}

.skills-grid {
    display:
        flex;

    gap:
        25px;

    justify-content:
        center;

    flex-wrap:
        wrap;
}

.skill-card {
    background-color:
        var(--card-bg);

    padding:
        30px;

    border-radius:
        12px;

    border:
        1px solid
        var(--border-color);

    flex:
        1;

    min-width:
        280px;

    max-width:
        350px;

    box-shadow:
        var(--card-shadow);

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        space-between;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.skill-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.08);
}

.skill-card h3 {
    margin-bottom:
        12px;

    color:
        var(--heading-color);

    font-size:
        1.3rem;
}

.skill-card p {
    color:
        var(--card-text);

    margin-bottom:
        25px;
}

.card-btn-container {
    margin-top:
        auto;
}

.card-btn {
    display:
        inline-block;

    text-decoration:
        none;

    color:
        var(--text-color);

    font-weight:
        600;

    font-size:
        0.85rem;

    padding:
        10px 15px;

    border:
        2px solid
        var(--text-color);

    border-radius:
        6px;

    transition:
        all 0.2s ease-in-out;

    width:
        100%;
}

.card-btn:hover {
    background-color:
        var(--text-color);

    color:
        var(--bg-color);
}


/* =========================================================
   PAGE OVERLAY
========================================================= */

#page-overlay {
    position:
        fixed;

    inset:
        0;

    width:
        100vw;

    height:
        100vh;

    background-color:
        #111111;

    opacity:
        0;

    pointer-events:
        none;

    z-index:
        999998;

    animation:
        fadeInPage
        0.5s
        ease-in-out
        forwards;
}

#page-overlay.active {
    opacity:
        1;

    animation:
        none;

    transition:
        opacity 0.5s
        ease-in-out;
}

@keyframes fadeInPage {

    from {
        opacity:
            1;
    }

    to {
        opacity:
            0;
    }

}

#page-content {
    opacity:
        0;

    animation:
        slideDownFadeIn
        0.8s
        cubic-bezier(
            0.25,
            1,
            0.5,
            1
        )
        forwards;
}

@keyframes slideDownFadeIn {

    from {

        opacity:
            0;

        transform:
            translateY(-30px);
    }

    to {

        opacity:
            1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   PROJECT HEADER
========================================================= */

.project-header {
    position:
        relative;

    width:
        100%;

    height:
        350px;

    overflow:
        hidden;

    background-color:
        var(--header-bg) !important;
}

.header-banner {
    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}

.header-overlay-text {
    position:
        absolute;

    inset:
        0;

    width:
        100%;

    height:
        100%;

    background:
        rgba(
            0,
            0,
            0,
            0.4
        );

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

    align-items:
        center;

    color:
        #ffffff;

    text-align:
        center;
}

.header-overlay-text h1 {
    font-size:
        2.5rem;

    margin-bottom:
        10px;

    color:
        #ffffff !important;
}

.header-overlay-text p {
    color:
        #ffffff !important;
}


/* =========================================================
   PROJECT LAYOUT
========================================================= */

.project-container {
    display:
        flex !important;

    flex-direction:
        row !important;

    align-items:
        flex-start !important;

    gap:
        50px !important;

    width:
        100% !important;

    max-width:
        1200px !important;

    margin:
        40px auto !important;

    padding:
        0 20px !important;
}

.project-story {
    flex:
        0 0 65% !important;

    width:
        65% !important;

    max-width:
        65% !important;

    min-width:
        0;
}

.project-story h2 {
    font-size:
        1.8rem;

    margin-bottom:
        20px;

    color:
        var(--heading-color);
}

.project-story p {
    width:
        100% !important;

    display:
        block !important;

    writing-mode:
        horizontal-tb !important;

    word-break:
        normal !important;

    overflow-wrap:
        normal !important;

    white-space:
        normal !important;

    font-size:
        1.1rem;

    color:
        var(--card-text);

    margin-bottom:
        20px;

    line-height:
        1.7;
}

.back-home-btn {
    display:
        inline-block;

    margin-top:
        20px;

    color:
        #007bff;

    text-decoration:
        none;

    font-weight:
        600;
}

.project-gallery {
    flex:
        0 0 calc(35% - 50px) !important;

    width:
        calc(35% - 50px) !important;

    max-width:
        calc(35% - 50px) !important;

    min-width:
        0;
}

.project-gallery h3 {
    font-size:
        1.3rem;

    margin-bottom:
        20px;

    color:
        var(--heading-color);
}

.side-images {
    display:
        flex;

    flex-direction:
        column;

    gap:
        15px;

    width:
        100% !important;
}

.side-images img {
    width:
        100%;

    border-radius:
        8px;

    box-shadow:
        0 4px 6px
        rgba(
            0,
            0,
            0,
            0.05
        );

    transition:
        transform 0.2s ease;
}

.side-images img:hover {
    transform:
        scale(1.02);
}

.side-images > div {
    width:
        100% !important;

    min-height:
        150px;

    padding:
        25px !important;

    background-color:
        var(--card-bg) !important;

    color:
        var(--text-color) !important;

    border:
        1px solid
        var(--border-color) !important;

    border-left-width:
        4px !important;

    border-radius:
        10px;

    box-shadow:
        var(--card-shadow) !important;

    text-align:
        left;

    display:
        block !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.side-images > div:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 8px 20px
        rgba(
            0,
            0,
            0,
            0.08
        ) !important;
}

.side-images > div h4 {
    color:
        var(--heading-color) !important;

    margin-bottom:
        8px !important;
}

.side-images > div p {
    color:
        var(--card-text) !important;

    line-height:
        1.6 !important;

    margin:
        0 !important;
}


/* =========================================================
   EXPERIENCE
========================================================= */

.experience-block {
    display:
        flex;

    align-items:
        center;

    gap:
        20px;

    margin-bottom:
        30px;
}

.experience-img {
    width:
        150px;

    height:
        auto;

    border-radius:
        8px;
}

.experience-text {
    flex:
        1;
}


/* =========================================================
   CLOCK
========================================================= */

.live-clock {
    position:
        absolute;

    top:
        50%;

    left:
        50%;

    transform:
        translate(
            -50%,
            -50%
        );

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    gap:
        5px;

    text-align:
        center;
}

.clock-card {
    position:
        fixed;

    top:
        20px;

    right:
        20px;

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    padding:
        12px 16px;

    background:
        #3a3a3a;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.15
        );

    border-radius:
        12px;

    color:
        white;

    box-shadow:
        0 8px 25px
        rgba(
            0,
            0,
            0,
            0.3
        );

    z-index:
        5000;
}

.clock-icon {
    font-size:
        22px;
}

.clock-info {
    display:
        flex;

    flex-direction:
        column;
}

.clock-label {
    color:
        rgba(
            255,
            255,
            255,
            0.6
        );

    font-size:
        9px;

    font-weight:
        bold;

    letter-spacing:
        2px;
}

#clockTime {
    color:
        white;

    font-size:
        17px;

    font-weight:
        700;
}

#clockDate {
    color:
        rgba(
            255,
            255,
            255,
            0.65
        );

    font-size:
        10px;

    margin-top:
        2px;
}


/* =========================================================
   WELCOME SCREEN
========================================================= */

#welcomeScreen {
    position:
        fixed;

    inset:
        0;

    width:
        100%;

    height:
        100vh;

    background:
        #050505;

    color:
        white;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    z-index:
        999997;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

#welcomeScreen.hide {
    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;
}

.welcome-content {
    width:
        min(90%, 650px);

    text-align:
        center;
}

.welcome-title {
    font-family:
        monospace;

    font-size:
        32px;

    font-weight:
        bold;

    margin-bottom:
        25px;
}

.welcome-symbol,
.boot-prefix,
.boot-success {
    color:
        #70e000;
}

.typing-cursor {
    color:
        #70e000;

    animation:
        blink
        0.8s
        infinite;
}

.terminal-box {
    background:
        #0d0d0d;

    border:
        1px solid
        #292929;

    border-radius:
        12px;

    overflow:
        hidden;

    text-align:
        left;
}

.terminal-header {
    height:
        40px;

    background:
        #191919;

    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    padding:
        0 15px;
}

.terminal-dot {
    width:
        11px;

    height:
        11px;

    background:
        #555555;

    border-radius:
        50%;
}

.terminal-name {
    margin-left:
        8px;

    color:
        #777777;

    font-family:
        monospace;

    font-size:
        12px;
}

.terminal-body {
    padding:
        25px;

    min-height:
        210px;

    font-family:
        monospace;

    font-size:
        14px;
}

.boot-message {
    margin-bottom:
        10px;

    animation:
        messageAppear
        0.3s
        ease
        forwards;
}

.progress-container {
    width:
        100%;

    height:
        6px;

    background:
        #292929;

    border-radius:
        10px;

    margin-top:
        25px;

    overflow:
        hidden;
}

#progressBar {
    width:
        0%;

    height:
        100%;

    background:
        white;

    transition:
        width 0.2s ease;
}

.progress-text {
    margin-top:
        8px;

    text-align:
        right;

    color:
        #777777;

    font-size:
        11px;
}

#skipWelcome {
    position:
        relative;

    z-index:
        1000000;

    margin-top:
        25px;

    padding:
        10px 20px;

    background:
        transparent;

    color:
        white;

    border:
        1px solid
        #555555;

    border-radius:
        8px;

    cursor:
        pointer;

    font-size:
        14px;
}

#skipWelcome:hover {
    background:
        #222222;

    border-color:
        white;
}


/* =========================================================
   BOTTOM CONTROLS
========================================================= */

.bottom-controls {
    position:
        fixed !important;

    bottom:
        25px !important;

    left:
        25px !important;

    right:
        25px !important;

    display:
        flex !important;

    flex-direction:
        row !important;

    align-items:
        center !important;

    justify-content:
        space-between !important;

    width:
        auto !important;

    height:
        42px !important;

    margin:
        0 !important;

    padding:
        0 !important;

    z-index:
        999999 !important;

    pointer-events:
        none !important;
}

.bottom-controls button {
    position:
        relative !important;

    display:
        inline-flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    width:
        auto !important;

    min-width:
        140px !important;

    height:
        42px !important;

    margin:
        0 !important;

    padding:
        0 16px !important;

    flex:
        0 0 auto !important;

    white-space:
        nowrap !important;

    border-radius:
        9px !important;

    font-size:
        0.78rem !important;

    font-weight:
        600 !important;

    line-height:
        1 !important;

    pointer-events:
        auto !important;

    z-index:
        1000000 !important;
}

#dark-mode-toggle,
#creatorModeButton {
    border:
        1px solid
        var(--border-color) !important;

    background:
        var(--card-bg) !important;

    color:
        var(--text-color) !important;

    box-shadow:
        0 5px 20px
        rgba(
            0,
            0,
            0,
            0.18
        ) !important;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease !important;
}

#dark-mode-toggle:hover,
#creatorModeButton:hover {
    transform:
        translateY(-3px) !important;

    box-shadow:
        0 8px 25px
        rgba(
            0,
            0,
            0,
            0.25
        ) !important;
}

#dark-mode-toggle:active,
#creatorModeButton:active {
    transform:
        translateY(0) !important;
}


/* =========================================================
   CREATOR OVERLAY
========================================================= */

#creatorOverlay {
    position:
        fixed !important;

    inset:
        0 !important;

    width:
        100vw !important;

    height:
        100vh !important;

    background:
        rgba(
            0,
            0,
            0,
            0.75
        );

    backdrop-filter:
        blur(8px);

    z-index:
        200000;

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    overflow-y:
        auto;

    padding:
        40px 20px;
}

#creatorOverlay.visible {
    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;
}

#creatorDashboard {
    position:
        relative;

    width:
        min(
            1100px,
            100%
        );

    margin:
        auto;

    min-height:
        700px;

    background:
        var(--card-bg);

    color:
        var(--text-color);

    border:
        1px solid
        var(--border-color);

    border-radius:
        18px;

    padding:
        35px;

    box-shadow:
        0 30px 100px
        rgba(
            0,
            0,
            0,
            0.4
        );

    transform:
        translateY(20px);

    transition:
        transform 0.3s ease;
}

#creatorOverlay.visible
#creatorDashboard {
    transform:
        translateY(0);
}

.creator-header {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    border-bottom:
        1px solid
        var(--border-color);

    padding-bottom:
        25px;

    margin-bottom:
        25px;
}

.creator-header h1 {
    margin-top:
        8px;

    font-size:
        2rem;
}

.creator-header p {
    color:
        var(--card-text);

    margin-top:
        3px;
}

.creator-badge {
    display:
        inline-block;

    padding:
        4px 8px;

    border-radius:
        5px;

    background:
        #007bff;

    color:
        white;

    font-size:
        10px;

    font-weight:
        bold;

    letter-spacing:
        1px;
}

#closeCreator,
#closeEditor {
    width:
        35px !important;

    height:
        35px !important;

    padding:
        0 !important;

    border:
        1px solid
        var(--border-color);

    background:
        transparent;

    color:
        var(--text-color);

    border-radius:
        8px;

    cursor:
        pointer;

    font-size:
        16px;
}

#closeCreator:hover,
#closeEditor:hover {
    background:
        var(--text-color);

    color:
        var(--bg-color);
}

.creator-stats {
    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap:
        15px;

    margin-bottom:
        40px;
}

.creator-stat {
    padding:
        20px;

    border:
        1px solid
        var(--border-color);

    border-radius:
        12px;

    background:
        var(--bg-color);
}

.creator-stat span {
    display:
        block;

    font-size:
        22px;

    margin-bottom:
        8px;
}

.creator-stat strong {
    display:
        block;

    font-size:
        22px;

    color:
        var(--heading-color);
}

.creator-stat small {
    color:
        var(--card-text);
}

.creator-section-header {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        20px;

    margin-bottom:
        20px;
}

.creator-section-header h2 {
    margin-bottom:
        3px;
}

.creator-section-header p {
    color:
        var(--card-text);
}

.creator-primary-button {
    border:
        none;

    background:
        #007bff;

    color:
        white;

    padding:
        10px 16px;

    border-radius:
        7px;

    cursor:
        pointer;

    font-weight:
        600;

    transition:
        0.2s ease;
}

.creator-primary-button:hover {
    transform:
        translateY(-1px);

    filter:
        brightness(1.1);
}

.creator-secondary-button {
    border:
        1px solid
        var(--border-color);

    background:
        transparent;

    color:
        var(--text-color);

    padding:
        10px 16px;

    border-radius:
        7px;

    cursor:
        pointer;
}

.creator-secondary-button:hover {
    background:
        var(--text-color);

    color:
        var(--bg-color);
}

#creatorProjects {
    display:
        flex;

    flex-direction:
        column;

    gap:
        12px;
}

.creator-project-card {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        20px;

    padding:
        20px;

    border:
        1px solid
        var(--border-color);

    border-radius:
        12px;

    background:
        var(--bg-color);
}

.creator-project-title {
    display:
        flex;

    align-items:
        center;

    gap:
        10px;
}

.creator-project-title h3 {
    margin:
        0;
}

.creator-project-info {
    flex:
        1;
}

.creator-project-info p {
    color:
        var(--card-text);

    margin:
        5px 0;
}

.creator-project-info small {
    color:
        #888888;
}

.active-badge {
    padding:
        3px 7px;

    background:
        #198754;

    color:
        white;

    border-radius:
        4px;

    font-size:
        9px;

    font-weight:
        bold;
}

.creator-project-actions {
    display:
        flex;

    gap:
        8px;
}

.creator-project-actions button {
    padding:
        8px 11px;

    border:
        1px solid
        var(--border-color);

    border-radius:
        6px;

    background:
        var(--card-bg);

    color:
        var(--text-color);

    cursor:
        pointer;
}

.creator-project-actions button:hover {
    background:
        var(--text-color);

    color:
        var(--bg-color);
}

.empty-projects {
    text-align:
        center;

    padding:
        50px;

    border:
        1px dashed
        var(--border-color);

    border-radius:
        12px;
}

.empty-projects span {
    font-size:
        35px;
}

.empty-projects p {
    color:
        var(--card-text);
}


/* =========================================================
   PROJECT EDITOR
========================================================= */

.project-editor {
    position:
        fixed !important;

    top:
        50% !important;

    left:
        50% !important;

    width:
        min(
            550px,
            90vw
        );

    max-height:
        90vh;

    overflow-y:
        auto;

    transform:
        translate(
            -50%,
            -45%
        );

    background:
        var(--card-bg);

    border:
        1px solid
        var(--border-color);

    border-radius:
        15px;

    padding:
        25px;

    z-index:
        300000;

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.project-editor.visible {
    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;

    transform:
        translate(
            -50%,
            -50%
        );
}

.editor-header {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-bottom:
        25px;
}

#projectForm {
    display:
        flex;

    flex-direction:
        column;

    gap:
        15px;
}

#projectForm label {
    display:
        flex;

    flex-direction:
        column;

    gap:
        6px;

    font-weight:
        600;

    font-size:
        13px;
}

#projectForm input,
#projectForm textarea {
    width:
        100%;

    padding:
        11px;

    border:
        1px solid
        var(--border-color);

    border-radius:
        7px;

    background:
        var(--bg-color);

    color:
        var(--text-color);

    font-family:
        inherit;

    outline:
        none;
}

#projectForm input:focus,
#projectForm textarea:focus {
    border-color:
        #007bff;
}

#projectForm textarea {
    min-height:
        100px;

    resize:
        vertical;
}

.checkbox-label {
    flex-direction:
        row !important;

    align-items:
        center;
}

.checkbox-label input {
    width:
        auto !important;
}

.editor-buttons {
    display:
        flex;

    justify-content:
        flex-end;

    gap:
        10px;

    margin-top:
        10px;
}

.creator-footer {
    margin-top:
        40px;

    padding-top:
        20px;

    border-top:
        1px solid
        var(--border-color);

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    color:
        #888888;

    font-size:
        12px;
}

#exitCreator {
    background:
        transparent;

    border:
        none;

    color:
        #888888;

    cursor:
        pointer;
}

#exitCreator:hover {
    color:
        var(--text-color);
}

footer {
    color:
        var(--card-text) !important;
}

.footer-logo-link {
    display:
        inline-block;

    margin-top:
        10px;
}


/* =========================================================
   CREATOR LOGIN
========================================================= */

#creatorLoginOverlay {
    position:
        fixed;

    inset:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(
            0,
            0,
            0,
            0.75
        );

    backdrop-filter:
        blur(10px);

    z-index:
        400000;

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

#creatorLoginOverlay.visible {
    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;
}

#creatorLoginBox {
    width:
        min(
            400px,
            calc(
                100% - 40px
            )
        );

    padding:
        35px;

    background:
        var(--card-bg);

    color:
        var(--text-color);

    border:
        1px solid
        var(--border-color);

    border-radius:
        18px;

    box-shadow:
        0 25px 80px
        rgba(
            0,
            0,
            0,
            0.45
        );

    text-align:
        center;

    transform:
        translateY(15px)
        scale(0.97);

    transition:
        transform 0.25s ease;
}

#creatorLoginOverlay.visible
#creatorLoginBox {
    transform:
        translateY(0)
        scale(1);
}

.creator-login-icon {
    font-size:
        40px;

    margin-bottom:
        12px;
}

#creatorLoginBox h2 {
    margin-bottom:
        8px;

    color:
        var(--heading-color);
}

#creatorLoginBox > p {
    color:
        var(--card-text);

    margin-bottom:
        25px;
}

#creatorLoginForm {
    display:
        flex;

    flex-direction:
        column;

    text-align:
        left;

    gap:
        8px;
}

#creatorLoginForm label {
    font-size:
        13px;

    font-weight:
        600;
}

#creatorPassword {
    width:
        100%;

    padding:
        12px 13px;

    border:
        1px solid
        var(--border-color);

    border-radius:
        8px;

    background:
        var(--bg-color);

    color:
        var(--text-color);

    font-family:
        inherit;

    font-size:
        14px;

    outline:
        none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#creatorPassword:focus {
    border-color:
        #007bff;

    box-shadow:
        0 0 0 3px
        rgba(
            0,
            123,
            255,
            0.12
        );
}

#creatorLoginError {
    min-height:
        20px;

    margin:
        3px 0 5px;

    color:
        #dc3545;

    font-size:
        13px;

    font-weight:
        600;

    text-align:
        center;
}

.creator-login-buttons {
    display:
        flex;

    gap:
        10px;

    margin-top:
        8px;
}

.creator-login-buttons button {
    flex:
        1;
}

#creatorLoginBox.shake {
    animation:
        creatorLoginShake
        0.35s
        ease;
}

@keyframes creatorLoginShake {

    0% {
        transform:
            translateX(0);
    }

    25% {
        transform:
            translateX(-8px);
    }

    50% {
        transform:
            translateX(8px);
    }

    75% {
        transform:
            translateX(-5px);
    }

    100% {
        transform:
            translateX(0);
    }

}


/* =========================================================
   VISITOR ANALYTICS
========================================================= */

.visitor-analytics-card {
    width:
        100%;

    margin-bottom:
        35px;

    padding:
        30px;

    background:
        var(--card-bg);

    color:
        var(--text-color);

    border:
        1px solid
        var(--border-color);

    border-radius:
        18px;

    box-shadow:
        var(--card-shadow);

    text-align:
        left;
}

.visitor-analytics-header {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap:
        25px;

    padding-bottom:
        25px;

    margin-bottom:
        25px;

    border-bottom:
        1px solid
        var(--border-color);
}

.visitor-analytics-badge {
    display:
        inline-block;

    padding:
        5px 9px;

    margin-bottom:
        9px;

    border-radius:
        6px;

    background:
        #007bff;

    color:
        white;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        1.5px;
}

.visitor-analytics-header h2 {
    margin:
        0 0 5px;

    color:
        var(--heading-color);

    font-size:
        1.7rem;
}

.visitor-analytics-header p {
    margin:
        0;

    color:
        var(--card-text);

    font-size:
        0.9rem;
}

.visitor-status-indicator {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    padding:
        8px 12px;

    border:
        1px solid
        var(--border-color);

    border-radius:
        8px;

    background:
        var(--bg-color);

    color:
        var(--card-text);

    white-space:
        nowrap;

    font-size:
        0.75rem;

    font-weight:
        600;
}

.visitor-status-indicator span {
    width:
        8px;

    height:
        8px;

    border-radius:
        50%;

    background:
        #198754;

    box-shadow:
        0 0 0 4px
        rgba(
            25,
            135,
            84,
            0.12
        );
}

.visitor-analytics-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            1fr
        );

    gap:
        20px;
}

.visitor-analytics-stat {
    display:
        flex;

    align-items:
        center;

    gap:
        18px;

    padding:
        22px;

    background:
        var(--bg-color);

    border:
        1px solid
        var(--border-color);

    border-radius:
        14px;
}

.visitor-stat-icon {
    width:
        55px;

    height:
        55px;

    flex:
        0 0 55px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        14px;

    font-size:
        24px;
}

.visitor-stat-icon.online {
    background:
        rgba(
            25,
            135,
            84,
            0.1
        );
}

.visitor-stat-icon.total {
    background:
        rgba(
            0,
            123,
            255,
            0.1
        );
}

.visitor-analytics-stat div:last-child {
    display:
        flex;

    flex-direction:
        column;
}

.visitor-analytics-stat span {
    color:
        var(--card-text);

    font-size:
        0.78rem;

    font-weight:
        600;

    margin-bottom:
        3px;
}

.visitor-analytics-stat strong {
    color:
        var(--heading-color);

    font-size:
        2rem;

    line-height:
        1.2;

    margin-bottom:
        2px;
}

.visitor-analytics-stat small {
    color:
        var(--card-text);

    font-size:
        0.7rem;
}

.visitor-analytics-footer {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        15px;

    margin-top:
        20px;

    padding-top:
        18px;

    border-top:
        1px solid
        var(--border-color);

    color:
        #888;

    font-size:
        0.7rem;
}

.visitor-loading {
    opacity:
        0.5;
}

.visitor-error {
    color:
        #dc3545 !important;
}

.visitor-live {
    color:
        #198754 !important;
}


/* =========================================================
   VISITOR MAP
========================================================= */

.visitor-map-section {
    margin-top:
        28px;

    padding-top:
        25px;

    border-top:
        1px solid
        var(--border-color);
}

.visitor-map-header {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        20px;

    margin-bottom:
        15px;
}

.visitor-map-header h3 {
    margin:
        0 0 4px;

    color:
        var(--heading-color);

    font-size:
        1.1rem;
}

.visitor-map-header p {
    margin:
        0;

    color:
        var(--card-text);

    font-size:
        0.75rem;
}

#visitorMapCount {
    padding:
        7px 10px;

    background:
        var(--bg-color);

    border:
        1px solid
        var(--border-color);

    border-radius:
        7px;

    color:
        var(--card-text);

    font-size:
        0.7rem;

    font-weight:
        600;

    white-space:
        nowrap;
}

.visitor-map {
    width:
        100%;

    height:
        380px;

    border-radius:
        14px;

    overflow:
        hidden;

    border:
        1px solid
        var(--border-color);

    box-shadow:
        var(--card-shadow);

    background:
        #0f1720;
}

.visitor-map-legend {
    display:
        flex;

    align-items:
        center;

    gap:
        8px;

    margin-top:
        10px;

    color:
        var(--card-text);

    font-size:
        0.7rem;
}

.visitor-map-dot {
    width:
        9px;

    height:
        9px;

    border-radius:
        50%;

    background:
        #007bff;

    box-shadow:
        0 0 0 4px
        rgba(
            0,
            123,
            255,
            0.15
        );
}

.leaflet-popup-content {
    font-family:
        "Segoe UI",
        Arial,
        sans-serif;
}


/* =========================================================
   SITE STATUS
========================================================= */

.site-status-card {
    width:
        100%;

    margin-bottom:
        35px;

    padding:
        30px;

    background:
        var(--card-bg);

    color:
        var(--text-color);

    border:
        1px solid
        var(--border-color);

    border-radius:
        18px;

    box-shadow:
        var(--card-shadow);

    text-align:
        left;
}

.site-status-header {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap:
        20px;

    padding-bottom:
        22px;

    margin-bottom:
        22px;

    border-bottom:
        1px solid
        var(--border-color);
}

.site-status-badge {
    display:
        inline-block;

    padding:
        5px 9px;

    margin-bottom:
        8px;

    border-radius:
        6px;

    background:
        #007bff;

    color:
        white;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        1.5px;
}

.site-status-header h2 {
    margin:
        0 0 5px;

    color:
        var(--heading-color);

    font-size:
        1.7rem;
}

.site-status-header p {
    margin:
        0;

    color:
        var(--card-text);

    font-size:
        0.9rem;
}

.site-status-live {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    padding:
        8px 12px;

    border:
        1px solid
        var(--border-color);

    border-radius:
        8px;

    background:
        var(--bg-color);

    color:
        var(--card-text);

    font-size:
        0.75rem;

    font-weight:
        600;
}

.site-status-live span {
    width:
        8px;

    height:
        8px;

    border-radius:
        50%;

    background:
        #198754;

    box-shadow:
        0 0 0 4px
        rgba(
            25,
            135,
            84,
            0.12
        );
}

.site-status-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap:
        15px;
}

.site-status-item {
    display:
        flex;

    align-items:
        center;

    gap:
        14px;

    padding:
        18px;

    background:
        var(--bg-color);

    border:
        1px solid
        var(--border-color);

    border-radius:
        12px;
}

.site-status-icon {
    width:
        44px;

    height:
        44px;

    flex:
        0 0 44px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        11px;

    background:
        rgba(
            0,
            123,
            255,
            0.08
        );

    font-size:
        20px;
}

.site-status-item div:last-child {
    display:
        flex;

    flex-direction:
        column;

    min-width:
        0;
}

.site-status-item span {
    color:
        var(--card-text);

    font-size:
        0.72rem;

    margin-bottom:
        3px;
}

.site-status-item strong {
    color:
        var(--heading-color);

    font-size:
        0.95rem;
}

.status-good {
    color:
        #198754 !important;
}

.status-bad {
    color:
        #dc3545 !important;
}

.status-checking {
    color:
        #f59e0b !important;
}

.site-status-footer {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-top:
        18px;

    padding-top:
        15px;

    border-top:
        1px solid
        var(--border-color);

    color:
        #888;

    font-size:
        0.7rem;
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline-section {
    padding:
        80px 10%;

    background:
        var(--bg-color);

    text-align:
        center;
}

.timeline-header {
    max-width:
        700px;

    margin:
        0 auto 70px;
}

.timeline-badge {
    display:
        inline-block;

    padding:
        5px 10px;

    margin-bottom:
        12px;

    border-radius:
        6px;

    background:
        #007bff;

    color:
        #ffffff;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        1.5px;
}

.timeline-header h2 {
    margin-bottom:
        10px;

    font-size:
        2.2rem;

    color:
        var(--heading-color);
}

.timeline-header p {
    color:
        var(--card-text);

    font-size:
        1rem;
}

.timeline {
    position:
        relative;

    width:
        min(
            1000px,
            100%
        );

    margin:
        0 auto;

    padding:
        20px 0;
}

.timeline-line {
    position:
        absolute;

    top:
        0;

    bottom:
        0;

    left:
        50%;

    width:
        3px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            to bottom,
            #007bff,
            rgba(
                0,
                123,
                255,
                0.15
            )
        );

    border-radius:
        50px;
}

.timeline-item {
    position:
        relative;

    width:
        50%;

    padding:
        20px 45px;

    margin-bottom:
        35px;
}

.timeline-left {
    left:
        0;

    text-align:
        right;
}

.timeline-right {
    left:
        50%;

    text-align:
        left;
}

.timeline-dot {
    position:
        absolute;

    top:
        32px;

    width:
        44px;

    height:
        44px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        var(--card-bg);

    border:
        3px solid
        #007bff;

    box-shadow:
        0 0 0 6px
        rgba(
            0,
            123,
            255,
            0.08
        ),
        0 8px 20px
        rgba(
            0,
            0,
            0,
            0.12
        );

    z-index:
        3;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.timeline-left .timeline-dot {
    right:
        -22px;
}

.timeline-right .timeline-dot {
    left:
        -22px;
}

.timeline-dot span {
    color:
        #007bff;

    font-weight:
        800;

    font-size:
        13px;
}

.timeline-card {
    position:
        relative;

    display:
        inline-block;

    width:
        min(
            100%,
            380px
        );

    padding:
        24px;

    border-radius:
        14px;

    background:
        var(--card-bg);

    border:
        1px solid
        var(--border-color);

    box-shadow:
        var(--card-shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.timeline-card:hover {
    transform:
        translateY(-5px);

    border-color:
        #007bff;

    box-shadow:
        0 12px 30px
        rgba(
            0,
            0,
            0,
            0.12
        );
}

.timeline-card:hover
+ .timeline-popup {
    opacity:
        1;

    visibility:
        visible;

    transform:
        translateY(-50%)
        translateX(0);

    pointer-events:
        auto;
}

.timeline-left .timeline-card {
    text-align:
        right;
}

.timeline-right .timeline-card {
    text-align:
        left;
}

.timeline-year {
    display:
        inline-block;

    margin-bottom:
        8px;

    color:
        #007bff;

    font-size:
        0.8rem;

    font-weight:
        800;

    letter-spacing:
        1px;
}

.timeline-card h3 {
    margin-bottom:
        8px;

    color:
        var(--heading-color);

    font-size:
        1.25rem;
}

.timeline-card p {
    margin:
        0;

    color:
        var(--card-text);

    font-size:
        0.9rem;
}

.timeline-popup {
    position:
        absolute;

    top:
        50%;

    width:
        300px;

    padding:
        20px;

    border-radius:
        12px;

    background:
        var(--card-bg);

    border:
        1px solid
        #007bff;

    box-shadow:
        0 20px 50px
        rgba(
            0,
            0,
            0,
            0.18
        );

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transform:
        translateY(-50%)
        translateX(15px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index:
        20;

    text-align:
        left;
}

.timeline-left .timeline-popup {
    right:
        -320px;
}

.timeline-right .timeline-popup {
    left:
        -320px;

    transform:
        translateY(-50%)
        translateX(-15px);
}

.timeline-right .timeline-card:hover
+ .timeline-popup {
    transform:
        translateY(-50%)
        translateX(0);
}

.timeline-popup-label {
    display:
        inline-block;

    margin-bottom:
        7px;

    color:
        #007bff;

    font-size:
        0.7rem;

    font-weight:
        800;

    letter-spacing:
        1px;
}

.timeline-popup h4 {
    margin-bottom:
        8px;

    color:
        var(--heading-color);

    font-size:
        1.05rem;
}

.timeline-popup p {
    color:
        var(--card-text);

    font-size:
        0.82rem;

    line-height:
        1.6;
}

.timeline-item:hover
.timeline-dot {
    transform:
        scale(1.15);

    background:
        #007bff;

    box-shadow:
        0 0 0 8px
        rgba(
            0,
            123,
            255,
            0.12
        ),
        0 12px 25px
        rgba(
            0,
            0,
            0,
            0.2
        );
}

.timeline-item:hover
.timeline-dot span {
    color:
        #ffffff;
}


/* =========================================================
   ACADEMIC JOURNEY MAP
========================================================= */

.academic-journey-map {
    width:
        100%;

    margin-top:
        45px;

    padding-top:
        35px;

    border-top:
        1px solid
        var(--border-color);
}

.academic-map-heading {
    text-align:
        left;

    margin-bottom:
        18px;
}

.academic-map-heading span {
    display:
        block;

    margin-bottom:
        7px;

    color:
        #007bff;

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        2px;
}

.academic-map-heading h2 {
    margin:
        0 0 8px;

    color:
        var(--heading-color);

    font-size:
        1.8rem;
}

.academic-map-heading p {
    margin:
        0;

    color:
        var(--card-text);

    font-size:
        0.85rem;

    line-height:
        1.5;
}


/* =========================================================
   ACADEMIC MAP CONTAINER
========================================================= */

.academic-map-container {
    position:
        relative;

    width:
        100%;

    height:
        500px;

    overflow:
        hidden;

    border-radius:
        14px;

    border:
        1px solid
        var(--border-color);

    background:
        #111111;

    box-shadow:
        var(--card-shadow);
}

#academicMap {
    width:
        100%;

    height:
        100%;
}

.academic-map-hint {
    margin:
        10px 0 0;

    color:
        var(--card-text);

    font-size:
        0.68rem;

    text-align:
        left;
}


/* =========================================================
   SCHOOL MARKERS
========================================================= */

.academic-school-marker {
    width:
        18px;

    height:
        18px;

    border-radius:
        50%;

    background:
        #007bff;

    border:
        3px solid
        #ffffff;

    box-shadow:
        0 0 0 5px
        rgba(
            0,
            123,
            255,
            0.16
        ),
        0 0 18px
        rgba(
            0,
            123,
            255,
            0.55
        );
}


/* =========================================================
   AIRPORT MARKERS
========================================================= */

.academic-airport-marker {
    width:
        18px;

    height:
        18px;

    border-radius:
        50%;

    background:
        #70e000;

    border:
        3px solid
        #ffffff;

    box-shadow:
        0 0 0 5px
        rgba(
            112,
            224,
            0,
            0.15
        ),
        0 0 18px
        rgba(
            112,
            224,
            0,
            0.5
        );
}


/* =========================================================
   FLIGHT HOVER OVERLAY
========================================================= */

.flight-hover-overlay {
    position:
        absolute;

    inset:
        0;

    z-index:
        800;

    pointer-events:
        none;

    opacity:
        0;

    visibility:
        hidden;

    transition:
        opacity 0.12s ease,
        visibility 0.12s ease;
}

.flight-hover-overlay.visible {
    opacity:
        1;

    visibility:
        visible;
}


/* =========================================================
   ALASKA AIRLINES LOGO
========================================================= */

.flight-airline-logo {
    position:
        absolute;

    width:
        92px;

    height:
        52px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        6px;

    transform:
        translate(
            0,
            0
        );

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    border:
        1px solid
        rgba(
            0,
            0,
            0,
            0.15
        );

    border-radius:
        9px;

    box-shadow:
        0 7px 20px
        rgba(
            0,
            0,
            0,
            0.22
        );

    transition:
        left 0.04s linear,
        top 0.04s linear;
}

.flight-airline-logo img {
    width:
        100%;

    height:
        100%;

    object-fit:
        contain;

    display:
        block;
}


/* =========================================================
   AIRCRAFT
========================================================= */

.flight-hover-plane {
    position:
        absolute;

    width:
        60px;

    height:
        60px;

    transform:
        translate(
            -50%,
            -50%
        );

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    transition:
        left 0.04s linear,
        top 0.04s linear;
}

.flight-hover-plane img {
    width:
        60px;

    height:
        60px;

    max-width:
        none;

    object-fit:
        contain;

    display:
        block;

    filter:
        drop-shadow(
            0 5px 8px
            rgba(
                0,
                0,
                0,
                0.35
            )
        );
}


/* =========================================================
   ACADEMIC TOOLTIP
========================================================= */

.academic-tooltip {
    background:
        var(--card-bg) !important;

    color:
        var(--heading-color) !important;

    border:
        1px solid
        var(--border-color) !important;

    border-radius:
        9px !important;

    padding:
        9px 11px !important;

    box-shadow:
        0 10px 25px
        rgba(
            0,
            0,
            0,
            0.2
        ) !important;
}

.academic-tooltip::before {
    border-top-color:
        var(--border-color) !important;
}

.academic-tooltip-title {
    margin-bottom:
        4px;

    color:
        var(--heading-color);

    font-size:
        12px;

    font-weight:
        700;
}

.academic-tooltip-info {
    color:
        #007bff;

    font-size:
        10px;

    font-weight:
        700;
}


/* =========================================================
   ACADEMIC POPUP
========================================================= */

.academic-popup {
    min-width:
        210px;
}

.academic-popup-label {
    margin-bottom:
        4px;

    color:
        #007bff;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        1.2px;
}

.academic-popup h3 {
    margin:
        0 0 6px;

    color:
        #222222;

    font-size:
        14px;
}

.academic-popup p {
    margin:
        0 0 7px;

    color:
        #666666;

    font-size:
        11px;

    line-height:
        1.5;
}

.academic-popup-info {
    color:
        #007bff;

    font-size:
        10px;

    font-weight:
        700;
}


/* =========================================================
   LEAFLET CONTROLS
========================================================= */

.leaflet-control-zoom {
    border:
        1px solid
        #cccccc !important;

    box-shadow:
        0 4px 14px
        rgba(
            0,
            0,
            0,
            0.15
        ) !important;
}

.leaflet-control-zoom a {
    background:
        #ffffff !important;

    color:
        #222222 !important;

    border-color:
        #dddddd !important;
}

.leaflet-control-zoom a:hover {
    background:
        #f1f1f1 !important;
}

.leaflet-control-attribution {
    background:
        rgba(
            255,
            255,
            255,
            0.9
        ) !important;

    color:
        #666666 !important;

    font-size:
        9px !important;
}

.leaflet-control-attribution a {
    color:
        #007bff !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .project-container {
        flex-direction:
            column !important;

        gap:
            35px !important;
    }


    .project-story,
    .project-gallery {
        width:
            100% !important;

        max-width:
            100% !important;

        flex:
            none !important;
    }


    .academic-map-container {
        height:
            500px;
    }


    .timeline-item {
        width:
            100%;

        left:
            0 !important;

        padding-left:
            75px;

        padding-right:
            20px;

        text-align:
            left;
    }


    .timeline-line {
        left:
            22px;

        transform:
            none;
    }


    .timeline-dot {
        left:
            0 !important;

        right:
            auto !important;
    }


    .timeline-left .timeline-card,
    .timeline-right .timeline-card {
        text-align:
            left;

        width:
            100%;
    }


    .timeline-popup {
        position:
            relative;

        top:
            auto;

        left:
            auto !important;

        right:
            auto !important;

        width:
            100%;

        margin-top:
            12px;

        transform:
            none !important;
    }


    .timeline-card:hover
    + .timeline-popup {
        transform:
            none !important;
    }


    .timeline-item:hover
    .timeline-popup {
        opacity:
            1;

        visibility:
            visible;

        pointer-events:
            auto;
    }


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

}


@media (max-width: 768px) {

    .creator-project-card {
        flex-direction:
            column;

        align-items:
            stretch;
    }


    .creator-project-actions {
        width:
            100%;
    }


    .creator-project-actions button {
        flex:
            1;
    }

}


@media (max-width: 700px) {

    #creatorDashboard {
        padding:
            20px;
    }


    .creator-stats {
        grid-template-columns:
            1fr;
    }


    .creator-section-header {
        flex-direction:
            column;

        align-items:
            stretch;
    }


    .creator-footer {
        flex-direction:
            column;

        gap:
            10px;
    }


    .visitor-analytics-card {
        padding:
            22px;
    }


    .visitor-analytics-header {
        flex-direction:
            column;
    }


    .visitor-analytics-grid {
        grid-template-columns:
            1fr;
    }


    .visitor-analytics-footer {
        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .visitor-map {
        height:
            300px;
    }


    .visitor-map-header {
        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .site-status-card {
        padding:
            22px;
    }


    .site-status-header {
        flex-direction:
            column;
    }


    .site-status-grid {
        grid-template-columns:
            1fr;
    }


    .site-status-footer {
        flex-direction:
            column;

        align-items:
            flex-start;

        gap:
            5px;
    }


    .academic-map-container {
        height:
            430px;
    }


    .academic-map-heading h2 {
        font-size:
            1.6rem;
    }


    /* Larger plane on tablet/mobile */

    .flight-hover-plane {
        width:
            52px;

        height:
            52px;
    }


    .flight-hover-plane img {
        width:
            52px;

        height:
            52px;
    }


    .flight-airline-logo {
        width:
            78px;

        height:
            44px;
    }

}


@media (max-width: 600px) {

    .timeline-section {
        padding:
            60px 6%;
    }


    .timeline-header h2 {
        font-size:
            1.9rem;
    }


    .timeline-item {
        padding-left:
            60px;

        padding-right:
            0;
    }


    .timeline-line {
        left:
            18px;
    }


    .timeline-dot {
        width:
            38px;

        height:
            38px;
    }


    .timeline-popup {
        padding:
            16px;
    }


    .academic-journey-map {
        margin-top:
            35px;

        padding-top:
            25px;
    }


    .academic-map-container {
        height:
            400px;

        border-radius:
            12px;
    }


    .academic-map-heading p {
        font-size:
            0.78rem;
    }


    /* Bigger plane on phones */

    .flight-hover-plane {
        width:
            48px;

        height:
            48px;
    }


    .flight-hover-plane img {
        width:
            48px;

        height:
            48px;
    }


    .flight-airline-logo {
        width:
            70px;

        height:
            40px;

        padding:
            5px;
    }

}


@media (max-width: 550px) {

    #creatorLoginBox {
        padding:
            25px;
    }


    .creator-login-buttons {
        flex-direction:
            column;
    }

}


@media (max-width: 480px) {

    .profile-container {
        gap:
            15px;

        flex-wrap:
            wrap;
    }


    .profile-img {
        width:
            90px;

        height:
            90px;
    }


    .side-img {
        width:
            65px;

        height:
            65px;

        border-width:
            4px !important;
    }


    .Title {
        font-size:
            2.2rem;
    }


    .clock-card {
        top:
            10px;

        right:
            10px;

        padding:
            8px 10px;
    }


    .clock-label {
        font-size:
            8px;
    }


    #clockTime {
        font-size:
            14px;
    }


    #lightbox-back-btn {
        top:
            15px !important;

        left:
            15px !important;

        padding:
            8px 14px !important;

        font-size:
            0.8rem !important;
    }


    #lightbox-img {
        max-width:
            94vw !important;

        max-height:
            75vh !important;
    }


    .bottom-controls {
        bottom:
            15px !important;

        left:
            15px !important;

        right:
            15px !important;

        height:
            38px !important;
    }


    .bottom-controls button {
        min-width:
            105px !important;

        height:
            38px !important;

        padding:
            0 10px !important;

        font-size:
            0.7rem !important;
    }


    .academic-map-container {
        height:
            350px;
    }


    /* Keep plane visible but compact on very small screens */

    .flight-hover-plane {
        width:
            44px;

        height:
            44px;
    }


    .flight-hover-plane img {
        width:
            44px;

        height:
            44px;
    }

}


/* =========================================================
   CLOCK MODE NAVIGATION
========================================================= */

.clock-mode-nav {
    display:
        flex;

    align-items:
        center;

    gap:
        4px;

    width:
        100%;

    max-width:
        100%;

    margin-top:
        7px;

    padding:
        3px;

    overflow-x:
        auto;

    overflow-y:
        hidden;

    white-space:
        nowrap;

    scrollbar-width:
        thin;

    scrollbar-color:
        rgba(
            255,
            255,
            255,
            0.25
        )
        transparent;
}

.clock-mode-nav::-webkit-scrollbar {
    height:
        3px;
}

.clock-mode-nav::-webkit-scrollbar-track {
    background:
        transparent;
}

.clock-mode-nav::-webkit-scrollbar-thumb {
    background:
        rgba(
            255,
            255,
            255,
            0.25
        );

    border-radius:
        10px;
}

.clock-mode-button {
    flex:
        0 0 auto;

    min-width:
        max-content;

    padding:
        4px 7px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius:
        6px;

    background:
        rgba(
            255,
            255,
            255,
            0.06
        );

    color:
        rgba(
            255,
            255,
            255,
            0.65
        );

    font-size:
        8px;

    font-weight:
        700;

    line-height:
        1;

    letter-spacing:
        0.3px;

    white-space:
        nowrap;

    cursor:
        pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.clock-mode-button:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.12
        );

    color:
        #ffffff;

    border-color:
        rgba(
            255,
            255,
            255,
            0.25
        );
}

.clock-mode-button.active {
    background:
        #007bff;

    color:
        #ffffff;

    border-color:
        #007bff;

    box-shadow:
        0 3px 8px
        rgba(
            0,
            123,
            255,
            0.25
        );
}

.clock-mode-button:active {
    transform:
        scale(0.96);
}


/* =========================================================
   CLOCK NOTIFICATION
========================================================= */

.clock-notification {
    position:
        fixed;

    top:
        92px;

    right:
        20px;

    z-index:
        6000;

    width:
        min(
            280px,
            calc(
                100vw - 40px
            )
        );

    max-width:
        calc(
            100vw - 40px
        );

    padding:
        12px 15px;

    background:
        #1e1e1e;

    color:
        #ffffff;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.15
        );

    border-radius:
        10px;

    box-shadow:
        0 10px 30px
        rgba(
            0,
            0,
            0,
            0.3
        );

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transform:
        translateX(
            calc(
                100% + 30px
            )
        );

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;

    overflow:
        hidden;

    white-space:
        nowrap;
}

.clock-notification.visible {
    opacity:
        1;

    visibility:
        visible;

    transform:
        translateX(0);
}

#clockNotificationText {
    display:
        block;

    width:
        100%;

    overflow-x:
        auto;

    overflow-y:
        hidden;

    white-space:
        nowrap;

    scrollbar-width:
        none;

    font-size:
        11px;

    font-weight:
        600;
}

#clockNotificationText::-webkit-scrollbar {
    display:
        none;
}


/* =========================================================
   CLOCK RESPONSIVE
========================================================= */

@media (max-width: 480px) {

    .clock-card {
        max-width:
            calc(
                100vw - 20px
            );

        overflow:
            hidden;
    }

    .clock-info {
        min-width:
            0;
    }

    .clock-mode-nav {
        max-width:
            150px;
    }

    .clock-notification {
        top:
            80px;

        right:
            10px;

        width:
            calc(
                100vw - 20px
            );
    }

}