/* ============================================
   NOVARIDE - ULTRA-PREMIUM PAGES
   Tesla-Level, World-Class Page Designs
   ============================================ */

/* ========== CINEMATIC HERO SECTION ========== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--obsidian-black);
}

.home-hero {
    padding-top: 100px;
}

/* Hero Background Effects */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
    opacity: 0.6;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--nova-green);
    border-radius: 50%;
    opacity: 0.5;
    animation: particleFloat 10s ease-in-out infinite;
    box-shadow: 0 0 10px var(--nova-green);
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 80%;
    animation-delay: 4s;
    animation-duration: 11s;
}

.particle:nth-child(4) {
    top: 70%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 14s;
}

.particle:nth-child(5) {
    top: 45%;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 13s;
}

.particle:nth-child(6) {
    top: 85%;
    left: 30%;
    animation-delay: 5s;
    animation-duration: 16s;
}

.particle:nth-child(7) {
    top: 15%;
    left: 60%;
    animation-delay: 2.5s;
    animation-duration: 10s;
}

.particle:nth-child(8) {
    top: 50%;
    left: 90%;
    animation-delay: 1.5s;
    animation-duration: 12s;
}

/* Animated Orb */
.hero-orb {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: breathe 10s ease-in-out infinite;
    filter: blur(60px);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 0 var(--space-6);
}

/* Premium Headlines */
.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.hero-title-main {
    text-shadow: 0 0 100px rgba(16, 185, 129, 0.3);
}

.text-gradient-animated {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    max-width: 600px;
    margin: 0 auto var(--space-6);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

/* Hero Stats Bar */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-top: var(--space-11);
    padding-top: var(--space-10);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    margin-top: var(--space-10);
}

.hero-image {
    width: 100%;
    max-width: 900px;
    filter: drop-shadow(0 60px 100px rgba(0, 0, 0, 0.4));
    /* Static - no floating animation for business-class elegance */
}

.hero-image-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    filter: blur(40px);
}

/* ========== SPECS BAR ========== */

.specs-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    padding: var(--space-10) 0;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.specs-bar-item {
    text-align: center;
}

.specs-bar-value {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1;
}

.specs-bar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ========== PAGE HEADERS ========== */

.scooters-header {
    position: relative;
    padding: calc(100px + var(--space-10)) 0 var(--space-10);
    text-align: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.scooters-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1200px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    transform: translate(-50%, -50%);
}

/* ========== SECTIONS ========== */

.section {
    padding: var(--space-10) 0;
    position: relative;
}

.section-dark {
    background: var(--carbon-black);
}

.section-gradient {
    background: linear-gradient(180deg, var(--obsidian-black) 0%, var(--carbon-black) 50%, var(--obsidian-black) 100%);
}

/* ========== CTA SECTIONS ========== */

.cta-section {
    position: relative;
    background: linear-gradient(180deg, var(--carbon-black) 0%, var(--obsidian-black) 100%);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    animation: breathe 10s ease-in-out infinite;
}

/* ========== PRODUCT GRIDS ========== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

/* ========== FILTERS ========== */

.filters-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
    padding: var(--space-8) 0;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.filter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.filter-select {
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 40px;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--nova-green);
    background-color: var(--glass-bg-hover);
}

/* Category Tabs - Mobile-First */
.category-tabs {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-6) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-left: var(--space-4);
    margin-left: calc(-1 * var(--space-4));
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .category-tabs {
        justify-content: center;
        padding: var(--space-8) 0;
        overflow-x: visible;
        padding-left: 0;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .category-tab {
        flex-shrink: 1;
    }
}

.category-tab {
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-tab.active {
    background: var(--nova-green);
    color: var(--void-black);
    border-color: var(--nova-green);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

/* ========== TIMELINE ========== */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: var(--space-10);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--nova-green) 0%, rgba(16, 185, 129, 0.2) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-8);
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-10) + 0px);
    width: 12px;
    height: 12px;
    background: var(--nova-green);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: var(--font-weight-bold);
    color: var(--nova-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== CONTACT PAGE ========== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-10);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-item {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-5);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: var(--glass-bg-hover);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nova-green-subtle);
    border-radius: var(--radius-lg);
    color: var(--nova-green);
    flex-shrink: 0;
}

.contact-form-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
}

/* ========== CALCULATOR ========== */

.calculator-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
}

.slider-group {
    margin-bottom: var(--space-6);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.slider-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.slider-value {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--nova-green);
}

.range-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    outline: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--nova-green) 0%, #0d9668 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

.payment-result {
    text-align: center;
    padding: var(--space-6);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xl);
    margin-top: var(--space-6);
}

.payment-amount {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--nova-green);
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
}

.payment-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: var(--space-2);
}

/* ========== FEATURED ARTICLES ========== */

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    border-radius: var(--radius-xl);
}

/* ========== SERVICE CARDS ========== */

.service-card {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-7);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nova-green-subtle);
    border-radius: var(--radius-xl);
    color: var(--nova-green);
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--nova-green);
    color: var(--void-black);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* ========== SERVICES PREMIUM GRID - TESLA LEVEL ========== */

.services-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card-premium {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.service-card-premium:hover {
    border-color: rgba(16, 185, 129, 0.25);
    transform: translateY(-6px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(16, 185, 129, 0.08);
}

.service-card-premium:hover::before {
    opacity: 1;
}

.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card-premium:hover .service-image-wrapper img {
    transform: scale(1.06);
}

.service-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

.service-card-content {
    position: relative;
    z-index: 2;
    padding: 28px;
}

.service-card-content .heading-4 {
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.service-features li {
    position: relative;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--nova-green);
    font-weight: 600;
}

@media (max-width: 900px) {
    .services-premium-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== MOBILE: DYNAMIC ACTIVE CARD HOVER EFFECT ========== */
/* On mobile, only the visible service card gets the hover effect via JS */
@media (max-width: 767px) {
    .service-card-premium.active-card {
        border-color: rgba(16, 185, 129, 0.35);
        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.35),
            0 0 25px rgba(16, 185, 129, 0.12);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .service-card-premium.active-card::before {
        opacity: 1;
    }

    .service-card-premium.active-card .service-image-wrapper img {
        transform: scale(1.05);
    }

    .service-card-premium:not(.active-card) {
        opacity: 0.7;
        transform: scale(0.95);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* ========== RESPONSIVE ========== */

/* ========== MOBILE-FIRST RESPONSIVE (pages.css) ========== */

/* Mobile base styles - default */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-bar {
    flex-direction: column;
    gap: var(--space-4);
}

.contact-grid {
    grid-template-columns: 1fr;
}

.featured-article {
    grid-template-columns: 1fr;
}

.service-card {
    flex-direction: column;
}

.section {
    padding: var(--space-10) 0;
}

/* Hero CTA Mobile */
.hero-cta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.hero-cta .btn {
    width: 100%;
    max-width: 300px;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .hero-stats {
        display: flex;
        justify-content: center;
        gap: var(--space-8);
    }

    .specs-bar {
        flex-direction: row;
        gap: var(--space-8);
        flex-wrap: wrap;
    }

    .hero-cta {
        flex-direction: row;
    }

    .hero-cta .btn {
        width: auto;
        max-width: none;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero-stats {
        gap: var(--space-12);
        margin-top: var(--space-11);
        padding-top: var(--space-10);
    }

    .specs-bar {
        gap: var(--space-12);
    }

    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }

    .featured-article {
        grid-template-columns: 1fr 1fr;
    }

    .service-card {
        flex-direction: row;
    }
}

/* ========== SCOOTER DETAIL MOBILE-FIRST FIXES ========== */

/* Mobile-first: single column hero grid */
.product-hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
}

.product-hero-image {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-hero-info {
    padding: 0 var(--mobile-container-padding, 1.25rem);
}

.product-main-img {
    max-width: 280px !important;
    width: auto;
    display: block;
    margin: 0 auto;
}

.thumbnail-strip {
    justify-content: center;
}

.color-options-premium {
    justify-content: center;
}

.btn-group {
    flex-direction: column;
    align-items: stretch;
}

.btn-group .btn {
    width: 100%;
}

/* Tablet and up: restore layout */
@media (min-width: 768px) {
    .product-main-img {
        max-width: 400px !important;
    }
}

/* Desktop: 2 column grid */
@media (min-width: 1024px) {
    .product-hero-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto 1fr auto;
        text-align: left;
        align-items: stretch;
    }

    .product-hero-image {
        order: 0;
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .product-hero-header {
        grid-column: 2;
    }

    .product-hero-selectors {
        grid-column: 1;
        grid-row: 3;
    }

    .product-hero-options {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        align-self: end;
    }

    .product-hero-options .trust-strip {
        margin-top: 16px;
    }

    .product-hero-info {
        padding: 0;
    }

    .product-main-img {
        max-width: 600px !important;
    }

    .thumbnail-strip,
    .color-options-premium {
        justify-content: flex-start;
    }

    .btn-group {
        flex-direction: row;
        align-items: center;
    }

    .btn-group .btn {
        width: auto;
    }
}

/* ========== ACCESSORY CARDS ALIGNMENT ========== */

/* Accessory cards - flex layout for consistent alignment */
.accessory-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card title - fixed height for alignment */
.accessory-card .card-title {
    min-height: 2em;
    display: flex;
    align-items: flex-start;
}

/* Card text - flex grow to push remaining content to bottom */
.accessory-card .card-text {
    flex: 1;
    min-height: 3em;
}

/* Tags container - fixed position */
.accessory-card .flex.gap-2.mt-3 {
    min-height: 40px;
    align-items: center;
}

/* Price - auto margin to push to bottom */
.accessory-card .product-price {
    margin-top: auto;
    padding-top: var(--space-4);
}

/* Button stays at the very bottom */
.accessory-card .btn {
    margin-top: var(--space-4);
}

/* Accessory card badge - always visible above image */
.accessory-card .product-badge {
    z-index: 50;
    position: absolute;
    top: 16px;
    left: 16px;
}

.accessory-card .card-image {
    z-index: 1;
    cursor: pointer;
}

.accessory-card:hover .product-badge {
    z-index: 100;
}

/* ============================================
   TRUST SECTION - PREMIUM SVG ICONS
   Elegant thin-stroke icons with subtle hover
   ============================================ */

.trust-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--nova-green);
    opacity: 0.85;
    transition: all 0.4s ease;
}

.trust-card:hover .trust-icon {
    opacity: 1;
    transform: scale(1.1);
}