/* Basic Reset & Body Styles */
:root {
    --primary-color: #0076BA; /* Deep Sky Blue / Cerulean - Main accent for buttons, logos */
    --primary-color-dark: #004f7d; /* Darker primary for hover states */
    --primary-color-darker: #003c5e; /* Even darker primary for active states */
    --primary-color-light: #87d3ff; /* Light Sky Blue for some links/elements */
    --primary-color-extra-light: #E1F5FF; /* Very light blue, often used for backgrounds */

    --text-color: #363636; /* Dark Grey / Charcoal - Main text color */
    --light-text-color: #5a5a5a; /* Medium Grey - Subtext/lighter text */
    --background-light: #F7F9FC; /* Very Light Grey / Off-white - Main body background */
    --background-white: #fff; /* White */
    --border-color: #e0e0e0; /* Light Grey - For borders */

    --shadow-light: rgba(0, 0, 0, 0.1); /* Light shadow */
    --shadow-medium: rgba(0, 0, 0, 0.3); /* Medium shadow */
    --shadow-strong: rgba(0, 0, 0, 0.4); /* Stronger shadow */

    /* Status Colors */
    --success-color: #20864a; /* Dark Green */
    --warning-color: #ffb42a; /* Orange / Amber */
    --danger-color: #b30c1d; /* Dark Red / Brick Red */
    --info-color: #008cdd; /* Blue for info boxes */
    --expired-color: #db1313; /* Bright Red for expired text */

    /* Tag Specific Colors (derived from your stylesheet) */
    --tag-id-color: #333333;
    --tag-category-color: #4f175a;
    --tag-verified-color: green;
    --tag-completed-color: #0e6e1b;
    --tag-cancelled-color: #3b3b3b;
    --tag-expired-color: #e9760a;
    --tag-active-color: orange;
    --tag-money-color: #383838;
    --tag-subpackage-color: #8d4164;
    --tag-transaction-color: #3a3a3a;
    --tag-transaction-text-color: #ffd76a;
    --tag-country-color: #aa18a3;
    --tag-warning-color: #c22020;
    --tag-app-color: #0b4e57;
    --tag-offer-color: #1b4f7c;
    --tag-online-color: #3ab44b;
    --tag-offline-color: #7e7e7e;
    --tag-inactive-color: #ce2525;
}

body {
    font-family: 'Roboto', sans-serif; /* Changed to Roboto based on your original stylesheet */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from responsive elements */
    background-color: var(--background-light); /* Applying the body background color */
}

/* Container for Centering Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add padding for smaller screens */
}

/* Global Elements */
a {
    text-decoration: none;
    color: var(--primary-color-dark); /* Using a slightly darker primary for general links */
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color); /* Lighter primary on hover for general links */
    /* filter: brightness(0.9); removed as direct color set */
}

h1, h2, h3, h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-family: "Raleway", sans-serif; /* Applying Raleway as per original stylesheet */
    font-weight: 600; /* As per original stylesheet */
    text-transform: uppercase; /* As per original stylesheet */
    letter-spacing: 1px; /* As per original stylesheet */
    padding: 1rem; /* As per original stylesheet */
    text-align: center; /* As per original stylesheet */
}

h1 {
    font-size: 2.5em; /* Smaller for mobile first */
}

h2 {
    font-size: 2em; /* Smaller for mobile first */
}

h3 {
    font-size: 1.2em; /* Smaller for mobile first */
    color: var(--light-text-color); /* Keep existing light text color */
}

/* Buttons */
.btn {
    border-radius: 0.2rem; /* Consistent border radius */
    padding: 0.25rem 0.5rem; /* Adjusted padding as per your stylesheet */
    font-size: 0.9rem; /* Consistent font size */
    font-weight: 600; /* Kept from original, but your style sheet has 600 for text-styled */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    display: inline-block; /* For buttons in cta-buttons */
    text-align: center;
    color: var(--background-white); /* All buttons get white text by default */
}

.primary-btn {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color); /* Added border for consistency */
}

.primary-btn:hover {
    background-color: var(--primary-color-dark); /* Using darker primary for hover */
    border-color: var(--primary-color-dark);
}

.secondary-btn {
    background-color: var(--text-color); /* Using a dark grey for secondary btn, like your navbar/footer */
    border: 1px solid var(--text-color);
}

.secondary-btn:hover {
    background-color: #303030; /* Slightly darker grey */
    border-color: #303030;
}

.light-btn {
    background-color: var(--background-white);
    color: var(--primary-color); /* Text in primary color */
    border: 1px solid var(--background-white);
}

.light-btn:hover {
    background-color: #eee;
    border-color: #eee;
}

.outline-btn {
    background-color: transparent;
    color: var(--background-white);
    border: 2px solid var(--background-white);
}

.outline-btn:hover {
    background-color: var(--background-white);
    color: var(--primary-color);
}

/* Icons */
.icon-primary {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.icon-success {
    color: var(--success-color); /* Using success color variable */
    margin-right: 8px;
}

/* Header */
header {
    background-color: var(--background-white);
    padding: 4px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px var(--shadow-light);
}

header nav {
    display: flex;
    justify-content: space-between; /* This will push logo to left, nav-links to center, and login-section to right */
    align-items: center;
    position: relative;
    /* Add max-width and margin: auto to center the content if needed */
    max-width: 1200px; /* Example value */
    margin: 0 auto;
    padding: 0 15px; /* Add some horizontal padding */
}

.logo {
    /* Styles for your logo */
    margin-right: 20px; /* Space between logo and other elements */
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.logo img {
    height: 30px; /* Adjust as needed */
}

.nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    transform: none;
    background-color: transparent;
    width: auto;
    justify-content: flex-end; /* Pushes the general nav links to the right within its flex container */
    flex-grow: 1; /* Allows nav-links to take up available space */
    gap: 30px;
    margin-right: 20px; /* Space between general nav and login section */
}

.login-section {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between login/register links and avatar */
}

.login-section .avatar {
    width: 35px; /* Adjust avatar size */
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 5px; /* Space between user name and avatar */
}

/* Ensure your nav-link and link styles are consistent */
.nav-link, .link {
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.nav-link:hover, .link:hover {
    color: var(--primary-color); /* Or your hover color */
}

.nav-link.active, .link.active {
    font-weight: bold;
    color: var(--primary-color); /* Or a distinct active color */
}

.nav-text {
    /* Style for the 'Register' span if needed */
    display: flex; /* To align the link inside the span */
    align-items: center;
}

.nav-text a {
    text-decoration: none;
    color: var(--text-color);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* For positioning mobile nav */
}


.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px; /* Adjust spacing between nav items */
    transition: transform 0.3s ease-in-out;
}

.nav-links li a {
    text-decoration: none;
    color: var(--light-text-color); /* Using light-text-color for default links */
    font-weight: 600;
    transition: color 0.3s ease;
    display: flex; /* Allow icon and text to align */
    flex-direction: column; /* Stack icon and text on smaller screens */
    align-items: center;
    font-size: 0.85em; /* Smaller font for portrait nav */
}

.nav-links li a:hover {
    color: var(--primary-color); /* Primary color on hover */
}

.nav-links li i {
    font-size: 1.4em; /* Size of the icon */
    margin-bottom: 3px; /* Space between icon and text */
    color: var(--primary-color); /* Icon color */
}

.nav-links li .nav-text {
    /* Text will be hidden by default in portrait */
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    height: 0; /* Hide vertical space */
}


/* Hamburger Menu (Mobile - always visible on smaller screens) */
.hamburger {
    display: flex; /* Always show hamburger on smaller screens */
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001; /* Above nav links when opened */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color); /* Using text color for bars */
    margin: 4px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: url('https://via.placeholder.com/1600x900/0076BA/E1F5FF?text=Modern+Taxi+on+Sri+Lankan+Road') no-repeat center center/cover; /* Updated placeholder with your colors */
    color: var(--background-white);
    text-align: center;
    padding: 40px 20px; /* Adjust padding for mobile */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Minimum height for better mobile visibility */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    z-index: 0;
}

.hero-content {
    position: absolute;
    bottom: 6%;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8em; /* Adjusted for mobile */
    margin-bottom: 10px;
    color: var(--background-white);
}

.hero p {
    font-size: 1.1em; /* Adjusted for mobile */
    margin-bottom: 30px;
}

.booking-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px; /* Smaller padding for mobile */
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-medium);
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.booking-form input[type="text"],
.booking-form input[type="date"],
.booking-form input[type="time"] {
    padding: 12px; /* Smaller padding for mobile */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95em;
    width: 100%; /* Full width on mobile */
    box-sizing: border-box; /* Include padding in width */
    background-color: rgba(0, 118, 186, 0.1); /* Input background from your style sheet */
    color: var(--primary-color-darker); /* Input text color from your style sheet */
}

/* Sections General Styling */
.section {
    padding: 30px 0; /* Adjust padding for mobile */
    text-align: center;
}

.bg-light {
    background-color: var(--background-light);
}

.section h2 {
    margin-bottom: 15px;
}

.section h3 {
    margin-bottom: 30px;
}

/* Grid Containers */
.grid-container {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 30px;
    margin-top: 40px;
}

.feature-item, .vehicle-item, .testimonial-item {
    background-color: var(--background-white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: left;
    transition: transform 0.3s ease;
}
.vehicle-item .btn-small {
    display: block; 
    width: fit-content;
    margin: 15px auto 0 auto; 
    padding: 8px 15px;
    font-size: 0.9em;
    text-decoration: none;
    
}
.feature-item:hover, .vehicle-item:hover {
    transform: translateY(-5px);
}

.vehicle-item img {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.vehicle-item h4 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: var(--primary-color-dark); /* Using dark primary for vehicle titles */
}

.vehicle-features {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.vehicle-features li {
    margin-bottom: 5px;
    color: var(--light-text-color);
}

.vehicle-features li i {
    color: var(--success-color); /* Green checkmark using success color */
    margin-right: 5px;
}

/* Testimonials */
.testimonial-item .stars {
    color: #FFD700; /* Gold for stars - kept as is, a common color */
    margin-bottom: 10px;
    font-size: 1.2em;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.testimonial-item .author {
    font-weight: 600;
    color: var(--text-color);
}

/* Call to Action */
.cta-section {
    background-color: var(--primary-color); /* Using primary color for CTA background */
    color: var(--background-white);
    padding: 60px 20px; /* Adjust padding for mobile */
    text-align: center;
}

.cta-section h2 {
    color: var(--background-white);
    margin-bottom: 15px;
    font-size: 2em; /* Adjusted for mobile */
}

.cta-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    align-items: center; /* Center stacked buttons */
}

/* Footer */
footer {
    background-color: var(--text-color); /* Using your default text color for footer background */
    color: var(--background-white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column; /* Stack content vertically on mobile */
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color); /* Using primary color for footer logo */
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack links vertically on mobile */
    gap: 10px;
}

.footer-nav ul li a {
    color: #ccc; /* Slightly lighter grey for footer links */
    font-weight: 400;
}

.footer-nav ul li a:hover {
    color: var(--primary-color); /* Primary color on hover */
}

.contact-info {
    font-size: 0.9em;
    color: #ccc; /* Slightly lighter grey for contact info */
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.contact-info p {
    margin: 0;
}

.contact-info a {
    color: #ccc;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color); /* Primary color on hover */
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: var(--background-white); /* White for social icons */
    font-size: 1.4em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color); /* Primary color on hover */
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.85em;
    color: #aaa; /* Kept as is, a standard light grey */
}

/* --- Media Queries for Larger Screens (Landscape/Desktop) --- */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5em;
    }

    h2 {
        font-size: 2.5em;
    }

    h3 {
        font-size: 1.5em;
    }

    /* Header Navigation */
    .hamburger {
        display: none; /* Hide hamburger on desktop */
    }

    .nav-links {
        display: flex; /* Show navigation links on desktop */
        flex-direction: row; /* Align horizontally */
        position: static;
        transform: none;
        background-color: transparent;
        width: auto;
        justify-content: flex-end; /* Align links to the right */
        flex-grow: 1; /* Allow nav-links to take available space */
        gap: 30px; /* More space between desktop links */
    }

    .nav-links li a {
        flex-direction: row; /* Icon and text side-by-side */
        font-size: 1em; /* Normal font size for desktop */
        align-items: center;
    }

    .nav-links li .nav-text {
        opacity: 1; /* Show text on desktop */
        width: auto;
        overflow: visible;
        height: auto;
        margin-left: 8px; /* Space between icon and text */
    }

    .nav-links li i {
        margin-bottom: 0; /* No bottom margin when side-by-side */
    }

    /* Hero Section */
    .hero {
        padding: 100px 20px;
        min-height: 70vh; /* Taller on desktop */
    }

    .booking-form {
        flex-direction: row; /* Align horizontally on desktop */
        padding: 30px;
        gap: 20px;
    }

    .booking-form input {
        flex: 1; /* Distribute space evenly */
        min-width: 180px; /* Ensure inputs don't get too small */
    }

    .booking-form button {
        flex-shrink: 0; /* Prevent buttons from shrinking */
    }

    /* General Section Padding */
    .section {
        padding: 40px 0;
    }

    /* Grid Layouts */
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 2+ columns on larger screens */
    }

    .cta-buttons {
        flex-direction: row; /* Align buttons horizontally */
        gap: 20px;
    }

    /* Footer Layout */
    .footer-content {
        flex-direction: row; /* Align horizontally on desktop */
        justify-content: space-between;
        text-align: left;
    }

    .footer-logo {
        flex-basis: 20%;
        text-align: left;
    }

    .footer-nav ul {
        flex-direction: row; /* Align horizontally */
        gap: 20px;
    }

    .contact-info {
        text-align: right;
    }
}

/* --- Mobile Navigation Overlay/Side Panel (when active) --- */
@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0; /* Start hidden off-screen */
        width: 70%; /* Adjust width as needed */
        height: 100%;
        background-color: var(--background-white); /* White background for the menu */
        flex-direction: column;
        align-items: flex-start; /* Align menu items to the left */
        padding: 80px 30px 20px; /* Padding for top and sides */
        box-shadow: -5px 0 15px var(--shadow-medium);
        transform: translateX(100%); /* Hidden by default */
        z-index: 999; /* Below hamburger */
        overflow-y: auto; /* Enable scrolling for many links */
    }

    .nav-links.active {
        transform: translateX(0%); /* Slide in from the right */
    }

    .nav-links li {
        margin: 0; /* Reset margin */
        width: 100%;
        border-bottom: 1px solid var(--border-color); /* Separator for clarity */
        padding: 15px 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        display: flex;
        flex-direction: row; /* Icons and text side-by-side in the opened menu */
        align-items: center;
        color: var(--text-color); /* Darker text for readability in menu */
        font-size: 1.1em; /* Larger font size in the opened menu */
    }

    .nav-links li i {
        font-size: 1.5em; /* Larger icons in menu */
        margin-right: 15px; /* Space between icon and text */
        margin-bottom: 0; /* Reset margin */
    }

    .nav-links li .nav-text {
        opacity: 1; /* Show text in the opened menu */
        width: auto;
        overflow: visible;
        height: auto;
    }
}

/* Hamburger menu active state animations */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}