/* Variables */
:root {
    --primary-color: #0d1117; /* Deep Navy/Black */
    --secondary-color: #1a2332; /* Lighter Navy */
    --accent-color: #f59e0b; /* Vibrant Gold/Amber */
    --accent-hover: #d97706; /* Darker Gold */
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(26, 35, 50, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(-45deg, #050b14, #0a192f, #081220, #050b14);
    background-size: 400% 400%;
    animation: luxuryGradientBG 15s ease infinite;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
}

@keyframes luxuryGradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.dark-bg {
    background-color: #081220; /* Slightly lighter Midnight Blue */
}

.text-center {
    text-align: center;
}

.mt-3 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.w-100 { width: 100%; }

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f3e5ab, #aa8222, #d4af37);
    background-size: 300% 300%;
    animation: goldShimmer 4s infinite linear;
    color: #050b14;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transition: var(--transition);
}

@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #d4af37;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2), inset 0 0 10px rgba(212, 175, 55, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: #d4af37;
    color: #050b14;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Glassmorphism */
.glass-card {
    background: rgba(8, 18, 32, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent, transparent, transparent, rgba(212, 175, 55, 1), #fff, rgba(212, 175, 55, 1), transparent);
    animation: luxurySpin 3s linear infinite;
    z-index: -1;
    opacity: 0.2; /* Significantly decreased opacity */
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(8, 18, 32, 0.85);
    border-radius: 18px;
    z-index: -1;
}

@keyframes luxurySpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glass-card:hover {
    transform: translateY(-20px) scale(1.05) rotateX(10deg) rotateY(-10deg);
    border-color: rgba(212, 175, 55, 1);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.4), inset 0 0 40px rgba(212, 175, 55, 0.2);
    z-index: 20;
}

.glass-card:hover::before {
    opacity: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-accent {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for navbar */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #0a192f 0%, #050b14 100%);
    z-index: -2;
    animation: luxuryPulse 8s ease-in-out infinite alternate;
}

@keyframes luxuryPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    opacity: 0.05; /* Significantly decreased opacity */
    z-index: -1;
    animation: luxurySpin 120s linear infinite;
}

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

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #d4af37, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    margin-top: 0.5rem;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    margin-top: 2rem;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.features-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.image-placeholder {
    height: 400px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(0,0,0,0.5));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    background-size: cover;
    background-position: center;
}

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

.service-card {
    text-align: center;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.1);
}

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

/* Fleet Carousel (Grid for simplicity without heavy JS) */
.fleet-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.car-card {
    padding: 0;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.car-card:nth-child(2) { animation-delay: 1s; }
.car-card:nth-child(3) { animation-delay: 2s; }
.car-card:nth-child(4) { animation-delay: 3s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.car-img {
    height: 250px;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.car-card:hover .car-img {
    transform: scale(1.15) rotate(2deg);
}

.car-info {
    padding: 1.5rem;
    text-align: center;
}

.car-info h3 {
    margin-bottom: 0.5rem;
}

.price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-item h4 {
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--text-muted);
}

.contact-item a:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0,0,0,0.4);
}

/* Footer */
.footer {
    background-color: #05080c;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.social-link:hover {
    color: #4267B2; /* Facebook Blue */
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations (Intersection Observer Targets) */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.appear {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-left.appear {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-bottom.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: var(--transition);
        border-top: 1px solid var(--glass-border);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* Asset Backgrounds */
.bg-mercedes-eyes { background-image: url('../assets/mercedes_eyes.png'); }
.bg-kia-cerato { background-image: url('../assets/kia_cerato.png'); }
.bg-mercedes-e200 { background-image: url('../assets/mercedes_e200.png'); }
.bg-chevrolet { background-image: url('../assets/chevrolet_optra.png'); }
.bg-mercedes-interior { background-image: url('../assets/mercedes_interior.png'); }
