/*
* File: style.css
* Author: AI Assistant
* Description: Stylesheet for the Car-Sharing website, featuring Glassmorphism and Neo-Brutalism.
*/

/* ---------------------------------- */
/*      1. CSS Variables & Root       */
/* ---------------------------------- */
:root {
    /* Color Palette */
    --gradient-start: #6a11cb;
    --gradient-end: #2575fc;
    --primary-accent: #ffdd00; /* Neo-Brutalism Yellow */
    --dark-text: #222222;
    --light-text: #f5f5f5;
    --body-bg: #f4f7f6;
    --dark-bg: #111111;
    --border-color: #000000;
    --card-bg: rgba(255, 255, 255, 0.25);
    --card-border: rgba(255, 255, 255, 0.18);
    --card-shadow: rgba(31, 38, 135, 0.37);

    /* Typography */
    --font-header: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    /* Effects */
    --neo-shadow: 5px 5px 0px var(--border-color);
    --neo-shadow-hover: 2px 2px 0px var(--border-color);
    --transition-smooth: all 0.3s ease-in-out;
}

/* ---------------------------------- */
/*      2. Global & Base Styles       */
/* ---------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--body-bg);
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.7;
    font-size: 1.1rem;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-header);
    color: var(--dark-text);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 4rem 1.5rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark-text);
}

.container {
    max-width: 1140px;
}

a {
    color: var(--gradient-start);
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--gradient-end);
}

/* ---------------------------------- */
/*      3. Reusable Components        */
/* ---------------------------------- */

/* --- Neo-Brutalism Button --- */
.neo-button {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    background-color: var(--primary-accent);
    color: var(--border-color);
    border: 2px solid var(--border-color);
    box-shadow: var(--neo-shadow);
    transition: var(--transition-smooth);
    padding: 0.8em 1.5em;
    text-transform: uppercase;
}

.neo-button:hover {
    box-shadow: var(--neo-shadow-hover);
    transform: translate(3px, 3px);
    color: var(--border-color);
    background-color: #ffe966; /* Slightly lighter on hover */
}

.neo-button:active {
    box-shadow: none;
    transform: translate(5px, 5px);
}

/* --- Glassmorphism Card --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px 0 var(--card-shadow);
    padding: 2rem;
    transition: var(--transition-smooth);
}

/* ---------------------------------- */
/*      4. Header & Navigation        */
/* ---------------------------------- */
.navbar.is-fixed-top {
    transition: var(--transition-smooth);
}

.navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-item .title {
    color: var(--dark-text);
    font-weight: 900;
}

.navbar-item {
    font-weight: 600;
    font-size: 1rem;
}

.navbar-burger {
    color: var(--dark-text);
}

/* ---------------------------------- */
/*      5. Section Specific Styles    */
/* ---------------------------------- */

/* --- Hero Section --- */
#hero.hero {
    position: relative;
    background-size: cover;
    background-position: center center;
}

#hero.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

#hero .hero-body {
    position: relative;
    z-index: 2;
}

#hero .title, #hero .subtitle {
    color: var(--light-text);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* --- Parallax Backgrounds --- */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* --- Portfolio/Fleet Section --- */
#portfolio .card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#portfolio .card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

#portfolio .card .card-image {
    width: 100%;
}

#portfolio .card .card-image img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
}

#portfolio .card .card-content {
    text-align: left;
    flex-grow: 1; /* Allows content to take up remaining space */
    display: flex;
    flex-direction: column;
}

#portfolio .card .content {
    flex-grow: 1;
}


/* --- History Section --- */
#history .progress {
    height: 12px;
    border-radius: 6px;
}
#history .progress::-webkit-progress-bar {
    background-color: #e0e0e0;
}
#history .progress.is-primary::-webkit-progress-value {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}
#history .progress.is-info::-webkit-progress-value {
    background: linear-gradient(90deg, #2575fc, #3a9efd);
}
#history .progress.is-success::-webkit-progress-value {
    background: linear-gradient(90deg, #48c774, #66e394);
}

/* --- Gallery Section --- */
#gallery .column {
    padding: 0.5rem;
}
#gallery .image img {
    border-radius: 8px;
    transition: var(--transition-smooth);
    filter: saturate(1);
}
#gallery .image img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    filter: saturate(1.2);
}

/* --- Press Section --- */
#press .image img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

#press .image img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- FAQ Section --- */
#faq .box {
    background-color: #ffffff;
    border-left: 5px solid var(--gradient-start);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
#faq .box:hover {
    border-left-color: var(--gradient-end);
    transform: translateX(5px);
}

/* --- Contact Section --- */
#contact .label, #contact .checkbox {
    color: var(--dark-text);
    font-weight: 600;
}

#contact .input, #contact .textarea {
    border: 2px solid var(--border-color);
    box-shadow: var(--neo-shadow);
    border-radius: 8px;
    transition: var(--transition-smooth);
    padding: 1rem;
}

#contact .input:focus, #contact .textarea:focus {
    box-shadow: var(--neo-shadow-hover);
    border-color: var(--gradient-start);
    outline: none;
}

#contact .section-title {
    color: var(--light-text);
    text-shadow: 2px 2px 4px #000;
}

/* ---------------------------------- */
/*      6. Footer Styles              */
/* ---------------------------------- */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 4rem 1.5rem;
}

.footer .title {
    color: var(--light-text);
    font-weight: 700;
}

.footer p {
    color: #a0a0a0;
}

.footer a {
    color: var(--light-text);
    font-weight: 600;
    transition: var(--transition-smooth);
}

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

.footer ul {
    list-style: none;
    margin-left: 0;
}

.footer li {
    padding-bottom: 0.5rem;
}

.footer .content p {
    color: #7a7a7a;
}

/* ---------------------------------- */
/*      7. Other Page Styles          */
/* ---------------------------------- */

/* --- Success Page --- */
.success-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.success-page-container .box {
    max-width: 600px;
}

.success-page-container .title, .success-page-container p {
    color: var(--dark-text);
}

/* --- Legal Pages (Privacy & Terms) --- */
.legal-page-content {
    padding-top: 10rem; /* Space for fixed navbar */
    padding-bottom: 4rem;
}
.legal-page-content h1, .legal-page-content h2, .legal-page-content h3 {
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

/* ---------------------------------- */
/*      8. Media Queries              */
/* ---------------------------------- */

/* For Tablets */
@media screen and (max-width: 1023px) {
    .section {
        padding: 3rem 1.5rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

/* For Mobile */
@media screen and (max-width: 768px) {
    .section {
        padding: 2.5rem 1rem;
    }
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    body {
        font-size: 1rem;
    }
    
    .navbar.is-fixed-top .navbar-menu {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .footer .columns {
        text-align: center;
    }
}