

/*BSD PORTFOLIO — DARK LITERARY NOIR */

:root {
    --bg: #090909;
    --surface: #111111;
    --surface-light: #191919;
    --crimson: #9e2638;
    --crimson-light: #c04455;
    --text: #e8e3dc;
    --muted: #85817d;
    --border: rgba(255,255,255,0.10);
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* NOISE TEXTURE */

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* NAVIGATION */

.navbar {
    height: 85px;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(9,9,9,0.95);
    position: relative;
    z-index: 20;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    letter-spacing: 2px;
}

.logo span {
    color: var(--crimson-light);
    font-size: 11px;
}

.navbar nav {
    display: flex;
    gap: 32px;
}

.navbar nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: var(--crimson-light);
}

.status {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--muted);
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #77a77b;
    border-radius: 50%;
    margin-right: 7px;
    box-shadow: 0 0 8px #77a77b;
}

/* HERO SECTION */

.hero {
    min-height: 85vh;
    padding: 100px 12%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(ellipse at 80% 50%, rgba(120,20,35,0.12), transparent 50%);
}

.hero-content {
    max-width: 750px;
}

.eyebrow {
    color: var(--crimson-light);
    font-size: 10px;
    letter-spacing: 4px;
    margin-bottom: 28px;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(42px, 6vw, 82px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 2px;
}

.hero h1 span,
section h2 span {
    color: var(--crimson-light);
}

.hero-description {
    max-width: 480px;
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
    margin-top: 28px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 38px;
}

.primary-btn,
.secondary-btn {
    padding: 15px 23px;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: 0.3s;
}

.primary-btn {
    background: var(--crimson);
    color: white;
}

.primary-btn:hover {
    background: var(--crimson-light);
    transform: translateY(-3px);
}

.secondary-btn {
    border: 1px solid var(--border);
    color: var(--text);
}

.secondary-btn:hover {
    border-color: var(--crimson-light);
    color: var(--crimson-light);
}

.hero-side {
    display: flex;
    align-items: center;
    gap: 35px;
}

.vertical-text {
    writing-mode: vertical-rl;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 4px;
}

.hero-number {
    font-family: 'Cinzel', serif;
    font-size: 100px;
    color: rgba(158,38,56,0.12);
}

/* GENERAL SECTIONS */

section:not(.hero) {
    padding: 110px 12%;
    min-height: 350px;
    border-bottom: 1px solid var(--border);
}

section h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 400;
    margin-bottom: 25px;
}

section:not(.hero) > p:last-child {
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}

/* FOOTER */

footer {
    padding: 30px 8%;
    text-align: center;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 850px) {

    .navbar {
        padding: 0 5%;
    }

    .navbar nav {
        gap: 12px;
    }

    .navbar nav a {
        font-size: 9px;
    }

    .status {
        display: none;
    }

    .hero {
        padding: 90px 7%;
    }

    .hero-side {
        display: none;
    }

    section:not(.hero) {
        padding: 85px 7%;
    }
}

@media (max-width: 550px) {

    .navbar {
        height: auto;
        padding: 22px 5%;
        flex-direction: column;
        gap: 20px;
    }

    .navbar nav {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero {
        min-height: 75vh;
    }
}


/* SCROLL REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ACTIVE NAVIGATION */

.navbar nav a.active {
    color: var(--crimson-light);
}

/* SELECTION COLOR */

::selection {
    background: var(--crimson);
    color: white;
}



/* =================================
   BSD CHARACTER DOSSIER
   ================================= */

.hero-side {
    width: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-card {
    width: 300px;
    padding: 12px;
    background: linear-gradient(145deg, #191516, #0c0b0b);
    border: 1px solid rgba(192, 68, 85, 0.35);
    box-shadow: 0 20px 70px rgba(120, 20, 35, 0.15);
    transform: rotate(2deg);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

    .character-card:hover {
        transform: rotate(0deg) translateY(-8px);
        box-shadow: 0 25px 80px rgba(158, 38, 56, 0.25);
    }

.card-top,
.card-bottom {
    display: flex;
    justify-content: space-between;
    color: #9c8585;
    font-size: 8px;
    letter-spacing: 2px;
    padding: 10px 3px;
}

.portrait-frame {
    height: 340px;
    background: radial-gradient(ellipse at 50% 40%, #52212b 0%, #211417 45%, #090909 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portrait-glow {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(158, 38, 56, 0.17);
    filter: blur(35px);
}

.portrait-silhouette {
    position: relative;
    width: 170px;
    height: 280px;
    z-index: 2;
}

.portrait-head {
    position: absolute;
    top: 20px;
    left: 48px;
    width: 85px;
    height: 105px;
    border-radius: 45% 45% 40% 40%;
    background: linear-gradient(135deg, #62504d, #171313 75%);
    box-shadow: 10px 10px 35px #090909;
}

.portrait-body {
    position: absolute;
    top: 115px;
    left: 12px;
    width: 155px;
    height: 165px;
    background: linear-gradient(120deg, #51413f, #171313 65%);
    clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}

.bandage {
    position: absolute;
    height: 12px;
    background: #b8a99a;
    opacity: 0.8;
    z-index: 3;
    transform: rotate(-15deg);
}

.bandage-one {
    top: 75px;
    left: 42px;
    width: 90px;
}

.bandage-two {
    top: 125px;
    left: 15px;
    width: 45px;
    transform: rotate(15deg);
}

.portrait-label {
    position: absolute;
    bottom: 14px;
    z-index: 4;
    color: #e8d6d3;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 3px;
}

@media (max-width: 850px) {
    .hero-side {
        display: none;
    }
}

/* ABOUT SECTION */

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 35px;
}

.about-heading h2 {
    max-width: 450px;
}

.about-subtitle {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 15px;
}

.about-content > p {
    color: #a9a3a0;
    font-size: 13px;
    line-height: 2.1;
    margin-bottom: 18px;
}

.about-meta {
    margin-top: 35px;
    border-top: 1px solid var(--border);
}

    .about-meta div {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 17px 0;
        border-bottom: 1px solid var(--border);
    }

    .about-meta span {
        color: var(--crimson-light);
        font-size: 9px;
        letter-spacing: 2px;
    }

    .about-meta strong {
        font-size: 12px;
        font-weight: 400;
        color: var(--text);
    }

@media (max-width: 750px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}


/* ===== PROJECT RECORDS ===== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 45px;
}

.project-card {
    background: rgba(17, 17, 17, 0.58);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid var(--border);
    padding: 26px;
    position: relative;
    overflow: hidden;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.55s ease, background 0.55s ease, box-shadow 0.55s ease;
}

    .project-card > * {
        position: relative;
        z-index: 1;
    }
.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s ease;
}

.project-card:hover .project-image {
    transform: scale(1.035);
    filter: brightness(1.08);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--crimson);
    background: #151112;
    box-shadow: 0 15px 40px rgba(158, 38, 56, 0.12);
}

    .project-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 3px;
        height: 0;
        background: var(--crimson);
        transition: height 0.3s ease;
    }

    .project-card:hover::before {
        height: 100%;
    }

.project-number {
    color: var(--crimson);
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.project-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text);
}

.project-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

    .project-tech span {
        font-size: 0.7rem;
        padding: 5px 10px;
        border: 1px solid var(--border);
        color: var(--muted);
    }

.project-link {
    color: var(--crimson);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: opacity 0.2s ease;
}

    .project-link:hover {
        opacity: 0.7;
    }

.loading-message {
    color: var(--muted);
    letter-spacing: 1px;
    font-size: 0.85rem;
}


/* ===== ADMIN LOGIN ===== */

.admin-container {
    width: min(90%, 460px);
    margin: 110px auto;
    padding: 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
}

    .admin-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--crimson);
    }

    .admin-container h1 {
        font-family: inherit;
        font-size: 2.2rem;
        margin: 18px 0;
    }

        .admin-container h1 span {
            color: var(--crimson);
        }

.admin-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

#admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    #admin-login-form label {
        color: var(--muted);
        font-size: 0.72rem;
        letter-spacing: 2px;
        margin-top: 12px;
    }

    #admin-login-form input {
        background: var(--bg);
        border: 1px solid var(--border);
        padding: 14px;
        color: var(--text);
        outline: none;
        font: inherit;
    }

        #admin-login-form input:focus {
            border-color: var(--crimson);
        }

.admin-login-btn {
    margin-top: 22px;
    padding: 15px;
    background: var(--crimson);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

    .admin-login-btn:hover {
        opacity: 0.8;
        transform: translateY(-2px);
    }

#login-message {
    font-size: 0.85rem;
    color: var(--crimson);
    margin-top: 8px;
}

/* ===== DASHBOARD ===== */

.dashboard-container {
    width: min(90%, 700px);
}

.dashboard-stats {
    margin: 35px 0;
    padding: 25px;
    border: 1px solid var(--border);
    background: var(--bg);
}

    .dashboard-stats h2 {
        margin: 12px 0;
        letter-spacing: 2px;
    }

    .dashboard-stats p:last-child {
        color: var(--muted);
        font-size: 0.85rem;
    }

.dashboard-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

    .dashboard-actions button {
        flex: 1;
        min-width: 180px;
    }

#dashboard-message {
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ===== PROJECT MANAGEMENT FORM ===== */

.project-form-section {
    margin-top: 45px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
}

    .project-form-section h2 {
        margin: 15px 0 30px;
    }

        .project-form-section h2 span {
            color: var(--crimson);
        }

#project-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    #project-form label {
        color: var(--muted);
        font-size: 0.75rem;
        letter-spacing: 1px;
        margin-top: 12px;
    }

    #project-form input:not([type="checkbox"]),
    #project-form textarea,
    #project-form select {
        width: 100%;
        box-sizing: border-box;
        padding: 13px;
        background: var(--bg);
        border: 1px solid var(--border);
        color: var(--text);
        font: inherit;
        outline: none;
    }

        #project-form input:focus,
        #project-form textarea:focus,
        #project-form select:focus {
            border-color: var(--crimson);
        }

    #project-form textarea {
        resize: vertical;
    }

    #project-form .featured-option {
        display: flex;
        align-items: center;
        gap: 10px;
    }

#project-form-message {
    color: var(--muted);
    font-size: 0.85rem;
}


/* ===== ADMIN PROJECT RECORDS ===== */

.records-section {
    margin-top: 50px;
}

    .records-section h2 {
        margin: 15px 0 25px;
    }

        .records-section h2 span {
            color: var(--crimson);
        }

#admin-project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.admin-project-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: 0.3s ease;
}

    .admin-project-card:hover {
        border-color: var(--crimson);
        transform: translateY(-4px);
    }

    .admin-project-card h3 {
        margin: 15px 0;
    }

    .admin-project-card p {
        color: var(--muted);
        font-size: 0.85rem;
        margin: 9px 0;
    }


/* =========================================
   BSD ARCHIVES — EDIT PROJECT PAGE
========================================= */

#edit-project-form {
    width: 100%;
    max-width: 750px;
    margin: 40px auto 0;
    padding: 35px;
    background: rgba(15, 15, 19, 0.85);
    border: 1px solid rgba(160, 45, 60, 0.3);
    border-radius: 8px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    /* Form labels */

    #edit-project-form > label {
        color: #c9a5a5;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 1.5px;
        margin-top: 12px;
    }

    /* Text fields, dropdown and textarea */

    #edit-project-form input:not([type="checkbox"]),
    #edit-project-form textarea,
    #edit-project-form select {
        width: 100%;
        padding: 14px 16px;
        background: #111116;
        color: #e8e1e1;
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 5px;
        outline: none;
        font-family: inherit;
        font-size: 0.9rem;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

        /* Focus effects */

        #edit-project-form input:focus,
        #edit-project-form textarea:focus,
        #edit-project-form select:focus {
            border-color: #a32f42;
            box-shadow: 0 0 0 2px rgba(163, 47, 66, 0.12);
        }

    /* Textarea */

    #edit-project-form textarea {
        resize: vertical;
        min-height: 120px;
        line-height: 1.6;
    }

    /* Dropdown */

    #edit-project-form select {
        cursor: pointer;
    }

    /* Featured checkbox */

    #edit-project-form .featured-option {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 20px 0;
        color: #d4caca;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        cursor: pointer;
    }

        #edit-project-form .featured-option input {
            accent-color: #a32f42;
            width: 17px;
            height: 17px;
            cursor: pointer;
        }

    /* Update button */

    #edit-project-form .admin-login-btn {
        width: 100%;
        margin-top: 15px;
        padding: 16px;
        background: #842738;
        color: #fff;
        border: 1px solid #a33a4d;
        border-radius: 5px;
        font-family: inherit;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 1.5px;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    }

        #edit-project-form .admin-login-btn:hover {
            background: #a33348;
            box-shadow: 0 5px 20px rgba(163, 47, 66, 0.2);
            transform: translateY(-2px);
        }

/* Status message */

#edit-project-message {
    margin-top: 15px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #c9a5a5;
    text-align: center;
}

/* Responsive layout */

@media (max-width: 600px) {
    #edit-project-form {
        padding: 22px 18px;
        margin-top: 25px;
    }

    .dashboard-container h1 {
        font-size: 2rem;
    }

    #edit-project-form input:not([type="checkbox"]),
    #edit-project-form textarea,
    #edit-project-form select {
        padding: 12px;
    }
}

/* EDIT PROJECT IMAGE PREVIEW */
#edit-project-image-preview {
    display: none;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-top: 15px;
}

#edit-project-cover-file {
    margin-top: 10px;
    margin-bottom: 12px;
}

#edit-project-form .form-hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: 8px;
    line-height: 1.5;
}


/* ===== BSD PROJECT DETAILS PAGE ===== */

.project-details-container {
    width: min(1100px, 90%);
    margin: 60px auto;
    color: #e8e3dc;
}

.back-link {
    display: inline-block;
    margin-bottom: 45px;
    color: #b7a99a;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

    .back-link:hover {
        color: #a83245;
    }

.case-file-details {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(15,15,18,0.85);
    padding: 45px;
    border-radius: 5px;
}

.case-file-heading {
    margin-bottom: 35px;
}

    .case-file-heading h1 {
        font-size: clamp(2rem, 5vw, 3.8rem);
        margin: 15px 0;
        color: #f0e8df;
        letter-spacing: 1px;
    }

.case-file-category {
    color: #a83245;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.case-file-cover {
    width: 100%;
    margin: 30px 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}

    .case-file-cover img {
        display: block;
        width: 100%;
        max-height: 550px;
        object-fit: cover;
    }

.case-file-section {
    margin: 45px 0;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

    .case-file-section h2 {
        color: #a83245;
        font-size: 0.9rem;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }

    .case-file-section p {
        color: #c4bdb5;
        line-height: 1.9;
        white-space: pre-line;
    }

.case-file-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .case-file-tech span {
        padding: 9px 15px;
        border: 1px solid rgba(168,50,69,0.5);
        color: #d8c9c0;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

/* ===== CASE FILE SOURCE / LIVE PROJECT BUTTONS ===== */

.case-file-details .case-file-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    gap: 12px !important;
    margin-top: 25px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

    /* Individual buttons */

    .case-file-details .case-file-links a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: fit-content !important;
        max-width: 220px !important;
        min-width: 0 !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 0 14px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        flex: 0 1 auto !important;
        background: #a83245 !important;
        color: #ffffff !important;
        text-decoration: none !important;
        font-size: 0.7rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.7px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        border: none !important;
        border-radius: 3px !important;
        transition: background 0.3s ease, transform 0.3s ease !important;
    }

        .case-file-details .case-file-links a:hover {
            background: #7e2030 !important;
            transform: translateY(-2px);
        }

/* Mobile layout */

@media (max-width: 600px) {
    .case-file-details .case-file-links {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

        .case-file-details .case-file-links a {
            max-width: 100% !important;
        }
}

        .case-file-links a:hover {
            background: #7e2030;
        }

@media (max-width: 600px) {
    .project-details-container {
        margin: 30px auto;
    }

    .case-file-details {
        padding: 22px;
    }

    .case-file-links {
        flex-direction: column;
    }

        .case-file-links a {
            text-align: center;
        }
}

.case-file-details .project-link {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    padding: 7px 12px !important;
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.5px !important;
}




/* =====================================
   BSD — ACHIEVEMENTS SECTION
===================================== */

.achievements {
    position: relative;
    padding: 100px 8%;
    overflow: hidden;
}

    /* Section heading */

    .achievements h2 {
        margin-bottom: 45px;
    }

/* Achievement card layout */

.achievements-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Individual achievement cards */

.achievement-entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 28px;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

    .achievement-entry:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.045);
    }

/* Achievement numbering */

.achievement-number {
    flex-shrink: 0;
    font-size: 26px;
    font-weight: 600;
    opacity: 0.55;
}

/* Achievement content */

.achievement-entry h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
}

.achievement-entry p {
    margin: 0;
    line-height: 1.7;
    font-size: 13px;
}

.achievement-description {
    margin-top: 10px !important;
    opacity: 0.7;
}

.achievement-year {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: 1.5px;
    opacity: 0.65;
}

/* Responsive layout */

@media (max-width: 768px) {
    .achievements {
        padding: 75px 6%;
    }

    .achievements-container {
        grid-template-columns: 1fr;
    }

    .achievement-entry {
        padding: 23px;
    }
}





/* =====================================
   BSD — ADD ACHIEVEMENT FORM
===================================== */

.admin-container {
    width: 90%;
    max-width: 750px;
    margin: 90px auto;
    padding: 45px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
}

    /* Heading area */

    .admin-container h1 {
        margin: 18px 0 12px;
    }

.admin-subtitle {
    margin-bottom: 38px;
    opacity: 0.7;
    font-size: 14px;
    line-height: 1.7;
}

/* Form layout */

#achievement-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    #achievement-form label {
        margin-top: 12px;
        font-size: 11px;
        letter-spacing: 1.5px;
        opacity: 0.8;
    }

    #achievement-form input,
    #achievement-form textarea {
        width: 100%;
        padding: 14px 16px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.035);
        color: inherit;
        font: inherit;
        font-size: 13px;
        outline: none;
        transition: 0.3s ease;
    }

        #achievement-form input:focus,
        #achievement-form textarea:focus {
            border-color: rgba(255, 255, 255, 0.45);
            background: rgba(255, 255, 255, 0.06);
        }

    #achievement-form textarea {
        min-height: 125px;
        resize: vertical;
    }

        #achievement-form input::placeholder,
        #achievement-form textarea::placeholder {
            opacity: 0.4;
        }

    /* Buttons */

    #achievement-form button,
    .admin-container > button {
        margin-top: 20px;
        align-self: flex-start;
        cursor: pointer;
    }

    #achievement-form button {
        width: 100%;
    }

/* Status message */

#achievement-message {
    font-size: 13px;
    margin-top: 8px;
}

/* Back button */

.admin-container > button {
    margin-top: 28px;
}

/* Responsive */

@media (max-width: 600px) {
    .admin-container {
        width: 92%;
        margin: 45px auto;
        padding: 25px 20px;
    }

        #achievement-form button,
        .admin-container > button {
            width: 100%;
        }
}


/* =====================================
   BSD — EDIT ACHIEVEMENT PAGE
===================================== */

#edit-achievement-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    #edit-achievement-form label {
        margin-top: 12px;
        font-size: 11px;
        letter-spacing: 1.5px;
        opacity: 0.8;
    }

    #edit-achievement-form input,
    #edit-achievement-form textarea {
        width: 100%;
        padding: 14px 16px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.035);
        color: inherit;
        font: inherit;
        font-size: 13px;
        outline: none;
        transition: 0.3s ease;
    }

        #edit-achievement-form input:focus,
        #edit-achievement-form textarea:focus {
            border-color: rgba(255, 255, 255, 0.45);
            background: rgba(255, 255, 255, 0.06);
        }

    #edit-achievement-form textarea {
        min-height: 125px;
        resize: vertical;
    }

        #edit-achievement-form input::placeholder,
        #edit-achievement-form textarea::placeholder {
            opacity: 0.4;
        }

    /* Update button */

    #edit-achievement-form button {
        width: 100%;
        margin-top: 20px;
        cursor: pointer;
    }

    /* Status message */

    #edit-achievement-form #achievement-message {
        font-size: 13px;
        margin-top: 8px;
    }

/* Mobile */

@media (max-width: 600px) {
    #edit-achievement-form button {
        width: 100%;
    }
}


/* ===== BSD SHOOTING STAR CURSOR ===== */

#star-trail {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}


/* =====================================
   BSD — CHARACTER FLASHLIGHT REVEAL
===================================== */

.torch-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.character-reveal {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-mask-image: radial-gradient( circle 190px at var(--torch-x, -500px) var(--torch-y, -500px), black 0%, rgba(0, 0, 0, 0.8) 45%, transparent 100% );
    mask-image: radial-gradient( circle 190px at var(--torch-x, -500px) var(--torch-y, -500px), black 0%, rgba(0, 0, 0, 0.8) 45%, transparent 100% );
}

.torch-section:hover .character-reveal {
    opacity: 0.85;
}

.character-home {
    background-image: url("assets/images/section-characters/home.webp");
}

.character-about {
    background-image: url("assets/images/section-characters/about.webp");
}

.character-skills {
    background-image: url("assets/images/section-characters/skills.webp");
}

.character-projects {
    background-image: url("assets/images/section-characters/projects.webp");
}

.character-achievements {
    background-image: url("assets/images/section-characters/achievements.webp");
}

.character-contact {
    background-image: url("assets/images/section-characters/contact.webp");
}

/* Mobile adjustment */

@media (max-width: 768px) {
    .character-reveal {
        background-size: auto 65%;
    }
}


#skills,
#contact {
    min-height: 500px;
}

#contact {
    min-height: 650px;
}

.portrait-silhouette {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .portrait-silhouette img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
    }

.portrait-frame {
    position: relative;
    overflow: hidden;
    background: #0d0d0d;
    border: 1px solid rgba(158, 38, 56, 0.4);
}

.portrait-silhouette img {
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: contrast(1.05) brightness(0.9);
}

.character-card:hover .portrait-silhouette img {
    transform: scale(1.03);
    filter: contrast(1.08) brightness(1);
}

.portrait-glow {
    pointer-events: none;
    z-index: 2;
}

/* ===== CONTACT ARCHIVE ===== */

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 55px;
}

.contact-link {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 25px;
    min-height: 135px;
    background: rgba(17, 17, 17, 0.65);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: 0.4s ease;
}

.contact-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--muted);
}

.contact-value {
    font-size: 15px;
    color: var(--text);
    word-break: break-word;
}

.contact-arrow {
    position: absolute;
    right: 22px;
    bottom: 22px;
    color: var(--crimson-light);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.contact-link:hover {
    border-color: var(--crimson);
    background: rgba(158, 38, 56, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(158, 38, 56, 0.1);
}

    .contact-link:hover .contact-arrow {
        transform: translate(4px, -4px);
    }

.contact-footer {
    margin-top: 35px;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
    text-align: center;
}

/* ===== ABILITIES / SKILL REGISTRY ===== */

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 55px;
}

.skill-category {
    position: relative;
    padding: 28px;
    background: rgba(17, 17, 17, 0.65);
    border: 1px solid var(--border);
    transition: 0.45s ease;
}

    .skill-category:hover {
        transform: translateY(-5px);
        border-color: var(--crimson);
        background: rgba(158, 38, 56, 0.10);
        box-shadow: 0 12px 30px rgba(158, 38, 56, 0.08);
    }

.skill-number {
    color: var(--crimson-light);
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.skill-category h3 {
    color: var(--text);
    font-size: 20px;
    margin-bottom: 22px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .skill-tags span {
        padding: 9px 13px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--muted);
        font-size: 12px;
        letter-spacing: 0.5px;
        transition: 0.3s ease;
    }

        .skill-tags span:hover {
            color: var(--text);
            border-color: var(--crimson-light);
            background: rgba(158, 38, 56, 0.15);
        }

/* Mobile layout */

@media (max-width: 650px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

.skill-category {
    opacity: 0;
    transform: translateY(25px);
    animation: skillReveal 0.7s ease forwards;
}

    .skill-category:nth-child(1) {
        animation-delay: 0.1s;
    }

    .skill-category:nth-child(2) {
        animation-delay: 0.2s;
    }

    .skill-category:nth-child(3) {
        animation-delay: 0.3s;
    }

    .skill-category:nth-child(4) {
        animation-delay: 0.4s;
    }

    .skill-category:nth-child(5) {
        animation-delay: 0.5s;
    }

@keyframes skillReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}