:root {
    --text-primary: #4A148C;
    --text-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glow-color: rgba(156, 39, 176, 0.25);
    --glow-strong: rgba(156, 39, 176, 0.45);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #FAFAFA 0%, #E6E6FA 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Kinetic Typography Background */
.kinetic-bg {
    position: fixed;
    top: -5vh;
    left: -5vw;
    width: 110vw;
    height: 110vh;
    z-index: -1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    pointer-events: none;
    opacity: 0.04;
    /* Very subtle opacity */
    will-change: transform;
}

.kinetic-line {
    width: 200vw;
    height: 1px;
    background: var(--text-primary);
    opacity: 0.3;
}

.kinetic-row {
    white-space: nowrap;
    font-size: 8rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    text-transform: uppercase;
    will-change: transform;
}

.row-1 {
    animation: scrollLeft 60s linear infinite;
}

.row-2 {
    animation: scrollRight 75s linear infinite;
}

.row-3 {
    animation: scrollLeft 50s linear infinite;
}

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

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

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.glass-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.glow-effect {
    box-shadow: 0 0 20px var(--glow-color), inset 0 0 10px rgba(255, 255, 255, 0.5);
    transition: var(--transition-smooth);
}

.glow-effect:hover {
    box-shadow: 0 0 35px var(--glow-strong), inset 0 0 15px rgba(255, 255, 255, 0.7);
    transform: translateY(-5px);
}

/* Header & Top Section */
.top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5rem;
    width: 100%;
}

.intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 4rem;
    gap: 2rem;
}

.portrait-container {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid var(--glass-border);
    box-shadow: 0 0 30px var(--glow-color);
    flex-shrink: 0;
}

.intro-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 60%;
}

.intro-greeting {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(156, 39, 176, 0.3);
    margin: 0;
}

.intro-role {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-primary);
    opacity: 0.8;
    margin: 0;
}

@media (max-width: 900px) {
    .intro-container {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .intro-text {
        max-width: 100%;
    }

    .intro-greeting {
        font-size: 3.5rem;
    }
}

.portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.vsl-container {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem;
    border: 2px solid rgba(156, 39, 176, 0.3);
    position: relative;
    z-index: 1;
}

.vsl-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.vsl-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.vsl-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    z-index: 2;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

/* Class toggled by JS on hover */
.vsl-wrapper.is-playing .vsl-overlay {
    opacity: 0;
    backdrop-filter: blur(0px);
    pointer-events: none;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 0 20px var(--glow-strong);
}

.play-btn:hover {
    transform: scale(1.15);
    background: rgba(156, 39, 176, 0.6);
    border-color: #fff;
}

/* Common Section Title */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

/* Long Form Carousel */
.long-form-section {
    margin-bottom: 6rem;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    position: relative;
    padding: 0.5rem 0;
    /* space for hover lift */
}

.carousel-track-wrapper {
    overflow: visible;
    width: 100%;
    padding: 6rem 0;
    /* Only vertical padding since we allow lateral overflow */
    margin: -5rem 0;
}

.carousel-track {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    width: 100%;
}

.long-card {
    flex: 0 1 calc(33.333% - 1.66rem);
    aspect-ratio: 16/9;
    position: relative;
    overflow: visible;
    /* Changed from hidden to allow glow overflow */
    cursor: pointer;
    min-width: 340px;
    /* Increased size to look grander */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        z-index 0.4s, box-shadow 0.4s ease;
    will-change: transform, z-index, box-shadow;
    z-index: 1;
    /* Default baseline stack */
}

/* Specific Hover pop up and glow */
.long-card:hover {
    transform: translateY(-20px) scale(1.05);
    z-index: 10;
    /* Intense dynamic glow only during hover */
    box-shadow: 0 0 50px rgba(156, 39, 176, 0.6),
        0 0 80px rgba(156, 39, 176, 0.4),
        0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 850px) {
    .long-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 600px) {
    .long-card {
        flex: 0 0 calc(100%);
    }

    .carousel-track {
        gap: 0;
    }
}

.card-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    /* Move hidden constraint here so it frames the iframe, not the glow */
}

.card-image iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: var(--transition-smooth);
}

.long-card:hover .card-image iframe {
    transform: scale(1.03);
}

/* Short Form Overlapping Straight Row */
.short-form-section {
    margin-bottom: 8rem;
}

.shorts-stack {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    padding: 4rem 0;
    /* padding for hover lift */
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

.shorts-stack .short-card {
    position: relative;
    width: 250px;
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.4s ease, filter 0.4s ease, z-index 0.4s;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
    /* Shadow on left side to emphasize overlap */
    transform-origin: bottom center;
    margin-left: -12px;
    /* Slight ~5% overlap */
    will-change: transform, opacity, filter, z-index;
}

.shorts-stack .short-card:first-child {
    margin-left: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* Standard shadow for bottom-most */
}

/* Stacking Order: Leftmost is bottom */
.shorts-stack .short-card:nth-child(1) {
    z-index: 1;
}

.shorts-stack .short-card:nth-child(2) {
    z-index: 2;
}

.shorts-stack .short-card:nth-child(3) {
    z-index: 3;
}

.shorts-stack .short-card:nth-child(4) {
    z-index: 4;
}

.shorts-stack .short-card:nth-child(5) {
    z-index: 5;
}

/* Group Hover State (Dim and blur un-hovered) */
.shorts-stack:hover .short-card {
    opacity: 0.6;
    filter: blur(2px);
    z-index: 1;
}

/* Specific Hover State (Pop out to front) */
.shorts-stack .short-card:hover {
    transform: translateY(-40px) scale(1.08) !important;
    z-index: 10 !important;
    opacity: 1 !important;
    filter: blur(0px) !important;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5), 0 0 35px var(--glow-strong);
    transition-delay: 0s;
}

.shorts-stack .short-card:hover .card-image iframe {
    transform: scale(1.03);
}

.short-card .card-image {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    /* Fully rounded since there's no bottom text block anymore */
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .shorts-stack {
        justify-content: flex-start;
        padding: 2rem 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
        -ms-overflow-style: none;
        /* Hide scrollbar IE/Edge */
        gap: 1rem;
    }

    .shorts-stack::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .shorts-stack .short-card {
        width: 200px;
        /* Keep them large enough to be clickable */
        flex-shrink: 0;
        margin-left: 0;
        /* Remove overlap */
        scroll-snap-align: center;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        /* standard shadow */
    }

    /* Remove hover pop-out on mobile for usability */
    .shorts-stack .short-card:hover {
        transform: translateY(-10px) scale(1.02) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 15px var(--glow-strong);
    }

    /* Remove group hover dimming on mobile */
    .shorts-stack:hover .short-card {
        opacity: 1;
        filter: blur(0px);
    }
}

@media (max-width: 600px) {
    .shorts-stack {
        padding: 1rem;
    }

    .shorts-stack .short-card {
        width: 180px;
        margin-left: 0;
    }
}

/* AI Ads Section */
.ai-ads-section {
    margin-bottom: 8rem;
}

.ai-ads-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.ai-ad-card {
    /* Standardize size to match short form cards but remove hover overlapping effects */
    width: 250px;
    aspect-ratio: 9/16;
    margin-left: 0 !important;
    transform: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.ai-ad-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 15px var(--glow-strong) !important;
    z-index: 10 !important;
}

.btn-notion {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    /* Lighter glass */
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-notion:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px var(--glow-strong);
}

.btn-notion svg {
    transition: transform 0.3s ease;
}

.btn-notion:hover svg {
    transform: translateX(5px);
}

@media (max-width: 600px) {
    .btn-notion {
        font-size: 0.9rem;
        padding: 1rem 1.5rem;
        text-align: center;
    }
}

/* Plugins Promotion Section */
.plugins-promo-section {
    max-width: 800px;
    margin: 0 auto 8rem auto;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    gap: 2rem;
}

.promo-text {
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    letter-spacing: 1px;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
    .promo-text {
        font-size: 1.2rem;
    }

    .plugins-promo-section {
        margin: 0 1rem 5rem 1rem;
        padding: 2rem 1.5rem;
    }
}

/* Footer */
.site-footer {
    padding: 1rem 1.5rem 3rem;
    display: flex;
    justify-content: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 6rem;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.hub-title {
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.2rem;
}

.hub-icon {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1.8rem;
    margin-top: 0.5rem;
}

.social-link {
    color: var(--text-primary);
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.social-link:hover {
    color: white;
    background: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--glow-strong);
}