/* =========================================
   1. CORE THEME & TYPOGRAPHY
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@300;400;500&family=Cinzel:wght@400;700&display=swap');

:root {
    --bg-dark: #050505;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --accent-green: #1b4d2e;
    --border-color: #333333;
    --card-bg: #111111;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Alegreya Sans', sans-serif;
    text-align: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, .cinzel-text {
    font-family: 'Cinzel', serif;
}

/* =========================================
   2. ANIMATED STARRY BACKGROUND
   ========================================= */
.star-layer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: moveStars 100s linear infinite;
    opacity: 0.3;
}

.star-layer:nth-child(2) {
    background-size: 350px 350px;
    animation: moveStars 150s linear infinite;
    opacity: 0.15;
}

@keyframes moveStars {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* =========================================
   3. HEADER
   ========================================= */
header {
    padding: 5rem 1rem 3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(circle at top, rgba(34,34,34,0.8), rgba(0,0,0,0.8));
    position: relative;
    z-index: 10;
}

header h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #4d4d4d 0%, #ffffff 50%, #4d4d4d 100%);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metallicShine 3s linear infinite;
}

header p {
    color: var(--text-dim);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes metallicShine {
    0% { background-position: -100%; }
    100% { background-position: 200%; }
}

/* =========================================
   4. BULLETPROOF 3D MARQUEE TRACK 
   ========================================= */
.framer-hero-container {
    width: 100vw;
    height: 85vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; 
    perspective: 900px; 
    margin-top: 1rem;
    margin-bottom: 20vh; 
}

.framer-tilt-wrapper {
    transform: rotateX(15deg) rotateY(25deg) rotateZ(-8deg);
    transform-style: preserve-3d;
    margin-left: -5vw; 
}

.framer-carousel-track {
    display: flex;
    width: max-content;
    animation: heroScroll 15s linear infinite; /* Slowed down slightly for 12 cards */
    transform-style: preserve-3d;
    will-change: transform; 
}

.framer-tilt-wrapper:hover .framer-carousel-track {
    animation-play-state: paused;
}

.carousel-half {
    display: flex;
    width: max-content; 
    gap: 40px; 
    padding-right: 40px; /* Connects Half 1 to Half 2 flawlessly */
    flex-shrink: 0; 
    transform-style: preserve-3d;
}

@keyframes heroScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* =========================================
   5. 3D CARDS & OVERLAYS
   ========================================= */
a.framer-card {
    display: block;
    text-decoration: none;
    position: relative;
    width: 480px; 
    height: 680px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: -20px 30px 50px rgba(0,0,0,0.8);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    flex-shrink: 0; 
}

.framer-card img, .framer-card video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; 
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.card-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    z-index: 2;
    transform: translateY(10px);
    opacity: 0.8;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.card-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.card-desc {
    color: #ccc;
    font-size: 1rem;
    margin: 0;
}

a.framer-card:hover {
    transform: translateY(-15px) translateZ(40px);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: -30px 40px 60px rgba(0,0,0,1);
}

a.framer-card:hover img, a.framer-card:hover video {
    opacity: 1;
    transform: scale(1.05);
}

a.framer-card:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================
   6. FOOTER STYLING
   ========================================= */
.site-footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    position: relative;
    z-index: 10;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-links li a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-links li a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.site-footer p {
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* =========================================
   7. MOBILE RESPONSIVENESS (MASSIVE CARDS)
   ========================================= */
@media (max-width: 768px) {
    header {
        padding: 3rem 1rem 2rem;
    }

    header h1 {
        font-size: 2.2rem;
    }

    /* Increased height to comfortably fit the giant cards */
    .framer-hero-container {
        height: 80vh; 
        perspective: 650px; /* Slightly adjusted so the massive cards don't warp too harshly */
        margin-top: 2rem;
        margin-bottom: 12vh;
    }

    .framer-tilt-wrapper {
        /* Relaxed the angles just a bit so the huge cards stay readable */
        transform: rotateX(10deg) rotateY(28deg) rotateZ(-5deg);
        
        /* Adjusted the pull so the main card dominates the center of the screen */
        margin-left: -15vw; 
    }

    .carousel-half {
        gap: 25px;
        padding-right: 25px; /* Must perfectly match the gap! */
    }

    /* THE MASSIVE MOBILE CARDS */
    a.framer-card {
        width: 340px;  /* Huge increase (was 250px) */
        height: 500px; /* Huge increase (was 380px) */
        border-radius: 14px;
    }

    .card-overlay {
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    }

    /* Scaled up the text to match the bigger cards */
    .card-title {
        font-size: 1.6rem;
    }

    .card-desc {
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}