/* 
   =============================================
   OVARENT | Premium E-commerce Car Rental
   =============================================
*/

:root {
    /* Color Palette */
    --bg-dark: #080808;
    --bg-surface: #1A1A1A;
    --accent: #D5F000;
    --accent-hover: #e0fa19;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(26, 26, 26, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-max: 1200px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Utility */
.accent-text {
    color: var(--accent);
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(213, 240, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 56px;
    object-fit: contain;
}

#text-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.7) 40%, rgba(8,8,8,0) 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-text {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(213, 240, 0, 0.1);
    color: var(--accent);
    border: 1px solid rgba(213, 240, 0, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism Panel Component */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* Booking Widget (Deprecated / Now Horizontal Bar) */
.booking-widget {
    padding: 32px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    margin-left: auto;
}

/* Sleek Reservation Bar */
.reservation-bar-section {
    position: relative;
    margin-top: -80px;
    z-index: 10;
    padding: 0 20px;
}

.reservation-bar {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 24px;
    padding: 24px 32px;
    align-items: end;
    border-radius: var(--radius-lg);
}

.reservation-bar .form-group {
    margin-bottom: 0;
}

.reservation-bar .btn {
    height: 54px; /* match the input height */
    padding: 0 40px;
}

@media (max-width: 768px) {
    .reservation-bar {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: stretch;
    }
    
    .reservation-bar-section {
        margin-top: -40px;
    }
}

.widget-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.widget-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.8);
}

/* Customizing calendar picker icon for webkit */
::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Fleet Grid */
.grid {
    display: grid;
    gap: 32px;
}

.fleet-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.car-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-8px);
    border-color: rgba(213, 240, 0, 0.3);
}

.car-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.car-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.car-card:hover .car-image-wrapper img {
    transform: scale(1.05);
}

.car-price {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid var(--border-light);
}

.car-price span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.car-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.car-info .subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 4px;
}

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: auto;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.spec-item i {
    width: 16px;
    height: 16px;
    color: var(--text-primary);
}

/* Benefits */
.dark-bg {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.benefit-card {
    padding: 32px 24px;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: rgba(213, 240, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.icon-wrapper i {
    width: 32px;
    height: 32px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 80px 0 32px;
    background-color: var(--bg-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand p {
    margin-top: 24px;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 16px;
}

.footer ul a {
    color: var(--text-secondary);
}

.footer ul a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
}

.footer-contact i {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        margin: 0 auto 40px;
    }
    
    .hero-overlay {
        background: linear-gradient(180deg, rgba(8,8,8,0.8) 0%, rgba(8,8,8,0.95) 100%);
    }

    .booking-widget {
        margin: 0 auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, add a hamburger menu */
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .fleet-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
