/*
  DaNangLocalDriver - style.css
  This file contains all the styles for the website.
*/

/* 1. VARIABLES & GLOBAL STYLES
-------------------------------------------------- */
:root {
    --primary-color: #0066cc;
    --primary-hover: #004c99;
    --secondary-color: #f0f4f8;
    --accent-color: #ff9900;
    --text-color: #333333;
    --heading-color: #1a1a1a;
    --background-color: #ffffff;
    --border-color: #e1e4e8;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --font-family: 'Inter', sans-serif;
    --header-height: 80px;
}

.dark-mode {
    --primary-color: #4dabf7;
    --primary-hover: #74c0fc;
    --secondary-color: #1a1b1e;
    --accent-color: #ffcc00;
    --text-color: #c1c2c5;
    --heading-color: #e9ecef;
    --background-color: #141517;
    --border-color: #2c2e33;
    --card-bg: #1a1b1e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-3px);
}

/* 2. HEADER & NAVIGATION
-------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
    padding: 10px 0;
}

header.scrolled {
    box-shadow: var(--shadow);
    padding: 5px 0;
}
.dark-mode header {
    background-color: rgba(20, 21, 23, 0.9);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle, .mobile-menu-btn, .language-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
}

.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: var(--secondary-color);
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 120px;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
}

.language-option:hover {
    background-color: var(--secondary-color);
}

.mobile-menu-btn, .mobile-menu {
    display: none;
}

/* 3. HERO SECTION
-------------------------------------------------- */
.hero {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 50px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--background-color) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.video-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.welcome-video {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.3s;
}

.video-overlay-play {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.video-overlay-play:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.video-overlay-text {
    color: white;
    margin-top: 15px;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Custom Video Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-wrapper:hover .video-controls,
.video-wrapper .video-controls.visible {
    opacity: 1;
}

.video-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.video-progress {
    flex-grow: 1;
    cursor: pointer;
}

.video-progress-bar {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
}

.video-progress-fill {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.video-volume-slider {
    width: 80px;
    margin-left: 10px;
    cursor: pointer;
    /* Remove default styles */
    -webkit-appearance: none;
    appearance: none;
}

/* 4. SERVICES SECTION
-------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.service-card p {
    margin-bottom: 20px;
}

.service-cta {
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* 5. DRIVER & CAR SECTIONS
-------------------------------------------------- */
.driver-info, .car-info {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.driver-photo-container, .car-photos {
    text-align: center;
}

.driver-photo {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.detail-icon {
    font-size: 1.5rem;
    margin-top: 2px;
}

.car-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.car-photo {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s;
}

.car-photo:hover {
    transform: scale(1.05);
}

.spec-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* 6. GALLERY SECTION
-------------------------------------------------- */
.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

/* 7. TESTIMONIALS SECTION
-------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--heading-color);
}

/* 8. BLOG SECTION
-------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img-container {
    position: relative;
}

.blog-img-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    color: var(--heading-color);
    margin-bottom: 10px;
    cursor: pointer;
}

.blog-content p {
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more-link {
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.blog-cta {
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-share {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    font-size: 0.9rem;
}

.share-btn {
    margin-left: 8px;
    font-size: 1.2rem;
}

/* 9. FAQ SECTION
-------------------------------------------------- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 0 20px 0;
}

/* Travel Tools */
.tools-container {
    display: flex;
    justify-content: center;
}
.tool-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--border-color);
}
.converter-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.conversion-result {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 20px 0;
}
.disclaimer {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

/* 10. BOOKING & FORM SECTION
-------------------------------------------------- */
.booking-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
}

.payment-info h3 {
    color: var(--heading-color);
    margin-bottom: 20px;
}

.payment-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.payment-info li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.payment-icon {
    font-size: 1.5rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    padding: 15px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
}

.whatsapp-btn:hover {
    background-color: #1DA851;
    color: white;
}

/* 11. FOOTER
-------------------------------------------------- */
footer {
    background-color: var(--secondary-color);
    padding: 60px 0 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
}

.footer-column p, .footer-column a {
    margin-bottom: 10px;
    display: block;
}

.service-areas-list {
    list-style: none;
}

.service-areas-list li {
    margin-bottom: 8px;
}

/* Quick Links Column Styling */
.footer-column.quick-links {
    background-color: var(--background-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.footer-column.quick-links a {
    margin-bottom: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-column.quick-links a:hover {
    padding-left: 8px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* 12. WIDGETS & MODALS
-------------------------------------------------- */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 5px solid var(--secondary-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Modals */
.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);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.blog-modal-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.blog-modal-body img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blog-modal-body h2 {
    color: var(--heading-color);
    margin-bottom: 10px;
}

.blog-modal-body p, .blog-modal-body h4, .blog-modal-body ul {
    margin-bottom: 15px;
}

/* 13. RESPONSIVE DESIGN
-------------------------------------------------- */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .mobile-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }
    .mobile-menu.show {
        max-height: 500px; /* Adjust as needed */
    }
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        padding: 10px 0;
    }
    .mobile-nav-links a {
        padding: 15px 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text { order: 2; }
    .video-container { order: 1; }
    .hero-text h1 { font-size: 2.5rem; }

    .driver-info {
        grid-template-columns: 1fr;
    }
    .driver-photo-container { order: 1; }
    .driver-details { order: 2; }

    .booking-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title h2 { font-size: 2rem; }
    .hero-text h1 { font-size: 2.2rem; }
    .footer-content { text-align: center; }
    .chat-widget { width: 100%; max-width: 90vw; }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Hidden by default */
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
    border-top: 1px solid var(--border-color);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}