/* --- Variables & Reset --- */
:root {
    --primary: #1A1A1A;
    --accent: #FF3E78;
    --accent-hover: #E0356A;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
    --text-gray: #6B7280;
    --border: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* --- Creative Preloader Styles --- */
.preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
}

/* Car Animation */
.car-animation {
    position: relative;
    width: 200px;
    height: 120px;
    margin: 0 auto 2rem;
}

.car-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--accent);
    animation: carBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(255, 62, 120, 0.3));
}

@keyframes carBounce {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
}

/* Road Animation */
.road {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.road-line {
    position: absolute;
    width: 30px;
    height: 100%;
    background: var(--accent);
    animation: roadMove 1.5s linear infinite;
}

.road-line:nth-child(1) { left: -30px; animation-delay: 0s; }
.road-line:nth-child(2) { left: -30px; animation-delay: 0.5s; }
.road-line:nth-child(3) { left: -30px; animation-delay: 1s; }

@keyframes roadMove {
    0% { left: -30px; }
    100% { left: 200px; }
}

/* Logo & Text */
.preloader-logo h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease forwards;
    letter-spacing: -1px;
}

.preloader-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* Progress Bar */
.progress-container {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 2rem auto 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, #FF6B9D 100%);
    border-radius: 3px;
    animation: progressFill 2s ease-in-out forwards;
    box-shadow: 0 0 10px rgba(255, 62, 120, 0.5);
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .car-body { font-size: 3rem; }
    .preloader-logo h2 { font-size: 2rem; }
    .preloader-tagline { font-size: 0.9rem; }
    .progress-container { width: 150px; }
}
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

/* --- Typography & Utilities --- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; margin-bottom: 1rem; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
p { margin-bottom: 1rem; color: var(--text-gray); word-wrap: break-word; overflow-wrap: break-word; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.bg-light { background-color: var(--bg-light); }
.text-accent { color: var(--accent); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem; border-radius: var(--radius); font-weight: 600;
    transition: all 0.3s ease; cursor: pointer; border: none; font-size: 1rem;
}
.btn-primary { background-color: var(--accent); color: var(--white); }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background-color: var(--primary); color: var(--white); }

/* --- Header --- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a { font-weight: 600; font-size: 0.95rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: var(--white);
    min-width: 220px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 1px solid var(--border); opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.3s ease; padding: 0.5rem 0;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 0.75rem 1.5rem; font-size: 0.9rem; }
.dropdown-menu a:hover { background-color: var(--bg-light); color: var(--accent); }

/* Mobile Menu Toggle */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

/* --- Hero Section --- */
.hero {
    position: relative; padding: 160px 0 100px; background: var(--primary); color: var(--white);
    background-image: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.8)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center;
}
.hero p { color: rgba(255, 255, 255, 0.8); font-size: 1.125rem; max-width: 600px; }

/* --- Search Box --- */
.search-box {
    background: var(--white); padding: 2rem; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); margin-top: 3rem; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; align-items: end;
}
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--text-gray); margin-bottom: 0.5rem; }
.form-control {
    width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--border); border-radius: 8px;
    font-size: 0.95rem; background: var(--bg-light); color: var(--primary);
    appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
}
.form-control:focus { outline: none; border-color: var(--accent); ring: 2px solid rgba(255, 62, 120, 0.2); }

/* --- Cards & Grids --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-gray); margin: 0.75rem 0; flex-wrap: wrap; }
.card-meta span { display: flex; align-items: center; gap: 0.35rem; }

/* --- Finance Accordion --- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.accordion-header {
    width: 100%; padding: 1.25rem 1.5rem; background: var(--white); border: none;
    text-align: left; font-weight: 700; font-size: 1.1rem; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.accordion-header:hover { background: var(--bg-light); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--bg-light); }
.accordion-content-inner { padding: 1.5rem; }
.accordion-content.active { max-height: 1000px; }
.accordion-icon { transition: transform 0.3s ease; }
.accordion-header.active .accordion-icon { transform: rotate(180deg); }

/* --- Footer --- */
.footer { background: var(--primary); color: rgba(255, 255, 255, 0.8); padding: 4rem 0 2rem; }
.footer h4 { color: var(--white); margin-bottom: 1.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 3rem; padding-top: 2rem; text-align: center; font-size: 0.9rem; }

/* --- Mobile Responsiveness (No Overlapping) --- */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        position: fixed; top: 80px; left: 0; width: 100%; background: var(--white);
        flex-direction: column; padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--border);
        transform: translateY(-150%); transition: transform 0.3s ease; box-shadow: var(--shadow-lg);
    }
    .nav-links.active { transform: translateY(0); }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 1rem; display: none; }
    .dropdown.active .dropdown-menu { display: block; }
    .search-box { grid-template-columns: 1fr; }
    .hero { padding: 120px 0 60px; text-align: center; }
    .hero p { margin: 0 auto 2rem; }
}
/* --- About Page High-Imagery Styles --- */
.about-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px; /* Offset for fixed header */
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26,26,26,0.6), rgba(26,26,26,0.9));
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}
.hero-content h1 { color: white; margin-bottom: 1rem; }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.25rem; max-width: 600px; margin: 0 auto; }

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split-image { position: relative; }
.split-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: block;
}
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.experience-badge .years { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; }
.experience-badge .text { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; }

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.image-card {
    position: relative;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}
.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.image-card:hover img { transform: scale(1.08); }
.image-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
    transition: background 0.3s ease;
}
.image-card:hover .image-card-overlay { 
    background: linear-gradient(to top, rgba(255,62,120,0.9) 0%, rgba(26,26,26,0.5) 60%, transparent 100%); 
}
.image-card-overlay i { font-size: 2rem; margin-bottom: 0.75rem; color: var(--accent); transition: color 0.3s ease; }
.image-card:hover .image-card-overlay i { color: white; }
.image-card-overlay h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: white; }
.image-card-overlay p { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.5; }

/* Scroll Animations */
.fade-in-up { animation: fadeInUp 0.8s ease forwards; opacity: 0; transform: translateY(30px); }
.fade-in-left { animation: fadeInLeft 0.8s ease forwards; opacity: 0; transform: translateX(-30px); }
.fade-in-right { animation: fadeInRight 0.8s ease forwards; opacity: 0; transform: translateX(30px); }
.delay-1 { animation-delay: 0.2s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { to { opacity: 1; transform: translateX(0); } }

/* Mobile Responsiveness (Prevents Overlapping) */
@media (max-width: 768px) {
    .split-layout { grid-template-columns: 1fr; gap: 3rem; }
    .experience-badge { right: 10px; bottom: -10px; padding: 1rem; }
    .experience-badge .years { font-size: 2rem; }
    .image-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
}