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

:root {
    --bg-color: #030303;
    --bento-bg: rgba(255, 255, 255, 0.03);
    --bento-border: rgba(255, 255, 255, 0.07);
    --primary-color: #F4511E;
    --glow-color: rgba(244, 81, 30, 0.4);
    --primary-gradient: linear-gradient(135deg, #FFA726 0%, #F4511E 100%);
    --font-main: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

body.vision-theme {
    background-color: var(--bg-color);
    color: #fff;
    font-family: var(--font-main);
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    background: transparent;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: rgba(3, 3, 3, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bento-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo img {
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary) {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:not(.btn-primary):hover {
    color: #fff;
}

.btn-primary {
    background: #fff;
    color: #000 !important;
    padding: 10px 24px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, background 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #ddd;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 15vh;
}

.hero-text-container {
    text-align: center;
    z-index: 10;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-small {
    display: block;
    font-size: 3rem; /* Explicitly much smaller than 5rem */
    font-weight: 600;
    margin-top: 10px;
    opacity: 0.9;
    letter-spacing: normal;
}
.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.6);
}

/* 3D Vision Car Container */
.vision-3d-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.vision-3d-car {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: lighten;
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
    filter: drop-shadow(0 20px 50px var(--glow-color));
}

.glow-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(244, 81, 30, 0.15) 0%, transparent 60%);
    z-index: -1;
    filter: blur(60px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    z-index: 10;
    animation: fadePulse 2s infinite;
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

/* Bento Section */
.bento-section {
    padding: 120px 0;
    position: relative;
    z-index: 20;
    background: var(--bg-color); /* Cover the hero when scrolling up */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 24px;
}

.bento-card {
    background: var(--bento-bg);
    border: 1px solid var(--bento-border);
    border-radius: 32px;
    padding: 40px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s, border-color 0.4s;
}

.bento-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

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

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bento-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-box .material-icons-round {
    font-size: 28px;
    color: #fff;
}

.highlight-card .icon-box {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 10px 20px rgba(244, 81, 30, 0.3);
}

.bento-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.bento-content p {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Mockup Integration inside Bento Cards */
.bento-card.has-mockup {
    padding-bottom: 0; /* Overridden to allow mockup to sit at bottom */
}
.bento-card.has-mockup .bento-content {
    position: relative;
    z-index: 2;
    padding-bottom: 180px; /* Space for the phone to poke through */
}
.mockup-absolute {
    position: absolute;
    bottom: -10px;
    left: 20px; /* Left side (since RTL reads right to left) */
    width: 200px;
    height: 260px;
    background: #000;
    border-radius: 32px 32px 0 0;
    border: 8px solid #1a1a1a;
    border-bottom: none;
    box-shadow: -10px -10px 30px rgba(0,0,0,0.5), 0 -10px 40px rgba(244, 81, 30, 0.15);
    transform: rotate(-12deg) translateY(30px);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    overflow: hidden;
}
.bento-card:hover .mockup-absolute {
    transform: rotate(0deg) translateY(0);
}
.mockup-absolute img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom; /* Focuses on the bottom part where PTT button is */
}

/* Horizontal Bento variation */
.horizontal-card {
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.stats-content {
    display: flex;
    gap: 40px;
    flex: 1;
}

.stat-block h4 {
    font-family: var(--font-en);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-block span {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
}

/* Download Section */
.download-section {
    padding: 0 0 120px 0;
}

.download-bento {
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(244, 81, 30, 0.05));
    border-color: rgba(244, 81, 30, 0.2);
}

.download-bento h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.download-bento p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
}

.download-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #000;
    padding: 12px 32px;
    border-radius: 99px;
    text-decoration: none;
    font-family: var(--font-en);
    font-weight: 700;
    transition: transform 0.3s;
}

.store-btn:hover {
    transform: translateY(-3px);
}

.vision-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--bento-border);
    color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .span-2 {
        grid-column: span 1;
    }
    .horizontal-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-small {
        font-size: 2.2rem;
    }
    .vision-3d-container {
        width: 100%;
        height: 300px;
    }
}

/* =============================================
   3D PHONES SECTION
   ============================================= */
.phones-section {
    padding: 100px 0;
    background: #050505;
    position: relative;
    overflow: hidden;
}
.phones-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(244, 81, 30, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.phones-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-top: 60px;
}

.phone-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.phone-feature-row.reversed {
    direction: ltr;
}
.phone-feature-row.reversed .phone-feature-text {
    direction: rtl;
}

.phone-feature-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.phone-feature-text h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.phone-feature-text p {
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    font-size: 1.1rem;
    margin: 0;
}
.feat-tagline {
    color: #f4511e !important;
    font-weight: 700;
    font-size: 1rem !important;
}

/* Canvas Wrapper */
.phone-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Placeholder for screens not yet added */
.phone-placeholder {
    width: 260px;
    height: 440px;
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(244, 81, 30, 0.3);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    padding: 24px;
    transition: all 0.3s ease;
}
.phone-placeholder:hover {
    border-color: rgba(244, 81, 30, 0.6);
    background: rgba(244, 81, 30, 0.05);
}
.phone-placeholder .material-icons-round {
    font-size: 48px;
    color: rgba(244, 81, 30, 0.4);
}
.phone-placeholder p {
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .phone-feature-row,
    .phone-feature-row.reversed {
        grid-template-columns: 1fr;
        direction: rtl;
        gap: 32px;
    }
    .phone-canvas-wrapper {
        height: 380px;
    }
    .phones-grid {
        gap: 80px;
    }
}
