/* Modern CSS Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-red: #ED1C24;
    --accent-yellow: #FFD100;
    --text-dark: #111827;
    --text-light: #6B7280;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-dark: #1F2937;
    --gradient-hero: linear-gradient(135deg, rgba(237, 28, 36, 0.05) 0%, rgba(255, 209, 0, 0.05) 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(237, 28, 36, 0.2);
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --font-heading: 'Outfit', sans-serif;
    /* Modern Heading Font */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;700&display=swap');

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    /* Reduced generic padding */
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        /* Tighter padding on mobile */
    }
}

/* Modern Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    /* Spaced out layout */
    align-items: center;
    position: relative;
    width: 100%;
}

.logo-container img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0.5rem;
    transition: color 0.3s ease;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--primary-red);
}

.nav-links a::after {
    content: none;
    /* Removing previous underline effect */
}

/* New CTA Button Style in Nav */
.nav-cta {
    background: var(--primary-red);
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 99px;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.2);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(237, 28, 36, 0.3);
    background: #c4131a;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: none !important;
        /* Hide hamburger */
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        /* Force single line */
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 0;
        width: 100%;
        border: none;
        justify-content: center;
        gap: 0.5rem;
        /* Tighter gap */
        border-radius: 0;
        align-items: center;
    }

    .nav-links li {
        width: auto;
        flex-shrink: 0;
    }

    .nav-links a {
        font-size: 0.8rem;
        /* Smaller font */
        padding: 0.4rem 0.5rem;
        white-space: nowrap;
    }

    /* Remove button styling on mobile to save space, just make it text */
    .nav-cta {
        background: transparent !important;
        color: var(--primary-red) !important;
        padding: 0.4rem 0.5rem !important;
        box-shadow: none !important;
        font-weight: 700 !important;
        border: 1px solid var(--primary-red);
        /* distinct border instead */
    }

    .nav-cta:hover {
        transform: none;
        box-shadow: none;
    }

    .logo-container img {
        height: 60px;
        /* Keep logo decent size */
    }
}

/* Ultra-Modern Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 3rem;
    /* Reduced top padding */
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

/* Dynamic Animated Background - Enhanced Visibility */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 209, 0, 0.4), transparent 70%);
    /* Stronger Yellow */
    filter: blur(60px);
    /* Sharper blur */
    animation: moveOrb1 15s infinite alternate ease-in-out;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(237, 28, 36, 0.25), transparent 70%);
    /* Stronger Red */
    filter: blur(60px);
    animation: moveOrb2 20s infinite alternate ease-in-out;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(237, 28, 36, 0.1), transparent 70%);
    filter: blur(80px);
    animation: moveOrb2 20s infinite alternate ease-in-out;
    z-index: 1;
}

@keyframes moveOrb1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

@keyframes moveOrb2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-100px, -50px) scale(1.1);
    }
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    position: relative;
    z-index: 10;
}

.badge {
    background: #ffe4e6;
    color: var(--primary-red);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: none;
    line-height: 1;
}

.hero h1 {
    font-size: 3.5rem;
    /* Mobile base */
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    letter-spacing: -0.04em;
    line-height: 1.1;
    font-weight: 800;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
        /* Increased for impact */
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }

    .hero h1 br {
        display: none;
    }

    .hero-content .badge {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .hero p {
        font-size: 0.75rem;
        /* Very small but readable */
        margin-bottom: 0.75rem;
        line-height: 1.4;
        padding: 0;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        color: #4b5563;
        /* Slight contrast tweak */
    }

    .hero {
        padding-top: 0.5rem;
        min-height: auto;
        padding-bottom: 2rem;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 5.5rem;
        /* Desktop */
    }
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c4131a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 5px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.5rem;
    }
}

.cta-button {
    background: var(--primary-red);
    color: white !important;
    padding: 1.2rem 3rem;
    border-radius: 99px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(237, 28, 36, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    z-index: 20;
    position: relative;
    letter-spacing: 0.02em;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(237, 28, 36, 0.4);
    background: linear-gradient(135deg, #c4131a 0%, var(--primary-red) 100%);
}

/* Glassy Stats - Ultra Modern */
/* Glassy Stats - Ultra Modern */
.hero-stats {
    margin-top: 6rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 2 per row */
    gap: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        /* Desktop: All in one line */
        gap: 2rem;
    }
}

.stat-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.5rem 1rem;
    /* Reduced padding for mobile */
    border-radius: 1.5rem;
    /* Slightly smaller radius for mobile */
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    width: 100%;
    /* Full width of grid cell */
    min-width: 0;
    /* Prevent overflow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

@media (min-width: 1024px) {
    .stat-box {
        padding: 2.5rem 2rem;
        border-radius: 2rem;
    }
}

/* Hover Effect */
.stat-box:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 30px 60px -12px rgba(237, 28, 36, 0.15),
        0 0 0 1px rgba(237, 28, 36, 0.1) inset;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
}

/* Stat Typography */
.stat-box div:first-child {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    /* Smaller font for mobile */
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-dark) 30%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
    .stat-box div:first-child {
        font-size: 3.5rem;
        margin-bottom: 0.75rem;
    }
}

.stat-box div:last-child {
    color: var(--text-light);
    font-size: 0.7rem;
    /* Smaller font for mobile */
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .stat-box div:last-child {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
}

/* Cleanup: Remove the flex centering hack */
.hero-stats:after {
    content: none;
}

/* Dark Tech Stack Section */
.tech-stack-section {
    padding: 8rem 0;
    background: #0f172a;
    /* Deep slate */
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 20;
}

/* Subtle Grid Background */
.tech-stack-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

/* Glowing Orb */
.tech-stack-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.15), transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.tech-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.tech-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-header p {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.8;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.tech-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tech-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
    /* Blue distinct from brand red for tech feel */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tech-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #60a5fa;
    font-size: 1.5rem;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.tech-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-stat {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-heading);
    display: block;
    white-space: nowrap;
    margin-top: auto;
}

.highlight-text {
    color: #60a5fa;
    /* Tech blue */
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

/* 3D Features Cards */
.features {
    padding: 8rem 0;
    background: var(--bg-light);
}

.features h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: rgba(237, 28, 36, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    /* Squircle */
    font-size: 2rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    /* Ensure flex is applied to center icon */
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Partner Cards - Clean & Minimal */
.partners-section {
    background: white !important;
}

.partner-card {
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.partner-card:hover {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-soft);
}

/* Experience It Live - CTA Section */
.experience-live-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    position: relative;
}

.experience-live-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(237, 28, 36, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Footer */
footer {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- ADVANCED ANIMATIONS --- */

/* Base settings for scroll animations */
.fade-on-scroll {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Directions */
.fade-up {
    transform: translateY(60px);
}

.fade-left {
    transform: translateX(-60px);
}

.fade-right {
    transform: translateX(60px);
}

.scale-up {
    transform: scale(0.9);
}

/* Active State */
.fade-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Hero Load Animation (Staggered) */
.animate-stagger-1 {
    animation: fadeInUp 0.8s ease-out forwards 0.1s;
    opacity: 0;
}

.animate-stagger-2 {
    animation: fadeInUp 0.8s ease-out forwards 0.3s;
    opacity: 0;
}

.animate-stagger-3 {
    animation: fadeInUp 0.8s ease-out forwards 0.5s;
    opacity: 0;
}

.animate-stagger-4 {
    animation: fadeInUp 0.8s ease-out forwards 0.7s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Pulse Animation for badge */
@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.2);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(237, 28, 36, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(237, 28, 36, 0);
    }
}