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

:root {
    --bg-color: #000000;
    --bg-secondary: #0A0A0A;
    --border-color: #27272a;
    /* Zinc 800 for subtle borders */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    /* Zinc 400 */
    --accent: #ffa103;
    /* Raed Yellow */

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --spacing-unit: 1.5rem;
    --max-width: 1400px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    height: 60px;
    width: auto;
    filter: invert(1);
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--accent);
    animation: loader-slide 1.5s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes loader-slide {
    0% {
        left: -40%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: -40%;
    }
}

/* Utility Classes */
.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mono-tag::before {
    content: '[';
    color: var(--border-color);
}

.mono-tag::after {
    content: ']';
    color: var(--border-color);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 161, 3, 0.05);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo img {
    height: 48px;
    width: auto;
    filter: invert(1);
    /* Ensure logo is white on black */
}

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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.btn-hitech {
    background-color: #ffb333;
    /* Neon Yellow */
    color: #000000 !important;
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    /* Match nav size */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 179, 51, 0.4);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    /* Tech shape */
    text-decoration: none;
    display: inline-block;
}

.btn-hitech:hover {
    background-color: #FFFFFF;
    color: #000000 !important;
    box-shadow: 0 0 25px rgba(255, 179, 51, 0.8);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    padding-top: 160px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Ensure left alignment */
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    min-width: 50%;
    /* Ensure text defines its space */
}

.hero-model {
    flex: 1;
    height: 600px;
    /* Large height for impact */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    /* Spotlight Effect - Subtle (Always Visible) */
    mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), black 0%, rgba(0, 0, 0, 0.6) 100%);
    -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), black 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 100%;
    /* Allow full width to align with container edge */
    margin-bottom: 3rem;
    margin-left: 0;
    text-align: left;
    margin-left: 0;
    text-align: left;
    /* Interactive Gradient */
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #ffffff 10%, #444444 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Ensure hardware acceleration for smooth updates */
    will-change: background-position;
}

@media (max-width: 960px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        text-align: left;
        /* Keep left alignment on mobile? Actually better usually to center if column */
    }

    .hero-model {
        height: 400px;
        width: 100%;
    }
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Canvas Background (Subtle Grid/Particles) */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}



/* About Section */
.about-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(20, 20, 20, 0.5) 100%);
}

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

.about-header h3 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
}

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

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

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #ffb333;
    /* Amber accent */
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 960px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }
}

/* Clients Section */
.clients-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.clients-header {
    margin-bottom: 2rem;
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.client-logo img {
    height: 40px;
    /* Consistent height */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7) opacity(0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.client-logo img:hover {
    filter: grayscale(0%) brightness(1) opacity(1);
    transform: scale(1.05);
}

/* Services Grid (Layout inspired by 'Models') */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    letter-spacing: -0.02em;
    margin-top: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.service-card {
    padding: 3rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    position: relative;
}

.service-card:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
}

/* Accent corner on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer (Grid Style) */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simplification for speed */
    }

    .hero-content h1 {
        font-size: 3rem;
    }

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

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

/* Hotfix: Spacing between About and Capabilities */
#services {
    padding-top: 120px !important;
    /* Force space as requested */
}/* Contact Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #050505;
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 4px;
    width: 95%;
    max-width: 550px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 161, 3, 0.05);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.modal-content::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 161, 3, 0.05);
    box-shadow: 0 0 15px rgba(255, 161, 3, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Custom placeholder color */
::placeholder {
    color: rgba(255, 255, 255, 0.2);
}
