/* ===== Holding Page ===== */
.holding-page {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a !important;
    color: #ffffff;
    text-align: center;
    padding: 40px 24px;
    overflow: hidden;
}

.holding-page.hidden {
    display: none !important;
}

.holding-content {
    max-width: 500px;
}

.holding-logo {
    height: 60px;
    margin-bottom: 40px;
}

.holding-page h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.holding-page p {
    color: #9ca3af;
    margin-bottom: 16px;
    line-height: 1.7;
}

.holding-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #3B82F6, #84CC16, #F97316, #8B5CF6);
    margin: 32px auto;
}

.holding-subtext {
    font-size: 14px;
    margin-bottom: 24px;
}

.holding-footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
}

.admin-link {
    cursor: pointer;
    opacity: 0.3;
    font-size: 10px;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    opacity: 0.6;
}

/* Full Site Hidden State */
.full-site {
    display: none !important;
}

.full-site.active {
    display: block !important;
}

/* Password Modal */
.password-modal {
    max-width: 360px;
    text-align: center;
}

.password-modal h3 {
    margin-bottom: 20px;
}

#passwordForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#passwordForm input {
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

#passwordForm input:focus {
    border-color: #8B5CF6;
}

.password-error {
    display: none;
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
}

.password-error.show {
    display: block;
}

/* ===== CSS Variables ===== */
:root {
    --color-blue: #3B82F6;
    --color-green: #84CC16;
    --color-orange: #F97316;
    --color-purple: #8B5CF6;
    --color-dark: #1a1a1a;
    --color-gray-900: #111827;
    --color-gray-800: #1f2937;
    --color-gray-700: #374151;
    --color-gray-600: #4b5563;
    --color-gray-500: #6b7280;
    --color-gray-400: #9ca3af;
    --color-gray-300: #d1d5db;
    --color-gray-200: #e5e7eb;
    --color-gray-100: #f3f4f6;
    --color-white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-purple);
    color: var(--color-white);
    border-color: var(--color-purple);
}

.btn-primary:hover {
    background-color: #7c3aed;
    border-color: #7c3aed;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-gray-700);
    border-color: var(--color-gray-300);
}

.btn-outline:hover {
    background-color: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}

.btn-white:hover {
    background-color: var(--color-gray-100);
    border-color: var(--color-gray-100);
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.btn-dark:hover {
    background-color: var(--color-gray-800);
    border-color: var(--color-gray-800);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-600);
    transition: var(--transition);
}

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

.nav-links .btn {
    padding: 10px 20px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 72px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-dark);
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.shape {
    position: absolute;
    background-color: var(--color-gray-800);
}

.shape-1 {
    width: 60%;
    height: 80%;
    top: 10%;
    left: -10%;
    transform: rotate(-15deg);
}

.shape-2 {
    width: 50%;
    height: 70%;
    top: 20%;
    right: -5%;
    transform: rotate(10deg);
    background-color: var(--color-gray-700);
}

.shape-3 {
    width: 40%;
    height: 50%;
    bottom: -10%;
    left: 30%;
    transform: rotate(-5deg);
    background-color: rgba(255, 255, 255, 0.03);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    padding: 0 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-400);
    margin-bottom: 32px;
}

/* ===== Tagline Section ===== */
.tagline {
    padding: 80px 24px;
    text-align: center;
    background-color: var(--color-white);
}

.tagline-text {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--color-gray-700);
    max-width: 800px;
    margin: 0 auto 24px;
}

.tagline-highlight {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Section Labels ===== */
.section-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 48px;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.about-content .lead {
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.about-content p {
    color: var(--color-gray-600);
    margin-bottom: 24px;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.road-analytics {
    background: linear-gradient(135deg, var(--color-gray-800) 0%, var(--color-dark) 100%);
    position: relative;
    overflow: hidden;
}

.road-analytics::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: linear-gradient(to right,
        rgba(59, 130, 246, 0.3) 0%,
        rgba(132, 204, 22, 0.3) 50%,
        rgba(249, 115, 22, 0.3) 100%);
    filter: blur(40px);
    border-radius: 50%;
}

/* ===== Team Section ===== */
.team {
    padding: 100px 0;
    background-color: var(--color-gray-100);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.team-content p {
    color: var(--color-gray-600);
    margin-bottom: 24px;
    line-height: 1.8;
}

.stones {
    background: linear-gradient(180deg, #607d8b 0%, #455a64 100%);
    position: relative;
}

.stones::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background-color: var(--color-white);
}

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

.project-card {
    text-align: left;
}

.project-image {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
}

.scheduling {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    position: relative;
}

.scheduling::after {
    content: 'Schedule';
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--color-green);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.automation {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.f1-racing {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.project-description {
    font-size: 14px;
    color: var(--color-gray-600);
    margin-bottom: 12px;
    line-height: 1.6;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.project-date {
    font-size: 13px;
    color: var(--color-gray-500);
    text-transform: uppercase;
}

/* ===== CTA Section ===== */
.cta {
    padding: 100px 0;
    background-color: var(--color-white);
}

.cta-box {
    background-color: var(--color-gray-100);
    padding: 80px 40px;
    text-align: center;
    border-radius: 8px;
}

.cta-box h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-gray-400);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-gray-800);
}

.footer-logo img {
    height: 36px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 14px;
}

.disclaimer-toggle {
    background: none;
    border: none;
    color: var(--color-gray-400);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.disclaimer-toggle:hover {
    color: var(--color-white);
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-gray-500);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-dark);
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.modal-content p {
    color: var(--color-gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .about-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-grid {
        direction: rtl;
    }

    .team-grid > * {
        direction: ltr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .btn {
        width: 100%;
        text-align: center;
    }

    .hero {
        min-height: 70vh;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cta-box {
        padding: 48px 24px;
    }

    .modal-content {
        padding: 24px;
    }
}
