/* Home Page Specific Styles */

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 96px 0 48px;
}

.hero::after {
    content: '';
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-animation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    width: min(100%, 900px);
    padding: var(--space-8) var(--space-6);
    z-index: 10;
    background: transparent;
    /* Removed card background for cleaner look on video */
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: var(--space-4);
    /* Inside-text shine: Moving horizontal line on top of base teal gradient */
    background:
        linear-gradient(to bottom, transparent 45%, rgba(255, 255, 255, 0.95) 50%, transparent 55%) 0% -100% / 100% 200% no-repeat,
        linear-gradient(135deg, #fff 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.3));
    position: relative;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: var(--space-8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Inside-text shine: Sub-headline gets a subtler moving line */
    background:
        linear-gradient(to bottom, transparent 45%, rgba(255, 255, 255, 0.7) 50%, transparent 55%) 0% -100% / 100% 200% no-repeat,
        linear-gradient(to bottom, #f8fafc, #f8fafc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-feature-video {
    padding: 0 0 var(--space-12);
}

.hero-feature-video .container {
    width: min(100%, 1680px);
    max-width: 1680px;
    display: flex;
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
}

.hero-feature-video-frame {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: clamp(18px, 2.4vw, 28px);
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    max-height: 80vh;
}

.hero-feature-video-player {
    display: block;
    width: 100%;
    max-height: 80vh;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    background: #000;
}

/* Entrance & Enhanced Animations */
.animate-left {
    opacity: 0;
    transform: translateX(-50px);
    animation:
        slideInLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
        heroInsideShine 0.8s ease-in-out forwards 1.2s,
        textPop 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.2s;
}

.animate-right {
    opacity: 0;
    transform: translateX(50px);
    animation:
        slideInRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.4s,
        heroInsideShine 0.8s ease-in-out forwards 1.4s,
        textPop 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.4s;
}

/* Base styles for potential shadow rendering issues */
.hero h1,
.hero p {
    overflow: visible;
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.8s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes heroInsideShine {
    0% {
        background-position: 0% -100%, 0% 0%;
    }

    100% {
        background-position: 0% 100%, 0% 0%;
    }
}



/* 3D Circular Carousel Section */
.scrolling-tattoos {
    padding: var(--space-12) 0;
    background: transparent;
    overflow: hidden;
    position: relative;
    height: 440px;
    /* Further reduced */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    /* Increased for wider orbit */
    margin-bottom: var(--space-8);
}

.scrolling-tattoos:last-of-type {
    margin-bottom: 0;
}

/* CRITICAL */


/* Edge Masks */
.scrolling-tattoos::before,
.scrolling-tattoos::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 30;
    pointer-events: none;
}

.scrolling-tattoos::before {
    left: 0;
    background: linear-gradient(to right, #020617 0%, transparent 100%);
}

.scrolling-tattoos::after {
    right: 0;
    background: linear-gradient(to left, #020617 0%, transparent 100%);
}

.scroll-track {
    position: relative;
    width: 220px;
    /* Reduced from 260px */
    height: 300px;
    /* Reduced from 360px */
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.video-container iframe {
    border-radius: var(--radius-md);
}

.intro-video-section {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tattoo-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border-strong);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease, filter 0.8s ease;
    backface-visibility: hidden;
}

/* Shadow beneath the carousel */
.scroll-track::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%) rotateX(90deg);
    width: 120%;
    height: 100px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
    filter: blur(30px);
    z-index: -1;
}

.tattoo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.tattoo-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Focused state (managed by JS via classes or inline styles, but base styles here) */
.tattoo-card.active {
    border-color: var(--neon-green);
    box-shadow: 0 30px 60px -20px var(--accent-green-glow);
    opacity: 1;
    filter: blur(0);
}

.tattoo-card:not(.active) {
    opacity: 0.6;
    filter: blur(2px);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-4);
    background: linear-gradient(transparent, rgba(2, 6, 23, 0.9));
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-base);
}

.tattoo-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-overlay span {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.9rem;
    color: var(--text-white);
    display: block;
}

/* Features/Why Section */
.why-exists,
.what-learn,
.testimonials {
    width: 100%;
    display: block;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    width: 100%;
}

@media (max-width: 600px) {
    .hero {
        min-height: auto;
        padding: 88px 0 24px;
        align-items: flex-start;
    }

    .hero-content {
        width: calc(100% - 20px);
        padding: 28px 18px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 9.8vw, 3.2rem);
        line-height: 1.06;
        margin-bottom: var(--space-3);
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: var(--space-5);
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-feature-video {
        padding: 0 0 var(--space-8);
    }

    .hero-feature-video .container {
        padding-left: 6px;
        padding-right: 6px;
    }

    .hero-feature-video-frame {
        width: 100%;
        border-radius: 20px;
    }

    .scrolling-tattoos {
        height: 320px;
        perspective: 800px;
    }

    .scroll-track {
        width: 160px;
        height: 220px;
    }

    .scrolling-tattoos::before,
    .scrolling-tattoos::after {
        width: 10%;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 104px 0 36px;
    }

    .hero-content {
        width: min(100%, 860px);
        padding: 40px 32px;
    }

    .hero h1 {
        font-size: clamp(3rem, 7vw, 4.3rem);
        line-height: 1.02;
    }

    .hero p {
        font-size: 1.125rem;
        max-width: 700px;
        margin-bottom: var(--space-6);
    }

    .hero-actions {
        gap: var(--space-3);
    }

    .hero-actions .btn {
        min-width: 240px;
    }

    .hero-feature-video .container {
        width: min(100%, 1320px);
        max-width: 1320px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-feature-video-frame {
        width: 100%;
    }

    .scrolling-tattoos {
        height: 360px;
        perspective: 900px;
    }

    .scroll-track {
        width: 180px;
        height: 250px;
    }
}

/* Homepage-Only Header Navigation */
@media (min-width: 1025px) {
    .home-page .main-header .nav-menu {
        display: flex !important;
        align-items: center;
        gap: var(--space-6);
        margin-left: 25px;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .home-page .main-header .nav-link {
        color: var(--text-dim);
        font-weight: 500;
        padding: 0;
        border: none;
        width: auto;
    }

    .home-page .main-header .nav-link:hover,
    .home-page .main-header .nav-link.active {
        color: var(--text-white);
    }
}