/* Note: I removed the @import. Put the Google Fonts <link> in your HTML head! */

/* CSS Variables */
:root {
    --background-color: #f5f3ef;
    --text-color: #0a0a0a;
    --secondary-text-color: #505050;
    --highlight-color: #5d00f7;
    --transition-speed: 0.3s;
    --menu-transition-speed: 0.8s;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-speed);
    padding-top: 2rem;
}

body.no-scroll {
    overflow: hidden;
}

img {
    user-select: none;
    -webkit-user-select: none;
}

/* Layout */
.container {
    display: flex;
    width: 100%;
    max-width: 1440px;
    padding: 2rem 4rem;
}

/* Navigation */
nav {
    flex: 0 0 130px;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    padding-top: 0.6rem;
    transition: transform var(--transition-speed) ease-out;

}

nav a {
    text-decoration: none;
    color: var(--secondary-text-color);
    font-size: 1.05rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    letter-spacing: -0.01em;
    cursor: pointer;
}

nav a:hover {
    color: var(--highlight-color);
    transform: translateX(6px);
}

nav a.active {
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--highlight-color);
    transform: translateY(-50%);
}

/* Main Content */
main {
    padding-left: 7rem;
}

/* Header Section */
.header {
    font-size: 5.5rem;
    font-weight: 700;
    margin: -2.2rem 0 0 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.header .highlight {
    color: var(--highlight-color);
}

#time-emoji {
    font-size: 0.38em;
    vertical-align: middle;
    display: inline-block;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--secondary-text-color);
    margin: 0.5rem 0 3rem 0;
    letter-spacing: -0.02em;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Profile Picture - Advanced CSS */
.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 45%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 
        inset 2px 3px 5px rgba(255, 255, 255, 0.7),
        inset 0 0 25px rgba(255, 255, 255, 0.25),
        inset -3px -3px 10px rgba(0, 0, 0, 0.05),
        0 10px 25px -10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateZ(0); /* Hardware Acceleration */

    animation: liquidMorph 8s ease-in-out infinite;
    
    will-change: border-radius;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.profile-pic:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        inset 3px 4px 7px rgba(255, 255, 255, 0.9),
        inset 0 0 30px rgba(255, 255, 255, 0.4),
        inset -3px -3px 10px rgba(0, 0, 0, 0.05),
        0 20px 35px -12px rgba(0, 0, 0, 0.25);

    
}
/* The Physics of the Water Drop */
@keyframes liquidMorph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Bio Section */
.bio {
    font-size: 1.3rem;
    line-height: 1.75;
    max-width: 68ch;
    margin: -1rem 0 3rem 0;
    font-weight: 500;
}

.bio-link {
    color: #555;
    text-decoration: none;
    font-style: italic;
    transition: color 0.2s, transform 0.2s;
}

.bio-link:hover {
    color: var(--highlight-color);
    transform: translateX(0) scale(1.1); /* Reduced scale slightly for smoother UX */
    text-decoration: underline wavy;
    cursor: pointer;
}

/* Social Links */
.socials {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.socials a {
    color: var(--secondary-text-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    display: inline-block;
}

.socials a:hover {
    color: var(--text-color);
    transform: translateY(-5px);
}

.socials svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.codeforces-icon svg {
    width: 120px;
    height: 120px;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.codeforces-icon:hover svg {
    transform: translateY(-5px);
    opacity: 0.65;
}

/* Contact Section */
.contact-section {
    margin-top: 3rem;
    max-width: 68ch;
    position: relative;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 16px; /* Slightly softer corners for liquid feel */
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    
    /* --- THE LIQUID GLASS EFFECT --- */
    
    /* 1. Translucent Base with a hint of your Brand Purple */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(93, 0, 247, 0.02) 100% 
    );
    
    /* 2. Frosted Blur (The "Liquid" distortion) */
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    
    /* 3. Specular Highlights (Shiny Edges) */
    /* Light hits from top-left, so those borders are brighter */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.9);
    
    /* 4. Depth Shadow */
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2); /* Inner rim */
        
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    transition: transform 0.1s ease-out, box-shadow 0.4s ease, border 0.4s ease;
    
    /* Ensure this is set to prevent blurriness */
    will-change: transform, background;

    -webkit-tap-highlight-color: transparent;
}

.contact-item:hover {
    /* Lift effect */
    transform: translateY(-5px) scale(1.01);
    
    /* Increase glossiness on hover */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(93, 0, 247, 0.08) 100% 
    );
    
    /* Stronger Highlight Color Shadow */
    box-shadow: 
        0 15px 35px -5px rgba(93, 0, 247, 0.15), /* Your brand purple glow */
        inset 0 0 20px rgba(255, 255, 255, 0.6); /* Inner light reflection */
        
    border-color: rgba(255, 255, 255, 1);
}

/* Original Icon Styling Preserved */
.contact-icon {
    width: 200px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.contact-item:hover #mail_svg {
    transform: rotate(-8deg);
}

.contact-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--secondary-text-color);
    transition: all var(--transition-speed) ease;
    /* Adding a subtle drop shadow to icon to make it float inside the glass */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    transition: color var(--transition-speed) ease;
}

.contact-info p {
    font-size: 1rem;
    color: var(--secondary-text-color);
    transition: color var(--transition-speed) ease;
}

.contact-item:hover .contact-info h3 {
    color: var(--highlight-color);
}

.contact-item:hover .contact-info p {
    color: var(--text-color);
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .contact-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    .contact-icon {
        width: 40px !important;
        min-width: 40px;
    }
    .contact-info h3 {
        font-size: 1.1rem;
    }
    .contact-info p {
        font-size: 0.9rem;
    }
}

/* Blog Section */
.blog-section {
    margin-top: 5rem;
    max-width: 68ch;
}

.blog-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-post-link {
    text-decoration: none;
    color: inherit;
}

.blog-post-item {
    border-left: 3px solid transparent;
    padding: 1.5rem;
    cursor: pointer;
    background-color: #c2b4cc;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    transform: translateZ(0);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.blog-post-item:hover {
    border-left-color: var(--highlight-color);
    background-color: rgba(93, 0, 247, 0.05);
    transform: translateX(8px) translateY(-2px);
}

.blog-post-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    transition: color var(--transition-speed) ease;
}

.blog-post-item:hover .blog-post-title {
    color: var(--highlight-color);
}

.blog-post-date {
    font-size: 0.95rem;
    color: var(--secondary-text-color);
    font-style: italic;
}

/* Individual Blog Post Page */
.blog-post-page {
    max-width: 68ch;
}

.blog-post-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-text-color);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: all var(--transition-speed) ease;
}

.blog-post-page .back-link:hover {
    color: var(--highlight-color);
    transform: translateX(-5px);
}

.blog-post-page h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.blog-post-page .post-meta {
    font-size: 1rem;
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
    font-style: italic;
}

.blog-post-page .post-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.blog-post-page .post-content p {
    margin-bottom: 1.5rem;
}

.noise-background {
    background-image: url('/src/images/noise_blog.png');
    padding: 2rem;
    border-radius: 5px;
}

/* Blog Images */
.blog-post-page .post-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 2rem auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

/* Desktop-specific image floating */
@media (min-width: 769px) {
    .blog-post-page .post-content img {
        float: left;
        width: 300px;
        margin: 0.5rem 2.5rem 1.5rem 0;
    }
    .blog-post-page .post-content::after {
        content: "";
        display: table;
        clear: both;
    }
}

.blog-post-page .post-content img:hover {
    transform: scale(1.03);
}

/* Audio Player */
.audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 100px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 450px;
    width: auto;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
}

.play-pause-btn {
    background: var(--highlight-color);
    border: none;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-pause-btn:hover {
    transform: scale(1.08);
    background: #4b00c7;
}

.play-pause-btn svg {
    fill: white;
    width: 16px;
    height: 16px;
}

.audio-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    opacity: 0;
    transform: translateX(-10px);
    visibility: hidden;
    width: 0;
    transition: all 0.4s ease;
}

.audio-player.is-active .audio-info {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    width: auto;
}

.audio-label {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    white-space: nowrap;
}

.audio-duration {
    font-size: 0.75rem;
    color: var(--secondary-text-color);
    font-variant-numeric: tabular-nums;
}

.audio-speed-btn {
    border: none;
    background: none;
    color: var(--secondary-text-color);
    font: inherit;
    font-size: 0.75rem;
    padding: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.initial-listen-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary-text-color);
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding-right: 0.5rem;
}

.audio-player.is-active .initial-listen-text {
    display: none;
}

/* Custom Range Slider */
.seek-slider {
    width: 100%;
    height: 4px;
    appearance: none;
    background: linear-gradient(to right, #808080 0%, #808080 0%, #e5e5e5 0%, #e5e5e5 100%);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--highlight-color);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.seek-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* Section Navigation */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Hamburger Menu */
.hamburger-button {
    display: none;
    z-index: 1001;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 22px;
    position: fixed;
    top: 3.5rem;
    right: 2rem;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-button .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger-button .bar:nth-of-type(1) {
    transform-origin: top left;
}

.hamburger-button .bar:nth-of-type(2) {
    margin: 6px 0;
}

.hamburger-button .bar:nth-of-type(3) {
    transform-origin: bottom left;
}

.hamburger-button.is-active .bar:nth-of-type(1) {
    transform: rotate(45deg) translate(2px, -3px);
}

.hamburger-button.is-active .bar:nth-of-type(2) {
    opacity: 0;
}

.hamburger-button.is-active .bar:nth-of-type(3) {
    transform: rotate(-45deg) translate(1px, 2px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--menu-transition-speed) ease, visibility var(--menu-transition-speed) ease, backdrop-filter var(--menu-transition-speed) ease;
    z-index: 1000;
}

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

/* Tablet Styles */
@media (max-width: 900px) {
    .header {
        font-size: 4.5rem;
    }
    main {
        padding-left: 5rem;
    }
}

/* =============================
   UNIFIED MOBILE STYLES
   ============================= */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding-top: 1rem;
    }

    .container {
        flex-direction: column;
        padding: 2rem 2rem;
    }
    
    .hamburger-button {
        display: block;
        top: 2rem;
    }
    
    /* Navigation Menu */
    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(75vw, 400px);
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(300%);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), -10px 0 30px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3.5rem;
        transform: translateX(100%);
        transition: transform var(--menu-transition-speed) cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 1000;
        transform-style: preserve-3d;
        will-change: transform;
    }
    
    nav.is-active {
        transform: translateX(0);
    }
    
    nav a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-color);
    }
    
    nav a:hover {
        transform: translateX(0) scale(1.1);
        color: var(--highlight-color);
    }
    
    main {
        padding-left: 0;
    }
    
    .header {
        font-size: 2.2rem;
        margin: -0.5rem 0 0 0;
    }
    
    .subtitle {
        font-size: 1rem;
        margin: 0.5rem 0 1.5rem 0;
    }
    
    .bio {
        font-size: 1.1rem;
    }
    
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .profile-pic {
        width: 80px;
        height: 80px;
    }
    
    .socials {
        gap: 2.4rem;
        margin-left: 1rem;
        margin-top: 1.5rem;
        justify-content: flex-start;
        width: auto;
    }
    
    .socials svg {
        width: 24px;
        height: 24px;
    }
    
    .codeforces-icon svg {
        width: 90px;
        height: 90px;
    }

    /* Contact Section Mobile Fixes */
    .contact-section {
        width: 100%;
        padding: 0 1rem;
    }

    .contact-item {
        padding: 1rem;
        gap: 0.75rem;
        width: 100%;
    }

    .contact-icon {
        width: 40px; 
        min-width: 40px;
        height: auto;
        justify-content: center;
    }

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

    .contact-info h3 {
        font-size: 1.1rem;
    }

    .contact-info p {
        font-size: 0.9rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    #profiles-dropdown {
        margin-left: 5px !important; 
        padding-left: 10px !important;
    }

    /* Blog Section Mobile */
    .blog-section {
        margin-top: 3rem;
    }

    .blog-section h2 {
        font-size: 1.8rem;
    }
    
    .blog-post-item {
        padding: 1rem;
    }

    .blog-post-title {
        font-size: 1.05rem;
    }
    
    .blog-post-date {
        font-size: 0.85rem;
    }

    .blog-post-page h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .blog-post-page .back-link {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .blog-post-page .post-meta {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .blog-post-page .post-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .blog-post-page .post-content p {
        margin-bottom: 1.2rem;
    }

    .blog-post-page .post-content img {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 1.5rem auto;
        border-radius: 8px;
        float: none;
        display: block;
    }

    .audio-player {
        margin-bottom: 2rem;
        max-width: 100%;
        padding: 0.6rem 1rem;
        gap: 0.75rem;
    }

    .play-pause-btn {
        width: 48px;
        height: 48px;
    }

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

    .initial-listen-text {
        font-size: 0.85rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .header {
        font-size: 1.9rem;
    }
    
    .subtitle {
        font-size: 0.97rem;
    }
    
    .bio {
        font-size: 0.95rem;
        line-height: 1.6;
        margin: 0 0 1.5rem 0;
    }
    
    .profile-pic {
        width: 70px;
        height: 70px;
    }
}


/* Smooth Image Loading */
.blog-post-page img {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.blog-post-page img.loaded {
    opacity: 1;
    transform: scale(1);
}


#liquid-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px; /* Big glow area */
    height: 600px;
    background: radial-gradient(
        circle, 
        rgba(93, 0, 247, 0.35) 0%,   /* Your Brand Purple */
        rgba(65, 200, 255, 0.1) 40%, /* A hint of Blue */
        transparent 70%
    );
    filter: blur(80px); /* The "Aurora" softness */
    z-index: -1; /* Stays behind everything */
    pointer-events: none; /* Clicks go through it */
    border-radius: 50%;
    
    /* Start centered */
    transform: translate(-50%, -50%);
    
    /* Smooth transition for the lag effect */
    transition: transform 1.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}


/* =========================================
   THE DESIGNER'S TOUCH (Scrollbar & Selection)
   ========================================= */

/* 1. The Liquid Scrollbar */
/* This removes the clunky grey browser bar */
::-webkit-scrollbar {
    width: 15px; /* Width of the scrollbar */
}

/* The "Track" (Background of the scrollbar) */
::-webkit-scrollbar-track {
    background: transparent; /* Keep it invisible so it looks like floating */
}

/* The "Thumb" (The moving part) */
::-webkit-scrollbar-thumb {
    background-color: rgba(93, 0, 247, 0.5); /* Brand purple, very subtle */
    border-radius: 20px; /* Make it a pill shape (Liquid) */
    border: 4px solid transparent; /* Creates padding around the bar so it floats */
    background-clip: content-box; /* Necessary for the floating effect */
    transition: background-color 0.3s ease;
}

/* When you grab the scrollbar */
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(93, 0, 247, 0.8); /* Turns solid purple when interacting */
}

/* 2. Premium Text Selection */
/* When a recruiter highlights your text to copy it */
::selection {
    background: rgba(93, 0, 247, 0.28); /* Soft Purple background */
    color: inherit; /* Keep text color same */
    -webkit-text-fill-color: inherit;
}


#ghost-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 365px; /* Size of the preview */
    height: 160px;
    border-radius: 18px;
    z-index: 9999;
    pointer-events: none; /* Mouse ignores it */
    
    /* The Image Styling */
    background-size: cover;
    background-position: center;
    /* background-color: rgba(255, 255, 255, 0.1); */
    
    /* Hidden by default */
    opacity: 0;
    transform: scale(0.8);
    
    /* The Animation */
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.1, 0.6, 0.2, 1);
    
    /* The Liquid Glass Look */
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.1); */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    /* backdrop-filter: blur(4px); */
}

/* When active, it pops up */
#ghost-preview.active {
    opacity: 1;
    transform: scale(1);
}


/* STAMP CONTAINER */
.rotating-stamp {
    position: fixed;
    bottom: 2rem;
    right: 2rem; /* Sits in the bottom-right corner of the section */
    width: 140px;
    height: 140px;
    opacity: 0.4; /* Keep it subtle and minimal */
    color: var(--text-color);
    pointer-events: none; /* Let clicks pass through */
    z-index: 0;
    
    /* Center the inner text */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* THE TEXT RING ANIMATION */
.rotating-stamp svg {
    animation: rotateStamp 20s linear infinite;
    transform-origin: center;
}

@keyframes rotateStamp {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* THE CENTER INITIALS */
.stamp-center {
    position: fixed;
    font-size: 1.5rem;
    font-weight: 700;
    /* Keeps the center static while the ring spins */
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .rotating-stamp {
        /* On mobile, move it to the background or hide it if it's too crowded */
        display:none;
    }
}


/* Makes the transition smooth and buttery */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
