/* =========================================
   VARIABLES & GLOBALS
   ========================================= */
   :root {
    --bg-color: #050a14;
    --dark-blue: #0b1325;
    --darker-blue: #080e1b;
    --card-bg: #121c33;
    --gold: #dfb15b;
    --gold-hover: #c49642;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --wa-green: #25D366;
    --wa-green-hover: #1EBE5D;
    
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.gold-text {
    color: var(--gold);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.center-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   UTILITIES & ANIMATIONS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transform: translateY(20px);
}

.page-section.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform; /* optimize performance */
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   FLOATING WHATSAPP
   ========================================= */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--wa-green);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.float-wa:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--wa-green-hover);
}

/* =========================================
   NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: padding var(--transition-fast), background var(--transition-fast), backdrop-filter var(--transition-fast);
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(223, 177, 91, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   LANDING FULL-SCREEN
   ========================================= */
#landing {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.landing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--dark-blue) 0%, var(--bg-color) 100%);
    z-index: -1;
}

.landing-content {
    text-align: center;
    width: 100%;
    padding: 0 2rem;
}

.landing-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.landing-content .subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.division-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
    will-change: transform;
}

.division-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(223, 177, 91, 0.4); /* Glow effect */
    border-color: rgba(223, 177, 91, 0.6);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.engineers-bg {
    background-image: url('https://images.unsplash.com/photo-1541888086225-ee5b136511dc?auto=format&fit=crop&w=800&q=80');
}

.travels-bg {
    background-image: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=800&q=80');
}

.division-card:hover .card-bg {
    transform: scale(1.08); /* slight scale for better perf instead of 1.1 */
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--darker-blue) 0%, rgba(8, 14, 27, 0.4) 100%);
    transition: background var(--transition-fast);
}

.division-card:hover .card-overlay {
    background: linear-gradient(to top, var(--darker-blue) 10%, rgba(8, 14, 27, 0.2) 100%);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.card-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.explore-btn {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: gap var(--transition-fast), opacity var(--transition-fast);
}

.division-card:hover .explore-btn {
    gap: 1rem;
    opacity: 1;
}

/* =========================================
   HERO SECTIONS
   ========================================= */
.section-hero {
    position: relative;
    height: 65vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.engineers-hero {
    background-image: url('https://images.unsplash.com/photo-1541888086225-ee5b136511dc?auto=format&fit=crop&w=1920&q=80');
}

.travels-hero {
    background-image: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1920&q=80');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 20, 0.85); /* Darker overlay for text readability */
}

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

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* =========================================
   BUTTONS & INTERACTIONS
   ========================================= */
.gold-btn {
    background: var(--gold);
    color: var(--dark-blue);
    padding: 1.2rem 2rem; /* increased tap target */
    border: none;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 50px;
}

.gold-btn:hover {
    background: var(--gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(223, 177, 91, 0.3);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    width: fit-content;
}

/* WhatsApp Specific Button Modifiers */
.wa-btn {
    background: var(--wa-green);
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.wa-btn i {
    font-size: 1.3rem;
}

.wa-btn:hover {
    background: var(--wa-green-hover);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.wa-btn-outline {
    background: transparent;
    border: 2px solid var(--wa-green);
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.wa-btn-outline i { color: var(--wa-green); }

.wa-btn-outline:hover {
    background: var(--wa-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* =========================================
   SERVICES
   ========================================= */
.services-wrapper {
    margin: 6rem 0;
}

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

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

.service-box {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--gold);
}

.service-box i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.service-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   VEHICLES RENTAL SECTION
   ========================================= */
.vehicles-wrapper {
    margin: 6rem 0;
}

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

.vehicle-card {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.vehicle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(223, 177, 91, 0.3);
}

.vehicle-image-wrapper {
    width: 100%;
    height: 220px;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vehicle-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.vehicle-card:hover .vehicle-image-wrapper img {
    transform: scale(1.08);
}

.vehicle-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vehicle-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    font-size: 0.75rem;
    background: rgba(223, 177, 91, 0.1);
    color: var(--gold);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-specs {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.vehicle-specs li {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vehicle-specs li i {
    color: var(--gold);
    width: 20px;
    text-align: center;
}

.vehicle-specs .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
}

.vehicle-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery-wrapper {
    margin: 6rem 0;
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08); /* slightly less aggressive zoom to prevent layout jitter */
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(223, 177, 91, 0.2);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* =========================================
   FORMS
   ========================================= */
.form-wrapper {
    margin: 6rem auto;
    max-width: 800px;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1.5rem;
}

.input-group > * {
    flex: 1;
}

input, select, textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--dark-blue);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
}

/* =========================================
   FOOTER
   ========================================= */
#footer {
    background: var(--darker-blue);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3, .footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
}

.footer-about h3 {
    font-size: 1.8rem;
}

.footer-about p {
    color: var(--text-muted);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-contact i {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   MODAL, INTERACTIVE CARDS & TESTIMONIALS
   ========================================= */
.clickable-card {
    cursor: pointer;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.clickable-card:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important; /* Fast click feedback */
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.testimonial-card i.fa-quote-left {
    font-size: 2rem;
    color: rgba(223, 177, 91, 0.2);
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-main);
    margin: 1.5rem 0;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

/* About Us Section */
.about-section {
    background: var(--dark-blue);
    padding: 5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(223, 177, 91, 0.1);
    margin: 6rem auto;
    max-width: 1000px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-section p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(5, 10, 20, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 500px;
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(223, 177, 91, 0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--gold);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 900px) {
    .landing-content h1 {
        font-size: 3rem;
    }
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
    .division-card {
        width: 100%;
        max-width: 450px;
    }
    .input-group {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--darker-blue);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-links.show {
        display: flex;
    }

    .menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .float-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    /* Ensure perfect mobile grid stacking */
    .grid-3, .grid-4, .vehicle-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .landing-content h1 {
        font-size: 2.5rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* UX mobile touch animation */
.vehicle-card:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    background: rgba(223, 177, 91, 0.05); /* Slight flash */
}

.gold-btn:active {
    transform: scale(0.95) !important;
}
