/* ========================================
   OverRide Landing Page Styles (No Image Version)
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(255, 82, 82, 0.3);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1E1E1E;
}

::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF5252;
}

/* Hide scrollbar for screenshot slider */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========================================
   Animations
   ======================================== */

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, 0) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, 0) scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Gradient Flow Animation - Subtle neutral */
.gradient-flow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.02) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.01) 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: particle-float 12s ease-in-out infinite;
}

.particle::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(4px);
}

/* Particle positions and delays */
.particle:nth-child(1)  { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 14s; }
.particle:nth-child(2)  { left: 20%; top: 60%; animation-delay: 2s; animation-duration: 12s; }
.particle:nth-child(3)  { left: 35%; top: 30%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4)  { left: 50%; top: 70%; animation-delay: 1s; animation-duration: 13s; }
.particle:nth-child(5)  { left: 65%; top: 25%; animation-delay: 3s; animation-duration: 15s; }
.particle:nth-child(6)  { left: 75%; top: 55%; animation-delay: 5s; animation-duration: 11s; }
.particle:nth-child(7)  { left: 85%; top: 35%; animation-delay: 2.5s; animation-duration: 14s; }
.particle:nth-child(8)  { left: 15%; top: 80%; animation-delay: 6s; animation-duration: 12s; }
.particle:nth-child(9)  { left: 45%; top: 15%; animation-delay: 3.5s; animation-duration: 16s; }
.particle:nth-child(10) { left: 90%; top: 75%; animation-delay: 1.5s; animation-duration: 13s; }

/* Varying sizes */
.particle:nth-child(2), .particle:nth-child(5), .particle:nth-child(8) {
    width: 6px;
    height: 6px;
}

.particle:nth-child(3), .particle:nth-child(7) {
    width: 3px;
    height: 3px;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.25;
    }
    75% {
        transform: translateY(-40px) translateX(5px);
        opacity: 0.5;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

/* Marker Animations for Group Ride */
@keyframes marker-1 {
    0%, 100% {
        top: 65%;
        left: 70%;
    }
    25% {
        top: 55%;
        left: 60%;
    }
    50% {
        top: 45%;
        left: 50%;
    }
    75% {
        top: 55%;
        left: 55%;
    }
}

@keyframes marker-2 {
    0%, 100% {
        top: 70%;
        left: 65%;
    }
    25% {
        top: 60%;
        left: 55%;
    }
    50% {
        top: 50%;
        left: 45%;
    }
    75% {
        top: 60%;
        left: 50%;
    }
}

@keyframes marker-3 {
    0%, 100% {
        top: 75%;
        left: 60%;
    }
    25% {
        top: 65%;
        left: 50%;
    }
    50% {
        top: 55%;
        left: 40%;
    }
    75% {
        top: 65%;
        left: 45%;
    }
}

@keyframes marker-4 {
    0%, 100% {
        top: 80%;
        left: 55%;
    }
    25% {
        top: 70%;
        left: 45%;
    }
    50% {
        top: 60%;
        left: 35%;
    }
    75% {
        top: 70%;
        left: 40%;
    }
}

.animate-marker-1 {
    animation: marker-1 8s ease-in-out infinite;
}

.animate-marker-2 {
    animation: marker-2 8s ease-in-out infinite 0.5s;
}

.animate-marker-3 {
    animation: marker-3 8s ease-in-out infinite 1s;
}

.animate-marker-4 {
    animation: marker-4 8s ease-in-out infinite 1.5s;
}

.marker-1, .marker-2, .marker-3, .marker-4 {
    transition: all 0.3s ease;
}

/* ========================================
   Section Transitions - Smooth Flow
   ======================================== */

/* Unified dark background - transparent to allow glow blending */
.section-flow,
.section-flow-alt {
    background: transparent;
    overflow-x: clip;
}

/* Fade in animation for AOS-like effect */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-20px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(20px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ========================================
   Navigation
   ======================================== */

#navbar {
    background: transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF5252;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, #FF5252 0%, #E53935 100%);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 82, 82, 0.3);
}

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

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 82, 82, 0.3);
}

/* Mobile touch optimization */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary {
        -webkit-tap-highlight-color: transparent;
    }

    .btn-primary:active {
        transform: scale(0.98);
    }

    .btn-secondary:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.2);
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Store Buttons - Neutral style for App Store & Google Play */
.btn-store {
    background: rgba(40, 40, 40, 0.9);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-store:hover {
    background: rgba(60, 60, 60, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-store:active {
    transform: translateY(0);
    background: rgba(50, 50, 50, 0.95);
}

@media (max-width: 768px) {
    .btn-store {
        -webkit-tap-highlight-color: transparent;
    }

    .btn-store:active {
        transform: scale(0.98);
    }
}

/* ========================================
   Phone Mockup
   ======================================== */

.phone-mockup {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
    border-radius: 44px;
    padding: 10px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Side buttons */
.phone-mockup::before {
    content: '';
    position: absolute;
    right: -2px;
    top: 100px;
    width: 3px;
    height: 32px;
    background: linear-gradient(180deg, #3a3a3a, #2a2a2a);
    border-radius: 0 2px 2px 0;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 145px;
    width: 3px;
    height: 64px;
    background: linear-gradient(180deg, #3a3a3a, #2a2a2a);
    border-radius: 0 2px 2px 0;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 28px;
    background: #000;
    border-radius: 18px;
    z-index: 50;
}

/* Camera dot inside Dynamic Island */
.dynamic-island::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #1a2a1a 30%, #0a150a 100%);
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(0, 200, 0, 0.2);
}

/* Home Indicator */
.home-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    z-index: 50;
}

/* Status Bar */
.status-bar {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 40;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.status-time {
    margin-left: 6px;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
}

/* ========================================
   Feature Cards
   ======================================== */

.feature-card {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Category Cards */
.category-card {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .phone-mockup {
        transform: scale(1);
        transform-origin: center top;
        margin-bottom: 0;
    }

    .feature-card {
        padding: 24px;
    }

    .category-card {
        padding: 16px 12px;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }

    .phone-mockup {
        transform: scale(0.95);
        transform-origin: center top;
        margin-bottom: -29px; /* Compensate for scale (580 * 0.05) */
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .category-card {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .category-card .w-12 {
        width: 40px;
        height: 40px;
    }

    .category-card svg {
        width: 20px;
        height: 20px;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .phone-mockup {
        transform: scale(0.85);
        transform-origin: center top;
        margin-bottom: -87px; /* Compensate for scale (580 * 0.15) */
    }

    .feature-card {
        padding: 16px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, #FF5252, #FF7043);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glow effects */
.glow-primary {
    box-shadow: 0 0 40px rgba(255, 82, 82, 0.3);
}

.glow-text {
    text-shadow: 0 0 40px rgba(255, 82, 82, 0.5);
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1E1E1E;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(76, 175, 80, 0.3);
}

.toast.error {
    border-color: rgba(255, 82, 82, 0.3);
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    #navbar,
    #mobile-menu,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}
