@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Fredoka:wght@400;500;600;700&display=swap');
:root {
    --background: #010103;
    --text: #b4b4b4;
    --text-bright: #ededed;
    --accent: #00e5ff;
    --accent-glow: hsla(188, 100%, 50%, 0.5);
    --card-bg: rgba(16, 18, 27, 0.5);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
    .tech-stack .tech-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

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

html { scroll-behavior: smooth; }

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

/* --- Hero Section Layout --- */
#hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 4rem;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 5rem;
    align-items: center;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(2rem, 6vw, 6rem);
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
}

/* --- Profile Card - COMPLETE REDESIGN --- */
.profile-card {
    width: 100%;
    max-width: 420px;
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    animation: profileCardEntrance 1s cubic-bezier(0.4, 0, 0.2, 1);
    justify-self: end;
}

/* Prevent any inline transforms on profile card after animation */
.profile-card[style*="transform"] {
    animation-fill-mode: forwards;
}

.profile-card[style*="transform"]::after {
    content: '';
    animation: none;
}

@keyframes profileCardEntrance {
    0% {
        opacity: 0;
        transform: translateX(80px) scale(0.85) rotateY(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
    }
}

.profile-card-inner {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.95) 0%,
        rgba(5, 5, 10, 0.98) 100%);
    border-radius: 28px;
    padding: 2.25rem;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: none !important;
}

.profile-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent) 50%,
        transparent 100%);
    opacity: 0.6;
}

/* Top Section with Image and Header */
.profile-top-section {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-image-container {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.profile-image-border {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), rgba(25, 230, 140, 1));
    opacity: 0.3;
    z-index: 0;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.1);
    filter: grayscale(0.1) brightness(0.95);
}

.profile-status-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    background: rgba(10, 10, 15, 0.95);
    border: 1.5px solid rgba(25, 230, 140, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(25, 230, 140, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: rgba(25, 230, 140, 1);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(25, 230, 140, 0.8);
}

.profile-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-name {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    line-height: 1.2;
}

.name-primary {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

.name-divider {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0.5;
}

.profile-role {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    width: fit-content;
}

.profile-role i {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Main Content */
.profile-main-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.profile-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    font-style: italic;
}

/* Metrics */
.profile-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
}

.metric-icon {
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.8;
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.metric-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.metric-label {
    font-size: 0.63rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Social Section */
.profile-social-section {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.social-divider {
    position: relative;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-divider::before,
.social-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.1) 100%);
}

.social-divider::before {
    left: 0;
}

.social-divider::after {
    right: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.profile-card .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-card .social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), rgba(25, 230, 140, 1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.profile-card .social-link i {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.profile-card .social-link .social-label {
    position: relative;
    z-index: 1;
}

.profile-card .social-link:hover {
    color: var(--text-bright);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.2);
}

.profile-card .social-link:hover::before {
    opacity: 0.15;
}


@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr 0.85fr;
        gap: 4rem;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 8vw, 7rem);
    }
    
    .hero-title .line:first-child .word {
        font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    }
    
    .profile-card {
        max-width: 380px;
    }
    
    .profile-card-inner {
        padding: 2rem;
    }
    
    .profile-top-section {
        gap: 1.35rem;
        margin-bottom: 1.75rem;
        padding-bottom: 1.75rem;
    }
    
    .profile-image-container {
        width: 95px;
        height: 95px;
    }
    
    .name-primary {
        font-size: 1.75rem;
    }
    
    .profile-main-content {
        gap: 1.5rem;
    }
}

/* Laptop optimizations (1024px - 1200px) */
@media (min-width: 1024px) and (max-width: 1440px) {
    .profile-card {
        max-width: 400px;
    }
    
    .profile-card-inner {
        padding: 2.1rem;
        border-radius: 26px;
    }
    
    .profile-top-section {
        gap: 1.4rem;
        margin-bottom: 1.9rem;
        padding-bottom: 1.9rem;
    }
    
    .profile-image-container {
        width: 98px;
        height: 98px;
    }
    
    .name-primary {
        font-size: 1.8rem;
    }
    
    .profile-role {
        padding: 0.35rem 0.75rem;
        font-size: 0.73rem;
    }
    
    .profile-main-content {
        gap: 1.65rem;
    }
    
    .profile-tagline {
        font-size: 0.88rem;
        line-height: 1.62;
    }
    
    .profile-metrics {
        gap: 0.7rem;
    }
    
    .metric-card {
        padding: 0.85rem;
        gap: 0.7rem;
    }
    
    .profile-social-section {
        gap: 0.95rem;
    }
    
    .social-grid {
        gap: 0.7rem;
    }
    
    .profile-card .social-link {
        padding: 0.8rem 0.95rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 1024px) {
    #hero {
        min-height: auto;
        padding: 4rem 0 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        padding: 0 clamp(1.5rem, 4vw, 3rem);
        text-align: center;
    }
    
    .hero-text {
        align-items: center;
        text-align: center;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .hero-title {
        text-align: center;
        align-items: center;
    }
    
    .hero-subtitle {
        max-width: 100%;
        text-align: center;
    }
    
    .profile-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        justify-self: center;
    }

    .profile-card-inner {
        padding: 2rem;
    }

    .profile-top-section {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1.5rem;
    }

    .profile-header-info {
        align-items: flex-start;
        text-align: left;
    }

    .profile-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .metric-card {
        justify-content: flex-start;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #hero {
        padding: 3rem 0 2.5rem;
    }
    
    .hero-content {
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
    
    .hero-text {
        gap: 1.75rem;
    }
    
    .hero-title {
        font-size: clamp(3rem, 11vw, 5.5rem);
        gap: 0.15rem;
        line-height: 0.98;
    }
    
    .hero-title .line:first-child .word {
        font-size: clamp(0.85rem, 2vw, 1rem);
        margin-bottom: 0.4rem;
    }
    
    .hero-title .highlight::after {
        height: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .profile-card {
        max-width: 100%;
    }
    
    .profile-card-inner {
        padding: 1.25rem;
        border-radius: 20px;
    }
    
    .profile-top-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.9rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }
    
    .profile-image-container {
        width: 80px;
        height: 80px;
    }
    
    .profile-status-badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.6rem;
        bottom: -1px;
        right: -1px;
    }
    
    .status-indicator {
        width: 5px;
        height: 5px;
    }
    
    .profile-header-info {
        align-items: center;
        text-align: center;
        gap: 0.4rem;
    }
    
    .name-primary {
        font-size: 1.5rem;
    }
    
    .profile-role {
        padding: 0.3rem 0.65rem;
        font-size: 0.7rem;
        gap: 0.4rem;
    }
    
    .profile-main-content {
        gap: 1.25rem;
    }
    
    .profile-tagline {
        font-size: 0.85rem;
        line-height: 1.5;
        margin: 0;
    }
    
    .profile-metrics {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .metric-card {
        justify-content: center;
        padding: 0.65rem 0.75rem;
        gap: 0.6rem;
        border-radius: 12px;
    }
    
    .metric-icon {
        font-size: 1rem;
    }
    
    .metric-value {
        font-size: 0.95rem;
    }
    
    .metric-label {
        font-size: 0.6rem;
    }
    
    .profile-social-section {
        gap: 0.75rem;
    }
    
    .social-divider {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .profile-card .social-link {
        padding: 0.65rem 0.85rem;
        font-size: 0.8rem;
        gap: 0.6rem;
        border-radius: 10px;
    }
    
    .profile-card .social-link i {
        font-size: 0.9rem;
    }
}

/* --- UI & INTERACTION --- */
#sound-toggle {
    position: fixed; top: 20px; right: 20px; z-index: 1001;
    font-size: 1.5rem; background: none; border: none; color: var(--text);
    cursor: pointer; transition: color 0.3s;
}
#sound-toggle:hover { color: var(--accent); }
.magnetic-ui {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- DYNAMIC CURSOR --- */
#cursor { 
    position: fixed; top: 0; left: 0; z-index: 1000;
    pointer-events: none; will-change: transform;
    transition: opacity 0.3s;
}
#cursor-dot {
    width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#cursor.hover-link #cursor-dot { transform: scale(3.5); mix-blend-mode: difference;}

/* --- DYNAMIC BACKGROUND --- */
#webgl-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    opacity: 0.25; filter: blur(20px);
}

/* --- CINEMATIC LOADER --- */
#loader {
    position: fixed; inset: 0; z-index: 10000;
    background: #18181b; display: grid; place-items: center;
    font-family: 'Plus Jakarta Sans', 'Outfit', 'Montserrat', sans-serif;
    overflow: hidden;
}

.animation-wrapper {
    position: relative; width: 90vw; max-width: 1000px; aspect-ratio: 2 / 1;
    display: flex; align-items: center; justify-content: center;
}

.morph-svg {
    position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
}

.text-overlay {
    position: relative; z-index: 10; display: flex; gap: clamp(2px, 0.5vw, 10px);
    perspective: 1000px; 
}

.letter {
    display: inline-block; font-size: clamp(1.5rem, 6vw, 5.5rem);
    font-family: 'Plus Jakarta Sans', 'Outfit', 'Montserrat', sans-serif; font-weight: 800; color: #18181b;
    transform-origin: center; opacity: 0; 
}

main { position: relative; z-index: 1; visibility: hidden; }
/* Utility */
.desktop-only {
    display: block;
}

.df { display: flex; }
.aic { align-items: center; }
.jcc { justify-content: center; }

/* Community Section */
#community {
    padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 6vw, 8rem);
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
}

.community-demo-wrapper,
.community-loader {
    display: block;
}

.community-loader {
    margin-top: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.55), rgba(8, 8, 12, 0.4));
    box-shadow: 0 16px 40px var(--card-shadow);
    padding: clamp(2.25rem, 9vw, 3.25rem) clamp(1.5rem, 7vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

.community-loader h1 {
    font-size: clamp(2.6rem, 7vw, 4rem);
    letter-spacing: -0.04em;
    color: var(--text-bright);
}

.community-loader h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.community-loader.is-hidden {
    display: none;
}

.community-demo-wrapper {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    position: relative;
    margin-top: clamp(2.25rem, 7vw, 3.5rem);
    border-radius: 24px;
   
    box-shadow: 0 20px 50px var(--card-shadow);
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

.community-demo-wrapper.is-active {
    opacity: 1;
    pointer-events: auto;
}

.community-mobile {
    display: none;
}

.community-demo-header,
.community-demo-footer {
    text-align: center;
    padding: clamp(2rem, 6vw, 3rem) 1rem;
}

.community-demo-header h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    letter-spacing: -0.05em;
    color: var(--text-bright);
}

.community-demo-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.6);
}

.community-demo-footer p {
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.community-demo-text {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.community-demo-text .wrapper.text {
    font-size: clamp(5rem, 12vw, 13rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
    padding: clamp(2.25rem, 7vw, 3.25rem) 0;
}

.community-marquee {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: clamp(2rem, 6vw, 4rem);
    will-change: transform;
}

.community-marquee-text {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.community-demo-gallery {
    padding: clamp(1rem, 4vw, 2rem) 0;
}

.community-demo-gallery .wrapper {
    display: flex;
    gap: clamp(0.75rem, 2.5vw, 2rem);
    list-style: none;
    padding-left: clamp(0.25rem, 2.5vw, 1.25rem);
}

.community-demo-gallery li {
    flex-shrink: 0;
    width: clamp(320px, 50vw, 560px);
}

.message-card {
    width: 100%;
    min-height: clamp(200px, 32vw, 260px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: clamp(1.4rem, 4.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
    color: var(--text);
}

.message-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.message-card-name {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

.message-card-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
}

.message-card p {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.86);
}

.message-card-meta {
    margin-top: auto;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
    .community-demo-wrapper,
    .community-loader {
        display: none;
    }

    .community-mobile {
        display: grid;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .community-mobile-viewport {
        position: relative;
        overflow: hidden;
        border-radius: 22px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
        padding: 1rem 0;
    }

    .community-mobile-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        color: var(--text-bright);
        letter-spacing: -0.02em;
    }

    .community-mobile-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        color: rgba(255, 255, 255, 0.7);
    }

    .community-mobile-list {
        display: flex;
        gap: 1rem;
        list-style: none;
        padding: 0 1.25rem;
        margin: 0;
    }

    .community-mobile-card {
        flex: 0 0 clamp(72vw, 80vw, 340px);
        padding: 1.35rem;
        border-radius: 18px;
        background: linear-gradient(140deg, rgba(35, 35, 35, 0.85), rgba(12, 12, 12, 0.7));
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
        display: grid;
        gap: 0.75rem;
        will-change: transform;
    }

    .community-mobile-empty {
        padding: 1.5rem;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.95rem;
        text-align: center;
        flex: 0 0 100%;
    }

    .community-mobile-card .name {
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--text-bright);
    }

    .community-mobile-card .message {
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.45;
    }

    .community-mobile-card .meta {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.6);
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
}

@media (max-width: 600px) {
    .community-loader,
    .community-demo-wrapper {
        padding: clamp(2.5rem, 12vw, 4rem) clamp(1.25rem, 10vw, 2.5rem);
    }

    .community-demo-gallery .wrapper {
        padding-left: 0.5rem;
        gap: 1rem;
    }
}

#community .community-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 6vw, 3.5rem);
    align-items: start;
}

#community .project-card {
    position: relative;
    top: auto;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 1.75rem);
    padding: clamp(2.25rem, 5vw, 3rem);
}

#community .project-info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

#community .project-title {
    font-size: 2.1rem;
    letter-spacing: -0.01em;
}

#community .project-desc {
    color: rgba(255,255,255,0.8);
    max-width: 32rem;
    line-height: 1.6;
}

.community-guestbook-card .project-info {
    gap: 2rem;
}

.community-mobile-stack {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-content: start;
}

.community-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.75rem;
    display: grid;
    gap: 1rem;
    grid-auto-rows: 1fr;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255,255,255,0.05);
}

.community-scroll::-webkit-scrollbar {
    width: 6px;
}

.community-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
}

.community-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 999px;
}

.recent-message-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: linear-gradient(145deg, rgba(22,22,22,0.5), rgba(10,10,10,0.35));
    box-shadow: 0 16px 36px var(--card-shadow);
    backdrop-filter: blur(14px) saturate(1.6);
    transition: transform .3s ease, background .3s ease;
}
.recent-message-card:hover {
    transform: translateY(-3px);
    background: linear-gradient(145deg, rgba(30,30,30,0.55), rgba(12,12,12,0.4));
}
.recent-message-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    overflow: hidden;
    flex: none;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.08);
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}
.recent-message-content {
    display: grid;
    gap: 6px;
    flex: 1;
}
.recent-message-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.recent-message-name {
    color: var(--text-bright);
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 1rem;
}
.recent-message-time {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0.85;
    white-space: nowrap;
}
.recent-message-body {
    color: var(--text);
    line-height: 1.55;
    font-size: 0.95rem;
    opacity: 0.92;
}
.recent-message-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}
.recent-message-meta::before {
    content: '\f3c5';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
}
.recent-messages-cta {
    display: flex;
    justify-content: flex-start;
}
.recent-messages-cta a {
    background: transparent;
    color: var(--text-bright);
    border: 1px solid var(--card-border);
    padding: 10px 18px;
    border-radius: 999px;
    transition: border-color .2s ease, color .2s ease;
    text-decoration: none;
    font-weight: 600;
}
.recent-messages-cta a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.community-form {
    display: grid;
    gap: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(14px) saturate(1.4);
    position: relative;
    overflow: hidden;
}

.community-form input,
.community-form textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    color: var(--text-bright);
    transition: border-color var(--transition-fast), transform 0.2s ease;
}

.community-form button {
    width: 100%;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    border: 1px solid rgba(255,255,255,0.2);
    background: #ffffff;
    color: #0b0f17;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.community-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    background: #f3f4f6;
}

.community-form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    background: #e5e7eb;
}

.guestbook-status {
    font-size: 0.9rem;
    color: var(--text);
}

.guestbook-status.success { color: #10b981; }
.guestbook-status.error { color: #ef4444; }

.community-form input:focus,
.community-form textarea:focus {
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}

.community-form textarea {
    min-height: 100px;
    resize: vertical;
}

.community-empty,
.guestbook-empty {
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px dashed rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.25);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

.community-wall {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.community-wall::before {
    content: "";
    position: absolute;
    inset: -160% -30% auto -30%;
    height: 65%;
    background: radial-gradient(circle at 50% 0%, rgba(0,229,255,0.2), transparent 65%);
    opacity: 0.35;
    pointer-events: none;
}

.community-wall {
    position: relative;
    overflow: hidden;
}

.community-wall-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.community-wall-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-bright);
}

.community-wall-meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guestbook-messages {
    display: grid;
    gap: 1rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255,255,255,0.05);
}

.guestbook-messages::-webkit-scrollbar {
    width: 6px;
}

.guestbook-messages::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
}

.guestbook-messages::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 999px;
}

#community .guestbook-card {
    background: linear-gradient(145deg, rgba(22,22,22,0.6), rgba(8,8,12,0.45));
    border-radius: 16px;
    border-width: 1px;
    padding: 1.25rem 1.35rem;
    display: grid;
    gap: 0.6rem;
}

#community .guestbook-card .name {
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--text-bright);
}

#community .guestbook-card .message {
    color: rgba(255,255,255,0.85);
    line-height: 1.55;
    font-size: 0.95rem;
}

#community .guestbook-card .meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
}

#community .guestbook-card .meta span:last-child {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
    #community .community-grid {
        grid-template-columns: 1fr;
    }

    #community .project-card {
        position: relative;
        top: auto;
    }

    .community-scroll,
    .guestbook-messages {
        max-height: none;
    }
}

@media (max-width: 767px) {
    #community {
        padding: clamp(4rem, 12vw, 6rem) 0;
    }

    .recent-messages-cta {
        justify-content: center;
    }

    .community-form button {
        width: 100%;
        justify-content: center;
    }

    .community-messages-card {
        display: none !important;
    }
    .desktop-only {
        display: none !important;
    }
}

#guestbook-section {
    padding: clamp(4rem, 9vw, 7rem) 0;
}

#guestbook-section .guestbook-wrapper {
    display: flex;
    justify-content: center;
}

#guestbook-section .community-guestbook-card {
    width: min(100%, 62rem);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 3.5rem);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 35%),
                linear-gradient(145deg, rgba(20,20,26,0.78), rgba(6,6,12,0.88));
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

#guestbook-section .project-info {
    display: block;
}

.guestbook-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: stretch;
}

.guestbook-intro {
    display: grid;
    gap: 1.5rem;
}

.guestbook-pill {
    width: fit-content;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.guestbook-heading {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-bright);
}

.guestbook-heading span {
    color: var(--accent);
}

.guestbook-copy {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 32ch;
}

.guestbook-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 200px));
    gap: 1rem;
}

.guestbook-meta-card {
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(150deg, rgba(25,25,30,0.82), rgba(12,12,18,0.82));
    display: grid;
    gap: 0.4rem;
}

.guestbook-meta-card .label {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.guestbook-meta-card strong {
    font-size: 1.1rem;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

.guestbook-meta-card .meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.guestbook-form-shell {
    position: relative;
    padding: clamp(1.4rem, 4vw, 1.8rem);
    border-radius: 24px;
    background: rgba(9, 9, 16, 0.72);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.guestbook-form-glow {
    display: none;
}

.community-form {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: none;
}

.community-form input,
.community-form textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem 0.85rem 2.75rem !important;
    color: var(--text-bright);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    outline: none;
    box-sizing: border-box;
    width: 100%;
}

.community-form textarea {
    padding-bottom: 2rem !important;
    min-height: 90px;
    resize: none;
}

.community-form input::placeholder,
.community-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.community-form input:hover,
.community-form textarea:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

.community-form input:focus,
.community-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.community-form button,
#guestbook-submit {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none !important;
    color: #0b0f17 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.community-form button:hover,
#guestbook-submit:hover {
    transform: translateY(-1px);
    background: #f3f4f6 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

.community-form button:active,
#guestbook-submit:active {
    transform: translateY(0);
    background: #e5e7eb !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.guestbook-status {
    min-height: 1.2rem;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

.guestbook-status:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}

.guestbook-status.success {
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.guestbook-status.success::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 700;
}

.guestbook-status.error {
    color: #ef4444;
}

.guestbook-footnote {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

@media (max-width: 767px) {
    #guestbook-section {
        padding: clamp(3rem, 12vw, 5rem) 0;
    }

    #guestbook-section .community-guestbook-card {
        width: 100%;
        padding: clamp(2rem, 8vw, 2.5rem);
    }

    .guestbook-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .guestbook-meta-grid {
        grid-template-columns: 1fr;
    }

    .community-form {
        padding: clamp(1.2rem, 6vw, 1.6rem);
    }
}

/* Use site colors */
.recent-mobile-section .slider {
    background: rgba(4, 6, 12, 0.85);
    box-shadow: 0 18px 40px -12px rgba(0,0,0,.55);
    height: 170px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    width: 92vw;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    backdrop-filter: blur(14px) saturate(1.6);
}

.recent-mobile-section .slider::before,
.recent-mobile-section .slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}
.recent-mobile-section .slider::before {
    left: 0; top: 0;
    background: linear-gradient(to right, rgba(1,1,3,0.95), rgba(1,1,3,0));
}
.recent-mobile-section .slider::after {
    right: 0; top: 0;
    background: linear-gradient(to left, rgba(1,1,3,0.95), rgba(1,1,3,0));
}

.recent-mobile-section .slide-track {
    display: flex;
    gap: 16px;
    will-change: transform;
}

@keyframes mobile-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.recent-mobile-section .slide {
    height: 170px;
    min-width: 320px;
    display: flex;
    align-items: stretch;
    padding: 18px 12px;
    box-sizing: border-box;
}

.recent-mobile-section .mobile-card {
    background: linear-gradient(145deg, rgba(22,22,30,0.72), rgba(8,12,18,0.6));
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    padding: 14px 16px;
    width: 100%;
    display: grid;
    gap: 10px;
    color: var(--text);
    box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.mobile-card-name {
    color: var(--text-bright);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mobile-card-location {
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mobile-card-location::before {
    content: '\f3c5';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--accent);
}

.mobile-card-message {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
}

.mobile-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}

.mobile-card-meta .time {
    font-variant-numeric: tabular-nums;
}

.section {
    padding: 10vmax 0;
    width: 90%; max-width: 1200px; margin: 0 auto;
    position: relative;
}
.section.section-tagged {
    padding: 0;
}

/* ============================================
   SECTION HEADER & TITLES - PROFESSIONAL
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    position: -webkit-sticky;
    position: sticky;
    top: 10px;
    z-index: 35;
    padding: 0.5rem clamp(0.75rem, 2vw, 1.5rem);
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.section-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92%, 580px);
    height: 100%;
    min-height: 55px;
    background: radial-gradient(ellipse at center, rgba(10, 11, 15, 0.88) 0%, rgba(10, 11, 15, 0.45) 60%, transparent 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    z-index: -1;
    pointer-events: none;
}

.section-title {
    pointer-events: auto;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-bright);
    margin: 0;
    position: relative;
    display: inline-block;
    text-transform: none;
    background: linear-gradient(135deg, 
        var(--text-bright) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        var(--text-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: titleShimmer 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.95));
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent) 50%,
        rgba(25, 230, 140, 1) 100%,
        transparent 100%);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.section-title.anim-item::before {
    width: clamp(100px, 20vw, 200px);
    opacity: 1;
}

.section-title .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, rgb(255, 255, 255) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}


@keyframes highlightPulse {
    0%, 100% { opacity: 0.4; transform: scaleX(1); }
    50% { opacity: 0.8; transform: scaleX(1.05); }
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.section-divider {
    position: relative;
    margin: 4rem auto 0;
    width: 100%;
    max-width: 640px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.section-divider::before {
    content: attr(data-tag);
    position: absolute;
    top: -0.9rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(12, 14, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* --- HERO SECTION --- */
.hero-title {
    font-size: clamp(4rem, 9vw, 8.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--text-bright);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: none;
}

.hero-title .line {
    display: block;
    overflow: visible;
    position: relative;
}

.hero-title .line:first-child {
    margin-bottom: 0.1rem;
}

.hero-title .line:first-child .word {
    font-weight: 600;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: block;
    opacity: 0.9;
}

.hero-title .word {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, 
        var(--text-bright) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        var(--text-bright) 100%);
    -webkit-background-clip: text;
  
    background-clip: text;
    background-size: 200% 100%;
    animation: textShimmer 6s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-title .line:last-child .word:not(.highlight) {
    font-weight: 800;
    font-size: 1em;
}

.hero-title .highlight {
    font-style: normal;
    font-weight: 45;
    background: linear-gradient(135deg, rgb(0 0 0) 0%, rgb(255 255 255) 50%, rgb(0 0 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #00000000;
    /* background-clip: text; */
    /* background-size: 200% 100%; */
    animation: accentShimmer 4s ease-in-out infinite;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
}

@keyframes accentShimmer {
    0%, 100% { 
        background-position: 0% 50%;
        filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
    }
    50% { 
        background-position: 100% 50%;
        filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.5));
    }
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent) 50%,
        rgba(25, 230, 140, 1) 100%,
        transparent 100%);
    border-radius: 2px;
    opacity: 0.6;
    transform: scaleX(0);
    animation: underlineGrow 2s ease-out 1s forwards;
}

@keyframes underlineGrow {
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    max-width: 580px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    margin: 0;
}

/* --- ABOUT ME & TECH STACK --- */
#about-me .content-grid {
    display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: flex-start;
}
#about-me .about-text { font-size: 1.5rem; line-height: 1.8; color: var(--text-bright); max-width: 700px; }

.tech-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem;
    margin-top: 4rem;
}
.tech-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px;
    backdrop-filter: blur(10px); padding: 1.5rem 1rem; text-align: center;
    aspect-ratio: 1/1; will-change: transform;
}
.tech-icon svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 0.75rem; }
.tech-name { font-weight: 500; color: var(--text-bright); }

/* --- FEATURED PROJECTS --- */
#featured-projects { padding-bottom: 10vmax; }



/* ============================================
   CODE SNIPPETS PREVIEW SECTION - ELEGANT REDESIGN
   ============================================ */
.snippets-preview-section {
    padding: clamp(5rem, 10vw, 8rem) 0;
    position: relative;
    width: 100%;
    min-height: 500px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent;
    overflow: visible;
}

.snippets-preview-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    position: relative;
    z-index: 1;
}

.snippets-preview-section .section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    position: relative;
    z-index: 2;
}

.snippets-preview-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
    min-height: 300px;
    visibility: visible !important;
    opacity: 1 !important;
}

.snippet-preview-card {
    background: rgba(18, 18, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    display: flex !important;
    flex-direction: column;
    min-height: 320px;
    visibility: visible !important;
    opacity: 1 !important;
}

.snippet-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.snippet-preview-card:hover::before {
    opacity: 1;
}

.snippet-preview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: rgba(22, 22, 24, 0.8);
}

.snippet-preview-header {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.snippet-preview-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.snippet-preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.snippet-preview-language-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #e0e0e0;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.snippet-preview-card:hover .snippet-preview-language-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.snippet-preview-code-mini {
    background: #000000;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.04);
    max-height: 140px;
    overflow-y: hidden;
    flex: 1;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.snippet-preview-code-mini pre {
    margin: 0;
    padding: 0;
    background: transparent !important;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
}

.snippet-preview-code-mini code {
    color: #a1a1aa;
    background: transparent !important;
}

.snippet-preview-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.snippet-preview-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    color: #71717a;
    font-weight: 400;
    transition: color 0.3s ease;
}

.snippet-preview-card:hover .snippet-preview-tag {
    color: #a1a1aa;
}

.snippet-preview-link-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 0.6rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.snippet-preview-card:hover .snippet-preview-link-mini {
    gap: 0.75rem;
    border-top-color: rgba(255, 255, 255, 0.15);
}

.snippet-preview-link-mini i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.snippet-preview-card:hover .snippet-preview-link-mini i {
    transform: translateX(4px);
    opacity: 1;
}

.snippets-preview-footer {
    text-align: center;
    margin-top: 4rem;
}

.snippets-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2.5rem;
    background: #ffffff;
    color: #000000;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.snippets-view-all-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    background: #f0f0f0;
}

.snippets-view-all-btn .arrow {
    transition: transform 0.3s ease;
}

.snippets-view-all-btn:hover .arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .snippets-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .snippet-preview-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .snippet-preview-title {
        font-size: 1rem;
    }
    
    .snippet-preview-code-mini {
        padding: 1rem;
        max-height: 120px;
    }
    
    .snippet-preview-code-mini pre {
        font-size: 0.7rem;
    }
}

/* ============================================
   FLOATING HEADER - PROFESSIONAL
   ============================================ */
.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.1rem 0;
    background: linear-gradient(180deg, 
        rgba(1, 1, 3, 0.98) 0%,
        rgba(1, 1, 3, 0.96) 50%,
        rgba(1, 1, 3, 0.94) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.6s ease;
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.02),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.floating-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent) 20%,
        rgba(25, 230, 140, 1) 50%,
        var(--accent) 80%,
        transparent 100%);
    opacity: 0.8;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.floating-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.03), transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.floating-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.floating-header:not(.hidden) {
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(0, 229, 255, 0.08),
                0 4px 16px rgba(0, 229, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 6vw, 5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
}

.header-brand {
    flex-shrink: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.header-logo::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(25, 230, 140, 0.1));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-logo:hover::before {
    opacity: 1;
}

.header-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-bright);
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
}

.logo-accent {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), rgba(25, 230, 140, 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
    transition: all 0.3s ease;
}

.header-logo:hover .logo-text {
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

.header-logo:hover .logo-accent {
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.6));
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: space-between;
}

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

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-dropdown-trigger::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(25, 230, 140, 0.1));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.nav-dropdown-trigger i:first-child {
    font-size: 0.8rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    color: var(--accent);
}

.nav-dropdown-trigger .dropdown-arrow {
    font-size: 0.6rem;
    opacity: 0.7;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    margin-left: 0.25rem;
}

.nav-dropdown-trigger:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.1);
}

.nav-dropdown-trigger:hover::before {
    opacity: 1;
}

.nav-dropdown-trigger:hover i:first-child {
    opacity: 1;
    transform: scale(1.1);
}

.nav-dropdown-trigger:hover .dropdown-arrow {
    transform: translateY(3px) rotate(180deg);
    opacity: 1;
}

.nav-dropdown:hover .nav-dropdown-trigger {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.3);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    min-width: 240px;
    background: linear-gradient(180deg, rgba(1, 1, 3, 0.99), rgba(8, 8, 12, 0.99));
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(0, 229, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.pages-dropdown .nav-dropdown-menu {
    left: 0;
}

.sections-dropdown .nav-dropdown-menu {
    left: 0;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 1.75rem;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid rgba(255, 255, 255, 0.12);
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.3));
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 0.15rem 0;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), rgba(25, 230, 140, 1));
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(25, 230, 140, 0.08));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.dropdown-item i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--accent);
    flex-shrink: 0;
}

.dropdown-item span {
    flex: 1;
    transition: transform 0.3s ease;
}

.dropdown-item:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(6px);
    box-shadow: 0 2px 8px rgba(0, 229, 255, 0.15);
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item:hover::after {
    opacity: 1;
}

.dropdown-item:hover i {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
    color: var(--accent);
}

.dropdown-item:hover span {
    transform: translateX(2px);
}

.dropdown-item.active {
    color: var(--accent);
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.15), rgba(25, 230, 140, 0.1));
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.dropdown-item.active::before {
    opacity: 1;
}

.dropdown-item.active::after {
    opacity: 1;
}

.dropdown-item.active i {
    opacity: 1;
    color: var(--accent);
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 0.5rem 0.75rem;
    border-radius: 1px;
}

.nav-link.main-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.7rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 12px;
    text-transform: none;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link.main-link i {
    font-size: 0.8rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    color: var(--accent);
}

.nav-link.main-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(25, 230, 140, 0.1));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.nav-link.main-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(25, 230, 140, 1));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link.main-link:hover {
    color: var(--text-bright);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.15);
}

.nav-link.main-link:hover::before {
    opacity: 1;
}

.nav-link.main-link:hover::after {
    width: 70%;
}

.nav-link.main-link:hover i {
    opacity: 1;
    transform: scale(1.15) rotate(-5deg);
    color: var(--accent);
}

.nav-link.main-link.active {
    color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(25, 230, 140, 0.1));
    border-color: rgba(0, 229, 255, 0.3);
}

.nav-link.main-link.active i {
    opacity: 1;
    color: var(--accent);
}

.nav-link.main-link.active::before {
    opacity: 1;
}

.nav-link.main-link.active::after {
    width: 70%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.header-spotify {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(29, 185, 84, 0.1);
    border: 1px solid rgba(29, 185, 84, 0.2);
    border-radius: 999px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.header-spotify::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.2), rgba(29, 185, 84, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-spotify:hover::before {
    opacity: 1;
}

.header-spotify:hover {
    border-color: rgba(29, 185, 84, 0.4);
    transform: scale(1.05);
}

.spotify-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spotify-dot {
    width: 8px;
    height: 8px;
    background: #1DB954;
    border-radius: 50%;
    animation: spotify-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(29, 185, 84, 0.6);
}

@keyframes spotify-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.spotify-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1DB954;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.spotify-track-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    max-width: 200px;
    overflow: hidden;
}

.spotify-track-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-artist-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-icon-wrapper {
    display: flex;
    align-items: center;
    color: #1DB954;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(29, 185, 84, 0.5));
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 0;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    background: rgba(0, 229, 255, 0.05);
}

.header-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), rgba(25, 230, 140, 1));
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    transform: scale(0.95);
}

.header-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.header-cta i {
    font-size: 0.75rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    color: var(--accent);
    transform: translateX(0) rotate(0deg);
}

.header-cta span {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.header-cta:hover {
    transform: translateY(-4px) scale(1.05);
    color: var(--text-bright);
    border-color: transparent;
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.5),
                0 0 60px rgba(0, 229, 255, 0.3),
                0 0 100px rgba(25, 230, 140, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-cta:hover::before {
    opacity: 1;
    transform: scale(1);
}

.header-cta:hover::after {
    left: 100%;
}

.header-cta:hover i {
    transform: translateX(8px) rotate(-20deg) scale(1.2);
    color: var(--text-bright);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.header-cta:hover span {
    letter-spacing: 0.25em;
    transform: translateX(2px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6),
                 0 0 40px rgba(0, 229, 255, 0.4);
}

.header-cta:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.4),
                0 0 50px rgba(0, 229, 255, 0.2);
}

@media (max-width: 1200px) {
    .spotify-track-info {
        display: none;
    }
    
    .header-spotify {
        padding: 0.5rem 0.75rem;
    }
    
    .header-nav {
        gap: 1rem;
    }
    
    .nav-left {
        gap: 0.5rem;
    }
    
    .nav-link.main-link,
    .nav-dropdown-trigger {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .nav-link.main-link span,
    .nav-dropdown-trigger span {
        display: none;
    }
    
    .nav-link.main-link i,
    .nav-dropdown-trigger i {
        font-size: 0.9rem;
        margin: 0;
    }
    
    .nav-dropdown-menu {
        min-width: 200px;
    }
}

@media (max-width: 968px) {
    .header-spotify {
        display: none;
    }
    
    .header-nav {
        gap: 0.5rem;
    }
    
    .nav-left {
        gap: 0.25rem;
    }
    
    .nav-link.main-link,
    .nav-dropdown-trigger {
        padding: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
        justify-content: center;
    }
    
    .nav-dropdown-menu {
        left: auto;
        right: 0;
        transform: translateY(-10px);
        min-width: 180px;
    }
    
    .nav-dropdown:hover .nav-dropdown-menu {
        transform: translateY(0);
    }
    
    .nav-dropdown-menu::before {
        left: auto;
        right: 1rem;
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .header-cta span {
        display: none;
    }
    
    .header-cta {
        padding: 0.65rem;
        width: 2.5rem;
        height: 2.5rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Hide header completely on mobile */
    .floating-header,
    #main-header {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Remove top padding from main content on mobile */
    #main-content {
        padding-top: 0 !important;
    }
}

@media (max-width: 640px) {
    .header-logo {
        gap: 0.3rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-accent {
        font-size: 1rem;
    }
    
    .header-cta {
        padding: 0.55rem 1.4rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   SITE FOOTER - PROFESSIONAL MINIMAL
   ============================================ */
.site-footer {
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 5rem;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.1em;
    margin: 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.footer-copyright .heart {
    color: #ef4444;
}

.footer-center {
    display: flex;
    gap: 1.5rem;
}

.footer-center a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-center a:hover {
    color: #ffffff;
}

.footer-right {
    display: flex;
    gap: 1.25rem;
}

.footer-right a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-right a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* Mobile-First Positioning */
.zoom-item { width: 80vw; left: 10vw; top: auto; }
.zoom-item:nth-of-type(1) { top: 5%; }
.zoom-item:nth-of-type(2) { top: 15%; }
.zoom-item:nth-of-type(3) { top: 25%; }
.zoom-item:nth-of-type(4) { top: 35%; }
.zoom-item:nth-of-type(5) { top: 45%; }
.zoom-item:nth-of-type(6) { top: 55%; }
.zoom-item:nth-of-type(7) { top: 65%; }
.zoom-item:nth-of-type(8) { top: 75%; }
.zoom-item:nth-of-type(9) { top: 85%; }
.zoom-item:nth-of-type(10) { top: 95%; }
.zoom-item:nth-of-type(11) { top: 105%; }
.zoom-item:nth-of-type(12) { top: 115%; }
.zoom-item:nth-of-type(13) { top: 125%; }
.zoom-item:nth-of-type(14) { top: 135%; }
.zoom-item:nth-of-type(15) { top: 145%; }
.zoom-item:nth-of-type(16) { top: 155%; }
.zoom-item:nth-of-type(17) { top: 165%; }
.zoom-item:nth-of-type(18) { top: 175%; }
.zoom-item:nth-of-type(19) { top: 185%; }
.zoom-item:nth-of-type(20) { top: 195%; }

@media (min-width: 768px) {
  /* Desktop Positioning */
  .zoom-item:nth-of-type(1) { left: 15vw; top: 21%; width: 15vw; }
  .zoom-item:nth-of-type(2) { left: 29%; top: 15%; width: 13vw; }
  .zoom-item:nth-of-type(3) { left: 36%; top: 3%; width: 14vw; }
  .zoom-item:nth-of-type(4) { right: 30%; top: 11%; width: 12vw; left: auto; }
  .zoom-item:nth-of-type(5) { right: 7%; top: 28%; width: 16vw; left: auto; }
  .zoom-item:nth-of-type(6) { bottom: 32%; right: 3.5%; width: 12vw; top: auto; left: auto; }
  .zoom-item:nth-of-type(7) { bottom: 13.5%; left: 16%; width: 14vw; top: auto; }
  .zoom-item:nth-of-type(8) { bottom: 24%; left: 29%; width: 12vw; top: auto; }
  .zoom-item:nth-of-type(9) { bottom: 46%; left: 7.5%; width: 15vw; top: auto; }
  .zoom-item:nth-of-type(10) { bottom: 5.5%; right: 15%; width: 18vw; top: auto; left: auto; }
  .zoom-item:nth-of-type(11) { bottom: 10.5%; right: 38%; width: 14vw; top: auto; left: auto; }
  .zoom-item:nth-of-type(12) { right: 4%; top: 5%; width: 12vw; left: auto; }
  .zoom-item:nth-of-type(13) { top: 60%; left: 10%; width: 13vw; }
  .zoom-item:nth-of-type(14) { top: 75%; left: 25%; width: 15vw; }
  .zoom-item:nth-of-type(15) { top: 55%; right: 12%; width: 14vw; left: auto; }
  .zoom-item:nth-of-type(16) { top: 80%; right: 28%; width: 12vw; left: auto; }
  .zoom-item:nth-of-type(17) { top: 5%; left: 5%; width: 14vw; }
  .zoom-item:nth-of-type(18) { bottom: 5%; left: 45%; width: 16vw; top: auto; }
  .zoom-item:nth-of-type(19) { top: 35%; left: 45%; width: 13vw; }
  .zoom-item:nth-of-type(20) { top: 70%; right: 5%; width: 15vw; left: auto; }
}

.sticky-section { min-height: 100vh; background-color: transparent; display: flex; justify-content: center; align-items: center; color: var(--text-bright); }
.sticky-section__text { font-size: clamp(2rem, 6vw + 1rem, 7rem); text-align: center; width: 80%; will-change: opacity, transform; }
@media (min-width: 768px) { .sticky-section__text { width: 60%; } }

.project-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    position: sticky; top: 15vh; margin-bottom: 15vh;
    background: linear-gradient(145deg, rgba(22, 22, 22, 0.3), rgba(10, 10, 10, 0.3));
    padding: 3rem; border-radius: 20px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px) saturate(1.8);
    box-shadow: 0 20px 50px var(--card-shadow);
}
.project-image { border-radius: 12px; overflow: hidden; height: 400px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-title { font-size: 2.5rem; font-weight: 700; color: var(--text-bright); }
.project-title .highlight { color: var(--accent); }
.project-desc { font-size: 1.1rem; line-height: 1.7; margin: 1.5rem 0; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.project-tag { background: hsla(188, 100%, 50%, 0.1); color: var(--accent); padding: 0.35rem 1rem; border-radius: 20px; font-weight: 500;}

@media (max-width: 767px) {
    #featured-projects {
        padding-bottom: 8rem;
    }

    #featured-projects .section-header {
        margin-bottom: 5rem;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2.25rem 1.75rem;
        top: 12vh;
    }

    .project-card .project-info {
        text-align: left;
    }

    .project-title {
        font-size: clamp(2rem, 7vw, 2.7rem);
    }

    .project-desc {
        font-size: 1rem;
    }

    .project-image {
        height: clamp(220px, 58vw, 320px);
        border-radius: 16px;
    }

    .project-image img {
        height: 100%;
    }

    .project-tags {
        gap: 0.55rem;
    }

    .project-tag {
        padding: 0.38rem 0.95rem;
        font-size: 0.85rem;
    }
}

/* --- GITHUB CONTRIBUTIONS --- */
#github { padding-top: 5vmax; }
#github .gh-card {
    position: relative;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(22, 22, 22, 0.4), rgba(12, 12, 12, 0.4));
    border: 1px solid var(--card-border);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(22px) saturate(1.9);
    padding: clamp(2rem, 3.5vw, 3rem);
    display: grid;
    gap: clamp(1.75rem, 3vw, 2.5rem);
}
.gh-header {
    display: grid;
    gap: 0.5rem;
}
#github .gh-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}
#github .gh-title .highlight { 
    color: #3fb950; 
}
.gh-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    line-height: 1.6;
}
.gh-body {
    display: grid;
    gap: clamp(1.75rem, 3vw, 2.25rem);
}
.gh-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}
.gh-stat {
    padding: 1.25rem 1.15rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    display: grid;
    gap: 0.3rem;
}
.gh-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(63, 185, 80, 0.35);
    background: rgba(255, 255, 255, 0.045);
}
.gh-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}
.gh-stat-value {
    font-size: clamp(1.75rem, 3.5vw, 2.3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.gh-stat-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}
.gh-stat-value.sparkle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.gh-stat-value.sparkle::after {
    content: "✦";
    color: #3fb950;
    font-size: 0.95rem;
    filter: drop-shadow(0 0 6px rgba(63, 185, 80, 0.8));
}

@media (max-width: 640px) {
    #github .gh-card {
        padding: 1.75rem 1.25rem;
        gap: 1.5rem;
    }

    .gh-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .gh-stat {
        padding: 1rem 0.85rem;
        border-radius: 14px;
        gap: 0.25rem;
    }

    .gh-stat-label {
        font-size: 0.72rem;
    }

    .gh-stat-value {
        font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    }

    .gh-stat-meta {
        font-size: 0.75rem;
    }
}

/* GitHub Activity Graph Styles */
.github-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
    background: rgba(10, 11, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.github-x {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    padding-bottom: 6px;
    cursor: default;
}
.github-x::-webkit-scrollbar {
    height: 5px;
}
.github-x::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
.github-x::-webkit-scrollbar-track {
    background: transparent;
}

.github-calendar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: max-content;
    margin: 0 auto;
}

.month-labels {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 11px;
    gap: 3px;
    padding-left: 28px;
    height: 16px;
    width: max-content;
}

.month-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    line-height: 1;
    pointer-events: none;
}

.calendar-body {
    display: flex;
    align-items: start;
    gap: 6px;
    width: max-content;
}

.day-labels {
    display: grid;
    grid-template-rows: repeat(7, 11px);
    gap: 3px;
    width: 22px;
}

.day-label {
    font-size: 9.5px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    line-height: 1;
}

#activity-graph {
    display: grid;
    grid-template-rows: repeat(7, 11px);
    grid-auto-flow: column;
    grid-auto-columns: 11px;
    gap: 3px;
    width: max-content;
}

.day {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: transform 0.12s ease, outline 0.12s ease;
    outline: 1px solid rgba(255, 255, 255, 0.03);
}

.day:hover {
    transform: scale(1.4);
    z-index: 20;
    outline: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 10px rgba(57, 211, 83, 0.8);
}

.level-0 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
.level-1 {
    background-color: #0e4429 !important;
}
.level-2 {
    background-color: #006d32 !important;
}
.level-3 {
    background-color: #26a641 !important;
    box-shadow: 0 0 4px rgba(38, 166, 65, 0.4);
}
.level-4 {
    background-color: #39d353 !important;
    box-shadow: 0 0 8px rgba(57, 211, 83, 0.7);
}

/* Contribution Legend */
.github-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
    padding-right: 4px;
}
.github-legend .legend-cell {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    display: inline-block;
}

/* --- GAMING & PRESENCE --- */
#gaming { padding-top: 5vmax; }
.gaming-presence-card {
    background-color: #09090b;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(200, 140, 90, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(200, 140, 90, 0.08) 0%, transparent 40%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 155, 99, 0.03);
    backdrop-filter: blur(20px) saturate(1.8);
    position: relative;
    overflow: hidden;
}
.text-copper {
    background: linear-gradient(90deg, #F9D49C 0%, #D49B63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gaming-icon-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.gaming-list-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.gaming-list-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}
.title-icon-glow {
    box-shadow: 0 0 24px rgba(212, 155, 99, 0.15);
}
.decorative-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
}
#gaming .gp-card { background: linear-gradient(145deg, rgba(22,22,22,0.3), rgba(10,10,10,0.3)); border: 1px solid var(--card-border); border-radius: 20px; box-shadow: 0 20px 50px var(--card-shadow); backdrop-filter: blur(20px) saturate(1.8); padding: 2rem; }
#gaming .gp-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap: 1.25rem; align-items: start; }
#gaming .gp-title { font-size: 2.5rem; font-weight: 700; color: var(--text-bright); margin-bottom: 1rem; }
#gaming .gp-title .highlight { color: var(--accent); }
#gaming .presence { display:flex; align-items:center; gap:.75rem; }
#gaming .presence .dot { width:10px; height:10px; border-radius:50%; box-shadow: 0 0 10px var(--accent); background: var(--accent); }
#gaming .presence .meta { color: var(--text); }
#gaming .recent { display:grid; gap:.6rem; }
#gaming .game { display:flex; align-items:center; gap:.6rem; border:1px solid var(--card-border); border-radius:12px; padding:.6rem .75rem; background: linear-gradient(145deg, rgba(22,22,22,0.35), rgba(10,10,10,0.3)); }
#gaming .game img { width:40px; height:40px; border-radius:8px; object-fit:cover; }
#gaming .game .meta { display:flex; flex-direction:column; }
#gaming .game .meta .name { color: var(--text-bright); font-weight:700; letter-spacing:-0.01em; }
#gaming .game .meta .time { color: var(--text); opacity:.9; font-size:.9rem; }
#gaming .total { color: var(--text-bright); font-weight:700; }
#gaming .mini-profiles { display:flex; align-items:center; gap:.8rem; }
#gaming .mini { display:flex; align-items:center; gap:.6rem; border:1px solid var(--card-border); background: linear-gradient(145deg, rgba(22,22,22,0.45), rgba(10,10,10,0.35)); padding:.55rem .75rem; border-radius:14px; box-shadow: 0 12px 30px var(--card-shadow); }
#gaming .mini .avatar-wrap { position: relative; width:32px; height:32px; border-radius:10px; overflow:hidden; }
#gaming .mini img { width:100%; height:100%; object-fit:cover; display:block; }
#gaming .mini .status-dot { position:absolute; right:-2px; bottom:-2px; width:12px; height:12px; border-radius:50%; border:2px solid rgba(0,0,0,.6); box-shadow: 0 0 8px rgba(0,0,0,.3); background:#777; }
#gaming .mini .meta { line-height:1.2; }
#gaming .mini .name { color: var(--text-bright); font-weight:700; letter-spacing:-0.01em; }
#gaming .mini .tag { color: var(--text); opacity:.95; font-size:.9rem; }
#gaming .mini .logo { margin-left:.2rem; color: var(--text); opacity:.7; display:grid; place-items:center; }
#gaming .mini .logo svg { width:18px; height:18px; }
@media(max-width: 900px) {
    #gaming .gp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    #gaming .gp-card {
        position: static;
        top: auto;
        padding: clamp(1.5rem, 6vw, 2rem);
        gap: 1.5rem;
    }

    #gaming .gp-title {
        font-size: clamp(1.9rem, 7vw, 2.3rem);
        text-align: center;
    }

    #gaming .gp-grid {
        gap: 1.75rem;
    }

    #gaming .presence {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    #gaming .presence .meta {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    #gaming .recent {
        gap: 0.85rem;
    }

    #gaming .game {
        padding: 0.8rem 0.9rem;
        border-radius: 14px;
    }

    #gaming .game img {
        width: 44px;
        height: 44px;
    }

    #gaming .game .meta .time {
        font-size: 0.82rem;
    }

    #gaming .total {
        text-align: center;
        font-size: 1.05rem;
    }

    #gaming .mini-profiles {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    #gaming .mini {
        width: 100%;
        justify-content: space-between;
    }
}

/* --- TASKS --- */
#tasks .task-card { position: sticky; top: 15vh; background: linear-gradient(145deg, rgba(22,22,22,0.3), rgba(10,10,10,0.3)); border: 1px solid var(--card-border); border-radius: 20px; box-shadow: 0 20px 50px var(--card-shadow); backdrop-filter: blur(20px) saturate(1.8); padding: 2rem; }
#tasks .list { display:grid; gap:.6rem; max-width: 720px; }
#tasks .item { display:flex; align-items:center; gap:.75rem; border:1px solid var(--card-border); border-radius:12px; padding:.65rem .8rem; background: linear-gradient(145deg, rgba(22,22,22,0.35), rgba(10,10,10,0.3)); }
#tasks .pri { width:10px; height:10px; border-radius:50%; box-shadow: 0 0 10px currentColor; }
#tasks .content { color: var(--text-bright); font-weight:600; }
#tasks .due { color: var(--text); opacity:.9; font-size:.9rem; margin-left:auto; }

/* --- WAKATIME CODING ACTIVITY REDESIGN --- */
#wakatime.section {
    width: min(96%, 1560px);
    max-width: 1560px;
    padding: clamp(3rem, 5vw, 5.5rem) 0;
    margin: 0 auto;
}

.waka-card {
    width: 100%;
    background-color: #09090b;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 229, 255, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(25, 230, 140, 0.06) 0%, transparent 40%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 229, 255, 0.03);
    backdrop-filter: blur(20px) saturate(1.8);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.waka-card:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 229, 255, 0.05);
}

.text-waka-gradient {
    background: linear-gradient(90deg, #00e5ff 0%, #19e68c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.waka-icon-box {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.waka-icon-glow {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
}

.waka-pill-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.waka-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.waka-stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
}

.waka-panel {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.waka-row {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.waka-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

/* --- REAL-WORLD FEEDS (PRO Redesign) --- */
.pro-section {
    padding-bottom: 6rem;
    padding-top: 2rem;
}

.pro-dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 380px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: 
        "weather globe visitors"
        "lastvisitors globe story";
    gap: 2rem;
    align-items: start;
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Three.js 3D Earth Globe */
.pro-globe-wrapper {
    grid-area: globe;
    position: relative;
    width: 380px;
    height: 100%;
    min-height: 500px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    justify-self: center;
}

#pro-globe-canvas {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    cursor: grab;
    position: relative;
    z-index: 2;
}
#pro-globe-canvas:active {
    cursor: grabbing;
}

.pro-globe-halo {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at center, rgba(100, 200, 255, 0.1) 0%, rgba(100, 200, 255, 0.03) 40%, transparent 65%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* PRO Cards Base -- BRIGHT & VISIBLE */
.pro-card {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 1.8rem;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: #ffffff;
    /* Safety: never let GSAP permanently hide cards */
    visibility: visible !important;
}

.pro-card:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(100, 200, 255, 0.06);
    z-index: 10;
}

/* Specific Card Positioning */
.pro-weather {
    grid-area: weather;
    justify-self: end;
    max-width: 340px;
}

.pro-visitors {
    grid-area: visitors;
    justify-self: start;
    max-width: 340px;
}

.pro-last-visitors {
    grid-area: lastvisitors;
    justify-self: end;
    max-width: 340px;
}

.pro-story {
    grid-area: story;
    justify-self: start;
    max-width: 340px;
}

/* Visitor Feed List */
.pro-visitor-feed {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.pro-visitor-feed::-webkit-scrollbar { width: 4px; }
.pro-visitor-feed::-webkit-scrollbar-track { background: transparent; }
.pro-visitor-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.pro-feed-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    transition: background 0.2s ease;
}
.pro-feed-item:hover {
    background: rgba(255,255,255,0.08);
}
.pro-feed-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
    flex-shrink: 0;
}
.pro-feed-info {
    flex: 1;
    min-width: 0;
}
.pro-feed-city {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pro-feed-country {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
}
.pro-feed-time {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.pro-feed-empty {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    text-align: center;
    padding: 2rem 0;
}

/* Shared Card Elements */
.pro-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.pro-icon-badge {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.pro-icon-badge svg {
    color: #ffffff;
    opacity: 0.9;
}

.pro-header-text h3 {
    margin: 0; font-size: 1.05rem; font-weight: 700; color: #ffffff; line-height: 1.2; letter-spacing: -0.01em;
}
.pro-header-text p {
    margin: 0.2rem 0 0 0; font-size: 0.8rem; color: rgba(255,255,255,0.55);
}

/* Weather Specifics */
.pro-weather-main {
    margin-bottom: 1.5rem;
}
.pro-weather-temp-row {
    display: flex; align-items: center; gap: 0.8rem;
}
.pro-weather-icon-large {
    font-size: 2.2rem; filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}
.pro-temp-value {
    font-size: 3rem; font-weight: 800; color: #ffffff; letter-spacing: -0.04em;
}
.pro-weather-desc {
    margin-top: 0.4rem; text-transform: capitalize; font-size: 0.95rem; color: rgba(255,255,255,0.7);
}
.pro-weather-metrics {
    display: flex; justify-content: space-between; gap: 0.75rem;
}
.pro-metric {
    display: flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.05); padding: 0.7rem; border-radius: 14px; flex: 1; border: 1px solid rgba(255,255,255,0.08);
}
.pro-metric svg {
    color: rgba(255,255,255,0.5); flex-shrink: 0;
}
.pro-metric-data {
    display: flex; flex-direction: column;
}
.pro-metric-label {
    font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5);
}
.pro-metric-data strong {
    font-size: 0.85rem; color: #ffffff;
}

/* Visitors Specifics */
.pro-live-pulse {
    margin-left: auto; display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; text-transform: uppercase; font-weight: 600; color: #ff3b30; background: rgba(255, 59, 48, 0.12); padding: 0.3rem 0.65rem; border-radius: 99px; border: 1px solid rgba(255, 59, 48, 0.25);
}
.pro-pulse-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: proPulse 2s infinite;
}
@keyframes proPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}
.pro-visitor-stats {
    margin: 1rem 0;
}
.pro-stat-number {
    font-size: 3rem; font-weight: 900; color: #ffffff; display: block; line-height: 1; margin-bottom: 0.4rem; letter-spacing: -0.03em;
}
.pro-stat-label {
    color: rgba(255,255,255,0.6); font-size: 0.85rem;
}
.pro-visitor-divider {
    height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0.15), transparent); margin: 1.2rem 0;
}
.pro-time-box {
    display: flex; justify-content: space-between; align-items: center;
}
.pro-time-label {
    display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.5); font-size: 0.8rem;
}
.pro-time-label svg {
    color: rgba(255,255,255,0.5);
}
.pro-time-box .clock {
    font-variant-numeric: tabular-nums; font-weight: 700; color: #ffffff; font-size: 1.15rem;
}
.pro-visitor-location {
    margin-top: 0.75rem;
}
.pro-location-text {
    color: rgba(255,255,255,0.55) !important; font-size: 0.8rem !important;
}

/* Map Specifics */
.pro-map-container {
    flex: 1; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.35); display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.08); margin-top: 0.5rem; min-height: 160px;
}
/* Scoped Pin Styles */
.pro-map svg.map { width: 100%; height: 100%; }
.pro-map .pin { fill: rgba(100, 200, 255, 0.8); stroke: rgba(255,255,255,0.85); stroke-width: .08px; opacity: .95; cursor: pointer; transition: transform .15s ease; filter: drop-shadow(0 2px 4px rgba(100, 200, 255, 0.3)); }
.pro-map .pin:hover { transform: scale(1.08); }
.pro-map .visitor-pin { fill: #ff3b30; stroke: rgba(255,255,255,0.8); stroke-width: 0.04px; opacity: 0.9; cursor: pointer; transition: transform .2s ease, opacity .2s ease; filter: drop-shadow(0 2px 4px rgba(255, 59, 48, 0.6)); }
.pro-map .visitor-pin:hover { transform: scale(1.3); opacity: 1; }
.pro-map .visitor-glow { fill: #ff3b30; opacity: 0.3; pointer-events: none; }
.pro-map .pin-label { font-size: .6px; fill: #ffffff; stroke: rgba(0,0,0,0.55); stroke-width: .2px; dominant-baseline: hanging; }

/* Story/Stats Specifics */
.pro-story-text {
    font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem;
}
.pro-story-text strong {
    color: #ffffff;
}
.pro-story-footer {
    display: flex; justify-content: space-between; align-items: center; margin-top: auto; flex-wrap: wrap; gap: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.2rem;
}
.pro-meta {
    font-size: 0.72rem; color: rgba(255,255,255,0.45); line-height: 1.4; flex: 1;
}
.pro-btn-refresh {
    border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); padding: 0.45rem 0.9rem; border-radius: 99px; color: #ffffff; font-weight: 500; font-size: 0.78rem; cursor: pointer; transition: all 0.3s ease; flex-shrink: 0;
}
.pro-btn-refresh:hover {
    border-color: rgba(100, 200, 255, 1); color: rgba(100, 200, 255, 1); background: rgba(100, 200, 255, 0.1);
}

/* Responsive Fallback */
@media(max-width: 1200px) {
    .pro-dashboard-layout {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "globe"
            "weather"
            "visitors"
            "lastvisitors"
            "story";
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .pro-globe-wrapper {
        width: 300px;
        min-height: 320px;
        margin: 0 auto;
    }
    #pro-globe-canvas {
        width: 300px;
        height: 300px;
    }
    .pro-globe-halo {
        width: 340px;
        height: 340px;
    }
    .pro-card {
        max-width: 500px !important;
        justify-self: center !important;
    }
}

/* --- SPOTIFY SECTION --- */
#spotify {
    position: relative;
}

#spotify .section-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 10px !important;
    z-index: 30 !important;
    margin-bottom: clamp(1rem, 2.5vw, 2rem) !important;
    pointer-events: none;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#spotify .section-title {
    font-size: clamp(2.2rem, 5vw, 4rem) !important;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.9));
}

#spotify .spotify-grid {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 35vh;
}

/* --- SPOTIFY MODERN & ABSTRACT PLAYER --- */
.glass-canvas,
#spotify .spotify-now-playing {
    display: flex !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: clamp(82px, 12vh, 100px) !important;
    z-index: 10 !important;
    margin-bottom: 32vh !important;
    width: 100% !important;
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 21 / 9;
    background-color: #e5e9f0 !important; /* Light gray-blue base */
    border-radius: 32px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.5) !important;
    border: none !important;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), opacity 0.3s ease, filter 0.3s ease;
    will-change: transform, opacity;
}

@media (max-width: 1024px) {
    .glass-canvas,
    #spotify .spotify-now-playing {
        aspect-ratio: auto !important;
        min-height: 700px !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .glass-canvas,
    #spotify .spotify-now-playing {
        min-height: 900px !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 24px !important;
    }
}

#spotify .spotify-recent {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: clamp(98px, 15vh, 120px) !important;
    z-index: 20 !important;
    margin-bottom: 12vh !important;
    width: 100% !important;
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(14, 15, 18, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(30px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.8) !important;
    box-shadow: 0 -35px 80px rgba(0, 0, 0, 0.96), 0 30px 90px rgba(0, 0, 0, 0.98) !important;
    border-radius: 28px !important;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Ambient Blurs */
.ambient-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.blur-orange {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #ff7b00, #ff4800);
    bottom: -50px;
    left: 20%;
}

.blur-blue {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    bottom: -100px;
    right: 25%;
    filter: blur(100px);
}

.blur-pink {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ff0844, #ffb199);
    top: 50px;
    left: 55%;
    opacity: 0.4;
    filter: blur(70px);
}

.blur-dark {
    width: 300px;
    height: 300px;
    background: #111827;
    bottom: 0;
    right: 30%;
    opacity: 0.7;
    filter: blur(90px);
}

/* Active Lyric with Glassmorphism Pill (Overlapping Album Art with Top Z-Index) */
.active-lyric-pill {
    position: relative;
    display: inline-block;
    z-index: 35;
    max-width: 100%;
    padding: 0.65rem 2.2rem !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.38), 
                inset 0 0 12px rgba(255, 255, 255, 0.55) !important;
    margin-left: -1.25rem;
    box-sizing: border-box !important;
    word-break: break-word;
    line-height: 1.45;
    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.active-lyric-pill::before {
    display: none !important;
}

/* Divider line for developer tab */
.vertical-divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(156, 163, 175, 0.3), transparent);
}

/* Column 1 Modern Typography & Brand Polish */
.spotify-track-title {
    font-family: 'Plus Jakarta Sans', 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: -0.04em !important;
    font-weight: 800 !important;
    color: #0b0f19 !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    word-break: break-word;
}

.spotify-artist-title {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    letter-spacing: 0.18em !important;
    font-weight: 700 !important;
    color: #475569 !important;
}

.spotify-album-title {
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 0.12em !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

.spotify-brand-logo {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.spotify-brand-logo:hover {
    transform: scale(1.08);
}

/* Deconstructed 2x2 Art Panels */
.art-panel {
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s ease;
}

/* Simulating the imagery with gradients so no external images are needed */
.art-panel-1 {
    background: linear-gradient(145deg, #4b5e53, #2d3b32); /* Trees/Sky */
    transform: translateY(-8px) translateX(-8px);
}
.art-panel-2 {
    background: linear-gradient(145deg, #8ba3b8, #b8c4d1); /* Sky/Figure */
    transform: translateY(-4px) translateX(4px);
}
.art-panel-2::after {
    content: '';
    position: absolute;
    bottom: 0; right: 20%;
    width: 40%; height: 60%;
    background: #2a2a2a;
    border-radius: 50% 50% 0 0;
    filter: blur(2px);
}
.art-panel-3 {
    background: linear-gradient(145deg, #3a3229, #1c1815); /* Ground/Animals */
    transform: translateY(8px) translateX(-4px);
}
.art-panel-4 {
    background: linear-gradient(145deg, #1f2f40, #0a111a); /* Water/Rocks */
    transform: translateY(4px) translateX(8px);
}

/* Mosaic slicing when real album art is present */
.has-album-art .art-panel-1 {
    background-size: 200% 200% !important;
    background-position: 0% 0% !important;
}
.has-album-art .art-panel-2 {
    background-size: 200% 200% !important;
    background-position: 100% 0% !important;
}
.has-album-art .art-panel-2::after {
    display: none !important;
}
.has-album-art .art-panel-3 {
    background-size: 200% 200% !important;
    background-position: 0% 100% !important;
}
.has-album-art .art-panel-4 {
    background-size: 200% 200% !important;
    background-position: 100% 100% !important;
}

/* Interactive subtle lift on hover */
#spotify-art-grid:hover .art-panel-1 {
    transform: translateY(-12px) translateX(-12px);
}
#spotify-art-grid:hover .art-panel-2 {
    transform: translateY(-6px) translateX(6px);
}
#spotify-art-grid:hover .art-panel-3 {
    transform: translateY(12px) translateX(-6px);
}
#spotify-art-grid:hover .art-panel-4 {
    transform: translateY(6px) translateX(12px);
}

/* Waveform Visualizer Animations */
@keyframes waveform-bounce {
    0% { transform: scaleY(0.25); }
    100% { transform: scaleY(1.0); }
}

.waveform-playing .waveform-bar {
    animation: waveform-bounce 0.8s ease-in-out infinite alternate;
    transform-origin: bottom center;
}
.waveform-playing .waveform-bar:nth-child(1) { animation-delay: 0.05s; animation-duration: 0.65s; }
.waveform-playing .waveform-bar:nth-child(2) { animation-delay: 0.25s; animation-duration: 0.85s; }
.waveform-playing .waveform-bar:nth-child(3) { animation-delay: 0.1s; animation-duration: 0.7s; }
.waveform-playing .waveform-bar:nth-child(4) { animation-delay: 0.4s; animation-duration: 0.9s; }
.waveform-playing .waveform-bar:nth-child(5) { animation-delay: 0.15s; animation-duration: 0.75s; }
.waveform-playing .waveform-bar:nth-child(6) { animation-delay: 0.3s; animation-duration: 0.8s; }
.waveform-playing .waveform-bar:nth-child(7) { animation-delay: 0.08s; animation-duration: 0.68s; }
.waveform-playing .waveform-bar:nth-child(8) { animation-delay: 0.35s; animation-duration: 0.92s; }
.waveform-playing .waveform-bar:nth-child(9) { animation-delay: 0.18s; animation-duration: 0.78s; }
.waveform-playing .waveform-bar:nth-child(10) { animation-delay: 0.42s; animation-duration: 0.88s; }
.waveform-playing .waveform-bar:nth-child(11) { animation-delay: 0.12s; animation-duration: 0.72s; }
.waveform-playing .waveform-bar:nth-child(12) { animation-delay: 0.28s; animation-duration: 0.82s; }
.waveform-playing .waveform-bar:nth-child(13) { animation-delay: 0.06s; animation-duration: 0.66s; }
.waveform-playing .waveform-bar:nth-child(14) { animation-delay: 0.22s; animation-duration: 0.76s; }

/* Lyrics scroll area */
.lyrics-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}
.lyrics-scroll-container::-webkit-scrollbar {
    width: 4px;
}
.lyrics-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}
.lyrics-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}
.lyrics-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Track Typography matching Image 2 */
.spotify-artist-label {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 600;
    margin-bottom: 4px;
}

.spotify-track-headline {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 2px 0 4px 0;
    line-height: 1.25;
}

.spotify-album-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    margin-bottom: 12px;
}

/* Scrubber Bar with Time */
.spotify-scrubber-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0.8rem 0;
}

.spotify-scrubber-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.spotify-scrubber-fill {
    height: 100%;
    background: var(--accent, #1db954);
    border-radius: 4px;
    width: 0%;
    box-shadow: 0 0 10px var(--accent, rgba(29, 185, 84, 0.5));
    transition: width 0.1s linear;
}

.spotify-scrubber-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

/* Status Badges */
.spotify-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0.6rem 0;
}

.spotify-device-tag, .spotify-context-tag, .spotify-quality-tag {
    font-size: 0.78rem !important;
    padding: 4px 10px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-bright) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.spotify-context-tag {
    color: var(--accent, #1db954) !important;
    border-color: rgba(29, 185, 84, 0.35) !important;
    background: rgba(29, 185, 84, 0.12) !important;
    font-weight: 600;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-quality-tag {
    color: #00b4d8 !important;
    border-color: rgba(0, 180, 216, 0.35) !important;
    background: rgba(0, 180, 216, 0.12) !important;
    font-weight: 700;
}

/* Image 2 Quote Row */
.spotify-quote-row {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spotify-quote-text {
    font-style: italic;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    line-height: 1.45;
    display: block;
    word-break: break-word;
}

/* Up Next / Queue Strip */
.spotify-upnext-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin-top: 12px;
}

.spotify-upnext-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text);
    opacity: 0.7;
    flex-shrink: 0;
}

.spotify-upnext-art {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.spotify-upnext-info {
    flex: 1;
    min-width: 0;
}

.spotify-upnext-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-upnext-artist {
    font-size: 0.75rem;
    color: var(--text);
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right Column: Dedicated Lyrics Card matching Image 2 */
.spotify-lyrics-card {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(20, 20, 24, 0.7), rgba(10, 10, 12, 0.55));
    backdrop-filter: blur(24px) saturate(1.6);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 460px;
}

/* Ambient Album Art Background with Right-Side Gradient Fade Mask */
.lyrics-card-art-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 30%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 30%, black 100%);
    opacity: 0.32;
    transition: opacity 0.5s ease;
}

.lyrics-card-art-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    filter: blur(2px) contrast(1.15);
    display: block;
}

.lyrics-card-content {
    position: relative;
    z-index: 2;
    padding: 2.2rem 2.6rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lyrics-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.lyrics-title-tag {
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.lyrics-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.lyrics-badge.badge-synced {
    background: rgba(29, 185, 84, 0.16);
    color: #1db954;
    border: 1px solid rgba(29, 185, 84, 0.35);
}

.lyrics-badge.badge-plain {
    background: rgba(0, 168, 255, 0.16);
    color: #00b4d8;
    border: 1px solid rgba(0, 168, 255, 0.35);
}

.lyrics-badge.badge-empty {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    opacity: 0.6;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lyrics-scroll-container {
    flex: 1;
    max-height: 380px;
    overflow-y: auto;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
    scrollbar-width: none;
}

.lyrics-scroll-container::-webkit-scrollbar {
    display: none;
}

.lyrics-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.lyric-line {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.55;
    transition: color 0.3s ease, font-size 0.3s ease, transform 0.3s ease;
    cursor: default;
    user-select: none;
}

.lyric-line.active {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
    transform: scale(1.02);
    transform-origin: left center;
    opacity: 1;
}

.plain-lyrics-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
    text-align: left;
}

.plain-lyric-line {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.lyric-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
    color: var(--text);
    opacity: 0.7;
    text-align: center;
    gap: 8px;
    padding: 16px;
}

.sound-wave-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 30px;
    margin-bottom: 6px;
}

.sound-wave-icon .wave-bar {
    width: 4px;
    height: 10px;
    background: var(--accent, #1db954);
    border-radius: 3px;
    animation: soundWave 1.2s ease-in-out infinite alternate;
}

.sound-wave-icon .wave-bar:nth-child(1) { animation-delay: 0.1s; }
.sound-wave-icon .wave-bar:nth-child(2) { animation-delay: 0.3s; }
.sound-wave-icon .wave-bar:nth-child(3) { animation-delay: 0.5s; height: 24px; }
.sound-wave-icon .wave-bar:nth-child(4) { animation-delay: 0.2s; }
.sound-wave-icon .wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes soundWave {
    0% { height: 6px; opacity: 0.35; }
    100% { height: 26px; opacity: 1; }
}

.lyric-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
}

.lyric-empty-subtitle {
    font-size: 0.85rem;
    color: var(--accent, #1db954);
    font-weight: 600;
}

@media (max-width: 960px) {
    #spotify-player-card {
        display: block;
    }
    #spotify .album-art {
        width: 220px;
        height: 220px;
        margin: 0 auto 1.2rem;
    }
    #spotify .vinyl-disc {
        width: 200px;
        height: 200px;
    }
    .spotify-lyrics-card {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .section-header,
    #spotify .section-header {
        position: relative !important;
        top: auto !important;
        margin-bottom: 2rem !important;
    }
    #spotify .spotify-now-playing {
        position: relative !important;
        top: auto !important;
        margin-bottom: 2.5rem !important;
    }
    #spotify .spotify-recent {
        position: relative !important;
        top: auto !important;
        margin-bottom: 2.5rem !important;
    }
    #spotify .spotify-grid {
        padding-bottom: 4rem;
    }
}

/* Card stack style for Recently Played (matches site's glass look) */
#spotify .recent-list { max-width: 600px; margin: 1rem auto 0; display: grid; gap: 12px; }
#spotify .recent-card { position: relative; display:flex; align-items:center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 20px; border:1px solid var(--card-border); background: linear-gradient(145deg, rgba(22,22,22,0.5), rgba(10,10,10,0.35)); box-shadow: 0 12px 30px var(--card-shadow); backdrop-filter: blur(16px) saturate(1.6); transition: transform .3s ease, background .3s ease; }
#spotify .recent-card:hover { transform: translateY(-2px); background: linear-gradient(145deg, rgba(30,30,30,0.55), rgba(12,12,12,0.4)); }
#spotify .recent-left { display:flex; align-items:center; gap: 12px; }
#spotify .recent-img { width:54px; height:54px; border-radius:12px; overflow:hidden; flex: none; }
#spotify .recent-img img { width:100%; height:100%; object-fit:cover; }
#spotify .recent-meta h4 { margin:0; color: var(--text-bright); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
#spotify .recent-meta .artist { display:block; margin-top:2px; color: var(--text); font-size: .9rem; opacity:.9; }
#spotify .recent-date { color: var(--accent); font-weight: 600; font-size: .85rem; opacity:.9; white-space: nowrap; }
#spotify .recent-right { display: flex; align-items: center; gap: 10px; flex: none; }
#spotify .recent-context-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 2px 8px; margin-top: 5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#spotify .recent-link { color: rgba(255, 255, 255, 0.4); font-size: 1.1rem; transition: color 0.2s ease, transform 0.2s ease; display: inline-flex; align-items: center; justify-content: center; }
#spotify .recent-link:hover { color: #1ed760; transform: scale(1.15); }
#spotify .recent-art-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); font-size: 1.2rem; }
#spotify .paused-tag { background: rgba(255, 170, 0, 0.15) !important; border-color: rgba(255, 170, 0, 0.4) !important; color: #ffb834 !important; }
#spotify .live-tag { background: rgba(29, 185, 84, 0.15) !important; border-color: rgba(29, 185, 84, 0.4) !important; color: #1ed760 !important; }
#spotify .last-played-tag { background: rgba(255, 255, 255, 0.08) !important; border-color: rgba(255, 255, 255, 0.2) !important; color: var(--text) !important; }
#spotify .show-all { margin-top: 14px; display:flex; justify-content:center; }
#spotify .show-all button { background: transparent; color: var(--text-bright); border:1px solid var(--card-border); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: 0.88rem; font-weight: 500; transition: all .2s ease; }
#spotify .show-all button:hover { border-color: var(--accent); color: var(--accent); background: rgba(255, 255, 255, 0.04); }

@media (max-width: 767px) {
    #spotify .album-art {
        height: 260px;
    }
    #spotify .vinyl-disc {
        width: 240px;
        height: 240px;
        top: 10px;
        right: -15px;
    }
    #spotify-player-card.playing .vinyl-disc {
        right: -30px;
    }
    .spotify-main-title {
        font-size: 1.5rem;
    }
}

/* Recommendation button styling */
.recommend-button {
    background: linear-gradient(135deg, var(--accent), #ff6b6b) !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
    border-radius: 15px !important;
    margin-left: 8px;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}
.recommend-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.4);
    background: linear-gradient(135deg, #00f0ff, #ff7b7b) !important;
}
.recommend-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 15px rgba(0, 229, 255, 0.3);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: linear-gradient(145deg, rgba(22,22,22,0.95), rgba(10,10,10,0.9));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-header h3 {
    margin: 0;
    color: var(--text-bright);
    font-size: 1.5rem;
}
.modal-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-bright);
}
.modal-desc {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.input-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tab-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.input-section {
    display: none;
    margin-bottom: 1.5rem;
}
.input-section.active {
    display: block;
}
.input-section label {
    display: block;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.input-section input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-bright);
    font-size: 1rem;
    transition: all 0.2s ease;
}
.input-section input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}
.input-section small {
    display: block;
    color: var(--text);
    margin-top: 0.5rem;
    opacity: 0.8;
}
.track-preview {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.track-info strong {
    display: block;
    color: var(--text-bright);
    margin-bottom: 0.25rem;
}
.track-info span {
    color: var(--text);
    opacity: 0.9;
}
.modal-actions {
    text-align: center;
}
.submit-btn {
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.status-message {
    color: var(--text);
    font-size: 0.9rem;
    min-height: 1.2rem;
}
.status-message.success {
    color: #4ade80;
}
.status-message.error {
    color: #f87171;
}
/* Center the Recently Played card content */
#spotify .spotify-recent.project-card { grid-template-columns: 1fr; }
#spotify .spotify-recent .project-info { margin: 0 auto; max-width: 680px; width: 100%; }
#spotify .hidden { display: none; }

/* --- HORIZONTAL JOURNEY SECTION --- */
#horizontal-journey { 
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: none;
}

#horizontal-journey.loaded {
    display: block;
}

.horizontal-container { 
    display: flex; 
    width: 400%; 
    height: 100%;
    align-items: center; 
}

.journey-card { 
    width: 25%; 
    padding: 0 5rem; 
    flex-shrink: 0; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.journey-swiper {
    display: none;
    visibility: hidden;
}

.journey-card .step { 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--accent); 
    margin-bottom: 1rem; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
}

.journey-card h3 { 
    font-size: clamp(2rem, 4vw, 3.5rem); 
    color: var(--text-bright); 
    line-height: 1.2; 
    margin-bottom: 1.5rem; 
}

.journey-card p { 
    font-size: 1.1rem; 
    line-height: 1.7; 
    max-width: 55ch;
    color: var(--text);
}

.journey-visual { 
    width: 100%; 
    aspect-ratio: 16/9; 
    background-size: cover; 
    background-position: center; 
    border-radius: 12px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); 
}

@media (max-width: 767px) {
    #horizontal-journey {
        height: auto;
        padding: 6rem 0 4rem;
    }

    .horizontal-container {
        display: none;
    }

    .journey-swiper,
    .journey-swiper.is-active {
        display: block;
        visibility: visible;
        width: 90%;
        max-width: 420px;
        margin: 0 auto;
        padding-bottom: 3rem;
    }

    .journey-swiper .swiper-wrapper,
    .journey-swiper.is-active .swiper-wrapper {
        padding-bottom: 3.5rem;
    }

    .journey-swiper .swiper-slide,
    .journey-swiper.is-active .swiper-slide {
        position: relative;
        width: 100%;
        aspect-ratio: 3 / 4;
        border-radius: 22px;
        background-size: cover;
        background-position: center;
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        isolation: isolate;
    }

    .journey-swiper .slide-info,
    .journey-swiper.is-active .slide-info {
        width: 100%;
        padding: 1.75rem 1.5rem;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 65%);
        backdrop-filter: blur(6px);
        color: var(--text-bright);
        display: grid;
        gap: 0.5rem;
    }

    .journey-swiper .slide-info span,
    .journey-swiper.is-active .slide-info span {
        display: block;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.65);
    }

    .journey-swiper .slide-info .slide-title,
    .journey-swiper.is-active .slide-info .slide-title {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text-bright);
        text-transform: none;
        letter-spacing: -0.01em;
    }

    .journey-swiper .slide-info .slide-desc,
    .journey-swiper.is-active .slide-info .slide-desc {
        font-size: 0.95rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.82);
        text-transform: none;
        letter-spacing: normal;
    }

    .journey-swiper .slide-info .slide-tags,
    .journey-swiper.is-active .slide-info .slide-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .journey-swiper .slide-info .slide-tag,
    .journey-swiper.is-active .slide-info .slide-tag {
        display: inline-flex;
        align-items: center;
        padding: 0.35rem 0.65rem;
        border-radius: 999px;
        font-size: 0.7rem;
        font-weight: 600;
        background: rgba(0, 229, 255, 0.18);
        color: var(--accent);
    }

    #journey-swiper .swiper-pagination {
        bottom: 0;
    }

    #journey-swiper .swiper-pagination-bullet {
        background: rgba(255, 255, 255, 0.35);
        opacity: 1;
        width: 8px;
        height: 8px;
        transition: all 0.3s ease;
        border-radius: 6px;
    }

    #journey-swiper .swiper-pagination-bullet-active {
        background: var(--accent);
        width: 24px;
    }
}

/* --- DEVELOPMENT JOURNEY (TIMELINE) --- */
#journey { padding: 15vmax 0; }
.timeline-container { position: relative; }
.timeline-path {
    position: absolute; top: 0; left: 1rem; height: 100%; width: 2px;
    z-index: -1;
}
.timeline-path path {
    stroke: rgba(255,255,255,0.1);
    stroke-width: 2;
}
#timeline-path-progress {
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 1; stroke-dashoffset: 1;
}
.timeline-item {
    position: relative; padding-left: 4rem; margin-bottom: 8rem;
}
.timeline-year { font-size: 3rem; font-weight: 800; color: var(--accent); }
.timeline-title { font-size: 1.5rem; font-weight: 600; color: var(--text-bright); margin: 0.5rem 0;}
.timeline-desc { max-width: 500px; }
.zoom-item:nth-child(6) { bottom: auto; right: 7%; top: 28%; width: 16vw; }
.zoom-item:nth-child(7) { bottom: 32%; right: 3.5%; width: 12vw; }
.zoom-item:nth-child(8) { bottom: 13.5%; left: 16%; width: 14vw; }
.zoom-item:nth-child(9) { bottom: 24%; left: 29%; width: 12vw; }
.zoom-item:nth-child(10) { bottom: 46%; left: 7.5%; top: auto; width: 15vw; }
.zoom-item:nth-child(11) { bottom: 5.5%; right: 15%; width: 18vw; }
.zoom-item:nth-child(12) { bottom: 10.5%; left: auto; right: 38%; width: 14vw; }
.zoom-item:nth-child(13) { right: 4%; top: 5%; width: 12vw; }
.zoom-item:nth-child(14) { top: 60%; left: 10%; width: 13vw; }
.zoom-item:nth-child(15) { top: 75%; left: 25%; width: 15vw; }
.zoom-item:nth-child(16) { top: 55%; right: 12%; width: 14vw; }
.zoom-item:nth-child(17) { top: 80%; right: 28%; width: 12vw; }
.zoom-item:nth-child(18) { top: 5%; left: 5%; width: 14vw; }
.zoom-item:nth-child(19) { bottom: 5%; left: 45%; width: 16vw; }
.zoom-item:nth-child(20) { top: 35%; left: 45%; width: 13vw; }
.zoom-item:nth-child(21) { top: 70%; right: 5%; width: 15vw; }

.section-stick {
    min-height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.opacity-reveal {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-align: center;
    width: 60%;
    color: #fff;
    line-height: 1.3;
    font-weight: 400;
}

/* --- GUESTBOOK SECTION --- */
#guestbook-section {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.guestbook-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    font-style: italic;
}

.guestbook-status {
    font-size: 0.85rem;
    transition: color 0.3s ease;
}
.guestbook-status.success { color: #19e68c; }
.guestbook-status.error { color: #ff5d5d; }

/* Custom Scrollbar for guestbook messages if not handled by inline styles */
.guestbook-messages-list::-webkit-scrollbar {
    width: 4px;
}
.guestbook-messages-list::-webkit-scrollbar-track {
    background: transparent;
}
.guestbook-messages-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.guestbook-messages-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- CONTACT SECTION --- */
#contact { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 80vh; }
.contact-title { font-size: clamp(3rem, 10vw, 8rem); font-weight: 700; line-height: 1.1; color: var(--text-bright);}
.contact-link {
    font-size: clamp(1.5rem, 4vw, 3rem); color: var(--accent);
    text-decoration: none; margin-top: 3rem; font-weight: 500;
}

/* Responsive */
@media(max-width: 800px) {
    #about-me .content-grid { grid-template-columns: 1fr; }
    .project-card { grid-template-columns: 1fr; }
    .project-card .project-image { order: -1; } /* Image on top on mobile */
    
    /* MOBILE OPTIMIZATION FOR MESSAGE BUBBLES */
    .zoom-item {
        padding: 1.2rem 1.5rem;
        min-width: 35vw;
        max-width: 45vw;
    }
    
    .message-content h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .message-content p {
        font-size: 0.9rem;
        line-height: 1.35;
    }
    
    /* REPOSITIONING FOR MOBILE - Better spacing and visibility */
    .zoom-item:nth-child(2) { left: 5%; top: 8%; width: 40vw; }
    .zoom-item:nth-child(3) { right: 5%; top: 5%; width: 38vw; }
    .zoom-item:nth-child(4) { left: 50%; top: 15%; width: 42vw; transform: translateX(-50%); }
    .zoom-item:nth-child(5) { left: 8%; top: 25%; width: 36vw; }
    .zoom-item:nth-child(6) { right: 8%; top: 22%; width: 40vw; }
    .zoom-item:nth-child(7) { left: 5%; top: 38%; width: 38vw; }
    .zoom-item:nth-child(8) { right: 5%; top: 35%; width: 42vw; }
    .zoom-item:nth-child(9) { left: 50%; top: 48%; width: 40vw; transform: translateX(-50%); }
    .zoom-item:nth-child(10) { left: 8%; top: 58%; width: 38vw; }
    .zoom-item:nth-child(11) { right: 8%; top: 55%; width: 40vw; }
    .zoom-item:nth-child(12) { left: 5%; top: 68%; width: 42vw; }
    .zoom-item:nth-child(13) { right: 5%; top: 65%; width: 38vw; }
    .zoom-item:nth-child(14) { left: 50%; top: 78%; width: 40vw; transform: translateX(-50%); }
    .zoom-item:nth-child(15) { left: 8%; top: 88%; width: 38vw; }
    .zoom-item:nth-child(16) { right: 8%; top: 85%; width: 42vw; }
    .zoom-item:nth-child(17) { left: 5%; bottom: 8%; width: 40vw; }
    .zoom-item:nth-child(18) { right: 5%; bottom: 12%; width: 38vw; }
    .zoom-item:nth-child(19) { left: 50%; bottom: 18%; width: 40vw; transform: translateX(-50%); }
    .zoom-item:nth-child(20) { left: 8%; bottom: 25%; width: 42vw; }
    .zoom-item:nth-child(21) { right: 8%; bottom: 28%; width: 38vw; }
}
.footer {
    background: #000;
    padding: 2rem 0;
    text-align: center;
}

.footer-socials {
    margin: 1rem 0;
}

/* --- Redesigned Hero Section --- */
.hero-redesigned {
    position: relative;
    padding: 6rem 0 2rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 50%, rgba(25, 25, 30, 0.4) 0%, transparent 60%);
    overflow: hidden;
}

.hero-content-new {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .hero-content-new {
        grid-template-columns: 1fr;
        padding: 0 2rem;
        gap: 6rem;
    }
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title-new {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

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

.hero-role-new {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.hero-description-new {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary-new {
    background: linear-gradient(135deg, #f0e6d2 0%, #d4b886 100%);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 184, 134, 0.3);
}

.btn-secondary-new {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary-new:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-social-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.hero-social-links a:hover {
    color: #fff;
}

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watermark-developer {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: 10px;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 992px) {
    .watermark-developer {
        display: none;
    }
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
    width: 320px;
    height: 420px;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.handwritten-note {
    position: absolute;
    top: -40px;
    left: -80px;
    width: 150px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 1.3rem;
    transform: rotate(-10deg);
}

.hand-arrow {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 30px;
    left: 40px;
    transform: rotate(30deg);
}

.floating-metrics-group {
    position: absolute;
    right: -60px;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 500px) {
    .floating-metrics-group {
        right: -20px;
        transform: scale(0.8);
    }
}

.metric-glass-card {
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.metric-glass-card:hover {
    transform: translateX(-10px);
}

.metric-glass-card .icon {
    font-size: 1.5rem;
}

.metric-glass-card .text {
    display: flex;
    flex-direction: column;
}

.metric-glass-card .text strong {
    color: #fff;
    font-size: 1.1rem;
}

.metric-glass-card .text span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.happy-clients-card {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    width: 250px;
}

.happy-clients-card .avatars {
    display: flex;
}

.happy-clients-card .avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #202025;
    background: #333;
    overflow: hidden;
    margin-left: -10px;
}

.happy-clients-card .avatar-circle:first-child {
    margin-left: 0;
}

.happy-clients-card .avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.happy-clients-card .hc-text {
    display: flex;
    flex-direction: column;
}

.happy-clients-card .hc-text strong {
    color: #fff;
    font-size: 0.95rem;
}

.happy-clients-card .hc-text span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* --- GAMING & PRESENCE SECTION WIDE LAYOUT --- */
#gaming.section {
    width: min(96%, 1560px);
    max-width: 1560px;
    padding: clamp(3rem, 5vw, 5.5rem) 0;
    margin: 0 auto;
}

.gaming-presence-card {
    width: 100%;
    background-color: #09090b;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(200, 140, 90, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(200, 140, 90, 0.08) 0%, transparent 40%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 155, 99, 0.03);
    backdrop-filter: blur(20px) saturate(1.8);
    position: relative;
    overflow: hidden;
}

.text-copper {
    background: linear-gradient(90deg, #F9D49C 0%, #D49B63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gaming-icon-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gaming-list-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gaming-list-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}

.title-icon-glow {
    box-shadow: 0 0 24px rgba(212, 155, 99, 0.15);
}

.decorative-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
}