* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #001435;
    --light-color: #ffffff;
    --text-light: #ffffff;
    --text-dark: #001435;
    --border-color: rgba(0, 20, 53, 0.1);
    --shadow-color: rgba(0, 20, 53, 0.1);
    
    /* Add missing variables that were being used */
    --primary-blue: #001435;
    --secondary-blue: #003281;
    --white: #ffffff;
    --medium-gray: #666666;
    --light-gray: #f8f9fa;
    --accent-orange: #e8731b;
    
    /* Button colors */
    --btn-primary: #003281;
    --btn-primary-hover: #003f9e;
    --btn-border: rgba(232, 115, 19, 1);
    --btn-border-hover: rgba(232, 115, 19, 0.8);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: var(--primary-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

main {
    min-height: 100vh;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    height: 50px;
}

.logo-container img {
    height: 100%;
    width: auto;
    display: block;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light-color);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--light-color);
    padding: 6rem 0;
    text-align: center;
    background: url('./img/hero-circuit.webp') center/cover no-repeat;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #001435;
    opacity: 0.85;
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--btn-primary);
    color: var(--light-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    border: 3px solid var(--btn-border);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    background: var(--btn-primary-hover);
    border-color: var(--btn-border-hover);
}

/* Services Section */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.15);
}


.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.service-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-image:hover {
    transform: scale(1.05);
}

/* Brands Section */
.brands {
    background: var(--white);
    padding: 3rem 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.brand-tag {
    background: rgba(0, 20, 53, 0.05);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 20, 53, 0.08);
}

.brand-tag:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 20, 53, 0.15);
}

/* Contact Section */
.contact {
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e8b373, #f4c790);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 20px;
    color: var(--white);
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    opacity: 0.9;
}

footer a {
    color: #e8b373;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: #f4c790;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        position: relative;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }


    .hero {
        padding: 3rem 0;
    }

    .section {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-image {
        height: 180px;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .section {
        padding: 2rem 0;
    }

    .service-card,
    .contact-card {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .service-image {
        height: 150px;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Legal Content Styles */
.hero-small {
    padding: 4rem 0;
}

.legal-content {
    background: var(--light-color);
}

.legal-grid {
    display: grid;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.legal-text h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.legal-text p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-text ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    padding: 1.5rem;
    background: rgba(0, 20, 53, 0.03);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
}
