html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    background: #050814;
}

main {
    min-height: 100vh;
    background: radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.20), transparent 42%), radial-gradient(circle at 85% 72%, rgba(168, 85, 247, 0.14), transparent 40%), linear-gradient(180deg, #0d1330 0%, #070b1d 55%, #050814 100%);
}

/* ================= COMMON ================= */

.site-container,
.hero,
.stack-section,
.projects-section,
.contact-section,
.site-footer {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.badge,
.section-badge {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    color: #a5b4fc;
    text-transform: uppercase;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    border: none;
    background: linear-gradient(90deg, #6366f1, #a855f7);
}

    .btn-primary:hover {
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(99, 102, 241, 0.28);
        filter: brightness(1.04);
    }

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

    .btn-outline:hover {
        color: #ffffff;
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.24);
        background: rgba(255, 255, 255, 0.06);
    }

/* ================= HEADER / NAVBAR ================= */

.site-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
}

    .site-header .site-container {
        padding-left: 24px;
        padding-right: 24px;
    }

.portfolio-navbar {
    width: 100%;
    position: relative;
}

.portfolio-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-radius: 18px;
    background: rgba(8, 12, 30, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled .portfolio-navbar-inner {
    background: rgba(8, 12, 30, 0.82);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.30);
}

.portfolio-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

    .portfolio-brand img {
        width: 34px;
        height: 34px;
        object-fit: contain;
    }

    .portfolio-brand:hover {
        color: #ffffff;
    }

.portfolio-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .portfolio-menu a {
        position: relative;
        color: #c6c9d8;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.1px;
        transition: color 0.2s ease, transform 0.2s ease;
    }

        .portfolio-menu a:hover,
        .portfolio-menu a.active {
            color: #ffffff;
        }

        .portfolio-menu a:hover {
            transform: translateY(-1px);
        }

        .portfolio-menu a.active::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 100%;
            height: 2px;
            border-radius: 999px;
            background: linear-gradient(90deg, #60a5fa, #8b7cf6, #f472b6);
            box-shadow: 0 0 14px rgba(139, 124, 246, 0.35);
        }

.portfolio-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portfolio-cv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 42px;
    padding: 0 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 48%, #a855f7 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.1px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.22);
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

    .portfolio-cv-btn:hover {
        color: #ffffff !important;
        transform: translateY(-2px);
        filter: brightness(1.06);
        box-shadow: 0 14px 34px rgba(139, 92, 246, 0.32);
    }

    .portfolio-cv-btn:focus,
    .portfolio-cv-btn:active {
        color: #ffffff !important;
        text-decoration: none !important;
        outline: none;
    }

/* ================= MOBILE NAV ================= */

.portfolio-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .portfolio-menu-toggle span {
        width: 18px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .portfolio-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .portfolio-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .portfolio-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 900;
}

    .mobile-menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }
.mobile-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 24px;
    right: 24px;
    height: auto;
    padding: 18px;
    border-radius: 18px;
    background: rgba(8, 12, 30, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 2000;
}

    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .mobile-menu a {
        color: #c6c9d8;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        padding: 12px 14px;
        border-radius: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: all 0.25s ease;
    }

        .mobile-menu a:hover {
            color: #ffffff;
            padding-left: 4px;
        }

        .mobile-menu a.active {
            color: #ffffff;
        }

.mobile-cv-link {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    text-align: center;
    color: #ffffff !important;
    border: none !important;
}

body.menu-open {
    overflow: hidden;
}

/* ================= HERO ================= */

.hero-section {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 72px;
    padding: 140px 24px 90px;
}

.hero-content {
    max-width: 680px;
}

.hero h1 {
    margin: 0;
    font-size: 62px;
    font-weight: 500;
    line-height: 1.04;
    color: #ffffff;
    letter-spacing: -1.9px;
    text-wrap: balance;
}

.gradient {
    background: linear-gradient(90deg, #60a5fa, #8b7cf6, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin-top: 24px;
    max-width: 620px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: -0.15px;
    color: #b7bbcf;
}

.hero-buttons {
    margin-top: 36px;
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .hero-image img {
        width: 290px;
        height: 290px;
        object-fit: contain;
        position: relative;
        z-index: 2;
        animation: logoPulse 3s ease-in-out infinite;
    }

    .hero-image::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.20) 0%, rgba(168, 85, 247, 0.08) 45%, transparent 72%);
        filter: blur(14px);
        z-index: 0;
    }

    .hero-image::after {
        content: "";
        position: absolute;
        width: 340px;
        height: 340px;
        border-radius: 50%;
        border: 1px solid rgba(167, 139, 250, 0.34);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: ringWave 3s ease-in-out infinite;
        z-index: 1;
    }

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.82;
        filter: brightness(0.92) drop-shadow(0 0 10px rgba(167, 139, 250, 0.10));
    }

    50% {
        transform: scale(1.07);
        opacity: 1;
        filter: brightness(1.12) drop-shadow(0 0 24px rgba(167, 139, 250, 0.20));
    }
}

@keyframes ringWave {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.28;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.07;
    }
}

/* ================= STACK ================= */

.stack-section {
    padding: 30px 24px 110px;
}

.stack-header,
.projects-header {
    max-width: 780px;
    margin-bottom: 38px;
}

.projects-header {
    margin-bottom: 42px;
}

    .stack-header h2,
    .projects-header h2 {
        margin: 0 0 14px;
        font-size: 40px;
        font-weight: 500;
        line-height: 1.14;
        color: #ffffff;
        letter-spacing: -1px;
    }

    .stack-header p,
    .projects-header p {
        margin: 0;
        font-size: 17px;
        font-weight: 400;
        color: #b4b9ce;
        line-height: 1.85;
        letter-spacing: -0.1px;
    }

.stack-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.stack-card {
    position: relative;
    min-height: 230px;
    padding: 24px 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.050), rgba(255, 255, 255, 0.030));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    overflow: hidden;
}

    .stack-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.14), transparent 42%);
        opacity: 0.9;
        pointer-events: none;
    }

    .stack-card:hover {
        transform: translateY(-6px);
        border-color: rgba(167, 139, 250, 0.34);
        box-shadow: 0 18px 45px rgba(7, 11, 29, 0.34);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.035));
    }

.stack-icon {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.30), rgba(168, 85, 247, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.14);
    flex-shrink: 0;
}

.stack-card h3 {
    position: relative;
    z-index: 1;
    margin: 2px 0 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: #ffffff;
    letter-spacing: -0.25px;
}

.stack-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #aeb4ca;
}

/* ================= PROJECTS ================= */

.projects-section {
    padding: 40px 24px 120px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    position: relative;
    overflow: hidden;
    padding: 26px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .project-card:hover {
        transform: translateY(-6px);
        border-color: rgba(167, 139, 250, 0.35);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    }

    .project-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 45%);
        opacity: 0.8;
        pointer-events: none;
    }

    .project-card::after {
        content: "";
        position: absolute;
        width: 200%;
        height: 200%;
        background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
        transform: rotate(25deg) translate(-60%, -60%);
        transition: all 0.7s ease;
        opacity: 0;
    }

    .project-card:hover::after {
        transform: rotate(25deg) translate(20%, 20%);
        opacity: 1;
    }

    .project-card.featured {
        border-color: rgba(167, 139, 250, 0.4);
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.06));
        box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 20px 60px rgba(99, 102, 241, 0.18);
    }

        .project-card.featured:hover {
            box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.35), 0 25px 80px rgba(99, 102, 241, 0.28);
        }

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-tag {
    font-size: 10px;
    letter-spacing: 1.6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
}

.project-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: #c7d2fe;
}

.project-card p {
    margin: 0;
    font-size: 14px;
    color: #aeb4ca;
    line-height: 1.8;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .project-stack span {
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: all 0.25s ease;
    }

        .project-stack span:hover {
            background: rgba(99, 102, 241, 0.18);
            border-color: rgba(99, 102, 241, 0.35);
            transform: translateY(-1px);
        }

.project-links {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

/* ================= PROJECT PREVIEW ================= */

.project-preview {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 14, 35, 0.9);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover .project-preview {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.project-preview-window {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

    .project-preview-window span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
    }

.project-preview-body {
    display: flex;
    height: 150px;
}

.preview-sidebar {
    width: 35%;
    background: rgba(255, 255, 255, 0.04);
}

.preview-content,
.social-preview-body,
.portfolio-preview-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-content {
    flex: 1;
    gap: 6px;
}

.preview-line {
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
}

    .preview-line.short {
        width: 40%;
    }

    .preview-line.medium {
        width: 65%;
    }

    .preview-line.long {
        width: 90%;
    }

.preview-cards,
.social-row,
.portfolio-grid {
    display: flex;
    gap: 6px;
}

.preview-cards {
    margin-top: 6px;
}

    .preview-cards div {
        flex: 1;
        height: 36px;
        border-radius: 6px;
        background: rgba(99, 102, 241, 0.25);
    }

.social-post.large {
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(99, 102, 241, 0.3));
}

.social-post.small {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.portfolio-hero {
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.4));
}

.portfolio-grid div {
    flex: 1;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
}

.project-image-preview {
    position: relative;
    z-index: 2;
}

.project-image-preview-body {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
}

    .project-image-preview-body img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* ================= CONTACT ================= */

.contact-section {
    padding: 80px 24px 140px;
    display: flex;
    justify-content: center;
}

.contact-box {
    max-width: 700px;
    text-align: center;
    padding: 40px 30px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

    .contact-box h2 {
        margin: 12px 0;
        font-size: 36px;
        font-weight: 500;
        letter-spacing: -1px;
    }

    .contact-box p {
        font-size: 16px;
        color: #b4b9ce;
        line-height: 1.8;
    }

/* ================= FOOTER ================= */

.site-footer {
    padding: 40px 24px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .footer-brand img {
        width: 36px;
        height: 36px;
    }

    .footer-brand h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .footer-brand p {
        margin: 0;
        font-size: 12px;
        color: #9aa0b5;
    }

.footer-links {
    display: flex;
    gap: 24px;
}

    .footer-links a {
        font-size: 14px;
        color: #b4b9ce;
        text-decoration: none;
        transition: all 0.25s ease;
    }

        .footer-links a:hover {
            color: #ffffff;
            transform: translateY(-1px);
        }

.footer-copy p {
    font-size: 13px;
    color: #8c92a8;
    margin: 0;
}

/* ================= PROJECT DETAIL ================= */

.project-detail-section {
    min-height: 100vh;
    padding: 150px 24px 120px;
}

.project-detail-container {
    max-width: 1100px;
    margin: 0 auto;
}

.project-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 28px;
    color: #a5b4fc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

    .project-back-link:hover {
        color: #ffffff;
        transform: translateX(-3px);
    }

.project-detail-header {
    max-width: 820px;
    margin-bottom: 34px;
}

    .project-detail-header h1 {
        margin: 0 0 18px;
        font-size: 54px;
        font-weight: 500;
        line-height: 1.08;
        color: #ffffff;
        letter-spacing: -1.6px;
    }

    .project-detail-header p {
        margin: 0;
        font-size: 18px;
        line-height: 1.85;
        color: #b7bbcf;
    }

.project-detail-preview {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
    margin-bottom: 34px;
}

.project-detail-preview-body {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    min-height: 260px;
}

.project-detail-preview-left {
    background: radial-gradient(circle at 40% 30%, rgba(99,102,241,0.22), transparent 42%), linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    border-right: 1px solid rgba(255,255,255,0.07);
}

.project-detail-preview-right {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

    .project-detail-preview-right .preview-line {
        height: 10px;
    }

    .project-detail-preview-right .preview-cards {
        margin-top: 18px;
    }

        .project-detail-preview-right .preview-cards div {
            height: 72px;
            border-radius: 14px;
        }

.project-detail-image-body {
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .project-detail-image-body img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.project-gallery {
    margin-bottom: 34px;
}

.project-gallery-header {
    margin-bottom: 18px;
}

    .project-gallery-header h2 {
        margin: 0 0 8px;
        font-size: 24px;
        font-weight: 600;
        color: #ffffff;
    }

    .project-gallery-header p {
        margin: 0;
        color: #aeb4ca;
        font-size: 14px;
    }

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.project-gallery-item {
    height: 180px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .project-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.project-detail-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.project-detail-card {
    padding: 24px 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
}

    .project-detail-card h2 {
        margin: 0 0 14px;
        font-size: 20px;
        font-weight: 600;
        color: #ffffff;
    }

    .project-detail-card p {
        margin: 0;
        font-size: 14px;
        line-height: 1.8;
        color: #aeb4ca;
    }

.project-detail-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
}

/* ================= ADMIN ================= */

.admin-section {
    min-height: 100vh;
    padding: 150px 0 100px;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

    .admin-header h1 {
        margin: 0 0 10px;
        font-size: 42px;
        font-weight: 500;
        letter-spacing: -1px;
    }

    .admin-header p {
        margin: 0;
        color: #b4b9ce;
        font-size: 16px;
        line-height: 1.7;
    }

.admin-table-card,
.admin-form-card {
    width: 100%;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.admin-table-card {
    overflow: hidden;
}

.admin-form-card {
    padding: 28px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table thead {
        background: rgba(255, 255, 255, 0.045);
    }

    .admin-table th,
    .admin-table td {
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .admin-table th {
        padding: 16px 18px;
        color: #c7d2fe;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .admin-table td {
        padding: 18px;
        color: #ffffff;
        font-size: 14px;
        vertical-align: top;
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    .admin-table tbody tr:last-child td {
        border-bottom: none;
    }

    .admin-table tbody tr {
        transition: background 0.25s ease;
    }

        .admin-table tbody tr:hover {
            background: rgba(255, 255, 255, 0.035);
        }

    .admin-table td strong {
        display: block;
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .admin-table td span {
        display: block;
        color: #aeb4ca;
        line-height: 1.6;
    }

.admin-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1;
}

    .admin-badge.success {
        color: #bbf7d0;
        background: rgba(34, 197, 94, 0.12);
        border: 1px solid rgba(34, 197, 94, 0.24);
    }

    .admin-badge.passive {
        color: #cbd5e1;
        background: rgba(148, 163, 184, 0.12);
        border: 1px solid rgba(148, 163, 184, 0.20);
    }

    .admin-badge.featured {
        color: #ddd6fe;
        background: rgba(139, 92, 246, 0.14);
        border: 1px solid rgba(139, 92, 246, 0.28);
    }

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .admin-action.images {
        color: #ddd6fe;
        background: rgba(139, 92, 246, 0.14);
        border: 1px solid rgba(139, 92, 246, 0.28);
    }

    .admin-action.edit {
        color: #bfdbfe;
        background: rgba(59, 130, 246, 0.12);
        border: 1px solid rgba(59, 130, 246, 0.22);
    }

    .admin-action.delete {
        color: #fecaca;
        background: rgba(239, 68, 68, 0.11);
        border: 1px solid rgba(239, 68, 68, 0.22);
    }

    .admin-action:hover {
        transform: translateY(-1px);
        filter: brightness(1.08);
    }

.admin-back {
    margin-top: 24px;
}

.admin-delete-form {
    margin: 0;
}

    .admin-delete-form button {
        border: none;
        cursor: pointer;
    }

/* ================= ADMIN FORM ================= */

.admin-form {
    width: 100%;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-field-full {
    grid-column: 1 / -1;
}

.admin-field label {
    color: #dbe2ff;
    font-size: 13px;
    font-weight: 600;
}

.admin-field input,
.admin-field textarea,
.login-field input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
    outline: none;
    font-size: 14px;
    transition: all 0.25s ease;
}

.admin-field input,
.login-field input {
    height: 46px;
    padding: 0 14px;
}

.admin-field textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.7;
    padding: 13px 14px;
}

    .admin-field input::placeholder,
    .admin-field textarea::placeholder,
    .login-field input::placeholder {
        color: #747b94;
    }

    .admin-field input:focus,
    .admin-field textarea:focus,
    .login-field input:focus {
        border-color: rgba(139, 124, 246, 0.50);
        background: rgba(255, 255, 255, 0.065);
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    }

.admin-field span,
.login-field span,
.login-validation {
    color: #fecaca;
    font-size: 13px;
}

.admin-field small {
    color: #8f96ad;
    font-size: 12px;
}

.admin-check-group {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 4px;
}

.admin-check,
.login-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #b4b9ce;
    font-size: 14px;
    cursor: pointer;
}

    .admin-check input,
    .login-check input {
        width: 16px;
        height: 16px;
        accent-color: #8b5cf6;
    }

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 28px;
}

.admin-submit {
    border: none;
}

/* ================= LOGIN ================= */

.login-section {
    min-height: 100vh;
    padding: 150px 24px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 460px;
    padding: 34px 30px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.030));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.login-header {
    margin-bottom: 28px;
}

    .login-header h1 {
        margin: 0 0 10px;
        font-size: 34px;
        font-weight: 500;
        letter-spacing: -1px;
        color: #ffffff;
    }

    .login-header p {
        margin: 0;
        color: #b4b9ce;
        font-size: 15px;
        line-height: 1.7;
    }

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .login-field label {
        color: #dbe2ff;
        font-size: 13px;
        font-weight: 600;
    }

.login-submit {
    width: 100%;
    border: none;
    margin-top: 4px;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
}

    .login-footer a {
        color: #a5b4fc;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.25s ease;
    }

        .login-footer a:hover {
            color: #ffffff;
        }

/* ================= REVEAL ================= */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

    .reveal.reveal-active {
        opacity: 1;
        transform: translateY(0);
    }

.stack-grid.reveal,
.projects-grid.reveal {
    transition-duration: 0.95s;
}

.contact-box.reveal {
    transition-duration: 1s;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .stack-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        gap: 48px;
    }

        .hero h1 {
            font-size: 54px;
        }
}

@media (max-width: 992px) {
    .portfolio-menu {
        gap: 18px;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-top: 150px;
    }

    .hero-image {
        width: 100%;
        justify-content: center;
    }

    .stack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-detail-content,
    .project-detail-preview-body {
        grid-template-columns: 1fr;
    }

    .project-detail-preview-left {
        min-height: 160px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .admin-table-card {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .site-header .site-container,
    .hero,
    .stack-section,
    .projects-section,
    .contact-section,
    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .portfolio-navbar-inner {
        padding: 12px 16px;
        border-radius: 16px;
    }

    .portfolio-menu,
    .portfolio-cv-btn {
        display: none;
    }

    .portfolio-menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: 128px;
        padding-bottom: 56px;
        gap: 34px;
    }

        .hero h1 {
            font-size: 40px;
            line-height: 1.10;
            letter-spacing: -1.2px;
        }

        .hero p,
        .stack-header p,
        .projects-header p,
        .contact-box p,
        .project-detail-header p {
            font-size: 16px;
            line-height: 1.8;
        }

    .hero-buttons,
    .footer-links {
        flex-wrap: wrap;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
    }

    .hero-image {
        width: 100%;
        height: 300px;
    }

        .hero-image img {
            width: 220px;
            height: 220px;
        }

        .hero-image::before {
            width: 240px;
            height: 240px;
        }

        .hero-image::after {
            width: 270px;
            height: 270px;
        }

    .stack-header h2,
    .projects-header h2 {
        font-size: 30px;
        line-height: 1.18;
    }

    .stack-grid,
    .projects-grid,
    .project-gallery-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .stack-card {
        min-height: auto;
        padding: 22px 20px;
    }

    .contact-box {
        padding: 32px 22px;
    }

        .contact-box h2 {
            font-size: 28px;
        }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .footer-links {
        justify-content: center;
    }

    .project-detail-section {
        padding: 130px 16px 80px;
    }

    .project-detail-header h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .project-detail-preview-right {
        padding: 24px;
    }

    .project-detail-image-body {
        height: 240px;
    }

    .project-gallery-item {
        height: 210px;
    }

    .project-detail-actions,
    .admin-header,
    .admin-form-actions {
        flex-direction: column;
    }

    .admin-section {
        padding: 130px 0 80px;
    }

    .admin-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-header {
        align-items: flex-start;
    }

        .admin-header h1 {
            font-size: 34px;
        }

    .admin-form-card {
        padding: 22px;
    }

    .login-section {
        padding: 130px 16px 80px;
    }

    .login-card {
        padding: 30px 22px;
    }

    .login-header h1 {
        font-size: 30px;
    }
}
/* ADMIN IMAGE MANAGEMENT */
.admin-image-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
}

.admin-image-card {
    display: grid;
    grid-template-columns: 260px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.20);
}

.admin-image-preview {
    height: 140px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .admin-image-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.admin-image-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .admin-image-info strong {
        color: #ffffff;
        font-size: 14px;
        word-break: break-all;
    }

    .admin-image-info span {
        color: #aeb4ca;
        font-size: 13px;
    }

.admin-image-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .admin-image-actions form {
        margin: 0;
    }

    .admin-image-actions button {
        border: none;
        cursor: pointer;
    }

.admin-empty {
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aeb4ca;
    font-size: 14px;
}

@media (max-width: 992px) {
    .admin-image-card {
        grid-template-columns: 1fr;
    }

    .admin-image-preview {
        height: 220px;
    }

    .admin-image-actions {
        flex-wrap: wrap;
    }
}
/* ADMIN UPLOAD */
.admin-upload-box {
    position: relative;
    min-height: 150px;
    padding: 28px;
    border-radius: 18px;
    border: 1px dashed rgba(167, 139, 250, 0.45);
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.14), transparent 42%), rgba(255, 255, 255, 0.035);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .admin-upload-box:hover {
        border-color: rgba(167, 139, 250, 0.75);
        background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.20), transparent 42%), rgba(255, 255, 255, 0.055);
        transform: translateY(-1px);
    }

    .admin-upload-box input {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

.admin-upload-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.admin-upload-box strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.admin-upload-box small {
    color: #9ca3c7;
    font-size: 13px;
    line-height: 1.6;
}
.admin-upload-file {
    margin-top: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3c7;
    font-size: 12px;
}

    .admin-upload-file.selected {
        color: #bbf7d0;
        background: rgba(34, 197, 94, 0.11);
        border-color: rgba(34, 197, 94, 0.22);
    }

/* CLEAN NUMBER INPUT */
.admin-field input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

    .admin-field input[type="number"]::-webkit-outer-spin-button,
    .admin-field input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

/* PROJECT LIGHTBOX */
.project-lightbox-trigger {
    border: none;
    padding: 0;
    cursor: zoom-in;
}

.project-detail-image-body.project-lightbox-trigger {
    width: 100%;
}

.project-gallery-item.project-lightbox-trigger {
    width: 100%;
}

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 44px 88px;
    background: rgba(5, 8, 20, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

    .project-lightbox.open {
        display: flex;
    }

.project-lightbox-content {
    position: relative;
    width: min(1100px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

    .project-lightbox-content img {
        max-width: 100%;
        max-height: 76vh;
        object-fit: contain;
        display: block;
        border-radius: 18px;
        box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    }

.project-lightbox-close {
    position: absolute;
    top: 28px;
    right: 34px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: all 0.25s ease;
}

    .project-lightbox-close:hover {
        background: rgba(255, 255, 255, 0.18);
        transform: rotate(90deg);
    }

.project-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: all 0.25s ease;
}

    .project-lightbox-arrow:hover {
        background: rgba(255, 255, 255, 0.17);
        transform: translateY(-50%) scale(1.05);
    }

.project-lightbox-prev {
    left: 30px;
}

.project-lightbox-next {
    right: 30px;
}

.project-lightbox-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
}

.project-lightbox-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.25s ease;
}

    .project-lightbox-dot.active {
        width: 22px;
        border-radius: 999px;
        background: #ffffff;
    }

.project-lightbox-data {
    display: none;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .project-lightbox {
        padding: 40px 18px;
    }

    .project-lightbox-close {
        top: 18px;
        right: 18px;
    }

    .project-lightbox-arrow {
        width: 42px;
        height: 42px;
        font-size: 34px;
    }

    .project-lightbox-prev {
        left: 12px;
    }

    .project-lightbox-next {
        right: 12px;
    }
}
/* AUTH NAV BUTTONS */
.portfolio-logout-form,
.mobile-logout-form {
    margin: 0;
}

.portfolio-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.10);
    color: #fecaca;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .portfolio-logout-btn:hover {
        color: #ffffff;
        background: rgba(239, 68, 68, 0.18);
        transform: translateY(-1px);
    }

.mobile-logout-btn {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(239, 68, 68, 0.08);
    color: #fecaca;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}
.admin-image-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.admin-success-message {
    padding: 12px 14px;
    border-radius: 12px;
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.11);
    border: 1px solid rgba(34, 197, 94, 0.22);
    font-size: 14px;
    line-height: 1.6;
}