/* Variables CSS */
:root {
    --primary-red: #DC0000;
    --dark-red: #A80000;
    --black: #0A0A0A;
    --dark-gray: #1A1A1A;
    --medium-gray: #2A2A2A;
    --light-gray: #9E9E9E;
    --white: #FFFFFF;
    --shadow: rgba(220, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(220, 0, 0, 0.2);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo .fresh {
    color: var(--white);
}

.logo .loc {
    color: var(--primary-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--primary-red);
}

.admin-link {
    background-color: var(--primary-red);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.admin-link::after {
    display: none;
}

.admin-link:hover {
    background-color: var(--dark-red);
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 50%, var(--black) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 0, 0, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(220, 0, 0, 0.03) 2px,
        rgba(220, 0, 0, 0.03) 4px
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 10px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(220, 0, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(220, 0, 0, 0.8)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.hero-contact {
    margin-top: 2rem;
    font-size: 1.3rem;
    color: var(--white);
}

.hero-contact i {
    color: var(--primary-red);
    margin-right: 10px;
}

.hero-contact a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.hero-contact a:hover {
    color: var(--primary-red);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    border-radius: 5px;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    box-shadow: 0 5px 20px var(--shadow);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
}

.btn-block {
    width: 100%;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--light-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Vehicles Section */
.vehicles-section {
    background-color: var(--dark-gray);
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.vehicle-card {
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 0, 0, 0.1);
    display: grid;
    grid-template-rows: 250px 1fr auto;
    height: 100%;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(220, 0, 0, 0.3);
    border-color: var(--primary-red);
}

.vehicle-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
}

.vehicle-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.vehicle-actions {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.vehicle-card .btn-primary {
    width: 100%;
}

.vehicle-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.vehicle-description {
    color: var(--light-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.vehicle-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background-color: rgba(220, 0, 0, 0.1);
    color: var(--primary-red);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(220, 0, 0, 0.3);
}

.vehicle-pricing {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(220, 0, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(220, 0, 0, 0.2);
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.price-item span:first-child {
    color: var(--light-gray);
}

.price-item span:last-child {
    color: var(--white);
    font-weight: 700;
}

.deposit-info {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(220, 0, 0, 0.2);
    color: var(--primary-red);
    font-weight: 600;
}

.vehicle-actions .btn-reserve {
    display: block;
    width: 100%;
}

.btn-reserve {
    flex: 1;
}

/* Conditions Section */
.conditions-section {
    background-color: var(--black);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.condition-card {
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(220, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.condition-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 0, 0, 0.2);
}

.condition-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.condition-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.condition-card ul {
    list-style: none;
}

.condition-card li {
    color: var(--light-gray);
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.condition-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    background-color: var(--dark-gray);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(220, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-red);
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--light-gray);
}

.contact-item a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-red);
}

/* Footer */
.footer {
    background-color: var(--black);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(220, 0, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-section p {
    color: var(--light-gray);
    margin: 0.5rem 0;
}

.footer-section i {
    color: var(--primary-red);
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(220, 0, 0, 0.1);
    color: var(--light-gray);
}

/* Modal */
.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.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    margin: 2% auto;
    padding: 2rem;
    border: 1px solid var(--primary-red);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(220, 0, 0, 0.4);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--dark-gray);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

.close {
    color: var(--light-gray);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-red);
}

.modal-content h2 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Form Styles */
.reservation-form {
    margin-top: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-gray);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--medium-gray);
    border: 1px solid rgba(220, 0, 0, 0.2);
    border-radius: 5px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(220, 0, 0, 0.3);
}

.pricing-summary {
    background: rgba(220, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 1px solid rgba(220, 0, 0, 0.2);
}

.pricing-summary h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.price-detail {
    display: flex;
    justify-content: space-between;
    margin: 0.8rem 0;
    color: var(--light-gray);
}

.price-detail.highlight {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(220, 0, 0, 0.3);
}

.price-detail.highlight span:last-child {
    color: var(--primary-red);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Chat Styles */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--shadow);
    z-index: 1500;
    transition: all 0.3s ease;
}

.chat-button:hover {
    background-color: var(--dark-red);
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    border: 1px solid var(--primary-red);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(220, 0, 0, 0.4);
    z-index: 1500;
    flex-direction: column;
    display: none;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background-color: var(--primary-red);
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1rem;
    color: var(--white);
}

.close-chat {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-chat:hover {
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--dark-gray);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 3px;
}

.chat-message {
    padding: 0.8rem;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-message.user {
    background-color: var(--primary-red);
    color: var(--white);
    align-self: flex-end;
    margin-left: auto;
}

.chat-message.bot {
    background-color: var(--medium-gray);
    color: var(--white);
    align-self: flex-start;
}

.chat-message p {
    margin: 0;
    font-size: 0.9rem;
}

.chat-input-container {
    display: flex;
    padding: 1rem;
    border-top: 1px solid rgba(220, 0, 0, 0.2);
    gap: 0.5rem;
}

.chat-input-container input {
    flex: 1;
    padding: 0.8rem;
    background-color: var(--medium-gray);
    border: 1px solid rgba(220, 0, 0, 0.2);
    border-radius: 20px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.chat-input-container button {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input-container button:hover {
    background-color: var(--dark-red);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 5px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .vehicles-grid {
        grid-template-columns: 1fr;
    }

    .conditions-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .chat-window {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 80px;
        max-height: 70vh;
    }
    
    .chat-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .chat-window {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
        bottom: 70px;
        height: 400px;
    }
    
    .chat-button {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.2rem;
    }
}
