:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary-color: #ef4444;
    --secondary-color: #b91c1c;
    --accent-color: #fca5a5;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    position: relative;
}

/* Layout & Background */
.background-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(239, 68, 68, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(185, 28, 28, 0.15) 0%, transparent 25%);
    filter: blur(40px);
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-left {
    text-align: left !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

section {
    padding: 100px 0;
}

/* Glassmorphism Utilities */
.glass-header {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.glass-card:hover {
    border-color: var(--glass-highlight);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Rendering Optimizations */
section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.hero {
    content-visibility: visible;
}

/* Header */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo .accent {
    color: var(--primary-color);
}

.desktop-nav a {
    margin-left: 30px;
    font-weight: 500;
    color: var(--text-muted);
}

.desktop-nav a:hover {
    color: var(--text-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1002;
    padding: 8px;
    border-radius: 8px;
    background: var(--glass-bg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-only {
    display: inline-flex;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    transform: translateY(20px);
    opacity: 0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-menu-overlay.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered animation delays for links */
.mobile-menu-overlay.active .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-cta {
    transition-delay: 0.5s;
}

.mobile-cta {
    margin-top: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-menu-overlay.active .mobile-cta {
    transform: translateY(0);
    opacity: 1;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button.small {
    padding: 8px 20px;
    font-size: 0.9rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.cta-button.small:hover {
    background: var(--glass-highlight);
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.cta-button.primary:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
}

.cta-button.secondary:hover {
    border-color: var(--primary-color);
    background: rgba(239, 68, 68, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    /* Account for fixed header */
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rocket-visual {
    position: absolute;
    top: -60px;
    right: -100px;
    width: 500px;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.3));
    pointer-events: none;
    will-change: transform;
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: blink var(--duration) infinite ease-in-out;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.stat-card {
    position: absolute;
    width: 180px;
    text-align: center;
    padding: 20px;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Services */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Services & Feature Cards Shared Styles */
.service-card,
.feature-card,
.testimonial-card {
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover,
.feature-card:hover,
.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px -10px rgba(239, 68, 68, 0.2);
}

.service-card::before,
.feature-card::before,
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before,
.feature-card:hover::before,
.testimonial-card:hover::before {
    opacity: 1;
}

.icon-box,
.feature-icon,
.quote-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.service-card:hover .icon-box,
.feature-card:hover .feature-icon,
.testimonial-card:hover .quote-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.service-card h3,
.feature-card h3 {
    color: var(--text-color) !important;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.service-card p,
.feature-card p,
.testimonial-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Why Us & Testimonials */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.testimonial-card {
    position: relative;
}

.quote-icon {
    color: var(--glass-border);
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.author h4 {
    font-size: 1rem;
}

.author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.glass-footer {
    background: rgba(5, 5, 5, 0.8);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 20px 0;
    max-width: 300px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 10px;
    color: white;
}

.footer-links a,
.footer-contact a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.float-animation-slow {
    animation: floatSlow 10s ease-in-out infinite;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.delay-1 {
    animation-delay: 1s;
}

.delay-2 {
    animation-delay: 2s;
}

.delay-3 {
    animation-delay: 3s;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        word-wrap: break-word;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .desktop-nav,
    .cta-button.small {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand .logo {
        display: none;
    }

    .footer-brand p {
        margin: 20px auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links a,
    .footer-contact a {
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    section {
        padding: 60px 0;
    }
}

/* Video Embed */
.video-wrapper {
    margin-top: 60px;
    padding: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.video-placeholder:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.play-btn {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.video-placeholder:hover .play-btn {
    transform: scale(1.1);
}

.play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

/* Enhanced Feature Cards (Why Us) */


/* Bento Grid Section */
.bento-section {
    padding-top: 0;
    padding-bottom: 80px;
}

.bento-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: 400px;
}



.bento-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.8;
}

.bento-item:hover video {
    transform: scale(1.05);
    opacity: 1;
}

.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Show overlay title on hover */
.bento-item:hover .bento-overlay {
    opacity: 1;
    transform: translateY(0);
}

.bento-overlay h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, #fff, #ffcccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(10px);
    transition: transform 0.4s ease 0.1s;
}

.bento-item:hover .bento-overlay h3 {
    transform: translateY(0);
}

.bento-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    cursor: pointer;
    flex: 1;
    min-width: 200px;
    /* Fallback to prevent items from disappearing */
}



/* Ensure video positioning is consistent */
.box-1 video,
.box-2 video,
.box-3 video,
.box-4 video {
    object-position: center;
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        flex-direction: column;
        height: auto;
    }

    .bento-item {
        height: 300px;
        width: 100%;
        flex: none;
    }

    /* On mobile, show title always or keep hover? 
       Usually mobile needs a visual cue. Let's keep it visible slightly or just rely on tap.
       For now, keeping same behavior but title might be nice to show always on mobile.
    */
    .bento-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    }

    .bento-overlay h3 {
        transform: translateY(0);
        font-size: 1.5rem;
    }
}





/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 35px;
    width: auto;
    object-fit: contain;
    display: block;
}









/* Testimonial Carousel */
.testimonial-carousel {
    overflow-x: auto;
    padding: 40px 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    cursor: grab;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.testimonial-carousel:active {
    cursor: grabbing;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding-left: 30px;
    align-items: stretch;
}

/* Animation state handled by JS now */

.testimonial-carousel .testimonial-card {
    flex: 0 0 450px;
    min-width: 450px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.testimonial-carousel .quote-icon {
    margin: 0 0 20px;
}

.testimonial-carousel .testimonial-card p {
    font-size: 1.1rem;
    font-style: normal;
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1;
}

.testimonial-carousel .author {
    margin-top: auto;
}



@media (max-width: 768px) {
    .testimonial-carousel .testimonial-card {
        flex: 0 0 280px;
        min-width: 280px;
        padding: 20px;
    }

    .testimonial-carousel .testimonial-card p {
        font-size: 0.95rem;
    }
}

/* Alignment Utilities */
.align-center {
    align-items: center;
}

/* Client Logo Ribbon */
.logo-ribbon {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
}

.logo-track img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.logo-track img:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 40px));
    }
}