/* =========================================
   VARIABLES & DESIGN SYSTEM
========================================= */
:root {
    /* Colors */
    --color-primary: #0f172a;
    /* Deep Slate */
    --color-primary-light: #1e293b;
    --color-accent: #3b82f6;
    /* Modern Blue */
    --color-accent-hover: #2563eb;
    --color-secondary: #0ea5e9;
    /* Vibrant Sky */

    --color-bg-main: #f8fafc;
    --color-bg-card: #ffffff;
    --color-bg-alt: #f1f5f9;

    --color-text-main: #334155;
    --color-text-muted: #64748b;
    --color-text-heading: #0f172a;
    --color-text-light: #f8fafc;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* =========================================
   GLOBAL RESET & TYPOGRAPHY
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--color-bg-alt);
}

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

/* Decorative Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.3), rgba(14, 165, 233, 0.3));
    top: -200px;
    right: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.1), rgba(59, 130, 246, 0.2));
    top: 40%;
    left: -200px;
    animation-delay: -5s;
}

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

    50% {
        transform: translate(50px, 100px) scale(1.1);
    }

    100% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* =========================================
   BUTTONS
========================================= */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: var(--color-text-light);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
}

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

/* =========================================
   HEADER & NAVIGATION
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    padding: 0.2rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height var(--transition-fast);
}

.header.scrolled .nav-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 1001;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-primary);
}

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

.nav-menu {
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--color-text-main);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 1001;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Common Inner Page Hero */
.inner-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    text-align: center;
    padding-top: 130px;
    /* Header is ~80px, leaving 50px visible padding */
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.inner-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/about.png') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.inner-hero .container {
    position: relative;
    z-index: 1;
}

.inner-hero .hero-title {
    color: #fff;
}

.inner-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
    min-height: 40vh;
}

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

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

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

/* Glassmorphism Cards in Hero */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform var(--transition-medium);
}

.main-glass {
    width: 250px;
    height: 250px;
    z-index: 3;
    animation: float-slow 8s infinite alternate ease-in-out;
}

.main-glass h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.main-glass p {
    font-weight: 500;
    color: var(--color-text-muted);
}

.small-glass-1 {
    width: 180px;
    height: 180px;
    top: 50px;
    right: 0;
    z-index: 2;
    animation: float-slow 10s infinite alternate-reverse ease-in-out;
}

.small-glass-2 {
    width: 160px;
    height: 160px;
    bottom: 50px;
    left: 20px;
    z-index: 1;
    animation: float-slow 9s infinite alternate ease-in-out;
}

.glass-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

@keyframes float-slow {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    position: relative;
}

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

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

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* =========================================
   SECTION HEADERS
========================================= */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

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

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

.about-text .lead {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.5;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.stat-card:hover {
    transform: translateY(-5px);
}

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

.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.stat-card .plus {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    vertical-align: top;
}

.stat-label {
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

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

.vertical-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    top: -50px;
    right: -50px;
    border-radius: 50%;
    transition: transform var(--transition-medium);
}

.vertical-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.2);
}

.vertical-card:hover .card-glow {
    transform: scale(2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
}

.vertical-card:hover .card-icon {
    background: var(--color-accent);
    color: #fff;
    transform: rotate(5deg) scale(1.1);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-link {
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-fast);
}

.vertical-card:hover .card-link {
    gap: 0.8rem;
}

/* =========================================
   AUTOMOTIVE RANGE
========================================= */
.auto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.auto-tag {
    background: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    cursor: default;
}

.auto-tag i {
    color: var(--color-accent);
}

.auto-tag:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* =========================================
   CTA SECTION
========================================= */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    padding: 6rem 0;
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="%23ffffff" fill-opacity="0.05"/></svg>');
}

.cta-container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   FORM ELEMENTS
========================================= */
.form-wrapper {
    background: var(--color-bg-card);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: var(--color-primary);
    color: var(--color-text-light);
    padding: 5rem 0 2rem;
}

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

.footer-logo {
    margin-bottom: 1.5rem;
    display: inline-flex;
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-logo img {
    /* Logo natively displays correctly, so removing invert filter */
    max-height: 50px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 8px;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.footer h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-item i {
    color: var(--color-accent);
    margin-top: 5px;
}

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

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-container,
    .about-grid {
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-md);
        padding: 2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition-medium);
        pointer-events: none;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero-container,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr !important;
    }

    .about-visuals {
        min-height: 350px;
        order: -1;
        margin-bottom: 2rem;
    }

    .floating-badge {
        left: 0 !important;
        bottom: 0 !important;
        transform: scale(0.9);
    }

    .hero {
        text-align: center;
        padding-top: 120px;
    }

    .hero-subtitle {
        margin: 1.5rem auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .main-glass {
        width: 190px;
        height: 190px;
        padding: 1.5rem;
    }

    .main-glass h3 {
        font-size: 1.4rem;
    }

    .small-glass-1 {
        width: 130px;
        height: 130px;
        padding: 1rem;
        top: 20px;
        right: -10px;
    }

    .small-glass-2 {
        width: 130px;
        height: 130px;
        padding: 1rem;
        bottom: 20px;
        left: -10px;
    }

    .glass-card h3 {
        font-size: 1rem;
    }

    .glass-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .inner-hero {
        min-height: 40vh;
        padding-top: 100px;
        padding-bottom: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .hero-visual {
        display: none;
    }
    
    .main-glass {
        width: 170px;
        height: 170px;
        padding: 1rem;
    }
    
    .small-glass-1,
    .small-glass-2 {
        width: 110px;
        height: 110px;
        padding: 0.8rem;
    }

    .small-glass-1 {
        right: -15px;
        top: 20px;
    }

    .small-glass-2 {
        left: -15px;
        bottom: 20px;
    }

    .glass-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .main-glass h3 {
        font-size: 1.2rem;
    }
}