/* --- CSS Variables & Theme --- */
:root {
    --bg-dark: #0a0f18;
    --bg-card: #141b2b;
    --bg-glass: rgba(20, 27, 43, 0.6);
    --text-main: #f0f4f8;
    --text-muted: #9ba4b5;
    --accent-gold: #cd9f4a;
    --accent-gold-hover: #b08535;
    --accent-blue: #2a4b8d;
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 6rem 0;
}

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.w-100 { width: 100%; }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.2;
}

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

.section-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 500;
    font-family: var(--font-head);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #111;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(205, 159, 74, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: #111;
}

/* --- Header / Nav --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

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

.logo {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-first { color: var(--text-main); }
.logo-second { color: var(--accent-gold); }
.logo-badge {
    background: var(--accent-blue);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    letter-spacing: 1px;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-links .btn-nav {
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
}

.nav-links .btn-nav:hover {
    background: var(--accent-gold);
    color: #111;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 5rem; /* offset for nav */
}

/* Animated background shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-gold);
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
    opacity: 0.2;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #6a2a8d;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.established-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(205, 159, 74, 0.1);
    color: var(--accent-gold);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(205, 159, 74, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--accent-gold);
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.glass-stat h3 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

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

.glass-stat.span-full {
    grid-column: span 2;
    margin-top: 1rem;
}

.glass-stat h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gold);
    border-radius: 3px;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(205, 159, 74, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(205, 159, 74, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

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

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

/* --- Business Mechanic --- */
.mechanic {
    background: linear-gradient(135deg, rgba(20, 27, 43, 0.5) 0%, rgba(10, 15, 24, 0.8) 100%);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.mechanic-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.brand-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-blue);
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.mechanic-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.mechanic-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.mechanic-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.mechanic-list span {
    color: var(--accent-gold);
}

.mechanic-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.gear-graphic {
    position: relative;
}

.gear {
    font-size: 12rem;
    color: rgba(255,255,255,0.05);
    filter: drop-shadow(0 0 20px rgba(205, 159, 74, 0.2));
}

.gear-large {
    animation: spin 20s linear infinite;
}

.gear-small {
    position: absolute;
    bottom: -20px;
    left: -40px;
    font-size: 6rem;
    animation: spin 10s linear infinite reverse;
}

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

/* --- Split Section (Referrals/Careers) --- */
.container-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.split-card {
    padding: 3.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.split-card p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.dark-mode-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}

.dark-mode-card h3 { color: var(--text-main); }

.accent-card {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
    color: #111;
}

.simple-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.simple-form input {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
}

.simple-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.simple-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* --- Footer --- */
.footer {
    background: #05080c;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-head);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-main);
    font-size: 0.9rem;
}

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

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

/* --- Responsive & Utilities --- */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left { transform: translateX(-50px); }
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right { transform: translateX(50px); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

@media (max-width: 900px) {
    .hero-content, .mechanic-content, .container-split, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* simple hidden for mobile, need JS to toggle */
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero { text-align: center; }
    .hero-cta-group { justify-content: center; }
    .mechanic-visual { display: none; }
}

/* --- Team Section --- */
.team-group-title {
    font-size: 1.8rem;
    color: var(--accent-gold);
    font-family: var(--font-head);
    text-align: center;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.team-member {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: rgba(205, 159, 74, 0.1);
    color: var(--accent-gold);
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    border: 2px solid var(--accent-gold);
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.team-member p {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.mb-5 { margin-bottom: 3rem; }

/* --- AI Modal --- */
.ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 24, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.ai-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ai-modal-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

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

.ai-modal-content h2 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.ai-modal-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.ai-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* --- Chat Widgets --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    z-index: 9998;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    background: rgba(10, 15, 24, 0.9);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.chat-header h4 {
    margin: 0;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-chat:hover {
    color: var(--text-main);
}

.chat-body {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-msg.bot {
    background: rgba(42, 75, 141, 0.2);
    border: 1px solid rgba(42, 75, 141, 0.4);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: rgba(205, 159, 74, 0.1);
    border: 1px solid rgba(205, 159, 74, 0.3);
    color: var(--accent-gold);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-dark);
}

.chat-input-area input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-body);
    outline: none;
}

.chat-input-area button {
    background: var(--accent-gold);
    color: #111;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-input-area button:hover {
    background: var(--accent-gold-hover);
}

/* --- Scrollers (Clients & Partners) --- */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.marquee {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.marquee-left .marquee-content {
    animation: scroll-left 40s linear infinite;
}

.marquee-right .marquee-content {
    animation: scroll-right 30s linear infinite;
}

.marquee-content img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-fast);
}

.marquee-content img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Pause on hover */
.marquee:hover .marquee-content {
    animation-play-state: paused;
}
