/* ===== VARIABLES ===== */
:root {
    /* Light Mode Colors */
    --primary-color: #0a192f;
    --secondary-color: #ffc107;
    --text-color: #333333;
    --light-text: #e6e6e6;
    --background-color: #ffffff;
    --section-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --overlay-color: rgba(10, 25, 47, 0.8);
    
    /* Fonts */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Dark Mode Colors */
.dark-mode {
    --primary-color: #121212;
    --secondary-color: #ffc107;
    --text-color: #e6e6e6;
    --light-text: #e6e6e6;
    --background-color: #1a1a1a;
    --section-bg: #242424;
    --card-bg: #2a2a2a;
    --border-color: #444444;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --overlay-color: rgba(0, 0, 0, 0.8);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: var(--body-font);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== PRELOADER ===== */
#preloader {
    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;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== HEADER & NAVIGATION ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 16px 0;
}

#header.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 12px 0;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 58px;
    transition: var(--transition);
    transform: translateY(-3px);
    /* Enhanced logo visibility */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

/* Logo visibility in dark mode */
.dark-mode .logo img {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

#header.scrolled .logo img {
    height: 48px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 30px;
    margin-left: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.theme-toggle i {
    color: var(--light-text);
    font-size: 14px;
    z-index: 1;
}

.toggle-ball {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    left: 3px;
    transition: var(--transition);
}

.dark-mode .toggle-ball {
    left: 33px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--light-text);
    margin: 3px 0;
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 999;
    padding: 80px 20px 20px;
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('./assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Remove fixed attachment */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--light-text);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    display: block;
    max-width: 420px;
    width: 80%;
    height: auto;
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

.hero-content .hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #e6ac00;
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--light-text);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: var(--light-text);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.scroll-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--light-text);
    border-bottom: 2px solid var(--light-text);
    transform: rotate(45deg);
    margin-top: 10px;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 100px 0;
    background-color: var(--background-color);
}

.section:nth-child(even) {
    background-color: var(--section-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.dark-mode .section-title {
    color: var(--light-text);
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 20px auto 0;
}

/* ===== FEATURE DIVIDER SECTIONS ===== */
.feature-divider {
    padding: 120px 0;
    text-align: center;
    color: var(--light-text);
    position: relative;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add background images to feature dividers */
.luxury-divider {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('./assets/luxury-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.safety-divider {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('./assets/luxury-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.feature-divider .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.feature-divider h2 {
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-divider p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.value-box {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
    transition: var(--transition);
}

.value-box:hover {
    transform: translateY(-10px);
}

.value-box i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.value-box h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* ===== SERVICES SECTION ===== */
.services-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.services-content .service-list {
    text-align: left;
}

.services-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--secondary-color);
}

.tab-btn.active::after {
    width: 80%;
}

.tabs-content {
    position: relative;
    min-height: 300px;
}

.tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.tab-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.service-card h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.service-card p {
    margin-bottom: 15px;
}

.service-list {
    margin-top: 20px;
}

.service-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.service-list li i {
    color: var(--secondary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.services-tagline {
    text-align: center;
    margin-top: 40px;
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 2px;
    color: var(--text-color);
}

/* ===== WHY CHOOSE US SECTION ===== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-box {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.dark-mode .stat-number {
    color: var(--light-text);
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.features-container {
    max-width: 800px;
    margin: 0 auto;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 3px;
}

/* ===== FLEET OVERVIEW SECTION ===== */
.fleet-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.dark-mode .filter-btn {
    border-color: var(--light-text);
    color: var(--light-text);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.fleet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.fleet-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

.fleet-item:hover {
    transform: translateY(-10px);
}

.fleet-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.fleet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.fleet-item:hover .fleet-image img {
    transform: scale(1.1);
}

.fleet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.fleet-item:hover .fleet-overlay {
    opacity: 1;
}

.fleet-details {
    color: var(--light-text);
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: var(--transition);
}

.fleet-item:hover .fleet-details {
    transform: translateY(0);
}

.fleet-details h4 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.fleet-details p {
    margin-bottom: 5px;
}

.fleet-info {
    padding: 20px;
    text-align: center;
}

.fleet-info h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/* ===== SAFETY AND TECHNOLOGY SECTION ===== */
.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.safety-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.safety-text p {
    margin-bottom: 20px;
}

.safety-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-right: 15px;
}

.feature-text h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* ===== EXPERIENCE AND HISTORY SECTION ===== */
.experience-content {
    max-width: 800px;
    margin: 0 auto;
}

.experience-content p {
    margin-bottom: 20px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0; /* Start with 0 height */
    background-color: var(--secondary-color);
    transition: height 1.5s ease-out;
}

.timeline.appear::before {
    height: 100%; /* Animate to full height when appear class is added */
}


.timeline-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.timeline-item.appear {
    opacity: 1;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
}

.timeline-content h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.contact-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-text h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.contact-text p a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-cta {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
}

.contact-cta h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
}

.contact-cta p {
    margin-bottom: 8px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: #fff;
    padding: 15px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    color: #fff;
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
#footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 12px;
    transform: translateY(-10px);
    /* Enhanced logo visibility in footer */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-contact a {
    color: var(--light-text);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

#back-to-top.active {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #e6ac00;
    transform: translateY(-5px);
}

/* ===== ENHANCED ANIMATIONS ===== */

/* Improved Fade In Animation with Staggered Timing */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for multiple elements */
.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.4s;
}

/* Slide In Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.appear, .slide-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}

/* Scale Animation */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.appear {
    opacity: 1;
    transform: scale(1);
}

/* Rotate Animation for Icons */
.rotate-in {
    opacity: 0;
    transform: rotateY(90deg);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.rotate-in.appear {
    opacity: 1;
    transform: rotateY(0deg);
}

/* Enhanced Hover Effects */
.value-box {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.5s ease;
}

.value-box:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.stat-box {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.5s ease;
}

.stat-box:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 30px var(--shadow-color);
}

/* Enhanced Fleet Item Animation */
.fleet-item {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.6s ease;
}

.fleet-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.fleet-overlay {
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.fleet-details {
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Pulse Animation for CTA Button */
.cta-button {
    animation: pulse 2s infinite;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background-color 0.3s ease,
                box-shadow 0.3s ease;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #e6ac00;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: none;
}

/* Mobile Responsiveness */
@media screen and (max-width: 1024px) {
    .hero-logo {
        max-width: 360px;
    }

    .hero-content .hero-tagline {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-content,
    .safety-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image,
    .safety-image {
        order: -1;
    }
    
    .timeline-content {
        width: 40%;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        left: 60%;
    }
}

@media screen and (max-width: 768px) {
    .nav-links,
    .theme-toggle {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-logo {
        max-width: 300px;
    }

    .hero-content .hero-tagline {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-values,
    .safety-features {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        left: 80px;
    }
    
    /* Fix for feature dividers on mobile */
    .feature-divider {
        background-attachment: scroll;
        padding: 80px 0;
    }
    
    .feature-divider h2 {
        font-size: 2.2rem;
    }
    
    .feature-divider p {
        font-size: 1.1rem;
    }
    
    /* Fix for logo visibility on mobile */
    .logo img {
        height: 46px;
    }
}

@media screen and (max-width: 576px) {
    .hero-logo {
        max-width: 240px;
    }

    .hero-content .hero-tagline {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-cta {
        padding: 20px;
    }
}

/* Fix for hero background on mobile */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll !important;
        background-image: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('./assets/hero-bg.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* ===== EXPERIENCE AND HISTORY SECTION ANIMATIONS ===== */
.experience-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.experience-content.appear {
    opacity: 1;
    transform: translateY(0);
}

.experience-content p {
    margin-bottom: 20px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0; /* Start with 0 height */
    background-color: var(--secondary-color);
    transition: height 1.5s ease-out;
}

.timeline.appear::before {
    height: 100%; /* Animate to full height */
}

.timeline-item:nth-child(2) {
    transition-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    transition-delay: 0.4s;
}

.timeline-item:nth-child(4) {
    transition-delay: 0.6s;
}

.timeline-item:nth-child(5) {
    transition-delay: 0.8s;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0.3s;
}

.timeline-item.appear .timeline-dot {
    transform: translateX(-50%) scale(1);
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 55%;
    transform: translateX(50px);
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
    transform: translateX(-50px);
}

.timeline-item.appear .timeline-content {
    opacity: 1;
    transform: translateX(0);
}

.timeline-content h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.3s;
}

.timeline-item.appear .timeline-content h3 {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.5s;
    text-align: left;
}

.timeline-item.appear .timeline-content p {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure animations work well in dark mode */
.dark-mode .timeline-content {
    background-color: var(--card-bg);
}

.dark-mode .timeline-content h3 {
    color: var(--secondary-color);
}

/* Mobile responsiveness for timeline animations */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        left: 80px;
        transform: translateX(50px);
    }
    
    .timeline-item.appear .timeline-content {
        transform: translateX(0);
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        transform: translateX(-50%) scale(0);
    }
    
    .timeline-item.appear .timeline-dot {
        transform: translateX(-50%) scale(1);
    }
}

/* Performance optimizations */
.timeline-item {
    will-change: opacity, transform;
}

.timeline-content {
    will-change: opacity, transform;
}

.timeline-dot {
    will-change: transform;
}

/* Reduce animation complexity on mobile for better performance */
@media (max-width: 576px) {
    .timeline-item:nth-child(n+2) {
        transition-delay: 0.1s;
    }
    
    .timeline-content h3,
    .timeline-content p {
        transition-delay: 0.1s;
    }
}
}