:root {
    --bg: #0b0e14;
    --panel: rgba(18, 23, 35, 0.75);
    --text: #e6edf7;
    --muted: #8aa0b4;
    --brand: #64d2ff;
    --accent: #7cffc4;
}

/* ---------------- RESET ---------------- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
}

/* ---------------- HEADER ---------------- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 14px 28px;
    z-index: 10;
    display: flex;
    justify-content: center;
    background: rgba(11, 14, 20, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    transition: background 0.25s, color 0.25s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand);
}

nav a.active {
    background: rgba(100, 210, 255, 0.15);
    color: var(--brand);
}

/* ---------------- STAGE (3D BG) ---------------- */
#stage {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* ---------------- MAIN CONTENT ---------------- */
main {
    position: relative;
    z-index: 5;
    padding-top: 100px;
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.panel {
    background: var(--panel);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 20px;
    max-width: 950px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeIn 0.6s ease;
    margin-top: 10px;
}
.panel ul,
.panel ol {
    text-align: left;       /* align list items to the left */
    margin: 1rem auto;
    padding-left: 1.5rem;   /* space for bullets/numbers */
    max-width: 800px;       /* keep them neat inside the panel */
}


h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 700;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 1.1rem;
}

button, .btn {
    display: inline-block;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #0b0e14;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 210, 255, 0.3);
}

/* ---------------- FOOTER ---------------- */
footer {
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* ---------------- ANIMATIONS ---------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- GRID CARDS ---------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.card h2 {
    font-size: 1.3rem;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.preview img,
.preview iframe,
.preview canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* or contain if you want letterboxing */
    border-radius: 12px;
}


/* ---- TABS ---- */
.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.25s ease;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: rgba(100, 210, 255, 0.2);
    color: var(--brand);
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* ---- Portfolio Grid (3-wide) ---- */
.tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.project {
    background: var(--panel);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(100, 210, 255, 0.4);
}

.project h2 {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* ---------------- MEDIA ---------------- */
.media {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.media img,
.media iframe {
    flex: 1 1 45%;
    max-width: 100%;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.2);
}

/* ---------------- OVERLAY ---------------- */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 2rem 3rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.3);
    color: white;
}

.overlay h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    background: rgba(0, 200, 255, 0.2);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(0, 200, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.8);
    transform: scale(1.05);
}
/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.tab {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tab.active {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #0b0e14;
    font-weight: 600;
}

.card.hidden {
    display: none;
}
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.6);
}

.lightbox-content iframe,
.lightbox-content img,
.lightbox-content canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* About */
/* ---------- ABOUT PAGE LAYOUT ---------- */
.about-container {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px;
    gap: 4rem;
    width: 100%;
}

/* Each section styled like home panels */
.about-panel {
    background: rgba(18, 23, 35, 0.75);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 4rem 3rem;
    max-width: 950px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 32px rgba(0,0,0,0.5);
    animation: fadeIn 0.6s ease;
}

.about-panel h1,
.about-panel h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-panel p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Image styling */
.about-panel img {
    max-width: 220px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
    box-shadow: 0 0 20px rgba(100, 210, 255, 0.35);
}
/* Lightbox Overlay */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Show when active */
#lightbox.active {
    display: flex;
}

/* Content Box */
#lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: scaleUp 0.35s ease;
}

#lightbox-content img,
#lightbox-content iframe,
#lightbox-content canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

/* Close Button */
#lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* ---------- Showcase Main Preview ---------- */
.main-preview {
    position: relative;
    width: 100%;
    max-width: 1000px;    /* keeps it from being too wide */
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* ✅ forces consistent box */
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-preview img,
.main-preview iframe,
.main-preview canvas {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ✅ fills the box */
    border-radius: 12px;
}


/* ---------- Gallery Grid ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    width: 100%;
    overflow: hidden; /* ✅ keep rounded edges clean */
}

/* Media section (fixed aspect ratio for preview) */
.gallery-item img,
.gallery-item iframe,
.gallery-item canvas {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0; /* ✅ prevents shrinking when comment grows */
}

/* Comment box expands naturally */
.comment-box {
    padding: 1rem;
    background: rgba(20, 20, 20, 0.9);
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: left;
    word-wrap: break-word;
    border-radius: 0 0 12px 12px;
    flex-grow: 1; /* ✅ forces gallery-item to expand with text */
}
/* ---------- LIST STYLING ---------- */
ul, ol {
    margin: 1.2rem 0;
    padding-left: 1.5rem;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Remove default list bullets/numbers and replace */
ul {
    list-style: none;
}

ul li {
    position: relative;
    margin: 0.6rem 0;
    padding-left: 1.5rem;
}

/* Custom glowing bullet for unordered lists */
ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-size: 1.3rem;
    text-shadow: 0 0 8px var(--accent);
}

/* Ordered list numbers styled */
ol {
    counter-reset: list-counter;
    list-style: none;
}

ol li {
    counter-increment: list-counter;
    margin: 0.6rem 0;
    padding-left: 2rem;
    position: relative;
}

ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    text-shadow: 0 0 8px var(--brand);
}






