/* 
   EliteRide Premium Theme - Style.css
   Color Palette: Deep Charcoal, Midnight Black, Gold Accents, Cyan Highlights
*/

:root {
    --bg-dark: #0f1115;
    --bg-darker: #08090b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);

    --primary-color: #d4af37;
    /* Luxury Gold */
    --primary-hover: #f1c40f;
    --accent-color: #00d2ff;
    /* Neon Cyan for tech feel */

    --text-main: #f0f0f0;
    --text-muted: #a0a0a5;

    --success: #2ecc71;
    --whatsapp: #25D366;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 span {
    color: var(--primary-color);
}

p {
    color: var(--text-muted);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary,
.btn-primary-small,
.btn-secondary,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.btn-primary-small {
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: var(--bg-darker);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-darker);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover,
.btn-primary-small:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(8, 9, 11, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    /* adjusted for longer text */
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    /* soft edges */
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary-small) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-small):hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    /* Hero Background Image */
    background: url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(8, 9, 11, 0.95) 0%, rgba(8, 9, 11, 0.7) 50%, rgba(8, 9, 11, 0.3) 100%);
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 1;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

/* .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(46, 204, 113, 0.3);
    margin-bottom: 1.5rem;
} */

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(59, 172, 17, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* About / Car Section */
.about {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.car-image-card {
    padding: 1rem;
}

.car-image-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.car-details h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.driver-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.driver-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.rating {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.rating span {
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.icon-box {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    margin-bottom: 0.2rem;
}

.feature-item p {
    font-size: 0.9rem;
}

/* Fleet Sub-System */
.fleet-section {
    padding: 6rem 0;
    background-color: var(--bg-darker);
    position: relative;
    background-image: radial-gradient(circle at 100% 0%, rgba(0, 210, 255, 0.05) 0%, transparent 40%);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.fleet-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.fleet-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 200px;
}

.fleet-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.fleet-card:hover .fleet-img-wrapper img {
    transform: scale(1.05);
}

.fleet-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(212, 175, 55, 0.9);
    color: var(--bg-darker);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.fleet-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.fleet-info p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fleet-info p i {
    color: var(--accent-color);
}

.btn-small {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 1rem;
}

.custom-select {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.custom-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.custom-select option {
    background: var(--bg-darker);
    color: white;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e0e0e0;
}

.map-input-group {
    display: flex;
    gap: 10px;
}

.map-input-group .map-btn {
    white-space: nowrap;
    padding: 0 1.5rem;
    width: auto;
}

input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.result-box {
    text-align: center;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
}

.result-box.hidden {
    display: none;
}

.result-box h4 {
    color: var(--text-muted);
    font-weight: 500;
}

.result-box h2 {
    color: var(--primary-color);
    font-size: 3rem;
    margin: 0.5rem 0;
}

.small-text {
    font-size: 0.8rem;
}

/* Booking Section */
.booking-section {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

.submit-btn {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

/* Payment Section */
.payment-section {
    padding: 6rem 0;
    background-color: var(--bg-darker);
    position: relative;
}

.payment-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: white;
    /* Clean white background for the QR container */
    padding: 2.5rem;
    border-radius: 24px;
    color: #333;
    /* Dark text for the light background */
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.qr-profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.qr-header h3 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 500;
}

.qr-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 16px;
    background: #fff;
}

.scanner-text {
    margin-top: 1rem;
}

.upi-id {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    font-weight: 500;
}

.scan-instructions {
    font-size: 1rem;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

/* Footer */
footer {
    background-color: #050608;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-brand {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* Floating Action WA Button */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(8, 9, 11, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--card-border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        color: white;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-contact p {
        display: flex;
        justify-content: center;
    }

    .map-input-group {
        flex-direction: column;
    }

    .map-input-group .map-btn {
        width: 100%;
        padding: 1rem;
    }
}

/* Map Search */
.map-search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.map-search-input {
    flex-grow: 1;
    margin-bottom: 0;
}

.map-search-btn {
    padding: 0 1.5rem;
    white-space: nowrap;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-dark);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    position: relative;
    border: 1px solid var(--primary-color);
}

.close-modal {
    color: var(--text-muted);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}