:root {
    /* Base Colors - Dark Theme */
    --bg-color: #050510;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;

    /* Psychologically Pleasing Palettes */

    /* Home: Blue & Orange (Trust, Calm, Energy) */
    /* Deep Navy -> Vibrant Orange */
    --home-primary: #ff851b;
    --home-secondary: #7fdbff;
    /* Ideally we want blue-orange. Let's try a deep blue background with orange accents/glow */
    --home-gradient: radial-gradient(circle at 80% 20%, #ff851b, #001f3f 40%, #000 90%);

    /* Literary: Indigo & Yellow (Creativity, Mystery, Optimism) */
    --lit-primary: #ffd700;
    --lit-secondary: #4b0082;
    --lit-gradient: radial-gradient(circle at 20% 80%, #ffd700, #4b0082 30%, #1a0033 80%);

    /* Digital: Red & Blue (Passion, Stability, Tech) */
    --dig-primary: #ff4136;
    --dig-secondary: #0074d9;
    --dig-gradient: radial-gradient(circle at 20% 20%, #ff4136, #001f3f 40%, #000 90%);

    /* AI: Teal & Magenta (Growth, Future, Imagination) */
    --ai-primary: #39cccc;
    --ai-secondary: #f012be;
    --ai-gradient: radial-gradient(circle at 80% 80%, #39cccc, #f012be 40%, #000 90%);

    /* Contact: Green & Pink (Calming: Teal & Soft Pink) */
    --contact-primary: #4db6ac;
    /* Soft Teal/Mint */
    --contact-secondary: #f06292;
    /* Calming Pink */
    --contact-gradient: radial-gradient(circle at 50% 50%, #4db6ac, #f06292 60%, transparent 100%);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.08);
    /* Slightly increased opacity for better contrast */
    --glass-blur: blur(25px);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background 0.5s ease;
}

/* Background Application */
.home-page {
    background: var(--home-gradient);
    background-attachment: fixed;
}

.literary-page {
    background: var(--lit-gradient);
    background-attachment: fixed;
}

.digital-page {
    background: var(--dig-gradient);
    background-attachment: fixed;
}

.ai-page {
    background: var(--ai-gradient);
    background-attachment: fixed;
}

/* Tinting Particles */
.home-page #particles-js canvas {
    filter: drop-shadow(0 0 5px var(--home-primary));
}

.literary-page #particles-js canvas {
    filter: drop-shadow(0 0 5px var(--lit-primary));
}

.digital-page #particles-js canvas {
    filter: drop-shadow(0 0 5px var(--dig-primary));
}

.ai-page #particles-js canvas {
    filter: drop-shadow(0 0 8px var(--ai-primary));
}

.contact-page {
    background: var(--contact-gradient);
    background-attachment: fixed;
}

.contact-page #particles-js canvas {
    filter: drop-shadow(0 0 5px var(--contact-primary));
}

.contact-page .glitch-text {
    background: linear-gradient(to right, #fff, var(--contact-secondary));
    -webkit-background-clip: text;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

p {
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--home-secondary);
    text-shadow: 0 0 15px currentColor;
}

.literary-page .nav-links a:hover {
    color: var(--lit-secondary);
}

.digital-page .nav-links a:hover {
    color: var(--dig-secondary);
}

.contact-page .nav-links a:hover {
    color: var(--contact-secondary);
}

/* Sections & Scroll Snap */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    width: 100%;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem;
    margin: 2rem auto;
    max-width: 1000px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
    align-items: center;
    text-align: center;
}

.glitch-text {
    font-size: 6vw;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #ffcdd2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glow-text 3s infinite alternate;
}

.literary-page .glitch-text {
    background: linear-gradient(to right, #fff, var(--lit-secondary));
    -webkit-background-clip: text;
}

.digital-page .glitch-text {
    background: linear-gradient(to right, #fff, var(--dig-secondary));
    -webkit-background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    opacity: 0.9;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Home Preview Cards */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

.content-wrapper.reverse .text-content {
    grid-column: 2;
    grid-row: 1;
}

.content-wrapper.reverse .card-grid {
    grid-column: 1;
    grid-row: 1;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    display: block;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-info span {
    font-size: 0.9rem;
    color: #aaa;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: #ffffff !important;
    /* Force white text */
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 2rem;
    transition: all 0.3s;
    border: 2px solid #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: #ffffff;
    color: #000000 !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Literary Page Styles */
.page-header {
    margin-top: 8rem;
    text-align: center;
    margin-bottom: 4rem;
}

.book-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
}

.book-layout.reverse {
    grid-template-columns: 1fr 350px;
}

.book-layout.reverse .book-details {
    order: 1;
}

.book-layout.reverse .book-cover {
    order: 2;
}


.book-cover img.main-cover {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

/* Museum Gallery Style */
.museum-gallery {
    padding: 3rem 0;
    width: 100%;
    margin-top: 2rem;
}

.museum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.museum-card {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.9), rgba(10, 10, 15, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.museum-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--lit-secondary);
    box-shadow: 0 20px 40px rgba(75, 0, 130, 0.3);
    z-index: 10;
}

.museum-img-container {
    height: 400px;
    /* Large display area */
    width: 100%;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(75, 0, 130, 0.2), #000);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.museum-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.museum-card:hover img {
    transform: scale(1.1);
}

.museum-info {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.6);
    flex-grow: 1;
}

.museum-info h4 {
    color: var(--lit-secondary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
}

.museum-info p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

/* Link Hubs */
.link-hubs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.hub-section h4 {
    margin-bottom: 1rem;
    color: #aaa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
}

/* Blog Snippet */
.blog-snippet {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(75, 0, 130, 0.1);
    border-left: 3px solid var(--lit-secondary);
    border-radius: 0 12px 12px 0;
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
}

.blog-snippet::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
}

.blog-quote {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 1rem;
}

.blog-source {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--lit-secondary);
}

@media (max-width: 768px) {
    .link-hubs {
        grid-template-columns: 1fr;
    }

    .museum-grid {
        grid-template-columns: 1fr;
    }

    .museum-img-container {
        height: 300px;
    }
}


/* Gallery Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    /* Dark overlay */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-wrapper {
    position: relative;
    width: auto;
    height: auto;
    max-width: 90vh;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #ffffff;
    /* White bg for image container */
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border: none;
    cursor: zoom-in;
    transition: transform 0.2s ease-out;
    transform-origin: center center;
    background: #fff;
}

.lightbox img.zoomed {
    cursor: zoom-out;
}

/* Close button - White for contrast on dark overlay */
.lightbox .close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    cursor: pointer;
    color: #fff;
    z-index: 2005;
    transition: color 0.3s;
}

.lightbox .close:hover {
    color: var(--lit-secondary);
}

/* Footer - Ensure it's not fixed */
footer,
.glass-footer {
    position: relative !important;
    width: 100%;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.purchase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.purchase-btn {
    padding: 0.8rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.purchase-btn:hover {
    background: var(--lit-secondary);
    color: #000;
}


.reviews {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--lit-secondary);
}

.rating {
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Digital Page Banner */
.banner-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    border: 1px solid transparent;
    transition: 0.3s;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--dig-secondary);
}

/* Contact Section (Green-Pink) */
.contact-section h2 {
    color: var(--contact-primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.contact-info-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 204, 0.2);
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--contact-gradient);
    opacity: 0.1;
    z-index: 0;
    animation: rotate-bg 10s linear infinite;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.email-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--contact-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--contact-secondary);
    padding-bottom: 0.2rem;
    transition: all 0.3s;
}

.email-link:hover {
    color: #fff;
    border-color: var(--contact-primary);
    text-shadow: 0 0 10px var(--contact-primary);
}

.twitter-embed-container {
    height: 400px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid var(--contact-secondary);
    box-shadow: 0 0 20px rgba(77, 182, 172, 0.2);
    /* Soft Teal Shadow */
    display: flex;
    /* Center fallback content */
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.twitter-embed-container a {
    color: var(--contact-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0;
    border: none;
    background: transparent;
    opacity: 0.8;
    letter-spacing: 1px;
}

.twitter-embed-container a:hover {
    background: transparent;
    color: #fff;
    box-shadow: none;
    text-shadow: 0 0 10px var(--contact-primary);
    opacity: 1;
}

@keyframes rotate-bg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 900px) {

    .content-wrapper,
    .book-layout,
    .book-layout.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-layout.reverse .book-details {
        order: 2;
    }

    .book-layout.reverse .book-cover {
        order: 1;
    }

    .book-cover {
        margin: 0 auto;
        max-width: 300px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .glass-panel {
        padding: 2rem;
        width: 95%;
    }

    .section {
        padding: 4rem 1rem;
    }

    .glitch-text {
        font-size: 3rem;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 1s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 1s ease-out;
}

.visible {
    opacity: 1;
    transform: translate(0);
}
/* Premium Social Card */
.social-card-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(77, 182, 172, 0.2);
    border-color: var(--contact-secondary);
}

.social-card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--contact-gradient);
}

.social-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #111);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--contact-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    color: var(--contact-primary);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--contact-primary));
}

.profile-handle {
    color: #aaa;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.social-icon {
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.5;
}

.social-bio {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.social-bio em {
    color: var(--contact-secondary);
    font-style: normal;
}

.pinned-tweet {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--contact-primary);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 2rem;
}

.pin-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--contact-secondary);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.pinned-tweet p {
    font-size: 1rem;
    color: #eee;
    margin: 0;
    line-height: 1.5;
}

.follow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: #fff;
    color: #000 !important; /* Force text black on white bg */
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.follow-btn:hover svg {
    stroke: #000; /* Force icon black on hover */
}
