:root {
    --bg-dark: #000000;
    --bg-card: rgba(37, 55, 84, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #4f7cac;
    --accent-secondary: #559ed6;
    --gradient-main: linear-gradient(135deg, #4f7cac 0%, #559ed6 100%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation Utilities */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

/* Background blob effect (Disabled for true black background) */
.background-glob {
    display: none;
    position: fixed;
    top: -10%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
    filter: blur(60px);
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.1rem;
    display: block;
    text-align: center;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-text {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.btn-text:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary.small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    width: auto;
    display: inline-block;
}

/* New Hero Banner */
.hero-banner {
    width: 100%;
    margin-top: 60px;
    /* Reduced offset to close gap */
    background: var(--bg-dark);
}

.responsive-banner {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.banner-cta-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 60px 0;
    background: #000000;
}

.img-btn {
    display: block;
    width: 750px;
    /* Massively increased width */
    max-width: 95%;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.img-btn img {
    width: 100%;
    height: auto;
    display: block;
}

.img-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

@media (max-width: 768px) {
    .img-btn {
        width: 320px;
        /* Larger mobile size */
    }
}

/* Old Hero Section (Removed/Kept for reference if needed elsewhere) */
/*.hero { ... }*/

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 350px;
}

/* Hero Video */
.hero-video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 360px;
    /* Constrain width to reduce height */
    background: #000;
    margin: 2rem auto 0;
    /* Center it */
}

.hero-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* .card-stack styles removed */
.card-stack {
    display: none;
}

.card-stack .card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    transition: var(--transition);
}

.card-1 {
    z-index: 3;
    transform: rotate(-3deg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&q=80');
    background-size: cover;
}

.card-2 {
    z-index: 2;
    transform: rotate(3deg) scale(0.95);
    background: #1e293b;
    top: 5px;
    right: -10px;
}

.card-3 {
    z-index: 1;
    transform: rotate(6deg) scale(0.9);
    background: #0f172a;
    border: 1px solid var(--accent-primary);
    top: 10px;
    right: -20px;
}

/* Sections */
.section {
    padding: 4rem 5%;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
}

/* Grid Layout */
.grid-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Horizontal Scroll Video Grid Override */
.video-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 2rem !important;
    /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Scrollbar Styling */
.video-grid::-webkit-scrollbar {
    height: 8px;
}

.video-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.video-grid::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.video-grid .feature-card {
    min-width: 300px;
    /* Mobile width */
    max-width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.image-wrapper {
    height: 180px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.feature-card:hover .placeholder-img {
    transform: scale(1.05);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

/* Dedicated Grid for Videos Page */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns on mobile */
    gap: 1rem;
    width: 100%;
}

.video-gallery-grid .feature-card .content {
    padding: 1rem;
}

.video-gallery-grid .feature-card h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gradient-1 {
    background: linear-gradient(45deg, #ff00cc, #333399);
}

.gradient-2 {
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
}

.gradient-3 {
    background: linear-gradient(45deg, #fc4a1a, #f7b733);
}

.content {
    padding: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.read-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--accent-primary);
}

/* List Layout */
.list-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: var(--transition);
    gap: 0.5rem;
}

.list-item .date {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.85rem;
}

.arrow-btn {
    align-self: flex-end;
    margin-top: -1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1e1b4b 100%);
    text-align: center;
    padding: 6rem 5%;
}

.newsletter h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.sub-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.sub-form input {
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

/* Footer */
footer {
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-dark);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

/* ========================================= */
/* DESKTOP ENHANCEMENTS (min-width: 768px)   */
/* ========================================= */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        background: transparent;
        padding: 0;
        width: auto;
        border-bottom: none;
        gap: 2rem;
    }

    .nav-links a {
        display: inline-block;
        font-size: 1rem;
    }

    .btn-primary.small {
        display: inline-block;
    }

    /* Boxed Layout - Space on sides */
    html {
        background-color: #000000;
        /* Dark gutters */
    }

    body {
        max-width: 1400px;
        margin: 0 auto;
        background-color: #000000;
        box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
        position: relative;
    }

    .navbar {
        max-width: 1400px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Hero */
    .hero {
        min-height: 70vh;
        /* Reduced from 100vh */
        flex-direction: row;
        text-align: left;
        padding-top: 100px;
        align-items: center;
        margin-top: -80px;
        padding-bottom: 2rem;
    }

    .hero-content {
        flex: 1;
        margin-bottom: 0;
        max-width: 600px;
    }

    .hero h1 {
        font-size: 4rem;
        /* Restored size for impact */
        line-height: 1.1;
        margin-bottom: 2rem;
    }

    /* Animated Text Gradient */
    .animate-text {
        background: linear-gradient(to right,
                #8b5cf6,
                #3b82f6,
                #06b6d4,
                #8b5cf6);
        background-size: 200% auto;
        color: #fff;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shine 4s linear infinite;
        display: inline-block;
        padding-bottom: 0.1em;
    }

    @keyframes shine {
        to {
            background-position: 200% center;
        }
    }

    .hero p {
        font-size: 1.125rem;
        max-width: 450px;
    }

    .cta-group {
        flex-direction: row;
        width: auto;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
    }

    .hero-visual {
        flex: 1;
        height: auto;
    }

    /* Desktop: Make hero video larger with proper constraints */
    .hero-video-container {
        max-width: 500px;
        max-height: 281px;
        /* 500px * 9/16 for proper 16:9 ratio */
    }

    .background-glob {
        width: 600px;
        height: 600px;
        top: -20%;
        right: -10%;
    }

    /* Grid Layout - Standard */
    .grid-layout {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .feature-card.large {
        grid-column: span 2;
    }

    /* Video Grid - Horizontal Scroll Override stays */
    .video-grid {
        display: flex;
        /* Keep flex for scroll */
        grid-template-columns: none;
        overflow-x: auto;
        gap: 2rem;
    }

    .video-grid .feature-card {
        min-width: 400px;
        /* Wider cards on desktop */
        max-width: 400px;
    }

    .video-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns on desktop */
        gap: 2rem;
    }

    .section-header {
        text-align: left;
    }

    /* List Layout */
    .list-item {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .list-item .date {
        margin-right: 2rem;
        font-size: 1rem;
    }

    .arrow-btn {
        margin-top: 0;
        align-self: center;
    }

    /* Newsletter */
    .sub-form {
        flex-direction: row;
        max-width: 500px;
        margin: 0 auto;
    }

    .newsletter h2 {
        font-size: 3rem;
    }
}