/*----------------------------------------------------------
    1. Drone Landing Page Specific Styles (Dark Mode, Red Accent)
    This file contains all styles for the landing page demo.
------------------------------------------------------------*/

/* Base Dark Mode Settings */
.dark-mode-body {
    background-color: #1a1a1a; /* Very dark background */
    color: #e0e0e0; /* Light text for contrast */
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Custom Dark Navbar */
.bg-dark-custom {
    background-color: #0d0d0d !important; /* Even darker for navbar/footer */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
}

.bg-dark-custom .navbar-brand .logo-apex {
    color: #f8f9fa; /* Light text for logo */
}

.bg-dark-custom .navbar-brand .logo-template {
    color: var(--bs-danger); /* Red accent for logo */
}

/* Hero Section */
.drone-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('../images/drone-bg.webp') no-repeat center center / cover; /* Background image for hero, use a relevant drone background */
    min-height: 100vh;
    padding-top: 100px; /* Adjust for fixed navbar */
    position: relative;
    overflow: hidden; /* To handle image animations */
}

.hero-main-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-tagline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
}

.discount-badge .badge {
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: var(--bs-danger) !important;
    animation: flash-sale 1.5s infinite alternate; /* Dynamic flash effect */
}

@keyframes flash-sale {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

.price-info .old-price {
    font-size: 1.5rem;
    color: #a0a0a0;
    text-decoration: line-through;
}

.price-info .current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-danger);
}

.drone-image {
    max-width: 90%;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5)); /* Red glow effect */
}

/* Pulse effect for button */
.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Features Section */
.drone-features-section {
    background-color: #0d0d0d !important; /* Very dark background for features */
}

.drone-features-section .section-title {
    color: var(--text-color-light);
}

.drone-features-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.feature-card-drone {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-card-drone:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
    background-color: #2a0000; /* Slightly lighter red on hover */
}

.feature-card-drone i {
    color: var(--bs-danger);
}

.feature-card-drone .feature-title {
    color: var(--text-color-light);
    font-size: 1.5rem;
    margin-top: 15px;
}

.feature-card-drone .feature-description {
    color: rgba(255, 255, 255, 0.7);
}


/* Countdown & Scarcity Section */
.countdown-scarcity-section {
    background-color: #121212; /* Slightly different dark background */
}

.countdown-title {
    color: var(--bs-danger);
    font-size: 2.2rem;
    font-weight: 700;
}

.countdown-item {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 0 10px;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color-light);
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-top: 5px;
}

.scarcity-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.scarcity-text .fa-users, .scarcity-text .fa-box-open {
    color: var(--bs-danger);
}

.controller-image {
    max-width: 80%;
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.4));
}

/* Order Form Section */
.order-form-section {
    background-color: #0d0d0d;
}

.order-form-card {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-main-title {
    color: var(--bs-danger);
    font-weight: 700;
}

.order-form-section .form-label {
    color: var(--text-color-light);
    font-weight: 500;
    margin-bottom: 8px;
}

.order-form-section .form-control {
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: var(--text-color-light);
    padding: 12px 15px;
    border-radius: 8px;
}

.order-form-section .form-control:focus {
    background-color: #3a3a3a;
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.3);
    color: var(--text-color-light);
}

.order-form-section .form-control::placeholder {
    color: #888;
}

.order-form-section .btn-danger {
    background-color: var(--bs-danger) !important;
    border-color: var(--bs-danger) !important;
    font-weight: 600;
    padding: 15px 30px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.order-form-section .btn-danger:hover {
    background-color: #e00000 !important; /* Slightly darker red on hover */
    transform: translateY(-3px);
}

/* Footer */
.drone-footer {
    background-color: #0d0d0d !important;
    border-top: 1px solid rgba(255, 0, 0, 0.2);
}

.drone-footer .social-links a:hover {
    color: var(--bs-danger) !important;
}

/* NEW: Quantity Stepper Styles */
.quantity-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden; /* To make buttons and input look cohesive */
    max-width: 200px;
    margin: auto;
}

.quantity-stepper .quantity-btn {
    background-color: #2a2a2a;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-stepper .quantity-btn:hover {
    background-color: #3a3a3a;
}

.quantity-stepper .quantity-input {
    flex-grow: 1; /* Make input take up remaining space */
    text-align: center;
    background-color: #1a1a1a;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    pointer-events: none; /* Prevent manual text input */
}

/* -------------------------------------------------------------------------------------------------- */
/* Scroll to Top Button Styles */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--bs-danger);
    color: #fff;
    font-size: 1.5rem;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

/* -------------------------------------------------------------------------------------------------- */
/* UPDATED: Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .drone-hero-section {
        padding-top: 80px;
        min-height: 80vh;
    }
    .hero-main-title {
        font-size: 2.5rem;
    }
    .hero-tagline {
        font-size: 1rem;
    }
    .discount-badge .badge {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    .price-info .old-price {
        font-size: 1.2rem;
    }
    .price-info .current-price {
        font-size: 2rem;
    }
    .drone-image {
        max-width: 100%;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    /* FIX: Reduce countdown font size on mobile */
    .countdown-value {
        font-size: 1.8rem;
    }
    .countdown-label {
        font-size: 0.7rem;
    }
    .countdown-item {
        padding: 8px 10px;
        min-width: 60px;
    }
    .scarcity-text {
        font-size: 1rem;
    }
    .controller-image {
        max-width: 100%;
        margin-top: 30px;
    }
    .order-form-card {
        padding: 30px;
    }
    .form-main-title {
        font-size: 1.8rem;
    }
    .order-form-section .btn-danger {
        padding: 12px 25px;
        font-size: 1rem;
    }
    /* FIX: Reduce scroll to top button size on mobile */
    #scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}