/* ================= GLOBAL ================= */
html, body {
    height: 100%;
    margin: 0;
    background-color: #03080F;
    font-family: 'Rajdhani', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #090F23;
}

/* Static background layers */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(ellipse 60% 40% at 15% 20%, rgba(144, 0, 255, 0.12) 0%, transparent 80%),  /* purple */
        radial-gradient(ellipse 50% 50% at 85% 70%, rgba(0, 255, 229, 0.08) 0%, transparent 60%),  /* cyan */
        radial-gradient(ellipse 40% 30% at 50% 100%, rgba(255, 0, 110, 0.1) 0%, transparent 80%);  /* pink */
    pointer-events: none;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(0,255,229,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,229,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Static scanlines */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        rgba(0,255,229,0.02) 0 1px,
        transparent 1px 4px
    );
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fonts */
.section-header span,
.image-title {
    font-family: 'Syncopate', sans-serif;
}

.hover-text,
.tags div,
.section-header span {
    font-family: 'Share Tech Mono', monospace;
}

/* ================= VARIABLES ================= */
:root {
    --bg: #0a1128;
    --bg2: #0f1a3c;
    --cyan: #00ffe5;
    --magenta: #ff006e;
    --yellow: #ffe600;
    --purple: #9000ff;
    --white: #ffffff;
    --surface: rgba(0, 255, 229, 0.03);
    --surface2: rgba(144, 0, 255, 0.06);
    --border-c: rgb(0, 255, 229);
    --border-m: rgba(255, 0, 110, 0.25);
    --text: #c8f0ec;
    --muted: #6fb0a8;
    --glow-c: 0 0 20px rgba(0, 255, 229, 0.4), 0 0 60px rgba(0, 255, 229, 0.15);
    --glow-m: 0 0 20px rgba(255, 0, 110, 0.4), 0 0 60px rgba(255, 0, 110, 0.15);
    --cat1: #00ffe7;
    --cat2: #ff2d78;
    --cat3: #ffe600;
    --c: #00ffe7;
    --c2: #ff2d78;
    --c3: #ffe600;
    --c4: #7b2fff;
    --panel: rgba(0, 255, 231, 0.03);
    --border: rgba(0, 255, 231, 0.14);
    --border2: rgba(0, 255, 231, 0.4);
    --text2: rgba(142, 207, 204, 0.5);
}

/* ================= NAVIGATION ================= */
nav {
    position: relative;
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border-bottom: 1px solid var(--border-c);
    background: rgba(10,17,40,1);
    backdrop-filter: blur(20px);
    padding: 0 3vh;
    z-index: 900;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; gap: 1rem; margin-right: 5vw; }

.nav-logo {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    text-decoration: none;
    transform: translateY(-0.5vh);
    text-shadow: var(--glow-c);
    letter-spacing: 0.15em;
}

.nav-logo .slash { color: var(--yellow); margin: 0 4px; }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid transparent;
    position: relative;
    transition: all 0.2s;
    padding: 1vh 1.5vh;
    font-size: 2vh;
}

.nav-links a::before {
    content: '>';
    color: var(--cyan);
    margin-right: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    color: var(--cyan);
    border-color: var(--border-c);
    text-shadow: var(--glow-c);
    background: rgba(0, 255, 229, 0.25);
}

.nav-links a:hover::before { opacity: 1; }

.nav-links a.active {
    color: var(--yellow);
    text-shadow: 0 0 10px var(--yellow), 0 0 20px rgba(255, 230, 0, 0.5);
    border: none;
    background: none;
}

.nav-links a.active::before { content: '>'; color: var(--yellow); opacity: 1; }

/* Glowing block logo */
.logo-container {
    position: relative;
    display: inline-block;
}

.nav-block-logo {
    height: 5vh;       /* limit logo height to 5vh */
    width: auto;
    position: relative;
    z-index: 2;
    object-fit: contain;
    transform: translateY(-20%);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0,150,255,0.7))
            drop-shadow(0 0 20px rgba(0,150,255,0.5))
            drop-shadow(0 0 30px rgba(0,150,255,0.4));
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: rgba(0,150,255,0.6);
    border-radius: 50%;
    filter: blur(25px);
    z-index: 1;
}

/* Main nav layout */
.main-nav {
    display: grid;
    grid-template-columns: 7fr 3fr;
    align-items: center;
    width: 100%;
    position: relative;
}

.main-nav::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--cyan);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ================= PROJECT PANEL ================= */
.portfolio-container {
    display: flex;
    flex-direction: column; /* stack panels vertically */
    width: 90vw;
    margin: 0 auto;
    gap: 2rem;             /* spacing between panels */
}

.project-panel {
    display: flex;           /* left-right layout */
    flex-direction: row;     /* horizontal split */
    width: 100%;             /* full width of container */
    height: auto;            /* height adjusts to content */
    box-sizing: border-box;
    gap: 1rem;               /* optional spacing inside panel */
    box-shadow: 0 0 4px #00E5FF33, 0 0 12px #00E5FF22, 0 0 24px #00E5FF11;
    transition: box-shadow 0.3s ease;
}

.project-panel:hover {
    box-shadow: 0 0 8px #00E5FF55, 0 0 16px #00E5FF44, 0 0 32px #00E5FF33;
}

/* Left and right columns */
.left-column,
.right-column {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.left-column {
    background: #02050C;
    padding: 0.5rem;
    gap: 0.5rem;
    box-shadow: inset 0 0 6px #00E5FF11;
}

.right-column {
    background: #060D18;
    padding: 2rem;
    justify-content: space-between;
    box-shadow: inset 0 0 4px #00E5FF11;
}

/* ================= LEFT COLUMN ================= */
.image-zone {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 30vh;
    overflow: hidden;
    transition: filter 0.3s ease;
}

.image-placeholder {
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: drop-shadow(0 0 4px #00E5FF33);
}

.image-zone:hover .image-placeholder img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px #00E5FF55) drop-shadow(0 0 16px #00E5FF33);
}

/* Black title bar */
.image-title {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(0,0,0,0.5);
    color: #FFD400;
    padding: 0.3rem 0.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.8rem;
    z-index: 2;
    text-shadow: 0 0 2px #00E5FF;
}

/* L-shaped cyan corners */
.image-zone .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-top: 3px solid #00E5FF;
    filter: drop-shadow(0 0 4px #00E5FF);
    z-index: 3;
}

.image-zone .corner-left { top: 0.3rem; left: 0.3rem; border-left: 3px solid #00E5FF; }
.image-zone .corner-right { top: 0.3rem; right: 0.3rem; border-right: 3px solid #00E5FF; }

/* Hover text */
.hover-text {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.8);
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease, text-shadow 0.3s ease;
    z-index: 4;
    white-space: nowrap;
    text-shadow: 0 0 2px #00E5FF55;
}

.image-zone:hover .hover-text {
    opacity: 1;
    text-shadow: 0 0 6px #00E5FFAA;
}

/* Grey fade overlay */
.image-zone::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10,10,10,0.6), rgba(10,10,10,0));
    pointer-events: none;
    z-index: 1;
}

/* ================= THUMBNAILS ================= */
.thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10vh, 1fr));
    gap: 0.1rem;
    width: 100%;
    justify-content: start;
    place-items: start;
}

.thumb {
    aspect-ratio: 1 / 1;
    height: 10vh;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 2px #00E5FF22);
}

/* Active thumbnail */
.thumb.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00E5FF;
    filter: drop-shadow(0 0 4px #00E5FF55);
    z-index: 5;
    border-radius: 1px;
}

/* Hover outline for non-active */
.thumb:not(.active):hover::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid white;
    border-radius: 3px;
    pointer-events: none;
    box-shadow: 0 0 8px #00E5FF55;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
}

.thumb:not(.active):hover {
    transform: scale(1.05);
}

/* ================= RIGHT COLUMN ================= */
.section {
    margin-bottom: 0.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header span {
    color: #00E5FF;
    font-weight: bold;
    font-size: 1rem; /* Increased */
    letter-spacing: 1px;
    flex-shrink: 0;
    text-shadow: 0 0 2px #00E5FF55;
}

.line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #00E5FF, transparent);
    filter: drop-shadow(0 0 4px #00E5FF33);
}

/* Body text */
.section p {
    color: #7F9DB9;
    font-size: 1.2vw; /* Increased */
    margin: 0.2rem 0 0 0;
    line-height: 1.2;
}

.section ul {
    list-style-type: disc;        /* normal bullets */
    padding-left: 1.2rem;         /* indent bullets */
    margin: 0.5rem 0 0 0;         /* spacing above list */
}

.section ul li {
    color: #7F9DB9;               /* same muted cyan text */
    font-size: 0.75vw; /* Increased */
    line-height: 1.2;             /* tight line spacing */
    margin: 0.2rem 0;             /* vertical spacing between items */
}

/* ================= TAGS ================= */
.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.tags.rhombus div,
.tags.square div {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid #00E5FF;
    color: #7F9DB9;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    text-align: center;
    filter: drop-shadow(0 0 4px #00E5FF22);
    transition: filter 0.3s ease, transform 0.2s ease;
}

/* Rhombus shape */
.tags.rhombus div {
    transform: skewX(-20deg);
}

.tags.rhombus div span {
    display: inline-block;
    transform: skewX(20deg);
}

/* Disable hover for specific tags */
.tags div.discipline,
.tags div.software {
    transform: none !important;
    filter: drop-shadow(0 0 4px #00E5FF22) !important;
}

/* ================= CUSTOM CURSOR ================= */
.red-cursor-inner {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,0,0,0.5);                 /* change from red to white */
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255,255,255,0.2); /* change from red glow to white */
}

.corner-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.5);  /* light white 50% */
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
}

.cross-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9996;
    transform: translate(-50%, -50%);
}

.cross-cursor::before,
.cross-cursor::after {
    content: '';
    position: absolute;
    background: rgba(255,0,0,1);     /* change from gray to red */
}

.cross-cursor::before { width: 24px; height: 1px; top: -0.5px; left: -12px; }
.cross-cursor::after  { width: 1px; height: 24px; top: -12px; left: -0.5px; }

/* ================= SECTION HEADERS ================= */
.environments-header {
    display: flex;
    align-items: center;
    justify-content: center; /* center everything horizontally */
    width: 100%;
    padding: 1rem 2rem;
    box-sizing: border-box;
    margin-bottom: 2rem;
    gap: 1rem;
}

.environments-header h1 {
    font-family: 'Rajdhani', sans-serif;  /* same as KRAVENARK */
    font-weight: 700;
    font-size: 10vw;
    color: #00ffff;                       /* cyan blue */
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.environments-header .line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to left, #00ffff, transparent); /* default left */
    filter: drop-shadow(0 0 4px #00ffff33);
}

.environments-header .fade-left {
    background: linear-gradient(to left, #00ffff, transparent);
}

.environments-header .fade-right {
    background: linear-gradient(to right, #00ffff, transparent);
}

@media (min-width: 768px) {
  .environments-header {
    display: none;
  }
}

/* ================= PORTFOLIO FILTER ================= */
.portfolio-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    position: relative;
}

/* horizontal cyan lines left and right */
.portfolio-filter::before,
.portfolio-filter::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #00E5FF, transparent);
    filter: drop-shadow(0 0 4px #00E5FF55);
}

.portfolio-filter::after {
    background: linear-gradient(to left, #00E5FF, transparent);
}

/* buttons */
.filter-btn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1vw;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7F9DB9;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    transition: all 0.2s ease;
}

/* hover glow */
.filter-btn:hover {
    color: #00E5FF;
    text-shadow: 0 0 6px #00E5FFAA;
}

/* ACTIVE TAB */
.filter-btn.active {
    color: #FFD400;
    font-size: 1.5vw;
    text-shadow: 0 0 6px #FFD40088;
    position: relative;
}

/* add // before and after active */
.filter-btn.active::before {
    content: "//";
    margin-right: 0.4rem;
    color: #00E5FF;
}

.filter-btn.active::after {
    content: "//";
    margin-left: 0.4rem;
    color: #00E5FF;
}

/* ================= MOBILE NAV ================= */
.mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 10vh;
    padding: 0 3vh;
    background: rgba(10,17,40,1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-c);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.mobile-nav .nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav .nav-right {
    display: flex;
    align-items: center;
}

/* Hamburger styling */
.hamburger {
    display: none; /* hidden by default (desktop) */
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
}

/* Desktop layout (default) */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3vh;
    height: 10vh;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile layout */
@media (max-width: 768px) {
    .nav-left {
        display: none; /* hide links */
    }

    .nav-right {
        justify-content: space-between; /* logo left, hamburger right */
        width: 100%;
    }

    .nav-block-logo,
    .nav-logo {
        order: 1; /* stay on left */
    }

    .hamburger {
        display: flex;
        order: 2; /* move to right */
        cursor: pointer;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background: white;
        border-radius: 2px;
    }

    /* Hide filter buttons on mobile */
    .portfolio-filter {
        display: none;
    }

    /* Force vertical stacking for mobile */
    .project-panel {
        display: flex !important;       /* ensure flex */
        flex-direction: column !important; /* vertical stack */
        width: 100% !important;        /* full width */
        height: auto !important;       /* height adjusts naturally */
        gap: 1rem !important;          /* spacing between columns */
    }

    /* Columns take full width */
    .left-column,
    .right-column {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    /* Make image-zone top column fill nicely */
    .image-zone {
        min-height: 40vh !important;
        width: 100% !important;
    }

    .left-column {
        min-height: 40vh; /* image block height */
    }

    .right-column {
        min-height: 40vh; /* taller or shorter relative to left */
    }

    .right-column {
        /* shift inner content up */
        transform: translateY(-2vh);
        max-height: 100vh;
        overflow: auto;
    }

    .portfolio-container {
        flex-direction: column;
        gap: 0;
    }

    .project-panel {
        flex-direction: column !important;
        width: 100% !important;
        height: 100vh !important;
    }

    .left-column,
    .right-column {
        flex: 1 1 auto !important;
        width: 100% !important;
    }

    .image-zone { min-height: 50% !important; }

    .project-panel {
        flex-direction: column;  /* left above right */
        width: 100%;             /* full container width */
        height: auto;            /* let height adjust naturally */
        gap: 1rem;               /* optional spacing between columns */
    }

    /* Columns take full width */
    .left-column,
    .right-column {
        flex: 1 1 100%;          /* full width each */
        width: 100%;             /* ensure full width */
    }

    /* Optional: adjust image height to fill top half */
    .image-zone {
        min-height: 40vh;        /* adjust for mobile viewport */
    }

    .project-card {
        height: 1000vh !important; /* adjust this value as needed */
    }

    /* optional: make left column image taller */
    .left-column .image-zone {
        min-height: 30vh !important; /* top half of panel */
    }
}

/* ================= LIGHTBOX ================= */
.lightbox-overlay {
    display: none;               /* hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 9998; /* below lightbox */
}

.lightbox {
    display: none;               /* hidden by default */
    position: fixed;
    top: 5vh;
    left: 5vw;
    width: 90vw;
    height: 90vh;
    background: #111;
    border: 2px solid #00E5FF;
    box-shadow: 0 0 20px #00E5FF88, 0 0 40px #00E5FF55 inset;
    z-index: 9999;               /* above overlay */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* ================= TOP-LEFT INFO ================= */
.lightbox-header {
    align-self: flex-start; /* top-left corner */
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.lightbox-header .title {
    color: yellow;
    font-size: 1.8rem;
    font-weight: bold;
}

.lightbox-header .subtitle {
    color: white;
    font-size: 1rem;
}

/* ================= MAIN IMAGE ================= */
.lightbox-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
    overflow: hidden;
}

.lightbox-main img {
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

/* ================= BOTTOM-RIGHT THUMBNAILS ================= */
.lightbox-thumbs {
    position: absolute; /* fixed inside lightbox */
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.thumb {
    width: 50px;
    height: 38px;
    background: #111;
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00E5FF;
    border-radius: 1px;
}

.thumb:not(.active):hover {
    transform: scale(1.05);
}

.lightbox-thumbs .thumb:hover {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ================= BOTTOM-LEFT INSET L ================= */
.lightbox-corner {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
}

.lightbox-corner::before,
.lightbox-corner::after {
    content: '';
    position: absolute;
    background: #00E5FF;
}

.lightbox-corner::before {
    width: 4px;
    height: 100%;
    left: 0;
    bottom: 0;
}

.lightbox-corner::after {
    width: 100%;
    height: 4px;
    left: 0;
    bottom: 0;
}

/* ================= TOP-RIGHT CLOSE BUTTON ================= */
.close-square {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255,255,255,0);
    opacity: 0.5;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.close-square::before {
    content: '×';
    font-size: 6vw;
    color: rgba(255,255,255,0.5);
    line-height: 1;
    transition: all 0.2s ease;
}

.close-square:hover {
    border-color: red;
    opacity: 1;
    background: rgba(255,0,0,0.5);
}

.close-square:hover::before {
    color: red;
}

/* ================= HAMBURGER LIGHTBOX ================= */
.hamburger-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #0a0f1c;
  font-family: 'Rajdhani', sans-serif;
  color: #eee;
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.hamburger-lightbox.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ================= BACKGROUND EFFECTS ================= */
.hl-bg-layer,
.hl-bg-grid,
.hl-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hl-bg-layer {
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(144,0,255,0.2) 0%, transparent 80%),
    radial-gradient(ellipse 50% 50% at 85% 70%, rgba(0,255,229,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(255,0,110,0.12) 0%, transparent 80%);
}

.hl-bg-grid {
  z-index: 1;
  background-image:
    linear-gradient(rgba(0,255,229,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,229,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hl-scanlines {
  z-index: 2;
  background: repeating-linear-gradient(rgba(0,255,229,0.03) 0 1px, transparent 1px 4px);
}

/* ================= TOP BAR ================= */
.hl-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 1rem 2rem;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

/* Logo → KRAVENARK → X */
.hl-left {
  order: 1;
  display: flex;
  align-items: center;
}

.nav-logo {
  order: 2;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.5rem;
  color: #ffe600;
  text-shadow: 0 0 10px #ffe600, 0 0 20px rgba(255,230,0,0.5);
}

.hl-right {
  order: 3;
  margin-left: auto; /* push X to far right */
}

.hl-close {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #fff;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.hl-close:hover {
  border-color: #ff0000;
  color: #ff0000;
  box-shadow: 0 0 8px #ff0000;
}

/* ================= CONTENT AREA ================= */
.hl-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5rem;
  z-index: 5;
}

.hl-name {
  color: #ffe600;
  font-size: 2rem;
  text-shadow: 0 0 10px #ffe600, 0 0 20px #ffe600;
}

.hl-subtitle {
  color: #fff;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* ================= BUTTONS ================= */
.hl-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  z-index: 10;
}

.hl-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 2rem;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  color: #00ffe5;
  background: rgba(0,255,229,0.2);
  text-decoration: none;
  overflow: visible;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  transition: all 0.2s;
}

.hl-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #00ffe5;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  pointer-events: none;
  transition: all 0.3s;
}

.hl-btn:hover {
  color: #fff;
  background: rgba(255,230,0,0.4);
  text-shadow: 0 0 10px #fff, 0 0 20px #fff;
}

.hl-btn:hover::before {
  border-color: #ffe600;
  box-shadow: 0 0 10px #ffe600, 0 0 20px #ffe600;
}

/* ================= BOTTOM ROW ================= */
.hl-bottom-row {
  position: absolute;
  bottom: 1rem;            /* very close to bottom */
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 10;
}

.hl-bottom-row .hl-social {
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: #6a8ea5;            /* muted blue */
  transition: all 0.2s;
}

.hl-bottom-row .hl-social:hover {
  color: #00ffe5;            /* glow on hover */
  text-shadow: 0 0 10px #00ffe5, 0 0 20px #00ffe5;
}

/* ================= FOOTER ================= */
footer {
    margin-bottom: -15vh;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-c);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: 'Share Tech Mono', monospace;
    color: var(--muted);
    background-color: rgba(10, 17, 40, 1);
    min-height: 0vh;
        transform: translateY(0vh); /* move footer up by 20% of viewport height */
}

.footer-brand {
    font-size: 2vw;
    letter-spacing: 0.2em;
    color: #ffffff;

}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    font-size: 1.5vw;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bar {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    box-shadow: 0 0 6px var(--cyan);
    margin: 1rem 0;
}

.footer-bottom {
    font-size: 1vw;
    letter-spacing: 0.2em;
    margin-top: 1vh;
}

/* Panel visibility */
.panel-hidden {
  display: none !important;
}

.lightbox,
.lightbox-overlay {
    display: none;
}

/* Main layout */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.image-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill space while maintaining aspect ratio */
    display: block;
}

/* Content row with three sections */
.content-row {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.title-section h2 {
    color: #FFD400;
    font-size: 3rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.thumbnails {
    display: flex;
    gap: 0.4rem;
    width: fit-content;
}

.thumb {
    flex: 0 0 60px;
    height: 45px;
}

.overview-section {
    flex: 1;
    min-width: 250px;
}

.details-section {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Section styling */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-header span {
    color: #00E5FF;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    flex-shrink: 0;
    text-shadow: 0 0 2px #00E5FF55;
}

.line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #00E5FF, transparent);
    filter: drop-shadow(0 0 4px #00E5FF33);
}

.section p {
    color: #7F9DB9;
    font-size: 0.75rem;
    margin: 0.2rem 0 0 0;
    line-height: 1.2;
}

.section ul {
    list-style-type: disc;
    padding-left: 1.2rem;
    margin: 0.5rem 0 0 0;
}

.section ul li {
    color: #7F9DB9;
    font-size: 0.75rem;
    line-height: 1.2;
    margin: 0.2rem 0;
}

.software-tags,
.focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.tags div {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid #00E5FF;
    color: #7F9DB9;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    text-align: center;
    filter: drop-shadow(0 0 4px #00E5FF22);
    transition: filter 0.3s ease, transform 0.2s ease;
}
.section ul li {
    color: #7F9DB9 !important;
    font-size: 0.75rem;
    line-height: 1.2;
    margin: 0.2rem 0;
}

.title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    overflow: visible; /* Prevent clipping */
}
.left-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    overflow: visible; /* Allow thumbnails to show completely */
}

:root {
    --thumb-width: 10vh;
    --thumb-height: 10vh;
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: fit-content;
}

.thumb {
    width: var(--thumb-width);
    height: var(--thumb-height);
    min-width: var(--thumb-width);
    min-height: var(--thumb-height);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overview-section ul li {
    color: #7F9DB9;
}
.lightbox-main {
    margin-left: -5vw; /* Adjust value as needed */
}

.left-column > h2 {
    z-index: 10;
    position: relative;
    color: #FFD400;
    font-size: 2vw;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
        text-align: center; /* Center text */
}



.left-column > p {
    z-index: 10;
    position: relative;
    color: #7F9DB9;
    font-size: 0.9vw;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
        text-align: center; /* Center text */
}

.lightbox-main img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* General Body Adjustment */
  body {
    font-size: 14px; /* Slightly larger base font */
  }

  /* Navigation */
  nav, .mobile-nav {
    height: 8vh;
    padding: 0 2vh;
  }

  .nav-logo {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
  }

  .nav-links {
    display: none; /* Hide main desktop nav links */
  }

  .main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-left, .nav-right {
    height: 100%;
  }

  .hamburger {
    display: flex;
    width: 26px;
    height: 18px;
  }

  .hamburger span {
    height: 2px;
  }

  /* Portfolio Filter */
  .portfolio-filter {
    display: none; /* Hide filter buttons on mobile */
  }

  /* Project Panel Layout */
  .project-panel {
    flex-direction: column;
    height: auto;
    gap: 0.5rem;
  }

  .left-column, .right-column {
    flex: 1 1 100%;
    width: 100%;
    padding: 1rem;
  }

  .left-column {
    min-height: 35vh;
  }

  .right-column {
    min-height: auto; /* Let it grow with content */
    transform: none; /* Remove translateY */
    max-height: none;
    overflow: visible; /* Avoid overflow issues */
  }

  /* Image Zone */
  .image-zone {
    min-height: 35vh;
    width: 100%;
  }

  .image-placeholder {
    height: 35vh; /* Match min-height of .image-zone */
    width: 100%;
  }

  .image-placeholder img {
    object-fit: cover; /* Or contain, depending on desired effect */
  }

  .image-title {
    top: 0.6rem;
    left: 0.6rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .hover-text {
    bottom: 0.3rem;
    right: 0.3rem;
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }

  .corner {
    width: 16px;
    height: 16px;
  }

  .corner-left, .corner-right {
    top: 0.2rem;
    border-width: 2px;
  }

  .corner-left { left: 0.2rem; }
  .corner-right { right: 0.2rem; }

  /* Thumbnails */
  .thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(8vh, 1fr)); /* Smaller thumbs */
    gap: 0.05rem;
    width: 100%;
  }

  .thumb {
    height: 8vh; /* Match grid minmax */
  }

  /* Right Column Content */
  .section p {
    font-size: 0.7rem; /* Use rem instead of vw */
    margin: 0.1rem 0 0 0;
  }

  .section ul {
    padding-left: 1rem;
    margin: 0.3rem 0 0 0;
  }

  .section ul li {
    font-size: 0.7rem; /* Use rem instead of vw */
    margin: 0.15rem 0;
  }

  .section-header span {
    font-size: 0.8rem; /* Use rem */
  }

  .tags div {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
  }

  /* Lightbox Adjustments (if applicable on mobile) */
  .lightbox {
    top: 2vh;
    left: 2vw;
    width: 96vw;
    height: 96vh;
  }

  .lightbox-main {
    width: 80%; /* Maybe reduce width slightly */
  }

  .close-square {
    width: 50px;
    height: 50px;
  }

  .close-square::before {
    font-size: 2rem; /* Use rem */
  }

  /* Footer */
  footer {
    padding: 1.5rem 0.5rem;
    gap: 0.5rem;
    margin-bottom: -10vh; /* Adjust if needed */
  }

  .footer-brand {
    font-size: 1.8rem; /* Use rem */
    letter-spacing: 0.1em;
  }

  .footer-links {
    gap: 1rem;
    flex-wrap: wrap; /* Allow wrapping if links are too wide */
    justify-content: center;
  }

  .footer-links a {
    font-size: 1.2rem; /* Use rem */
  }

  .footer-bottom {
    font-size: 0.9rem; /* Use rem */
    letter-spacing: 0.1em;
  }

  /* Hamburger Lightbox Content */
  .hl-topbar {
    padding: 0.8rem 1.5rem;
    gap: 0.5rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .hl-close {
    width: 28px;
    height: 28px;
  }

  .hl-name {
    font-size: 1.8rem;
  }

  .hl-subtitle {
    font-size: 0.9rem;
  }

  .hl-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
  }

  .hl-bottom-row {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hl-bottom-row .hl-social {
    font-size: 0.8rem;
  }

  /* Ensure content area has space from top bar */
  .hl-content {
    margin-top: 3rem; /* Reduced from 5rem */
  }

  .hl-buttons {
    margin-top: 2rem; /* Reduced from 3rem */
  }

  /* Content Row adjustments (if used) */
  .content-row {
    flex-direction: column; /* Stack sections vertically */
    gap: 1rem;
  }

  .title-section, .overview-section, .details-section {
    min-width: auto; /* Override desktop min-widths */
  }

  .title-section h2 {
    font-size: 1.5rem; /* Use rem */
  }

  /* Adjust image placeholder size in content row context if applicable */
  .left-column .image-placeholder {
     height: 30vh; /* Or another suitable fraction */
  }

  /* Adjust thumbnails within content row context if applicable */
  .left-column .thumbnails {
      width: 100%; /* Ensure full width */
      justify-content: flex-start; /* Align to start */
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Adjust thumbnail sizes in the left column */
  .left-column .thumbnails {
    gap: 0.2rem; /* Reduce gap if needed for even smaller appearance */
  }

  .left-column .thumb {
    width: 5vh !important; /* Half the original size */
    height: 5vh !important; /* Half the original size */
    min-width: 5vh !important; /* Half the original size */
    min-height: 5vh !important; /* Half the original size */
  }

  /* Make project titles significantly larger */
  .left-column > h2 {
    font-size: 4vw !important; /* At least double the previous size */
  }

  /* Make project subtitles significantly larger */
  .left-column > p {
    font-size: 1.8vw !important; /* At least double the previous size */
  }

  /* Make section headers larger */
  .section-header span {
    font-size: 1.5rem; /* Increase from 1rem */
  }

  /* Make body text slightly larger for better readability */
  .section p {
    font-size: 2rem; /* Increase from 0.75rem or 0.9vw */
  }

  /* Make list item text slightly larger */
  .section ul li {
    font-size: 3rem; /* Increase from 0.75rem */
  }

  /* Make tags slightly larger */
  .tags div {
    font-size: 0.9rem; /* Increase from 0.7rem */
    padding: 0.4rem 1rem; /* Adjust padding for better feel */
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Make project subtitles 1.5x larger */
  .left-column > p {
    font-size: 2.5vw !important; /* 1.5 * 0.9vw */
  }
  /* Make list item text smaller for mobile */
  .section ul li {
    font-size: 0.8rem !important; /* Reduce from 1rem */
  }

}

