/* Global Reset & Box Sizing */
:root {
    --bg-color: #0d0d0d;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --primary: #ff1801;
    /* F1 Red */
    --accent: #00f0ff;
    /* Tech Cyan */
    --gradient-main: linear-gradient(135deg, #ff1801 0%, #ff5e00 100%);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Formula1', sans-serif;
    --font-subheading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 80px;
}

@font-face {
    font-family: 'Formula1';
    src: url('../fonts/Formula1-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: normal;
    text-transform: uppercase;
}

h2 {
    font-family: var(--font-subheading);
    font-weight: 700;
}

h3 {
    font-family: var(--font-subheading);
    font-weight: 700;
}

.logo-text {
    font-family: 'Formula1', sans-serif;
}

h1 {
    font-family: 'Formula1', sans-serif;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* Utils */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary);
}

.tech-highlight {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-subheading);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 24, 1, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 24, 1, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Navigation */
nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    background: radial-gradient(circle at 70% 30%, rgba(255, 24, 1, 0.15) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-flex {
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}


.phone-mockup {
    width: 280px;
    /* Reduced from 350px */
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    z-index: 2;
    border-radius: 40px;
    border: 6px solid #1a1a1a;
}


/* Features Grid */
.features {
    padding: 100px 0;
    background: #0f0f0f;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* AI Section */
.ai-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(to bottom, #0d0d0d, #090909);
    position: relative;
    overflow: hidden;
}

.ai-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 1;
}

.ai-content {
    position: relative;
    z-index: 2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-top: 2px solid var(--primary);
    margin: auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close-modal:hover {
    color: white;
}

.modal input[type="email"] {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
}

.modal input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile First Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        /* Adjusted for mobile fit */
    }

    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-content {
        order: 1;
        width: 100%;
        margin-bottom: 30px;
    }

    .hero-image {
        order: 2;
        width: 100%;
        margin-top: 0;
    }


    .phone-mockup {
        width: 220px;
        /* Reduced mobile size too */
    }

    /* Clean up Nav for Mobile */
    .logo img {
        height: 32px;
    }

    .logo-text {
        font-size: 0.85rem !important;
    }

    nav .btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
        min-width: auto;
    }

    .nav-links {
        display: none;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px;
        /* Prevent them from becoming too wide on larger mobile screens */
        margin: 0 auto;
    }

    .hero-content .btn {
        display: block;
        width: 100%;
        margin: 0;
    }

    .btn-secondary {
        margin-left: 0;
    }
}

/* Floating Elements (Leaves equivalent) */
.bg-shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.shape-1 {
    background: var(--primary);
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.shape-2 {
    background: var(--accent);
    width: 250px;
    height: 250px;
    bottom: 100px;
    left: -50px;
    border-radius: 50%;
}



/* Carousel Arrows */
.carousel-nav {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    user-select: none;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.carousel-nav.left {
    left: 20px;
}

.carousel-nav.right {
    right: 20px;
}

/* 3D Carousel Styling */
.carousel-3d-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    perspective: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-3d-item {
    position: absolute;
    width: 260px;
    height: auto;
    transition: all 0.5s ease-in-out;

    /* Phone Styling moved to item */
    border-radius: 40px;
    border: 6px solid #1a1a1a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    background: #000;
    z-index: 0;
    opacity: 0;
    transform: translateX(0) scale(0.8);
}

.carousel-3d-item.active {
    opacity: 1;
    z-index: 10;
    transform: translateX(0) scale(1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.carousel-3d-item.prev {
    opacity: 0.6;
    z-index: 5;
    transform: translateX(-70%) scale(0.85) rotateY(15deg);
}

.carousel-3d-item.next {
    opacity: 0.6;
    z-index: 5;
    transform: translateX(70%) scale(0.85) rotateY(-15deg);
}

.carousel-3d-item.hidden {
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .carousel-3d-container {
        height: 500px;
        max-width: 100%;
        overflow: hidden;
    }

    .carousel-3d-item {
        width: 200px;
    }

    .carousel-3d-item.prev {
        transform: translateX(-55%) scale(0.8);
    }

    .carousel-3d-item.next {
        transform: translateX(55%) scale(0.8);
    }
}