/* 
 * Premium Auto Portal Theme
 * Palette: Deep Navy (#0A192F), Electric Blue (#00A3FF), White (#FFFFFF)
 * Font: Inter, Montserrat
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Montserrat:wght@500;700;800&display=swap');

:root {
    --primary-color: #00A3FF;       /* Electric Blue */
    --hover-color: #0081CC;
    --bg-dark: #0A192F;             /* Deep Navy */
    --bg-darker: #060F1E;           /* Darker Navy for Footer/Header */
    --bg-card: #112240;             /* Card Background */
    --text-main: #E6F1FF;           /* Off-white */
    --text-muted: #8892b0;
    --accent-red: #ff3366;          /* For high impact buttons/alerts if needed */
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

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

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
}

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.2);
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    background: linear-gradient(135deg, #00A3FF 0%, #0066CC 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 163, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.section {
    padding: 100px 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.mb-4 { margin-bottom: 2rem; }

/* Header */
header {
    background-color: rgb(10 25 47 / 95%);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.8)), url('../img/hero-bg.jpg'); /* Placeholder */
    background-size: cover;
    background-position: center;
    padding-top: 80px; /* Offset fixed header */
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Feature Cards */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

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

/* Responsive */
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    
    h1 { font-size: 2.5rem; }
    
    /* Fix Hero Text Size - Overriding the specific selector */
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
        padding-bottom: 60px;
        text-align: center;
    }
    
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        border-top: 1px solid rgba(255,255,255,0.05);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    
    .nav-links a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
    }

    .mobile-menu-btn { display: block !important; cursor: pointer; }

    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}
