/* --- Executive Prism Design System --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Colors - Foundation */
    --surface: #120f2f;
    --surface-container-lowest: #0d092a;
    --surface-container-low: #1a1738;
    --surface-container: #1e1b3c;
    --surface-container-high: #292647;
    --surface-container-highest: #343153;

    /* Text Colors */
    --on-surface: #e4dfff;
    --on-surface-variant: #d2c2d0;

    /* Accents */
    --primary: #863e98;
    --on-primary: #f8c4ff;
    --secondary: #80bf64;
    --on-secondary: #0e3900;

    /* Borders & Outlines */
    --outline: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 12px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    --spacing-xxl: 120px;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

p {
    color: var(--on-surface-variant);
    margin-bottom: var(--spacing-sm);
    font-size: 18px;
}

a {
    text-decoration: none;
    color: var(--on-surface);
    transition: var(--transition-fast);
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(18, 15, 47, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--outline);
    padding: var(--spacing-sm) 48px;
}

.nav-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--on-surface);
    letter-spacing: -0.03em;
}

.nav-brand span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--on-surface-variant);
}

.nav-link:hover {
    color: #9b51e0;
}

.btn-contact {
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-contact:hover {
    background-color: #9b51e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(134, 62, 152, 0.4);
}

/* --- Hero Section (Luke's Style) --- */
.home-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: var(--spacing-xxl) 48px var(--spacing-lg);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle at center, rgba(134, 62, 152, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.hero-tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: scroll;
    opacity: 0.5;
    z-index: 0;
}

/* --- Hero Section (True Luke's Template) --- */
.hero-stats-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 48px;
    z-index: 2;
    pointer-events: none;
    /* Let hover pass through to the text if they overlap slightly */
}

.hero-stats-group {
    pointer-events: auto;
    /* Re-enable pointer events for stats themselves */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}


.hero-stats-group.text-right {
    align-items: flex-end;
    text-align: right;
}

.hero-stats-group.text-right .count-main-wrapper {
    justify-content: flex-end;
}

.total-box-wrapper {
    display: flex;
    flex-direction: column;
}

.total-text {
    font-size: 18px;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.count-main-wrapper {
    display: flex;
    align-items: baseline;
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

/* Massive Typography */
.hero-home-title-text {
    font-size: clamp(80px, 18vw, 300px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.85;
    text-align: center;
    margin: 0;
    /* Reset margin since it is perfectly vertically centered */
    color: var(--on-surface);
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    /* Soft gradient text */
    background: linear-gradient(135deg, var(--on-surface) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.6s ease;
}

.hero-image-overlap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(250px, 30vw, 500px);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    animation: float-centered 6s ease-in-out infinite;
}

@keyframes float-centered {
    0% {
        transform: translate(-50%, -15%);
    }

    50% {
        transform: translate(-50%, -25%);
    }

    100% {
        transform: translate(-50%, -15%);
    }
}

.hero-image-overlap img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    /* Softly fade out the harsh cutoff at the bottom */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.hero-home-title-text:hover+.hero-image-overlap,
.hero-image-overlap:hover {
    opacity: 1;
    pointer-events: auto;
}

.hero-home-title-text:hover {
    opacity: 0.5;
    /* Dim the text slightly when image is visible */
}


.floating-effect {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
        box-shadow: 0 50px 90px rgba(0, 0, 0, 0.9);
    }

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

/* --- Infinity Marquee --- */
.infinity-section {
    padding: var(--spacing-xl) 0;
    background: var(--surface-container-lowest);
    overflow: hidden;
}

.infinity-wrapper {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.infinity-wrapper:hover {
    animation-play-state: paused;
}

.infinity-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    color: var(--on-surface-variant);
    padding: 0 var(--spacing-lg);
    white-space: nowrap;
}

.infinity-logo i {
    font-size: 48px;
    color: var(--primary);
}

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

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

    /* Assuming we duplicate the content to loop perfectly */
}

/* --- Sections Base --- */
.section-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--spacing-xl) 48px;
}

.section-tag-text {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

/* --- About Section --- */
.about-details-text {
    font-size: clamp(24px, 4vw, 48px);
    line-height: 1.3;
    font-weight: 500;
    color: var(--on-surface);
    max-width: 1200px;
}

.about-details-text {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.6;
    font-weight: 400;
}

.about-details-text span {
    color: var(--primary);
    font-weight: 600;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-xl);
    border: 1px solid var(--outline);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Services & Ventures Section --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.venture-logo-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--on-surface);
}

.venture-logo-placeholder i {
    font-size: 32px;
    color: var(--primary);
}

.venture-logo-placeholder span {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.card {
    background: var(--surface-container-low);
    border: 1px solid var(--outline);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    transition: var(--transition-smooth);
}

.card:hover {
    background: var(--surface-container);
    border-color: rgba(134, 62, 152, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card h3 {
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
}



.video-card {
    min-width: 400px;
    flex: 0 0 auto;
    background: var(--surface-container-highest);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.video-card-thumb {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card-info {
    padding: var(--spacing-md);
}

/* --- Social Post --- */
/* --- JS Animation Support --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.social-post {
    background: var(--surface-container-highest);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.post-text {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--on-surface);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.bento-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.bento-main {
    grid-column: span 2;
}

.bento-small {
    grid-column: span 1;
}

.bento-tall {
    grid-row: span 2;
    grid-column: span 1;
}

@media (max-width: 600px) {
    .bento-social-grid {
        grid-template-columns: 1fr;
    }

    .bento-main,
    .bento-small {
        grid-column: span 1;
    }
}

.media-slider-wrapper {
    position: relative;
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    /* Add hamburger menu later if needed */
    .hero-stats-container {
        position: relative;
        top: auto;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
        padding-top: var(--spacing-xl);
        padding-left: 0;
        padding-right: 0;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {

    .navbar,
    .home-hero,
    .section-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .video-card {
        min-width: 70vw;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .media-slider-wrapper {
        padding: 0 40px;
    }

    .slider-arrow-left {
        left: -12px !important;
        top: 24vw !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .slider-arrow-right {
        right: -12px !important;
        top: 24vw !important;
        width: 40px !important;
        height: 40px !important;
    }

    .count-main-wrapper {
        font-size: 32px;
    }

    .total-text {
        font-size: 14px;
        margin-bottom: 4px;
    }
}

/* --- Footer (Luke's Style) --- */
.footer {
    padding: var(--spacing-xxl) 48px var(--spacing-md);
    background-color: var(--surface-container-lowest);
    border-top: 1px solid var(--outline);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.footer-cta-text {
    font-size: clamp(40px, 8vw, 120px);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--on-surface);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.footer-btn {
    font-size: 24px;
    padding: 16px 40px;
    border-radius: var(--radius-full);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--outline);
}

.footer-col h4 {
    font-size: 14px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.footer-col p,
.footer-col a {
    color: var(--on-surface-variant);
    font-size: 16px;
    display: block;
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-bottom p {
    font-size: 14px;
    margin-bottom: 0;
}

/* --- Media Scroll Slider --- */
.media-scroll-container {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 0 auto;
    width: max-content;
    max-width: 100%;
}

.media-scroll-container::-webkit-scrollbar {
    display: none;
}

.media-scroll-container>* {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.arrow-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--on-surface);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrow-btn:hover {
    background: var(--surface-container-high);
    border-color: rgba(255, 255, 255, 0.3);
}