:root {
    --bg-color: #111111;
    --surface-color: #1a1a1a;
    --primary-color: #f0ebd8;
    /* Off-white / Cream */
    --secondary-color: #a39171;
    /* Accent gold/brown */
    --accent-color: #ffffff;
    --text-main: #f4f4f4;
    --text-muted: #888888;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-cursive: 'Great Vibes', cursive;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* WebGL Background */
.webgl-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Removed previous glows, utilizing moody gradient overlay instead */
.glow {
    display: none;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

.grid-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Nav - Terra Style */
.terra-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    border-bottom: none;
    mix-blend-mode: difference;
    /* Ensures visibility over light/dark areas */
}

.terra-nav .logo {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    user-select: none;
    transform-origin: center;
    transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

.terra-nav .logo:hover {
    color: var(--secondary-color);
    transform: translateY(-2px) scale(1.06);
    text-shadow: 0 0 14px rgba(163, 145, 113, 0.4);
}

.terra-nav .logo.logo-active {
    animation: logoPulse 0.6s ease;
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.terra-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 0.5rem 2rem;
    position: absolute;
    /* Added to center precisely */
    left: 50%;
    /* Center relative to nav container */
    transform: translateX(-50%);
    /* Adjust for element width */
}

.terra-nav .nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.8rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.terra-nav .nav-links a:hover {
    color: var(--secondary-color);
}

.nav-right .geo-coord {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-main);
}

.nav-right {
    display: flex;
    align-items: center;
}

.admin-gear-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.admin-gear-link:hover {
    transform: rotate(50deg) scale(1.08);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 12px rgba(163, 145, 113, 0.35);
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.14);
    }

    100% {
        transform: scale(1);
    }
}

/* Capsule Button with Border Beam Effect */
.admin-btn,
.btn,
.filter-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    background: var(--surface-color);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    overflow: hidden;
    cursor: pointer;
    border: none;
    z-index: 1;
    transition: color 0.3s;
}

.admin-btn::before,
.btn::before,
.filter-btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-color);
    border-radius: 50px;
    z-index: -1;
}

.admin-btn::after,
.btn::after,
.filter-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: conic-gradient(from 0deg, transparent 0%, transparent 80%, rgba(255, 255, 255, 0.8) 100%);
    transform-origin: 0 0;
    animation: rotate-beam 3s linear infinite;
    opacity: 0;
    z-index: -2;
    transition: opacity 0.3s;
}

.admin-btn:hover::after,
.btn:hover::after,
.filter-btn:hover::after {
    opacity: 1;
}

@keyframes rotate-beam {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Terra Hero Section */
.terra-hero {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    /* High-end aurora dark gradient instead of pure black */
    background: radial-gradient(circle at 50% 10%, rgba(30, 15, 60, 1) 0%, rgba(10, 10, 15, 1) 60%, rgba(0, 0, 0, 1) 100%);
}

.terra-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Removed static bg-image as we are using WebGL now */
.bg-image {
    display: none;
}

.giant-text-container {
    position: absolute;
    z-index: 1;
    width: 100%;
    text-align: center;
    pointer-events: none;
    transition: transform 0.1s ease-out;
    /* Smooth tilt */
}

.giant-text {
    font-family: var(--font-heading);
    font-size: 22vw;
    font-weight: 900;
    line-height: 0.8;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.05em;
    opacity: 0.9;
    /* Optional blend mode for interacting with background */
    mix-blend-mode: overlay;
}

.chinese-giant {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 5vw;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.15em;
    mix-blend-mode: normal;
    /* Restore normal blend for thinner fonts */
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.foreground-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.1s ease-out;
    /* Smooth tilt */
}

.info-box {
    position: absolute;
    bottom: 15%;
    left: 10%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-box:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.info-box .label {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

/* About Page Specific Styles */
.about-page-body {
    background: radial-gradient(circle at 10% 20%, #2a1118 0%, #150b12 40%, #000000 100%);
    min-height: 100vh;
}

.podcast-hero {
    position: relative;
    padding: 150px 5% 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
}

.podcast-avatar-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(163, 145, 113, 0.2);
    margin-bottom: 2rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out forwards;
}

.podcast-avatar-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.podcast-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.podcast-avatar-container:hover .podcast-avatar-img {
    transform: scale(1.05);
}

.podcast-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
    /* Pre-animation state */
}

.podcast-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.podcast-badge {
    display: inline-block;
    background: rgba(163, 145, 113, 0.15);
    color: var(--secondary-color);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border: 1px solid rgba(163, 145, 113, 0.3);
}

.podcast-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 3rem;
    font-weight: 300;
    white-space: pre-wrap;
}

.podcast-episodes-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5% 100px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.podcast-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.podcast-section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
}

.podcast-episode {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.6) 0%, rgba(15, 15, 15, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 2.5rem 3.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 3.5rem;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.podcast-episode::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(163, 145, 113, 0.1), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    z-index: 0;
}

.podcast-episode:hover::before {
    left: 150%;
}

.podcast-episode:hover {
    transform: translateY(-8px) scale(1.01);
    background: linear-gradient(145deg, rgba(35, 35, 35, 0.8) 0%, rgba(15, 15, 15, 0.95) 100%);
    border-color: rgba(163, 145, 113, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(163, 145, 113, 0.1);
}

.podcast-episode::after {
    content: '→';
    position: absolute;
    right: 3rem;
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 200;
}

.podcast-episode:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.episode-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--secondary-color);
    font-weight: 900;
    line-height: 1;
    min-width: 80px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

.podcast-episode:hover .episode-number {
    color: var(--secondary-color);
    -webkit-text-stroke: 0px transparent;
    opacity: 1;
    text-shadow: 0 0 25px rgba(163, 145, 113, 0.5);
    transform: scale(1.1) translateX(5px);
}

.episode-content {
    flex: 1;
    position: relative;
    z-index: 1;
    padding-right: 3rem;
}

.episode-content h4 {
    font-family: var(--font-body);
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: color 0.4s ease;
}

.podcast-episode:hover .episode-content h4 {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(240, 235, 216, 0.2);
}

.episode-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: 95%;
    transition: color 0.4s ease;
}

.podcast-episode:hover .episode-content p {
    color: rgba(244, 244, 244, 0.7);
}

@media (max-width: 768px) {
    .podcast-title {
        font-size: 2.5rem;
    }

    .podcast-episode {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        align-items: flex-start;
    }

    .podcast-episode::after {
        display: none;
    }

    .episode-number {
        font-size: 2.8rem;
    }

    .episode-content {
        padding-right: 0;
    }
}

/* Dynamic text roller CSS */
.dynamic-roller-container {
    height: 1.5rem;
    overflow: hidden;
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 250px;
    /* Force extra width for longer emotional sentences */
}

.roller-content {
    display: flex;
    flex-direction: column;
    animation: rollUp 8s infinite cubic-bezier(0.75, 0, 0.25, 1);
}

.roller-content span {
    height: 1.5rem;
    line-height: 1.5rem;
    font-size: 0.85rem;
    /* Slightly smaller for long texts */
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
    color: var(--text-main);
}

@keyframes rollUp {

    0%,
    15% {
        transform: translateY(0);
    }

    25%,
    40% {
        transform: translateY(-1.5rem);
    }

    50%,
    65% {
        transform: translateY(-3.0rem);
    }

    75%,
    90% {
        transform: translateY(-4.5rem);
    }

    100% {
        transform: translateY(-6.0rem);
    }
}

.info-box hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

.cursive-signature {
    position: absolute;
    right: 5%;
    /* Push to the very edge */
    bottom: 5%;
    /* Push to the very bottom */
    font-family: var(--font-cursive);
    font-size: 12vw;
    /* Use viewport width instead of rem to scale with the giant text */
    color: #fff;
    transform: rotate(-5deg);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terra-scroll {
    position: absolute;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.terra-scroll span {
    writing-mode: vertical-rl;
    font-size: 0.8rem;
    letter-spacing: 4px;
    margin-bottom: 0;
    font-family: var(--font-body);
    font-weight: 500;
}

.terra-scroll .line {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.terra-scroll .line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scroll-drop 2s infinite;
}

@keyframes scroll-drop {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* Portfolio Section */
.portfolio-section {
    padding: 2rem 5% 5rem;
    /* Reduced top padding to tighten layout */
    background: linear-gradient(to bottom, #000000 0%, #0d0912 40%, #16111a 100%);
    /* Seamlessly transition from pure black hero bottom into deep dark purple-grey */
    position: relative;
    z-index: 10;
    box-shadow: none;
    /* Removed top shadow to eliminate the hard visual boundary */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.section-title span {
    color: var(--primary-color);
}

/* Infinite Marquee Grid */
.gallery-grid {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem 0;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.gallery-wrapper {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-grid:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }

    /* Assuming duplicated content */
}

/* Base Reveal Animation */
.reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.project-card {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 350px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem 2rem 2rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, var(--surface-color) 60%, transparent);
    margin-top: -80px;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.03);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    background: var(--surface-color);
    border: 1px solid rgba(76, 201, 240, 0.2);
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 80px rgba(123, 44, 191, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--secondary-color);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-media {
    width: 100%;
    background: #000;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-media img,
.modal-media video,
.modal-media iframe {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.modal-media iframe {
    width: 100%;
    height: 50vh;
    border: none;
}

.modal-info {
    padding: 3rem;
}

.modal-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.modal-info .description {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
    white-space: pre-wrap;
    margin-top: 1rem;
}

/* Loader */
.loader-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .modal-info {
        padding: 1.5rem;
    }

    .modal-info h2 {
        font-size: 1.8rem;
    }
}

/* Cyber Logo Effect */
.cyber-logo {
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--primary-color), var(--secondary-color), #fff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neonShine 4s linear infinite;
    position: relative;
    cursor: pointer;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.cyber-logo span {
    color: var(--text-muted);
    -webkit-text-fill-color: initial;
    text-shadow: none;
    font-weight: 300;
}

@keyframes neonShine {
    to {
        background-position: 300% center;
    }
}

.cyber-logo:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* ========================================
   Works Gallery Page Styles
   ======================================== */

.works-page-body {
    background: radial-gradient(ellipse at 20% 0%, #1a0a2e 0%, #0d0d1a 40%, #0a0a0a 100%);
    min-height: 100vh;
}

.works-hero {
    padding: 160px 5% 60px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.works-hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out forwards;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.works-hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.works-gallery-section {
    padding: 0 5% 100px;
    position: relative;
    z-index: 10;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.works-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 4rem 0;
}

.works-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.works-card:hover {
    transform: translateY(-8px);
    border-color: rgba(163, 145, 113, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(163, 145, 113, 0.1);
}

.works-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

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

.works-card:hover .works-card-img {
    transform: scale(1.08);
}

.works-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.works-card:hover .works-card-overlay {
    opacity: 1;
}

.works-card-view {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 2px;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    text-transform: uppercase;
}

.works-card-body {
    padding: 1.5rem;
}

.works-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.works-card-meta {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.works-card-likes {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.works-card-likes svg {
    opacity: 0.6;
}

/* Works Modal */
.works-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.works-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.works-modal-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    align-items: stretch;
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.works-modal-overlay.active .works-modal-layout {
    transform: none;
}

.works-modal-content {
    flex: 1;
    background: linear-gradient(145deg, #1a1a2e, #16161a);
    border: 1px solid rgba(163, 145, 113, 0.2);
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    display: block;
    /* Use block layout for accurate scroll height calculation */
    min-width: 0;
    min-height: 0;
    /* Crucial for scrolling inside a flex container */
}

.works-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.works-modal-media {
    width: 100%;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
    padding-bottom: 40px;
    /* Ensure space at the bottom of the scroll container */
}

.works-modal-media video,
.works-modal-media iframe {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.works-modal-info {
    padding: 2.5rem;
}

.works-modal-info h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.works-modal-description {
    font-size: 1.05rem;
    color: #ccc;
    line-height: 1.8;
    white-space: pre-wrap;
    margin-top: 1rem;
}

.works-modal-sidebar {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-card {
    background: rgba(22, 22, 26, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(163, 145, 113, 0.3);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.works-modal-actions {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
}

.read-more-link {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    text-align: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Works Comments Styling (Sidebar) */
.works-comments-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.comments-title {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comments-empty {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin: auto;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.comment-form input,
.comment-form textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    resize: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(163, 145, 113, 0.2);
}

.comment-form .comment-submit-btn {
    align-self: flex-end;
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--primary-color);
    color: #fff;
    /* Requested white text */
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.comment-form .comment-submit-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Like Button */
.like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.like-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.like-btn .like-icon {
    fill: currentColor;
    transition: all 0.3s ease;
}

.like-btn.liked {
    color: #e74c3c;
    border-color: #e74c3c;
    animation: likePopup 0.4s ease;
}

.like-btn.liked .like-icon {
    fill: #e74c3c;
}

@keyframes likePopup {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .works-hero-title {
        font-size: 3rem;
    }

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

    .works-modal-layout {
        flex-direction: column;
        overflow-y: auto;
        height: 100vh;
        width: 100%;
        max-width: 100%;
        gap: 10px;
        padding: 10px;
        margin-top: 50px;
        /* Space for close button if needed */
        transform: translateY(100vh) scale(1);
    }

    .works-modal-overlay.active .works-modal-layout {
        transform: none;
    }

    .works-modal-content {
        overflow-y: visible;
        /* Let the parent layout scroll */
        height: auto;
        flex: none;
    }

    .works-modal-sidebar {
        width: 100%;
        height: auto;
        flex: none;
    }

    .sidebar-card {
        padding: 1.5rem;
    }

    .works-modal-info {
        padding: 1.5rem;
    }

    .works-modal-info h2 {
        font-size: 1.6rem;
    }
}

/* Global Lightbox for Image Zoom */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2147483647;
    /* Set to absolute max to avoid any stacking context traps */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-toolbar {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 10000;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    /* Safe space for toolbar */
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.9) rotate(0deg);
    /* Include rotation variable */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1) rotate(0deg);
}

/* Tech Avatar Ring */
.tech-ring-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 2rem;
}

.tech-ring-wrapper .podcast-avatar-container {
    margin-bottom: 0;
    /* Override the old margin */
    position: relative;
    z-index: 2;
}

.tech-ring-wrapper::before {
    content: '';
    position: absolute;
    /* Move significantly outward to avoid the avatar border */
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    border: 3px solid transparent;
    border-top: 3px solid rgba(255, 255, 255, 1);
    border-right: 3px solid rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid rgba(255, 255, 255, 0.8);
    border-left: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: rotate-ring 6s linear infinite;
    pointer-events: none;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.tech-ring-wrapper::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: rotate-ring 4s linear infinite reverse;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
    z-index: 1;
}

@keyframes rotate-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Hero Background Music Player Styles
   ========================================================================== */
.hero-bgm-controller {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-bgm-controller:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.hero-bgm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.hero-bgm-controller:hover .hero-bgm-btn {
    color: var(--text-main);
}

.hero-bgm-controller.playing .hero-bgm-btn {
    color: var(--secondary-color);
}

.hero-bgm-btn .pause-icon { display: none; }
.hero-bgm-controller.playing .hero-bgm-btn .play-icon { display: none; }
.hero-bgm-controller.playing .hero-bgm-btn .pause-icon { display: block; }

.hero-bgm-waves {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 10px;
}

.hero-bgm-waves span {
    display: block;
    width: 2px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hero-bgm-controller:hover .hero-bgm-waves span {
    background: var(--text-main);
}

.hero-bgm-controller.playing .hero-bgm-waves span {
    background: var(--secondary-color);
    animation: hero-wave-bounce 1s infinite ease-in-out;
}

.hero-bgm-controller.playing .hero-bgm-waves span:nth-child(1) { animation-delay: 0.0s; }
.hero-bgm-controller.playing .hero-bgm-waves span:nth-child(2) { animation-delay: 0.2s; }
.hero-bgm-controller.playing .hero-bgm-waves span:nth-child(3) { animation-delay: 0.4s; }
.hero-bgm-controller.playing .hero-bgm-waves span:nth-child(4) { animation-delay: 0.1s; }
.hero-bgm-controller.playing .hero-bgm-waves span:nth-child(5) { animation-delay: 0.3s; }

.hero-bgm-text {
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 1.4px;
    font-weight: 500;
    transition: color 0.3s ease;
    text-align: center;
    line-height: 1;
    min-width: 56px;
}

.hero-bgm-controller:hover .hero-bgm-text {
    color: var(--text-main);
}

.hero-bgm-controller.playing .hero-bgm-text {
    color: var(--secondary-color);
}

@keyframes hero-wave-bounce {
    0%, 100% { height: 3px; }
    50% { height: 10px; }
}

.tech-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}

.tech-search {
    display: flex;
    gap: 10px;
    align-items: center;
    width: min(680px, 100%);
}

.tech-search input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.tech-search input:focus {
    border-color: rgba(163, 145, 113, 0.35);
    box-shadow: 0 0 0 3px rgba(163, 145, 113, 0.12);
}

.tech-pager {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-page-indicator {
    color: var(--text-muted);
    font-size: 0.95rem;
    min-width: 72px;
    text-align: center;
}

.tech-tags-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 22px;
}

.tech-tag-filter {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}

.tech-tag-filter:hover {
    border-color: rgba(163, 145, 113, 0.35);
    transform: translateY(-1px);
}

.tech-tag-filter.active {
    border-color: rgba(163, 145, 113, 0.55);
    color: var(--primary-color);
    background: rgba(163, 145, 113, 0.12);
}

.tech-cover-fallback {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 10%, rgba(163, 145, 113, 0.35), rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.6));
}

.tech-card-summary {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-tags-inline {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tech-tag-pill:hover {
    border-color: rgba(163, 145, 113, 0.35);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.tech-date {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    margin-left: auto;
}

.tech-detail-shell {
    max-width: 980px;
    margin: 0 auto;
}

.tech-detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tech-back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
}

.tech-back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.tech-detail-meta {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.tech-detail-card {
    background: rgba(26, 26, 26, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.tech-detail-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.tech-detail-summary {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.tech-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.tech-detail-content {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.85;
    font-size: 1.02rem;
}

.tech-h1, .tech-h2, .tech-h3 {
    font-family: var(--font-heading);
    color: #fff;
    margin: 18px 0 10px;
}

.tech-h1 { font-size: 1.7rem; }
.tech-h2 { font-size: 1.45rem; }
.tech-h3 { font-size: 1.25rem; }

.tech-p {
    margin: 8px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.tech-li {
    margin: 6px 0;
    padding-left: 6px;
    white-space: pre-wrap;
    word-break: break-word;
}

.tech-paragraph-gap {
    height: 10px;
}

.tech-code {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.45);
    overflow: auto;
}

.tech-code code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre;
}

.tech-empty-content {
    color: var(--text-muted);
    padding: 16px 0;
}

.tech-attachments {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-attachments-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.tech-attachments-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.tech-attachment-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: all 0.25s ease;
}

.tech-attachment-item:hover {
    transform: translateY(-2px);
    border-color: rgba(163, 145, 113, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.tech-attachment-icon {
    font-size: 1.2rem;
    line-height: 1.4rem;
    opacity: 0.9;
    align-self: start;
}

.tech-attachment-name {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    line-height: 1.2;
}

.tech-attachment-meta {
    grid-column: 2 / 3;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    margin-top: 4px;
}
