/* ================================================================
 *  PROPHECY CORE INTERFACE
 *  2ADVANCED / FLASH ERA / SCI-FI HUD
 *  ================================================================ */

:root {
    --bg: #06090f;
    --bg-soft: #09101a;

    --cyan: #00f0ff;
    --cyan-soft: rgba(0, 240, 255, 0.15);
    --cyan-faint: rgba(0, 240, 255, 0.06);

    --amber: #ffb703;
    --amber-soft: rgba(255, 183, 3, 0.15);

    --white: #e9fbff;
    --muted: #6d8791;

    --border: rgba(0, 240, 255, 0.35);
    --border-soft: rgba(255, 255, 255, 0.08);

    --nav-height: 78px;
}


/* ================================================================
 *  GLOBAL
 *  ================================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--white);
    font-family: "Rajdhani", sans-serif;
    font-size: 16px;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

::selection {
    background: var(--cyan);
    color: #000;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ================================================================
 *  GLOBAL BACKGROUND GRID
 *  ================================================================ */

.grid-background {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;

    background-image:
    linear-gradient(
        rgba(0, 240, 255, 0.045) 1px,
                    transparent 1px
    ),
    linear-gradient(
        90deg,
        rgba(0, 240, 255, 0.045) 1px,
                    transparent 1px
    );

    background-size: 48px 48px;

    mask-image:
    radial-gradient(
        ellipse at center,
        black 0%,
        transparent 85%
    );
}


/* ================================================================
 *  CRT SCANLINES
 *  ================================================================ */

.crt-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;

    opacity: 0.15;

    background:
    repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(255, 255, 255, 0.035) 4px,
                              transparent 5px
    );
}


/* ================================================================
 *  AMBIENT GLOW
 *  ================================================================ */

.ambient-glow {
    position: fixed;
    z-index: -5;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(100px);
}

.glow-one {
    width: 500px;
    height: 500px;

    left: -250px;
    top: 20%;

    background: rgba(0, 240, 255, 0.08);
}

.glow-two {
    width: 600px;
    height: 600px;

    right: -300px;
    bottom: -200px;

    background: rgba(255, 183, 3, 0.045);
}


/* ================================================================
 *  FULL SCREEN SECTIONS
 *  ================================================================ */

.screen {
    min-height: 100vh;
    height: 100vh;

    position: relative;

    display: flex;
    align-items: center;

    padding-top: var(--nav-height);
    overflow: hidden;

    scroll-snap-align: start;
}

#page {
scroll-snap-type: y mandatory;
}


/* ================================================================
 *  NAVBAR
 *  ================================================================ */

.hud-navbar {
    height: var(--nav-height);

    background:
    linear-gradient(
        90deg,
        rgba(6, 9, 15, 0.94),
                    rgba(6, 9, 15, 0.78),
                    rgba(6, 9, 15, 0.94)
    );

    border-bottom: 1px solid rgba(0, 240, 255, 0.18);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    z-index: 1000;
}

.hud-brand {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.12em;

    color: var(--white) !important;

    text-shadow:
    0 0 12px rgba(0, 240, 255, 0.5);
}

.brand-slashes {
    color: var(--cyan);
}

.brand-version {
    color: var(--amber);
    font-size: 13px;
    margin-left: 4px;
    letter-spacing: 0.08em;
}

.navbar-nav {
    gap: 8px;
}

.nav-link {
    position: relative;

    color: #78929c !important;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 0.12em;

    padding: 28px 15px !important;

    transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.nav-link span {
    color: #3b515a;
    font-size: 11px;
    margin-right: 5px;

    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 0;

    height: 2px;

    background: var(--cyan);

    box-shadow:
    0 0 8px var(--cyan),
    0 0 20px rgba(0, 240, 255, 0.7);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;

    text-shadow:
    0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-link:hover span,
.nav-link.active span {
    color: var(--cyan);
}

.nav-link.active::after {
    transform: scaleX(1);
}


/* ================================================================
 *  MOBILE NAV
 *  ================================================================ */

.hud-toggler {
    border: 1px solid var(--border);
    padding: 8px;
}

.hud-toggler span {
    display: block;

    width: 22px;
    height: 1px;

    background: var(--cyan);

    margin: 4px;

    box-shadow: 0 0 5px var(--cyan);
}

@media (max-width: 991px) {

    .hud-navbar {
        height: auto;
        min-height: var(--nav-height);
    }

    .navbar-collapse {
        background: rgba(6, 9, 15, 0.97);

        margin: 0 -1rem;
        padding: 10px 1rem 20px;

        border-top: 1px solid rgba(0, 240, 255, 0.15);
    }

    .nav-link {
        padding: 12px 15px !important;
    }

    .nav-link::after {
        bottom: 5px;
    }

}


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

.hero-screen {
    background:
    radial-gradient(
        circle at 75% 50%,
        rgba(0, 240, 255, 0.08),
                    transparent 30%
    );
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #78929c;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.18em;

    margin-bottom: 25px;
}

.status-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--cyan);

    box-shadow:
    0 0 5px var(--cyan),
    0 0 15px var(--cyan);

    animation: pulse 1.8s infinite;
}

.status-divider {
    color: #263940;
}

.hero-kicker,
.micro-label {
    color: var(--cyan);

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.25em;
}

.hero-title {
    position: relative;

    margin: 12px 0 25px;

    font-size: clamp(65px, 10vw, 145px);

    font-weight: 700;
    line-height: 0.75;

    letter-spacing: -0.035em;

    color: transparent;

    -webkit-text-stroke: 1px rgba(233, 251, 255, 0.75);

    text-shadow:
    0 0 25px rgba(0, 240, 255, 0.18);
}

.hero-title span {
    display: block;

    color: var(--cyan);

    -webkit-text-stroke: 0;

    text-shadow:
    0 0 10px rgba(0, 240, 255, 0.7),
    0 0 45px rgba(0, 240, 255, 0.25);
}

.hero-title small {
    display: block;

    margin-top: 12px;

    font-size: 0.31em;
    font-weight: 500;

    letter-spacing: 0.58em;

    color: var(--amber);

    -webkit-text-stroke: 0;

    text-shadow:
    0 0 10px rgba(255, 183, 3, 0.4);
}

.hero-description {
    max-width: 650px;

    color: #91aab3;

    font-size: 19px;
    line-height: 1.45;

    letter-spacing: 0.03em;

    margin-bottom: 35px;
}


/* ================================================================
 *  HUD BUTTONS
 *  ================================================================ */

.hud-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    min-width: 190px;

    padding: 13px 18px;

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

    background: rgba(0, 240, 255, 0.035);

    color: var(--white);

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.14em;

    clip-path: polygon(
        0 0,
        calc(100% - 12px) 0,
                       100% 12px,
                       100% 100%,
                       12px 100%,
                       0 calc(100% - 12px)
    );

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

.hud-button::before {
    content: "";

    position: absolute;
    inset: 3px;

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

    pointer-events: none;
}

.hud-button i {
    color: var(--cyan);

    font-size: 20px;
    font-style: normal;

    transition: transform 0.25s ease;
}

.hud-button:hover {
    color: var(--white);

    background: rgba(0, 240, 255, 0.1);

    box-shadow:
    0 0 15px rgba(0, 240, 255, 0.3),
    inset 0 0 20px rgba(0, 240, 255, 0.04);

    transform: translateY(-2px);
}

.hud-button:hover i {
    transform: translateX(5px);
}

.hud-button.secondary {
    border-color: rgba(255, 255, 255, 0.25);

    background: rgba(255, 255, 255, 0.025);
}

.hud-button.secondary i {
    color: var(--amber);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* ================================================================
 *  CORE INTERFACE
 *  ================================================================ */

.core-interface {
    position: relative;

    width: min(36vw, 500px);
    aspect-ratio: 1;

    margin: auto;
}

.core-interface::before,
.core-interface::after {
    content: "";

    position: absolute;
    inset: 12%;

    border: 1px solid rgba(0, 240, 255, 0.2);

    clip-path: polygon(
        50% 0,
        100% 50%,
        50% 100%,
        0 50%
    );
}

.core-interface::after {
    inset: 20%;

    border-color: rgba(255, 183, 3, 0.2);

    transform: rotate(45deg);
}

.core-ring {
    position: absolute;

    border-radius: 50%;

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

    opacity: 0.55;
}

.ring-one {
    inset: 5%;

    border-style: dashed;

    animation: spin 35s linear infinite;
}

.ring-two {
    inset: 17%;

    border-color: rgba(0, 240, 255, 0.4);

    border-left-color: transparent;
    border-right-color: transparent;

    animation: spinReverse 20s linear infinite;
}

.ring-three {
    inset: 30%;

    border-color: var(--amber);

    border-style: dotted;

    opacity: 0.5;

    animation: spin 14s linear infinite;
}

.core-center {
    position: absolute;

    inset: 40%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

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

    background: rgba(0, 240, 255, 0.04);

    clip-path: polygon(
        50% 0,
        100% 25%,
        100% 75%,
        50% 100%,
        0 75%,
        0 25%
    );

    box-shadow:
    0 0 25px rgba(0, 240, 255, 0.2),
    inset 0 0 20px rgba(0, 240, 255, 0.08);
}

.core-center span {
    font-size: 35px;
    font-weight: 700;

    color: var(--cyan);

    text-shadow:
    0 0 15px var(--cyan);
}

.core-center small {
    color: var(--amber);

    letter-spacing: 0.25em;
}

.core-label {
    position: absolute;

    color: #6f8992;

    font-size: 10px;
    letter-spacing: 0.18em;
}

.label-top {
    top: 8%;
    left: 30%;
}

.label-right {
    top: 48%;
    right: -5%;

    color: var(--cyan);
}

.label-bottom {
    bottom: 10%;
    left: 34%;

    display: flex;
    align-items: center;
    gap: 8px;
}


/* ================================================================
 *  SECTION HEADER
 *  ================================================================ */

.section-header {
    position: absolute;

    top: calc(var(--nav-height) + 20px);
    left: 0;
    right: 0;

    padding: 0 30px;

    display: flex;
    align-items: center;

    gap: 20px;

    font-size: 11px;
    letter-spacing: 0.15em;
}

.section-index {
    color: var(--cyan);
}

.section-tag {
    color: #607b85;
}

.section-line {
    flex: 1;

    height: 1px;

    background:
    linear-gradient(
        90deg,
        rgba(0, 240, 255, 0.3),
                    transparent
    );
}

.section-code {
    color: #3d555e;
}


/* ================================================================
 *  SECTION CONTENT
 *  ================================================================ */

.content-screen {
    background:
    radial-gradient(
        circle at 10% 80%,
        rgba(0, 240, 255, 0.04),
                    transparent 30%
    );
}

.section-title-wrap {
    margin-bottom: 30px;
}

.section-title-wrap h2 {
    margin: 12px 0 20px;

    font-size: clamp(48px, 6vw, 90px);

    font-weight: 300;
    line-height: 0.85;

    letter-spacing: -0.02em;
}

.section-title-wrap h2 strong {
    display: block;

    color: var(--cyan);

    font-weight: 700;

    text-shadow:
    0 0 20px rgba(0, 240, 255, 0.25);
}

.title-decoration {
    display: flex;
    gap: 5px;
}

.title-decoration span {
    width: 35px;
    height: 3px;

    background: var(--cyan);

    box-shadow: 0 0 8px var(--cyan);
}

.title-decoration span:nth-child(2) {
    width: 12px;
}

.title-decoration span:nth-child(3) {
    width: 5px;

    background: var(--amber);

    box-shadow: 0 0 8px var(--amber);
}

.large-copy {
    color: #b1c6cc;

    font-size: 20px;
    line-height: 1.45;
}

.muted-copy {
    max-width: 550px;

    color: var(--muted);

    line-height: 1.6;
}


/* ================================================================
 *  TECH PANEL
 *  ================================================================ */

.tech-panel {
    padding: 30px;

    background:
    linear-gradient(
        135deg,
        rgba(0, 240, 255, 0.045),
                    rgba(255, 255, 255, 0.015)
    );

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

    clip-path: polygon(
        0 0,
        calc(100% - 30px) 0,
                       100% 30px,
                       100% 100%,
                       30px 100%,
                       0 calc(100% - 30px)
    );

    box-shadow:
    0 0 30px rgba(0, 240, 255, 0.05),
    inset 0 0 40px rgba(0, 240, 255, 0.025);

    backdrop-filter: blur(12px);
}

.panel-header {
    display: flex;
    justify-content: space-between;

    padding-bottom: 18px;
    margin-bottom: 20px;

    border-bottom: 1px solid rgba(0, 240, 255, 0.15);

    color: #607b85;

    font-size: 11px;
    letter-spacing: 0.18em;
}

.panel-header span:last-child {
    color: var(--cyan);
}

.parameter {
    display: grid;

    grid-template-columns: 1fr 2fr 35px;

    align-items: center;

    gap: 20px;

    padding: 17px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.parameter > div:first-child span {
    display: block;

    color: #b8d0d6;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.08em;
}

.parameter small {
    color: #4e6973;

    font-size: 10px;

    letter-spacing: 0.1em;
}

.parameter strong {
    color: var(--cyan);

    font-size: 14px;

    text-align: right;
}

.parameter-bar {
    height: 3px;

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

    position: relative;
}

.parameter-bar span {
    display: block;

    height: 100%;

    background: var(--cyan);

    box-shadow:
    0 0 8px var(--cyan);
}

.parameter-bar.amber span {
    background: var(--amber);

    box-shadow:
    0 0 8px var(--amber);
}


/* ================================================================
 *  TECH CARDS
 *  ================================================================ */

.tech-card {
    position: relative;

    height: 350px;

    padding: 30px;

    background:
    linear-gradient(
        145deg,
        rgba(0, 240, 255, 0.055),
                    rgba(255, 255, 255, 0.012)
    );

    border: 1px solid rgba(0, 240, 255, 0.22);

    clip-path: polygon(
        0 0,
        calc(100% - 25px) 0,
                       100% 25px,
                       100% 100%,
                       0 100%
    );

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

    overflow: hidden;
}

.tech-card::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    right: -80px;
    bottom: -80px;

    border-radius: 50%;

    background: rgba(0, 240, 255, 0.1);

    filter: blur(30px);
}

.tech-card:hover {
    transform: translateY(-8px);

    border-color: var(--cyan);

    box-shadow:
    0 0 25px rgba(0, 240, 255, 0.12),
    inset 0 0 25px rgba(0, 240, 255, 0.04);
}

.tech-card.amber-card {
    border-color: rgba(255, 183, 3, 0.25);
}

.tech-card.amber-card:hover {
    border-color: var(--amber);

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

.card-number {
    position: absolute;

    right: 22px;
    top: 18px;

    color: rgba(0, 240, 255, 0.3);

    font-size: 12px;
    letter-spacing: 0.15em;
}

.tech-icon {
    display: flex;

    width: 60px;
    height: 60px;

    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border: 1px solid rgba(0, 240, 255, 0.35);

    color: var(--cyan);

    font-size: 25px;

    background: rgba(0, 240, 255, 0.04);

    clip-path: polygon(
        20% 0,
        80% 0,
        100% 20%,
        100% 80%,
        80% 100%,
        20% 100%,
        0 80%,
        0 20%
    );
}

.tech-card h3 {
    font-size: 25px;
    font-weight: 600;

    line-height: 0.95;

    margin-bottom: 20px;
}

.tech-card h3 span {
    display: block;

    color: var(--cyan);
}

.tech-card p {
    color: #6d8791;

    font-size: 14px;
    line-height: 1.5;
}

.card-footer {
    position: absolute;

    bottom: 25px;
    left: 30px;
    right: 30px;

    display: flex;
    justify-content: space-between;

    padding-top: 12px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    color: #3f5962;

    font-size: 10px;
    letter-spacing: 0.15em;
}

.card-footer strong {
    color: var(--cyan);
}


/* ================================================================
 *  GALLERY
 *  ================================================================ */

.gallery-screen {
    display: block;

    padding-top: calc(var(--nav-height) + 70px);
}

.gallery-grid {
    height: calc(100vh - var(--nav-height) - 110px);

    display: grid;

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

    gap: 10px;
}

.gallery-card {
    position: relative;

    min-height: 0;

    overflow: hidden;

    cursor: pointer;

    border: 1px solid rgba(0, 240, 255, 0.2);

    background: #080e15;

    clip-path: polygon(
        0 0,
        calc(100% - 15px) 0,
                       100% 15px,
                       100% 100%,
                       15px 100%,
                       0 calc(100% - 15px)
    );
}

.gallery-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.48;

    filter:
    grayscale(0.6)
    contrast(1.15)
    saturate(0.8);

    transition:
    transform 0.5s ease,
    opacity 0.5s ease,
    filter 0.5s ease;
}

.gallery-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
    linear-gradient(
        180deg,
        transparent 30%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.gallery-card:hover {
    border-color: var(--cyan);

    box-shadow:
    0 0 20px rgba(0, 240, 255, 0.12);
}

.gallery-card:hover img {
    transform: scale(1.08);

    opacity: 0.8;

    filter:
    grayscale(0)
    contrast(1.15)
    saturate(1.1);
}

.gallery-info {
    position: absolute;

    z-index: 2;

    left: 18px;
    right: 18px;
    bottom: 15px;
}

.gallery-index {
    color: var(--cyan);

    font-size: 10px;
    letter-spacing: 0.2em;
}

.gallery-title {
    margin: 3px 0 0;

    font-size: 20px;
    font-weight: 600;

    letter-spacing: 0.05em;
}

.gallery-hint {
    color: #718a93;

    font-size: 10px;

    letter-spacing: 0.12em;
}


/* ================================================================
 *  CONTACT SCREEN
 *  ================================================================ */

.contact-title {
    margin: 15px 0 25px;

    font-size: clamp(60px, 8vw, 120px);

    font-weight: 300;
    line-height: 0.75;
}

.contact-title span {
    display: block;

    color: var(--cyan);

    font-weight: 700;

    text-shadow:
    0 0 25px rgba(0, 240, 255, 0.3);
}


/* ================================================================
 *  TERMINAL
 *  ================================================================ */

.terminal,
.contact-terminal {
    background: rgba(0, 0, 0, 0.4);

    border: 1px solid rgba(0, 240, 255, 0.3);

    box-shadow:
    0 0 30px rgba(0, 240, 255, 0.05),
    inset 0 0 40px rgba(0, 240, 255, 0.025);

    clip-path: polygon(
        0 0,
        calc(100% - 25px) 0,
                       100% 25px,
                       100% 100%,
                       0 100%
    );
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 13px 18px;

    background: rgba(0, 240, 255, 0.04);

    border-bottom: 1px solid rgba(0, 240, 255, 0.18);

    color: #69838c;

    font-size: 11px;

    letter-spacing: 0.15em;
}

.terminal-header i {
    display: inline-block;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--cyan);

    margin-left: 5px;
}

.terminal-body {
    padding: 25px;

    color: #78939c;

    font-family: "Rajdhani", monospace;

    line-height: 2;
}

.terminal-green {
    color: var(--cyan);
}

.terminal-output {
    color: #536c75;

    padding-left: 20px;
}

.terminal-cursor {
    color: var(--cyan);

    animation: blink 1s steps(2, start) infinite;
}

.site-footer {
    position: absolute;

    bottom: 20px;
    left: 30px;
    right: 30px;

    display: flex;
    justify-content: space-between;

    color: #3e565f;

    font-size: 10px;
    letter-spacing: 0.15em;
}


/* ================================================================
 *  BOOTSTRAP MODAL — FULL SCREEN
 *  ================================================================ */

.modal {
    --bs-modal-bg: transparent;
}

.modal-backdrop.show {
    opacity: 0.92;

    background: #020407;
}

.modal-dialog {
    margin: 0 !important;

    max-width: none !important;
}

.modal-content {
    min-height: 100vh;

    border: 0;
    border-radius: 0;

    background:
    radial-gradient(
        circle at center,
        rgba(0, 240, 255, 0.035),
                    transparent 55%
    ),
    var(--bg);

    color: var(--white);
}

.modal-hud-header {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: var(--nav-height);

    padding: 15px 30px;

    z-index: 5;

    background: rgba(6, 9, 15, 0.78);

    border-bottom: 1px solid rgba(0, 240, 255, 0.18);

    backdrop-filter: blur(15px);
}

.modal-hud-header h2 {
    margin: 2px 0 0;

    font-size: 19px;

    letter-spacing: 0.15em;
}

.modal-index {
    color: var(--cyan);

    font-size: 10px;
    letter-spacing: 0.2em;
}

.hud-close {
    position: relative;

    width: 35px;
    height: 35px;

    margin: 0;

    opacity: 1;

    background: none !important;

    border: 1px solid rgba(0, 240, 255, 0.3);

    clip-path: polygon(
        20% 0,
        100% 0,
        100% 80%,
        80% 100%,
        0 100%,
        0 20%
    );
}

.hud-close::before,
.hud-close::after {
    content: "";

    position: absolute;

    width: 15px;
    height: 1px;

    left: 9px;
    top: 16px;

    background: var(--cyan);

    box-shadow: 0 0 5px var(--cyan);
}

.hud-close::before {
    transform: rotate(45deg);
}

.hud-close::after {
    transform: rotate(-45deg);
}

.modal-body {
    padding: 0;
}


/* ================================================================
 *  PROJECT MODAL
 *  ================================================================ */

.project-modal-body {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 100px 5vw 50px;
}

.project-modal-image-wrap {
    position: relative;

    width: 100%;

    border: 1px solid rgba(0, 240, 255, 0.3);

    padding: 8px;

    background: rgba(0, 240, 255, 0.02);

    box-shadow:
    0 0 40px rgba(0, 240, 255, 0.08);

    clip-path: polygon(
        0 0,
        calc(100% - 35px) 0,
                       100% 35px,
                       100% 100%,
                       35px 100%,
                       0 calc(100% - 35px)
    );
}

.project-modal-image {
    display: block;

    width: 100%;

    max-height: 65vh;

    object-fit: cover;
}

.project-meta {
    color: var(--cyan);

    font-size: 11px;

    letter-spacing: 0.2em;

    margin-bottom: 15px;
}

.project-modal-title {
    margin: 0 0 20px;

    font-size: clamp(45px, 6vw, 85px);

    font-weight: 700;

    line-height: 0.8;

    color: var(--white);
}

.project-modal-description {
    color: #78939c;

    font-size: 18px;

    line-height: 1.5;

    max-width: 550px;
}

.project-modal-counter {
    color: var(--amber);

    font-size: 12px;

    letter-spacing: 0.2em;

    margin-top: 30px;
}


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

.lightbox-arrow {
    position: fixed;

    z-index: 20;

    top: 50%;

    width: 60px;
    height: 60px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(0, 240, 255, 0.4);

    background: rgba(6, 9, 15, 0.7);

    color: var(--cyan);

    font-size: 30px;

    cursor: pointer;

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

.lightbox-arrow:hover {
    background: rgba(0, 240, 255, 0.08);

    box-shadow:
    0 0 20px rgba(0, 240, 255, 0.2);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}


/* ================================================================
 *  CONTACT MODAL
 *  ================================================================ */

.contact-modal {
    background:
    radial-gradient(
        circle at center,
        rgba(0, 240, 255, 0.06),
                    transparent 45%
    ),
    #05080d;
}

.contact-terminal {
    width: 100%;

    background:
    linear-gradient(
        145deg,
        rgba(0, 240, 255, 0.05),
                    rgba(0, 0, 0, 0.35)
    );
}

.contact-terminal form {
    padding: 30px;
}

.form-row {
    margin-bottom: 25px;
}

.form-row label {
    display: block;

    margin-bottom: 8px;

    color: var(--cyan);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.18em;
}

.form-row input,
.form-row textarea {
    display: block;

    width: 100%;

    padding: 13px 15px;

    border: 1px solid rgba(0, 240, 255, 0.18);

    border-radius: 0;

    outline: none;

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

    color: var(--white);

    font-family: "Rajdhani", sans-serif;
    font-size: 16px;

    resize: vertical;

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

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--cyan);

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

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #3d565f;
}

.terminal-secure {
    color: var(--cyan);
}

.form-status {
    min-height: 25px;

    margin-top: 15px;

    color: var(--cyan);

    font-size: 12px;

    letter-spacing: 0.1em;

    text-align: center;
}

.form-status.error {
    color: #ff4d6d;
}


/* ================================================================
 *  ANIMATIONS
 *  ================================================================ */

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow:
        0 0 5px var(--cyan),
        0 0 15px var(--cyan);
    }

    50% {
        opacity: 0.35;
        box-shadow:
        0 0 2px var(--cyan);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}


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

@media (max-width: 991px) {

    .screen {
        min-height: auto;
        height: auto;

        padding-top: 110px;
        padding-bottom: 80px;

        overflow: visible;
    }

    #page {
    scroll-snap-type: none;
    }

    .hero-screen {
        min-height: 100vh;
    }

    .section-header {
        position: absolute;

        top: 85px;

        padding: 0 20px;
    }

    .gallery-screen {
        min-height: 100vh;

        padding-top: 125px;
    }

    .gallery-grid {
        height: auto;

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

        grid-auto-rows: 220px;
    }

    .tech-card {
        height: 300px;
    }

    .site-footer {
        position: relative;

        left: auto;
        right: auto;
        bottom: auto;

        margin-top: 50px;
    }

    .contact-screen {
        min-height: 100vh;
    }
}


@media (max-width: 575px) {

    :root {
        --nav-height: 68px;
    }

    .hud-brand {
        font-size: 17px;
    }

    .hero-title {
        font-size: 58px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header {
        gap: 8px;

        font-size: 9px;
    }

    .section-code {
        display: none;
    }

    .section-line {
        min-width: 20px;
    }

    .parameter {
        grid-template-columns: 1fr 1fr 25px;

        gap: 10px;
    }

    .parameter > div:first-child span {
        font-size: 11px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: 220px;
    }

    .project-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .lightbox-arrow {
        width: 45px;
        height: 45px;

        font-size: 23px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .site-footer {
        flex-direction: column;
        gap: 8px;
    }
}


/* ================================================================
 *  REDUCE MOTION
 *  ================================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}
