/* --- INNER PAGES COMMON LAYOUTS --- */
.page-wrapper {
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
    pointer-events: none;
    overflow-y: auto;
    padding-right: 5px;
}

.page-header {
    margin-bottom: 25px;
    pointer-events: auto;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    margin-bottom: 5px;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* --- RESUME PAGE (resume.html) --- */
.timeline {
    position: relative;
    border-left: 2px solid var(--glass-border);
    margin-left: 10px;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--color-resume);
    box-shadow: 0 0 10px var(--color-resume);
    transition: transform 0.3s var(--ease-hover);
}
.timeline-item:hover::before {
    transform: scale(1.2);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-resume);
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.resume-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* --- PROJECTS PAGE (projects.html) --- */
.projects-page-shell {
    width: min(94vw, 1660px);
    height: calc(100vh - 120px);
    min-height: 500px;
    display: grid;
    grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
    gap: clamp(24px, 3.2vw, 48px);
    z-index: 10;
    pointer-events: auto;
}

/* Optimization for shorter viewports to prevent clipping/cutouts */
@media (min-width: 769px) and (max-height: 850px) {
    .projects-page-shell {
        height: calc(100vh - 100px);
        min-height: 480px;
        gap: 20px;
    }
    .project-profile-rail {
        gap: 8px;
        padding-top: 5px;
        padding-bottom: 10px;
    }
    .profile-avatar-wrap {
        width: clamp(100px, 8vw, 120px);
    }
    .profile-name {
        font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    }
    .profile-meta-list {
        gap: 8px;
    }
    .profile-meta-list li {
        font-size: 0.82rem;
    }
    .profile-actions {
        gap: 8px;
    }
    .profile-primary-action,
    .profile-secondary-action {
        min-height: 38px;
        font-size: 0.85rem;
    }
    .profile-tags span {
        padding: 4px 8px;
        font-size: 0.68rem;
    }
}

.project-profile-rail {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 13px;
    padding: 10px 0 18px 10px;
    overflow: visible;
}

.profile-avatar-wrap {
    width: clamp(125px, 9.5vw, 160px);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(30, 144, 255, 0.25), rgba(138, 43, 226, 0.35));
    box-shadow: 0 0 32px rgba(138, 43, 226, 0.35);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg-dark);
}

.profile-heading-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2.05vw, 2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 16px rgba(138, 43, 226, 0.45);
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 18px;
    background: rgba(30, 144, 255, 0.16);
    border: 1px solid rgba(30, 144, 255, 0.35);
    color: var(--color-contact);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-meta-list {
    list-style: none;
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    line-height: 1.35;
}

.profile-meta-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.profile-meta-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.68);
    font-family: var(--font-heading);
    font-size: 0.58rem;
}

.profile-actions {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 10px;
}

.profile-primary-action,
.profile-secondary-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.3s var(--ease-hover), box-shadow 0.3s var(--ease-hover), border-color 0.3s var(--ease-hover);
}

.profile-primary-action {
    background: #fff;
    color: #090213;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

.profile-secondary-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.profile-primary-action:hover,
.profile-secondary-action:hover {
    transform: translateY(-2px);
    border-color: var(--color-contact);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.22);
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-tags span {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(138, 43, 226, 0.16);
    border: 1px solid rgba(138, 43, 226, 0.28);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 700;
}

.profile-tags span:nth-child(2n) {
    background: rgba(30, 144, 255, 0.15);
    border-color: rgba(30, 144, 255, 0.3);
}

.profile-tags span:nth-child(3n) {
    background: rgba(0, 255, 255, 0.13);
    border-color: rgba(0, 255, 255, 0.28);
}

.projects-feed {
    min-height: 0;
    overflow-y: auto;
    padding: 2px 8px 32px 0;
    scroll-behavior: smooth;
}

.projects-feed-header {
    position: relative;
    padding: 6px 0 20px;
    background: transparent;
    backdrop-filter: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    pointer-events: auto;
}

.project-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 22px;
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease-hover), border-color 0.3s var(--ease-hover), background 0.3s var(--ease-hover);
    transform-style: preserve-3d;
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(30, 144, 255, 0.2), transparent 32%),
        linear-gradient(115deg, transparent 0%, transparent 38%, rgba(0, 255, 255, 0.18) 50%, transparent 62%, transparent 100%);
    opacity: 0;
    transform: translateX(-40%);
    transition: opacity 0.35s var(--ease-hover), transform 0.7s var(--ease-portal);
    pointer-events: none;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 9px;
    border: 1px solid rgba(0, 255, 255, 0);
    transition: border-color 0.3s var(--ease-hover);
    pointer-events: none;
}

.project-card > * {
    position: relative;
    z-index: 1;
}

.project-card:hover {
    border-color: var(--color-projects);
    background: rgba(12, 6, 22, 0.72);
    box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.22), 0 16px 32px rgba(30, 144, 255, 0.18);
}

.project-card:hover::before {
    opacity: 1;
    transform: translateX(38%);
}

.project-card:hover::after {
    border-color: rgba(0, 255, 255, 0.2);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.project-tag:hover {
    transform: translateY(-1px);
}

.project-tag.tag-ai {
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.35);
    color: #c0b3ff;
}
.project-tag.tag-ai:hover {
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
    background: rgba(138, 43, 226, 0.25);
}

.project-tag.tag-backend {
    background: rgba(30, 144, 255, 0.15);
    border: 1px solid rgba(30, 144, 255, 0.35);
    color: #8cc3ff;
}
.project-tag.tag-backend:hover {
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.4);
    background: rgba(30, 144, 255, 0.25);
}

.project-tag.tag-frontend {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #8cffff;
}
.project-tag.tag-frontend:hover {
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    background: rgba(0, 255, 255, 0.2);
}

.project-tag.tag-iot {
    background: rgba(50, 205, 50, 0.12);
    border: 1px solid rgba(50, 205, 50, 0.32);
    color: #a3efa3;
}
.project-tag.tag-iot:hover {
    box-shadow: 0 0 8px rgba(50, 205, 50, 0.4);
    background: rgba(50, 205, 50, 0.22);
}

.project-tag.tag-system {
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.32);
    color: #ffc993;
}
.project-tag.tag-system:hover {
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.4);
    background: rgba(255, 140, 0, 0.22);
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
    min-height: 5em;
}

.project-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 2px 0 20px;
    border-radius: 10px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(30, 144, 255, 0.12), rgba(8, 2, 15, 0.55) 72%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-media img,
.project-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.project-media img[src$="astriod-1.webp"],
.project-media img[src$="avatar.webp"] {
    object-fit: contain;
    padding: 14px;
    background: radial-gradient(circle at center, rgba(30, 144, 255, 0.18), rgba(8, 2, 15, 0.55) 65%);
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    align-items: center;
}

.project-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background-color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease,
                color 0.3s ease;
}

.project-icon-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.project-icon-link:hover {
    transform: scale(1.18) translateY(-3px);
    color: #fff;
}

.project-icon-link.github:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.project-icon-link.linkedin:hover {
    background: rgba(10, 102, 194, 0.2);
    border-color: rgba(10, 102, 194, 0.55);
    color: #0a66c2;
    box-shadow: 0 0 12px rgba(10, 102, 194, 0.4);
}

.project-icon-link.youtube:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.5);
    color: #ff0000;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
}

.project-icon-link.website:hover {
    background: rgba(0, 255, 255, 0.12);
    border-color: rgba(0, 255, 255, 0.5);
    color: #00ffff;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}

/* --- 3D INTERACTIVE LOOT CHEST (certificates.html) --- */
.three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    outline: none;
}

.hud-header {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    pointer-events: none;
    width: 90%;
    max-width: 600px;
}

#hint {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(138, 43, 226, 0.4);
    opacity: 0.8;
    z-index: 100;
    pointer-events: none;
    animation: float-pulse 2s ease-in-out infinite;
}

@keyframes float-pulse {
    0%, 100% {
        transform: translate(-50%, 0);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -6px);
        opacity: 1;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(138, 43, 226, 0.6);
    }
}

#closeButton {
    position: fixed;
    top: 85px;
    right: 21px;
    width: 50px;
    height: 50px;
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 45, 45, 0.25);
    border: 2px solid rgba(255, 45, 45, 0.8);
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    transition: all 0.3s var(--ease-hover);
    user-select: none;
}

#closeButton:hover {
    background: rgba(255, 45, 45, 0.7);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

#cardContainer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 500;
}

/* 3D TRADING CARD STYLE SHEET */
.card {
    position: absolute;
    width: 290px;
    height: 210px;
    perspective: 1200px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
    z-index: 500;
    pointer-events: auto;
}

.card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 14px;
    box-sizing: border-box;
}

.card-front {
    background: rgba(12, 6, 22, 0.9);
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.2));
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
}

/* Image Wrapper Left Side */
.card-image-wrapper {
    width: 110px;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    cursor: pointer;
    flex-shrink: 0;
}

.card-cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image-wrapper:hover .card-cert-img {
    transform: scale(1.1);
}

.card-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(138, 43, 226, 0.3);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.card-image-wrapper:hover .card-zoom-overlay {
    opacity: 1;
}

.card-zoom-overlay svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* Info Pane Right Side */
.card-info-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

/* Front inner elements */
.card-issuer {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-certificates);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.3;
    margin: 4px 0;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.card-id {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin: 2px 0;
}

.card-badge {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--border-color, #fff);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Rarity theme coloring */
.card.common {
    --border-color: rgba(180, 180, 180, 0.6);
    --glow-color: rgba(180, 180, 180, 0.25);
}
.card.rare {
    --border-color: rgba(47, 124, 255, 0.7);
    --glow-color: rgba(47, 124, 255, 0.4);
    --title-glow: #33aaff;
}
.card.epic {
    --border-color: rgba(170, 0, 255, 0.8);
    --glow-color: rgba(170, 0, 255, 0.5);
    --title-glow: #bb66ff;
}
.card.legendary {
    --border-color: rgba(255, 184, 0, 0.9);
    --glow-color: rgba(255, 184, 0, 0.7);
    --title-glow: #ffd700;
}

.card.common .card-front { box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color); }
.card.rare .card-front { box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-color); }
.card.epic .card-front { box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 25px var(--glow-color); }
.card.legendary .card-front { box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 35px var(--glow-color); }

.card-back {
    background: radial-gradient(circle at center, #2c124d 0%, #0d041a 100%);
    border: 2px solid rgba(138, 43, 226, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(138, 43, 226, 0.2);
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back-logo {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--color-certificates);
    text-shadow: 0 0 12px rgba(255, 0, 127, 0.5);
}

/* RESPONSIVE SCALING FOR CARDS & POSITIONS */
@media (max-width: 768px) {
    .card {
        width: 170px;
        height: 125px;
    }
    .card-front {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 8px !important;
    }
    .card-image-wrapper {
        width: 100% !important;
        height: 48px !important;
    }
    .card-info-pane {
        align-items: flex-start;
    }
    .card-title {
        font-size: 0.65rem !important;
        margin: 2px 0 !important;
    }
    .card-issuer {
        font-size: 0.45rem !important;
        letter-spacing: 0.5px !important;
    }
    .card-id {
        font-size: 0.42rem !important;
        display: none;
    }
    .card-badge {
        font-size: 0.42rem !important;
        padding: 1px 5px !important;
        border-radius: 6px !important;
    }
    .card-back-logo {
        font-size: 0.95rem !important;
        letter-spacing: 2px !important;
    }
    .hud-header .page-title {
        font-size: 1.6rem !important;
    }
}

/* Lightbox Image Preview Modal */
.cert-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 10, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cert-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.cert-lightbox-content {
    position: relative;
    max-width: 85vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-lightbox.active .cert-lightbox-content {
    transform: scale(1);
}

.cert-lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    border: 2px solid rgba(179, 136, 255, 0.4);
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.4);
    object-fit: contain;
}

.cert-lightbox-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(179, 136, 255, 0.5);
    text-align: center;
}

.cert-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20005;
}

.cert-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* --- MUSIC CORNER (music.html) --- */
.music-console {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.radio-face {
    background: #080312;
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 480px;
    box-shadow: inset 0 0 20px rgba(123, 44, 191, 0.2);
}

.radio-display {
    background: #000;
    border: 1px solid rgba(123, 44, 191, 0.4);
    border-radius: 8px;
    padding: 15px;
    font-family: monospace;
    color: #39ff14; /* Neon green display */
    text-shadow: 0 0 5px #39ff14;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: left;
    height: 70px;
    display: flex;
    align-items: center;
}

.controls-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.freq-slider-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.freq-slider-container label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: rgba(123, 44, 191, 0.2);
    height: 6px;
    border-radius: 3px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-music);
    cursor: pointer;
    box-shadow: 0 0 8px var(--color-music);
}

.btn-cosmic {
    background: var(--color-music);
    border: none;
    border-radius: 30px;
    color: #fff;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s var(--ease-hover);
    box-shadow: 0 0 15px rgba(123, 44, 191, 0.4);
}
.btn-cosmic:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(123, 44, 191, 0.7);
}

/* --- CONTACT TERMINAL (contact.html) --- */
.terminal-container {
    background: #04010a;
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 380px;
    pointer-events: auto;
}

.terminal-header {
    background: rgba(0, 255, 255, 0.05);
    padding: 10px 15px;
    font-size: 0.75rem;
    color: var(--color-contact);
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
}

.terminal-body {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    color: #00ffff;
    text-shadow: 0 0 4px rgba(0, 255, 255, 0.3);
    font-size: 0.9rem;
    line-height: 1.4;
}

.terminal-input-line {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.terminal-prompt {
    color: #fff;
}

.terminal-field {
    background: transparent;
    border: none;
    color: #00ffff;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
}


/* --- COSMIC CONTACT FORM (contact.html replacement) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    margin-top: 5px;
    position: relative;
    pointer-events: auto;
}

/* Allow globe to overflow page wrapper without scrollbars but clip inside borders */
.page-wrapper {
    position: relative !important;
    overflow: hidden !important;
}

.contact-grid-spacer {
    pointer-events: none;
}

@media (max-width: 900px) {
    .page-wrapper {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-globe-section {
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto 10px auto;
        flex-shrink: 0;
    }
    .globe-wrapper {
        width: 100% !important;
        height: 100% !important;
    }
    .contact-grid-spacer {
        display: none;
    }
}

.contact-globe-section {
    position: absolute;
    bottom: -220px;
    left: -220px;
    width: 500px;
    height: 500px;
    pointer-events: none;
    z-index: 1;
}

.globe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.25);
    background: #000;
}

.globe-sphere {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url('../assets/images/earth-map.webp');
    background-size: 200% 100%;
    background-repeat: repeat-x;
    background-position: 0 0;
    animation: spin-earth 30s linear infinite;
    box-shadow: inset -30px -30px 60px rgba(0, 0, 0, 0.95), 
                inset 10px 10px 40px rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.globe-atmosphere {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    box-shadow: 0 0 35px 5px rgba(0, 242, 254, 0.45);
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at 30% 30%, rgba(0, 242, 254, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

@keyframes spin-earth {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -200%;
    }
}

.contact-form-section {
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
    box-shadow: none;
    pointer-events: auto !important;
    z-index: 2;
}

.cosmic-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.cosmic-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cosmic-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.cosmic-input:hover {
    border-color: rgba(0, 255, 255, 0.45);
    background: rgba(0, 255, 255, 0.02);
}

.cosmic-input:focus {
    border-color: var(--color-contact);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.04);
}

textarea.cosmic-input {
    resize: none;
    min-height: 140px;
}

.btn-cosmic-submit {
    position: relative;
    width: 100%;
    padding: 14px;
    background: var(--color-contact);
    border: none;
    border-radius: 6px;
    color: #08020f;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    text-align: center;
}

.btn-cosmic-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.75);
}

/* Success Overlay */
.transmission-success-overlay {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: #06020c;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.5s;
    z-index: 10;
}

.transmission-success-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.radar-pulse-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-contact);
    border-radius: 50%;
    animation: radar-pulse 1.8s ease-out infinite;
    opacity: 0;
}

.radar-ring:nth-child(2) {
    animation-delay: 0.6s;
}

.radar-ring:nth-child(3) {
    animation-delay: 1.2s;
}

.radar-center {
    width: 32px;
    height: 32px;
    background: var(--color-contact);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--color-contact);
    z-index: 2;
}

.radar-center svg {
    width: 16px;
    height: 16px;
    fill: #08020f;
}

@keyframes radar-pulse {
    0% {
        transform: scale(0.4);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-contact);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.success-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
}

/* --- RESPONSIVE TABLET & PHONE CORRECTIONS --- */
@media (max-width: 1100px) {
    .projects-page-shell {
        width: 92vw;
        gap: 28px;
        grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 390px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        max-height: 75vh;
    }
    .page-title {
        font-size: 1.6rem;
    }

    .projects-page-shell {
        width: min(92vw, 560px);
        height: 82vh;
        display: flex;
        flex-direction: column;
        gap: 22px;
        overflow-y: auto;
        padding-right: 4px;
    }

    .project-profile-rail {
        position: relative;
        height: auto;
        justify-content: flex-start;
        padding: 18px 2px 4px;
        overflow: visible;
    }

    .profile-avatar-wrap {
        width: 132px;
    }

    .profile-actions {
        grid-template-columns: 1fr 1fr;
    }

    .projects-feed {
        overflow: visible;
        padding: 0 0 28px;
    }

    .projects-feed-header {
        position: relative;
        padding-bottom: 14px;
        background: transparent;
        backdrop-filter: none;
    }

    .project-card {
        min-height: 0;
    }

    .project-desc {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .projects-page-shell {
        height: 78vh;
    }

    .profile-meta-list {
        font-size: 0.88rem;
    }

    .profile-tags span {
        font-size: 0.76rem;
        padding: 7px 10px;
    }

    .projects-grid {
        gap: 18px;
    }

    .project-card {
        padding: 20px;
    }
}
/* --- SOUND CONSENT SYSTEM PROMPT OVERLAY --- */
.sound-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 2, 8, 0.72);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 99999;
    padding: 40px;
    pointer-events: auto;
}

.sound-modal {
    max-width: 440px;
    width: 100%;
    text-align: left;
    border-radius: 12px;
    background: rgba(12, 6, 22, 0.88);
    border: 1px solid rgba(138, 43, 226, 0.4) !important;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.25), inset 0 0 15px rgba(138, 43, 226, 0.1) !important;
    padding: 28px !important;
    pointer-events: auto !important;
}

.sound-modal-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: #b388ff; /* Sleek neon purple */
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sound-modal-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 22px;
}

.sound-modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sound-modal-btn {
    background: rgba(12, 6, 22, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: var(--text-light);
    padding: 11px 16px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease-hover);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    text-align: left;
}

.sound-modal-btn:hover {
    border-color: #b388ff;
    box-shadow: 0 0 12px rgba(179, 136, 255, 0.4);
    transform: translateX(4px);
    color: #fff;
    background: rgba(138, 43, 226, 0.15);
}

.sound-modal-btn.opt-accept {
    border-color: #b388ff;
    background: rgba(138, 43, 226, 0.2);
}

.sound-modal-btn.opt-accept:hover {
    background: rgba(138, 43, 226, 0.35);
}

@media (max-width: 768px) {
    .sound-modal-overlay {
        justify-content: center;
        align-items: center;
        padding: 15px;
    }
    .sound-modal {
        max-width: 340px;
        padding: 16px !important;
        border-radius: 8px;
    }
    .sound-modal-title {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }
    .sound-modal-text {
        font-size: 0.78rem !important;
        margin-bottom: 12px !important;
        line-height: 1.4 !important;
    }
    .sound-modal-options {
        gap: 6px !important;
    }
    .sound-modal-btn {
        padding: 8px 12px !important;
        font-size: 0.72rem !important;
    }
}

/* --- ABOUT PAGE (about.html) --- */
.about-layout-container {
    width: 90%;
    max-width: 1100px;
    height: 90vh;
    max-height: 820px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    z-index: 10;
    pointer-events: none;
}

.about-header {
    width: 100%;
    text-align: center;
    flex-shrink: 0;
    pointer-events: auto;
    margin-bottom: 12px;
}

.about-title-wrapper {
    display: inline-block;
    position: relative;
    padding: 8px 36px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    background: rgba(18, 10, 36, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.2),
                inset 0 0 15px rgba(168, 85, 247, 0.1);
}

.about-title-reveal {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #fff;
    background: linear-gradient(90deg, #ff00ff, #a855f7, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
    margin: 0;
}

.about-cards-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    margin: 8px 0;
    align-items: stretch;
}

.about-card {
    background: rgba(18, 10, 36, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(168, 85, 247, 0.02);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.about-card:hover {
    transform: translateY(-16px) scale(1.025) rotate(0deg) !important;
    border-color: rgba(0, 242, 254, 0.7);
    box-shadow: 0 20px 45px rgba(0, 242, 254, 0.25),
                inset 0 0 20px rgba(0, 242, 254, 0.08);
    animation-play-state: paused !important;
    z-index: 20;
}

.about-card:hover::before {
    opacity: 1;
}

.card-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* Card Theme Specific Highlights & Unique Floating Offsets */
.card-good-at {
    border-top: 3px solid #10b981;
    transform: rotate(-1.5deg) translate(-10px, -5px);
    animation: float-card-1 6s ease-in-out infinite;
}
.card-good-at .card-heading {
    color: #10b981;
}

.card-how-i-work {
    border-top: 3px solid #00f2fe;
    transform: rotate(1deg) translate(8px, -12px);
    animation: float-card-2 6.5s ease-in-out infinite;
}
.card-how-i-work .card-heading {
    color: #00f2fe;
}

.card-what-i-bring {
    border-top: 3px solid #d946ef;
    transform: rotate(1.2deg) translate(-12px, 8px);
    animation: float-card-3 5.8s ease-in-out infinite;
}
.card-what-i-bring .card-heading {
    color: #d946ef;
}

.card-what-i-look-for {
    border-top: 3px solid #a855f7;
    transform: rotate(-1deg) translate(10px, 5px);
    animation: float-card-4 6.2s ease-in-out infinite;
}
.card-what-i-look-for .card-heading {
    color: #a855f7;
}

/* Bullet list and numbering styling */
.custom-bullets, .custom-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-bullets li, .custom-numbers li {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
}

.custom-bullets li {
    gap: 10px;
}

.custom-numbers li {
    gap: 10px;
    align-items: flex-start;
}

.bullet-icon {
    color: #10b981;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    display: inline-block;
    animation: pulse-star 3s ease-in-out infinite;
}

@keyframes pulse-star {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.25) rotate(15deg); opacity: 1; text-shadow: 0 0 12px rgba(16, 185, 129, 0.9); }
}

.num-indicator {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00f2fe;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 4px;
    padding: 1px 6px;
    background: rgba(0, 242, 254, 0.05);
    line-height: 1.2;
}

.card-what-i-bring .num-indicator {
    color: #d946ef;
    border-color: rgba(217, 70, 239, 0.3);
    background: rgba(217, 70, 239, 0.05);
    text-shadow: 0 0 8px rgba(217, 70, 239, 0.5);
}

.card-what-i-look-for .num-indicator {
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.05);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

/* Floating keyframe animations preserving unique offsets */
@keyframes float-card-1 {
    0%, 100% { transform: rotate(-1.5deg) translate(-10px, -5px); }
    50% { transform: rotate(-0.5deg) translate(-10px, -12px); }
}
@keyframes float-card-2 {
    0%, 100% { transform: rotate(1deg) translate(8px, -12px); }
    50% { transform: rotate(2deg) translate(8px, -4px); }
}
@keyframes float-card-3 {
    0%, 100% { transform: rotate(1.2deg) translate(-12px, 8px); }
    50% { transform: rotate(0.2deg) translate(-12px, 14px); }
}
@keyframes float-card-4 {
    0%, 100% { transform: rotate(-1deg) translate(10px, 5px); }
    50% { transform: rotate(-2deg) translate(10px, -2px); }
}

/* Quote Section */
.about-quote-section {
    width: 100%;
    text-align: center;
    flex-shrink: 0;
    margin-top: 10px;
    pointer-events: auto;
}

.about-quote {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 3px 20px;
}

.about-quote::before, .about-quote::after {
    content: '"';
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: #d946ef;
    text-shadow: 0 0 8px rgba(217, 70, 239, 0.6);
    vertical-align: middle;
    line-height: 1;
}

.about-quote::before {
    margin-right: 8px;
}

.about-quote::after {
    margin-left: 8px;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .about-layout-container {
        height: auto !important;
        min-height: calc(100vh - 120px);
        padding: 90px 20px 40px;
        justify-content: flex-start;
        gap: 20px;
    }
    .about-cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }
    .about-card {
        animation: none !important;
        padding: 20px;
    }
    .about-card:hover {
        transform: none !important;
    }
}

/* Fallback Static Cards Grid */
.static-fallback-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
    padding: 120px 40px 40px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    overflow-y: auto !important;
    height: 100vh !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 100 !important;
}
.card.static-reveal {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Height-based responsive scaling to prevent vertical overflow and chest overlap */
@media (max-height: 900px) {
    .card {
        width: 240px !important;
        height: 174px !important;
    }
    .card-front {
        padding: 10px !important;
        gap: 10px !important;
    }
    .card-image-wrapper {
        width: 90px !important;
    }
    .card-title {
        font-size: 0.8rem !important;
    }
    .card-issuer {
        font-size: 0.55rem !important;
    }
    .card-id {
        font-size: 0.55rem !important;
    }
}
@media (max-height: 700px) {
    .card {
        width: 190px !important;
        height: 138px !important;
    }
    .card-front {
        padding: 8px !important;
        gap: 8px !important;
    }
    .card-image-wrapper {
        width: 70px !important;
    }
    .card-title {
        font-size: 0.68rem !important;
    }
    .card-issuer {
        font-size: 0.5rem !important;
    }
    .card-id {
        display: none !important;
    }
    .card-badge {
        padding: 2px 6px !important;
        font-size: 0.48rem !important;
    }
}

/* Big Vertical Category Cards */
.card.category-card {
    width: clamp(280px, 22vw, 320px) !important;
    height: clamp(400px, 32vh, 460px) !important;
    cursor: pointer;
    perspective: 1000px !important;
}

/* Hover transitions on the flipper inside the card to avoid GSAP location overrides */
.card.category-card .card-flipper {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.card.category-card:hover .card-flipper {
    transform: rotateY(0deg) scale(1.06) translateY(-14px) !important;
    z-index: 999;
}

.card.category-card .card-front {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    padding: 30px 24px !important;
    text-align: center !important;
    gap: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(20, 9, 35, 0.96), rgba(8, 3, 15, 0.94)) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    transition: border-color 0.4s ease, box-shadow 0.4s ease !important;
}

.card.category-card:hover .card-front {
    border-color: var(--border-color) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65), 0 0 35px var(--glow-color) !important;
}

.card.category-card .card-front::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
    transition: border-color 0.4s ease !important;
}

.card.category-card:hover .card-front::before {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Cosmic Holographic Shine Sheet Scan */
.card.category-card .card-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0.08) 60%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    ) !important;
    background-size: 200% 200% !important;
    background-position: 200% 0% !important;
    transition: background-position 0.65s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease !important;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.card.category-card:hover .card-front::after {
    background-position: -120% 0% !important;
    opacity: 1;
}

.card.category-card .card-title {
    font-size: clamp(1.4rem, 2vw, 2.0rem) !important;
    font-weight: 900 !important;
    margin: 18px 0 10px !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15) !important;
    background: linear-gradient(135deg, #ffffff 40%, var(--title-glow, #fff) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.card.category-card .card-desc {
    font-size: clamp(0.85rem, 1vw, 1rem) !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 15px 0 !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.card.category-card .card-badge {
    align-self: center !important;
    padding: 6px 18px !important;
    font-size: 0.75rem !important;
    letter-spacing: 2px !important;
    background: var(--border-color) !important;
    color: #fff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 12px var(--glow-color) !important;
    text-shadow: none !important;
}

.card.category-card.legendary .card-badge {
    color: #000 !important; /* Premium black text on gold badge */
}

/* Category List Space Fullscreen Overlay */
.category-list-space {
    position: fixed;
    inset: 0;
    background: rgba(6, 3, 12, 0.96);
    backdrop-filter: blur(15px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 40px 40px;
    box-sizing: border-box;
}

.category-list-space.active {
    opacity: 1;
    pointer-events: auto;
}

.list-space-close {
    position: absolute;
    top: 85px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10100;
}

.list-space-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.list-space-container {
    width: 100%;
    max-width: 1320px;
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 34px;
    box-sizing: border-box;
}

/* Left Details & Preview Pane */
.list-space-left-pane {
    width: min(36vw, 460px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow-y: auto;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.preview-img-wrapper {
    width: 100%;
    height: min(32vh, 320px);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #000;
    position: relative;
    flex-shrink: 0;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Slider Arrows Styling */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 5, 20, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 24px;
    display: none; /* Shown dynamically if multiple images exist */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
}

.slider-arrow:hover {
    background: rgba(138, 43, 226, 0.85);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.arrow-left {
    left: 12px;
}

.slider-arrow.arrow-right {
    right: 12px;
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-issuer {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-certificates);
}

.preview-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

.preview-id {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}

.preview-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Right Selection Grid Pane */
.list-space-right-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.grid-header-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    letter-spacing: 1px;
}

.achievements-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: min-content;
    align-items: start;
    gap: 18px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Grid Item Card */
.grid-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    height: 114px; /* Fixed height for uniform grids */
}

.grid-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.grid-item-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color, #fff) !important;
    box-shadow: 0 0 15px var(--glow-color);
}

.grid-card-thumbnail {
    width: 110px;
    height: 76px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.grid-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden; /* Hide overflow content */
    flex: 1; /* Take up remaining horizontal space */
}

.grid-card-issuer {
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--color-certificates);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-card-title {
    font-family: var(--font-heading);
    font-size: 0.82rem; /* Adjusted slightly to fit multi-line layouts beautifully */
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Changed from 3 to 2 to make space for the highlight label */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-card-highlight {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    font-weight: 900;
    color: #ff2a85; /* Neon pink/magenta */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Overrides */
/* Responsive Overrides */
@media (max-width: 900px) {
    #cardContainer {
        position: fixed !important;
        inset: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        height: 100vh !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .card {
        width: min(92vw, 420px) !important;
        height: min(28vh, 230px) !important;
    }

    .card.category-card {
        width: min(92vw, 420px) !important;
        height: min(25vh, 180px) !important;
        padding: 0 !important;
    }

    .card.category-card .card-front {
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        padding: 20px 14px !important;
        gap: 2px !important;
    }

    .card.category-card .card-issuer {
        font-size: 0.55rem !important;
        color: rgba(255, 255, 255, 0.4) !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        display: block !important;
        margin: 0 !important;
    }

    .card.category-card .card-title {
        font-size: 1.05rem !important;
        font-weight: 900 !important;
        margin: 2px 0 0 0 !important;
        color: #fff !important;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
        text-align: left !important;
        white-space: normal !important;
        overflow: visible !important;
        line-height: 1.2 !important;
    }

    .card.category-card .card-desc {
        font-size: 0.72rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    .card.category-card .card-badge {
        font-size: 0.58rem !important;
        padding: 2px 8px !important;
        border-radius: 8px !important;
        align-self: flex-start !important;
        margin-top: 2px !important;
        display: inline-block !important;
    }

    .card.category-card .card-back-logo {
        font-size: 1.2rem !important;
        letter-spacing: 2px !important;
    }

    /* Mobile Reels / Shorts Layout */
    .category-list-space {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        background: radial-gradient(circle at center, #0d081b 0%, #05030a 100%) !important;
        z-index: 9999 !important;
        overflow: hidden !important;
    }

    /* Close Button */
    .category-list-space .list-space-close {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 50% !important;
        color: #fff !important;
        font-size: 18px !important;
        cursor: pointer !important;
        z-index: 10005 !important;
        transition: all 0.2s ease !important;
    }

    .category-list-space .list-space-close:hover {
        background: rgba(255, 0, 85, 0.2) !important;
        border-color: #ff0055 !important;
    }

    /* Mobile Header with SELECT Button */
    .mobile-shorts-header {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(to bottom, rgba(5, 3, 10, 0.95) 0%, rgba(5, 3, 10, 0) 100%) !important;
        z-index: 10000 !important;
        pointer-events: none !important;
    }

    .mobile-select-btn {
        pointer-events: auto !important;
        background: rgba(138, 43, 226, 0.15) !important;
        border: 1.5px solid rgba(138, 43, 226, 0.5) !important;
        color: #e0b0ff !important;
        padding: 8px 18px !important;
        border-radius: 20px !important;
        font-family: var(--font-heading) !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.2) !important;
        backdrop-filter: blur(8px) !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }

    .mobile-select-btn:active {
        transform: scale(0.95) !important;
        background: rgba(138, 43, 226, 0.3) !important;
        border-color: #8a2be2 !important;
        box-shadow: 0 0 25px rgba(138, 43, 226, 0.5) !important;
    }

    /* Shorts Snap Container */
    .mobile-shorts-container {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        overflow-y: scroll !important;
        scroll-snap-type: y mandatory !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .mobile-shorts-container::-webkit-scrollbar {
        display: none !important;
    }

    /* Shorts Slide */
    .mobile-shorts-slide {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 100vh !important;
        scroll-snap-align: start !important;
        position: relative !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-top: 75px !important;
        padding-bottom: 35px !important;
    }

    /* Image area */
    .shorts-image-wrapper {
        flex: 0 0 42vh !important;
        width: 92% !important;
        max-width: 480px !important;
        margin: 5px auto !important;
        position: relative !important;
        background: #020105 !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
    }

    .shorts-slides-container {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
    }

    .shorts-slides-container img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        opacity: 0 !important;
        transition: opacity 0.35s ease-in-out !important;
    }

    .shorts-slides-container img.active {
        opacity: 1 !important;
    }

    /* Arrows */
    .shorts-arrow {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
        font-size: 20px !important;
        display: none;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 10 !important;
        backdrop-filter: blur(4px) !important;
        outline: none !important;
    }

    .shorts-arrow.arrow-left {
        left: 10px !important;
    }

    .shorts-arrow.arrow-right {
        right: 10px !important;
    }

    /* Corner heart */
    .shorts-like-heart-icon {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        font-size: 24px !important;
        z-index: 12 !important;
        filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)) !important;
        cursor: pointer !important;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        opacity: 0.45 !important;
    }

    .shorts-like-heart-icon.liked {
        opacity: 1 !important;
        transform: scale(1.2) !important;
    }

    /* Popping heart */
    .instagram-heart {
        position: absolute !important;
        font-size: 70px !important;
        color: #ff2a6d !important;
        filter: drop-shadow(0 0 15px rgba(255, 42, 109, 0.7)) !important;
        z-index: 15 !important;
        pointer-events: none !important;
        opacity: 0 !important;
        transform: translate(-50%, -50%) scale(0) !important;
        left: 50% !important;
        top: 50% !important;
    }

    /* Description pane */
    .shorts-info-pane {
        width: 90% !important;
        max-width: 480px !important;
        margin: 10px auto 20px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        box-sizing: border-box !important;
    }

    .shorts-issuer-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .shorts-issuer {
        font-family: var(--font-heading) !important;
        font-size: 0.82rem !important;
        font-weight: 500 !important;
        color: rgba(255, 255, 255, 0.45) !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
    }

    .shorts-highlight {
        padding: 3px 8px !important;
        border-radius: 4px !important;
        font-family: var(--font-heading) !important;
        font-size: 0.65rem !important;
        font-weight: 900 !important;
        background: rgba(255, 42, 133, 0.15) !important;
        border: 1px solid #ff2a85 !important;
        color: #ff2a85 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        box-shadow: 0 0 8px rgba(255, 42, 133, 0.15) !important;
    }

    .shorts-title {
        font-family: var(--font-heading) !important;
        font-size: 1.3rem !important;
        font-weight: 900 !important;
        color: #fff !important;
        margin: 2px 0 0 0 !important;
        line-height: 1.3 !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    }

    .shorts-desc {
        font-family: var(--font-body) !important;
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
        color: rgba(255, 255, 255, 0.8) !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 6 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .shorts-id {
        font-family: var(--font-heading) !important;
        font-size: 0.72rem !important;
        color: rgba(255, 255, 255, 0.35) !important;
        letter-spacing: 0.5px !important;
    }

    /* Floating Menu */
    .mobile-select-menu {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 65vh !important;
        background: rgba(10, 5, 22, 0.96) !important;
        border-top: 2px solid rgba(138, 43, 226, 0.3) !important;
        border-radius: 24px 24px 0 0 !important;
        z-index: 11000 !important;
        transform: translateY(100%) !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(20px) !important;
        box-sizing: border-box !important;
        padding: 20px 16px 30px !important;
    }

    .mobile-select-menu.active {
        transform: translateY(0) !important;
    }

    .mobile-menu-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-bottom: 12px !important;
        flex-shrink: 0 !important;
    }

    .mobile-menu-title {
        font-family: var(--font-heading) !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        margin: 0 !important;
    }

    .mobile-menu-close {
        font-size: 20px !important;
        color: rgba(255, 255, 255, 0.5) !important;
        cursor: pointer !important;
        padding: 4px !important;
    }

    .mobile-menu-list {
        flex: 1 !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding-right: 4px !important;
    }

    .mobile-menu-item-card {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 12px !important;
        padding: 10px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .mobile-menu-item-card:active {
        background: rgba(138, 43, 226, 0.1) !important;
        border-color: rgba(138, 43, 226, 0.3) !important;
    }

    .mobile-menu-item-card.active {
        background: rgba(138, 43, 226, 0.15) !important;
        border-color: rgba(138, 43, 226, 0.6) !important;
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.2) !important;
    }

    .mobile-menu-thumb {
        width: 50px !important;
        height: 50px !important;
        border-radius: 8px !important;
        background: #000 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .mobile-menu-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .mobile-menu-meta {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        overflow: hidden !important;
    }

    .mobile-menu-issuer {
        font-family: var(--font-heading) !important;
        font-size: 0.6rem !important;
        font-weight: 500 !important;
        color: rgba(255, 255, 255, 0.4) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .mobile-menu-item-title {
        font-family: var(--font-heading) !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .mobile-menu-backdrop {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        z-index: 10999 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
    }

    .mobile-menu-backdrop.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* --- EVEN PROJECT CARDS --- */
.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-desc {
    flex-grow: 1;
    margin-bottom: 20px;
    min-height: auto;
}

.project-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-links {
    margin-top: 0;
    padding-top: 0;
}

/* --- PROJECTS MODAL POPUP --- */
.project-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 3, 12, 0.94);
    backdrop-filter: blur(20px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-modal-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Let events pass to container */
}

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10100;
    pointer-events: auto; /* Enable hover/clicks on close button */
}

.project-modal-close:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.project-modal-container {
    width: 100%;
    max-width: 1100px;
    height: auto;
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding: 40px;
    box-sizing: border-box;
    overflow-y: auto;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.02), 0 24px 50px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.project-modal-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
}

.project-modal-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
}

.project-modal-desc-container {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 8px;
}

.project-modal-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.project-modal-tech-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-section-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-projects);
    letter-spacing: 1px;
    margin: 0;
}

.project-modal-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.project-slider-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #050209;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.project-slide-img.active {
    opacity: 1;
    pointer-events: auto;
}

.project-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 5, 25, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    user-select: none;
}

.project-slider-arrow:hover {
    background: rgba(30, 144, 255, 0.9);
    border-color: rgba(30, 144, 255, 0.5);
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.project-slider-arrow.prev {
    left: 16px;
}

.project-slider-arrow.next {
    right: 16px;
}

.project-slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.project-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-slider-dot.active {
    background: var(--color-projects);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--color-projects);
}

@media (max-width: 900px) {
    .project-modal-container {
        grid-template-columns: 1fr;
        max-height: 90vh;
        padding: 24px;
        gap: 24px;
    }
    .project-modal-overlay {
        padding: 20px;
    }
    .project-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* ==========================================================================
   MUSIC CORNER STYLES
   ========================================================================== */

.music-page-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 20px 40px 12px 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    pointer-events: auto !important;
    background: radial-gradient(circle at center, #120524 0%, #08020f 80%) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 15 !important;
    overflow: hidden !important;
}

.visualizer-panel-fullheight {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 52vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.visualizer-panel-fullheight canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.music-console-grid {
    display: grid !important;
    grid-template-columns: 420px 1fr !important;
    gap: 40px !important;
    align-items: center !important;
    flex: 1 !important;
    min-height: 0 !important;
    width: 100%;
    margin: 8px auto;
    position: relative;
    z-index: 10;
    max-width: 1100px;
}

/* --- Equalizer Lines --- */
.vis-lines-container {
    transition: width 0.1s ease;
}

.vis-line {
    transition: width 0.1s ease, filter 0.2s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.green-vis-line {
    background: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.6);
}

.yellow-vis-line {
    background: #f1c40f;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.6);
}

/* --- Floating Song Cards --- */
.playlist-panel {
    width: 100%;
}

.music-tiles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.music-card {
    background: none !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    perspective: 1000px;
    animation: drift-float var(--float-duration, 5.5s) ease-in-out infinite alternate;
    animation-delay: var(--float-delay, 0s);
    transition: transform 0.3s ease, filter 0.3s ease;
}

@keyframes drift-float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.music-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 110px;
    aspect-ratio: 1;
    border-radius: 12px;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.music-card-cover {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.music-card-title {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 8px;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Playing states */
.music-card.playing .music-card-cover {
    border-color: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.music-card.playing .music-card-title {
    color: #00ffcc;
}

.music-card:hover {
    animation-play-state: paused;
}

.music-card:hover .music-card-wrapper {
    transform: translateY(-12px) rotateY(360deg) scale(1.12);
    box-shadow: 0 16px 32px rgba(0, 255, 204, 0.32), 0 0 20px rgba(0, 255, 204, 0.15);
}

.music-card:hover .music-card-title {
    color: #fff;
}

/* --- Music Player Bar --- */
.music-player-bar {
    background: rgba(14, 11, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px 24px;
    margin-top: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(138, 43, 226, 0.1);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 100;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.player-bar-upper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Track Info */
.player-track-info {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 30%;
    min-width: 200px;
}

.player-track-cover {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.player-track-cover.spinning {
    animation: spin-slow 12s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-track-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.player-track-title {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-heading);
}

.player-track-artist {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    width: 30%;
}

.player-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}

.player-btn svg {
    width: 22px;
    height: 22px;
    fill: rgba(255, 255, 255, 0.65);
    transition: fill 0.2s ease;
}

.player-btn:hover svg {
    fill: #fff;
    transform: scale(1.08);
}

.play-pause-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 46px;
    height: 46px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.play-pause-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.play-pause-btn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.play-pause-btn:hover svg {
    fill: #0c0817;
    transform: scale(1);
}

/* Utilities (Right) */
.player-utilities {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
    width: 35%;
}



.util-btn svg {
    width: 20px;
    height: 20px;
}



.hq-badge {
    background: rgba(255, 20, 147, 0.18);
    border: 1px solid rgba(255, 20, 147, 0.5);
    color: #ff1493;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    user-select: none;
}

.rating-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.rating-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.rating-heart {
    transition: transform 0.2s ease;
}

.rating-btn.active {
    background: rgba(255, 42, 109, 0.12);
    border-color: rgba(255, 42, 109, 0.4);
    color: #ff2a6d;
}

.rating-btn.active .rating-heart {
    transform: scale(1.15);
    color: #ff2a6d;
}

/* Waveform Timeline Container */
.player-waveform-container {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 4px;
}

.time-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-heading);
    width: 48px;
    text-align: center;
    user-select: none;
}

.waveform-timeline {
    position: relative;
    flex-grow: 1;
    height: 32px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    overflow: visible;
}

.waveform-bars {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
}

.wave-bar {
    width: 2px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.wave-bar.active {
    background: #00ffcc;
    box-shadow: 0 0 4px rgba(0, 255, 204, 0.35);
}

.waveform-progress-line {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(0, 255, 204, 0.06);
    width: 0%;
    z-index: 1;
    pointer-events: none;
    border-radius: 5px 0 0 5px;
    transition: width 0.1s linear;
}

.waveform-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ff2a6d;
    left: 0%;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(255, 42, 109, 0.8);
    transition: left 0.1s linear;
}

.playhead-badge {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff2a6d;
    color: #fff;
    font-size: 0.65rem;
    font-family: var(--font-heading);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 3px 8px rgba(255, 42, 109, 0.5);
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.waveform-timeline:hover .playhead-badge {
    opacity: 1;
}

/* Bass-reactive Shake Effect */
.bass-shake-active {
    animation: bass-shake 0.12s ease-out infinite;
}

@keyframes bass-shake {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-0.6px, 0.6px); }
    40% { transform: translate(0.6px, -0.6px); }
    60% { transform: translate(-0.4px, -0.4px); }
    80% { transform: translate(0.4px, 0.4px); }
    100% { transform: translate(0, 0); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .music-page-wrapper {
        padding: 10px 15px 10px 15px !important;
    }
    
    .music-console-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr auto !important;
        gap: 15px !important;
        height: calc(100vh - 210px) !important;
        margin: 5px auto !important;
    }

    .visualizer-panel-fullheight {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 38vh !important;
    }

    .playlist-panel {
        width: 100% !important;
        overflow: hidden !important;
    }

    .music-tiles-grid {
        display: grid !important;
        grid-template-rows: repeat(2, auto) !important;
        grid-template-columns: none !important;
        grid-auto-flow: column !important;
        grid-auto-columns: max-content !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        justify-content: start !important;
        gap: 16px !important;
        padding: 8px 16px !important;
        width: 100% !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Slick scrollbar for horizontal mobile tiles */
    .music-tiles-grid::-webkit-scrollbar {
        height: 4px;
    }
    .music-tiles-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 2px;
    }
    .music-tiles-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 255, 204, 0.3);
        border-radius: 2px;
    }
    .music-tiles-grid::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 255, 204, 0.6);
    }

    .music-card {
        margin: 0 !important;
        width: 85px !important;
        animation: none !important; /* Disable vertical floating animation on mobile scroll layout */
    }

    .music-card-wrapper {
        max-width: 85px !important;
    }

    .music-card-cover {
        max-width: 85px !important;
    }

    .music-card-title {
        max-width: 85px !important;
        font-size: 0.65rem !important;
        margin-top: 4px !important;
    }

    /* Compact Mobile Player Bar */
    .music-player-bar {
        padding: 12px 14px !important;
        margin-top: 10px !important;
        gap: 10px !important;
        border-radius: 12px !important;
    }

    .player-bar-upper {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .player-track-info {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        gap: 8px !important;
    }

    .player-track-cover {
        width: 38px !important;
        height: 38px !important;
        border-radius: 6px !important;
    }

    .player-track-meta {
        min-width: 0 !important;
    }

    .player-track-title {
        font-size: 0.78rem !important;
    }

    .player-track-artist {
        font-size: 0.62rem !important;
        margin-top: 0px !important;
    }

    .player-controls {
        width: auto !important;
        flex: 0 0 auto !important;
        gap: 8px !important;
    }

    .player-btn {
        width: 30px !important;
        height: 30px !important;
    }

    .player-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .play-pause-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .play-pause-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .player-utilities {
        width: auto !important;
        flex: 0 0 auto !important;
        gap: 8px !important;
    }

    .hq-badge {
        display: none !important; /* Hide badges on mobile */
    }



    .rating-btn {
        padding: 4px 8px !important;
        font-size: 0.68rem !important;
        gap: 4px !important;
    }
}

/* --- TOP-TO-BOTTOM DOSSIER LAYOUT --- */
.resume-dashboard {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    padding: 40px !important;
    background: rgba(10, 6, 22, 0.93) !important;
    border: none !important;
    box-shadow: inset 0 0 40px rgba(138, 43, 226, 0.06) !important;
    pointer-events: auto !important;
    position: relative;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: var(--color-resume, #00ffcc) rgba(255,255,255,0.03);
    border-radius: 0 !important;
}

.resume-dashboard::-webkit-scrollbar {
    width: 6px;
}
.resume-dashboard::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
}
.resume-dashboard::-webkit-scrollbar-thumb {
    background-color: var(--color-resume, #00ffcc);
    border-radius: 3px;
}

.resume-dashboard > * {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(0, 255, 204, 0.25);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.sys-dossier-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-resume, #00ffcc);
    letter-spacing: 2px;
}

.sys-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: var(--color-resume, #00ffcc);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-resume, #00ffcc);
    animation: pulse-green 1.5s infinite;
}

.status-text {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    color: #fff;
    letter-spacing: 1px;
}

@keyframes pulse-green {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* PROFILE TOP BLOCK */
.resume-profile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: rgba(0, 255, 204, 0.02);
    border: 1px solid rgba(0, 255, 204, 0.15);
    border-radius: 12px;
    padding: 44px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.profile-scanner-top {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    flex: 2;
}

.name-socials-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-name-top {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
}

.profile-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 204, 0.2);
    background: rgba(0, 255, 204, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.social-icon-link:hover {
    border-color: var(--color-resume, #00ffcc);
    background: rgba(0, 255, 204, 0.12);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.35);
    transform: translateY(-2px);
}

.social-svg-icon {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.3s ease;
}

.social-icon-link:hover .social-svg-icon {
    fill: var(--color-resume, #00ffcc);
}

.profile-title-top {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--color-resume, #00ffcc);
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* .scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to bottom, rgba(0, 255, 204, 0.8), rgba(0, 255, 204, 0));
    animation: laser-scan-line 3s linear infinite;
    pointer-events: none;
} */

/* @keyframes laser-scan-line {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
} */

.contacts-grid-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    flex: 1.2;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.telemetry-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--color-certificates, #ff007f);
    letter-spacing: 1px;
}

.telemetry-value {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

a.telemetry-value:hover {
    color: var(--color-resume, #00ffcc);
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
    padding-left: 2px;
}

.project-title-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.25s, text-shadow 0.25s;
}

.project-title-link:hover {
    color: var(--color-resume, #00ffcc);
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.35);
}

/* SECTION STRUCTURES */
.resume-section {
    margin-bottom: 35px;
}

.section-title-glow {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-certificates, #ff007f);
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.35);
    letter-spacing: 2px;
    margin: 0 0 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.terminal-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27c93f; }

.terminal-title {
    font-family: monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 10px;
}

.terminal-body {
    padding: 20px;
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.6;
}

.prompt {
    font-family: monospace;
    color: var(--color-resume, #00ffcc);
    font-size: 0.72rem;
}

.summary-paragraph {
    margin: 0;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
}

/* TIMELINE STYLING */
.glowing-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 12px;
    border-left: 1px solid rgba(0, 255, 204, 0.15);
    margin-left: 8px;
}

.timeline-node-item {
    position: relative;
    padding-left: 20px;
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.node-dot {
    position: absolute;
    left: -23px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-resume, #00ffcc);
    box-shadow: 0 0 8px var(--color-resume, #00ffcc);
    border: 2px solid #0a0616;
}

.node-meta {
    display: flex;
    flex-direction: column;
}

.node-role {
    font-size:2rem;
    font-weight: 700;
    color: #fff;
}

.node-company {
    font-size:1rem;
    color: var(--color-resume, #00ffcc);
    font-weight: 700;
}

.node-duration {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    margin-top: 2px;
}

.node-body {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
}

.node-body ul {
    padding-left: 14px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* PROJECT LOGS */
.project-logs-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-log-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.3s;
}

.project-log-card:hover {
    border-color: rgba(0, 255, 204, 0.2);
    background: rgba(0, 255, 204, 0.01);
}

.project-log-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.project-log-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.project-log-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.project-log-tech {
    font-size: 1rem;
    color: var(--color-certificates, #ff007f);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 4px 0 10px 0;
}

.project-log-bullets {
    padding-left: 14px;
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-log-links {
    display: flex;
    gap: 10px;
}

.console-btn-sm {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.65rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.console-btn-sm:hover {
    background: rgba(0, 255, 204, 0.08);
    border-color: var(--color-resume, #00ffcc);
    color: var(--color-resume, #00ffcc);
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.2);
}

/* TECH STACK */
.skills-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.skills-category-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    padding: 14px;
}

.skills-category-card.text-center {
    grid-column: span 2;
}

.skills-category-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag-glow {
    font-size: 0.9rem;
    color: #fff;
    background: rgba(0, 255, 204, 0.04);
    border: 1px solid rgba(0, 255, 204, 0.15);
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.skill-tag-glow:hover {
    border-color: var(--color-resume, #00ffcc);
    background: rgba(0, 255, 204, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.15);
    transform: translateY(-1px);
}

/* ACADEMIC & MILESTONES ROW */
.edu-achievements-row {
    display: flex;
    gap: 24px;
}

.flex-1 {
    flex: 1;
}

.edu-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.edu-degree {
    font-weight: 700;
    color: #fff;
    font-size: 1.15rem;
}

.edu-inst {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.edu-meta {
    color: var(--color-resume, #00ffcc);
    font-size: 0.9rem;
}

.achievements-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.achievements-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.node-bullet {
    width: 6px;
    height: 6px;
    background: var(--color-certificates, #ff007f);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--color-certificates, #ff007f);
    margin-top: 5px;
    flex-shrink: 0;
}

/* RESUME FOOTER */
.resume-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

.footer-system-path {
    font-family: monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
}

.download-cv-btn {
    padding: 10px 20px !important;
    font-size: 0.78rem !important;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 900px) {
    .resume-profile-top {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .contacts-grid-top {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .skills-dashboard {
        grid-template-columns: 1fr !important;
    }

    .skills-category-card.text-center {
        grid-column: span 1 !important;
    }

    .edu-achievements-row {
        flex-direction: column;
        gap: 20px;
    }

    .resume-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        text-align: center;
    }

    .footer-system-path {
        order: 2;
    }
}

/* --- PRINT STYLE OVERRIDES --- */
@media print {
    /* Hide screen layout elements */
    #app-root,
    canvas,
    .nebula-glow,
    .hud-btn,
    .portal-transition,
    .resume-dashboard {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .print-only {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        color: #000 !important;
        background: #fff !important;
        font-family: 'Times New Roman', Times, serif !important;
        font-size: 11pt !important;
        line-height: 1.4 !important;
        padding: 20px !important;
    }

    .print-header {
        text-align: center;
        margin-bottom: 15px;
    }

    .print-name {
        font-size: 22pt;
        font-weight: bold;
        margin: 0 0 5px 0;
        text-transform: uppercase;
        color: #000;
    }

    .print-contact {
        font-size: 9.5pt;
        color: #333;
        margin-bottom: 10px;
    }

    .print-contact span {
        margin: 0 4px;
    }

    .print-section {
        margin-bottom: 15px;
    }

    .print-section-title {
        font-size: 11pt;
        font-weight: bold;
        border-bottom: 1.5px solid #000;
        padding-bottom: 2px;
        margin: 0 0 8px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .print-job {
        margin-bottom: 10px;
        page-break-inside: avoid;
    }

    .print-job-header {
        display: flex;
        justify-content: space-between;
        font-size: 10.5pt;
        font-weight: bold;
        margin-bottom: 2px;
    }

    .print-job-date {
        font-weight: normal;
        color: #000;
    }

    .print-job-tech {
        font-size: 9.5pt;
        font-style: italic;
        color: #333;
        margin-bottom: 4px;
    }

    .print-bullets {
        padding-left: 15px;
        margin: 0;
    }

    .print-bullets li {
        font-size: 10pt;
        margin-bottom: 4px;
        line-height: 1.35;
        color: #000;
    }

    .print-skills li {
        list-style-type: none;
        padding-left: 0;
        margin-left: -15px;
        margin-bottom: 5px;
    }
}

.print-only {
    display: none;
}

/* FOUC Prevention for GSAP ScrollTrigger Animations */
.js-enabled .resume-dashboard .resume-profile-top,
.js-enabled .resume-dashboard .resume-section,
.js-enabled .resume-dashboard .timeline-node-item,
.js-enabled .resume-dashboard .project-log-card,
.js-enabled .resume-dashboard .skills-category-card {
    opacity: 0;
}

.resume-scroll-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* --- SUBPAGE FULLSCREEN & FOOTER OVERRIDES --- */
.contact-page-body .hero-container {
    height: auto !important;
    min-height: 100vh !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Contact Page Layout */
.contact-main-section {
    width: 100%;
    max-width: 1200px;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 20px 40px;
    box-sizing: border-box;
    z-index: 10;
    pointer-events: auto;
}

.contact-main-section * {
    pointer-events: auto;
}

@media (max-width: 900px) {
    .about-page-body .hero-container {
        height: auto !important;
        min-height: 100vh !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

/* Shorts Mobile Tutorial Overlay */
.shorts-tutorial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 2, 10, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none; /* Allows swiping behind it */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.shorts-tutorial-overlay.active {
    opacity: 1;
}

.tutorial-step {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #fff;
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 80%;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tutorial-step.active {
    display: flex;
    animation: zoom-in-tutorial 0.3s ease-out;
}

@keyframes zoom-in-tutorial {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tutorial-text {
    font-family: var(--font-heading), sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-resume, #00ffcc);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
    margin: 0;
}

.tutorial-gesture {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Swipe Up Animation */
.swipe-hand-icon {
    font-size: 3.2rem;
    animation: swipe-up-gesture 1.8s infinite ease-in-out;
}

@keyframes swipe-up-gesture {
    0% { transform: translateY(30px); opacity: 0; }
    20% { opacity: 1; }
    80% { transform: translateY(-30px); opacity: 1; }
    100% { transform: translateY(-30px); opacity: 0; }
}

/* Double Tap Animation */
.double-tap-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tap-finger {
    font-size: 3.2rem;
    z-index: 2;
    transform-origin: bottom right;
    animation: double-tap-finger 1.4s infinite ease-in-out;
}

.tap-glow {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255, 0, 127, 0.3);
    border: 2px solid var(--color-certificates, #ff007f);
    animation: tap-ripple-animation 1.4s infinite ease-out;
    z-index: 1;
}

@keyframes double-tap-finger {
    0%, 100% { transform: scale(1); }
    20% { transform: scale(0.8); }
    40% { transform: scale(1.05); }
    60% { transform: scale(0.8); }
    80% { transform: scale(1.1); }
}

@keyframes tap-ripple-animation {
    0%, 100% { transform: scale(0.5); opacity: 0; }
    20%, 60% { transform: scale(0.5); opacity: 0.8; }
    40%, 80% { transform: scale(1.8); opacity: 0; }
}


