/* --- VARIABLES --- */
:root {
    --primary: #00e676; 
    --primary-dark: #00b359;
    --dark-bg: #0a0a0a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden; 
    min-height: 100vh;
}

/* --- 3D CANVAS BACKGROUND --- */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo { height: 50px; width: auto; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active-link { color: var(--primary); }

.nav-menu a.active-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* --- BUTTONS --- */
.btn-primary {
    padding: 10px 24px;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--primary);
}

.btn-secondary {
    padding: 10px 24px;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid var(--text-main);
    transition: 0.3s;
    cursor: pointer;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-ghost {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.3s;
}
.btn-ghost:hover {
    border-color: white;
    background: rgba(255,255,255,0.05);
}

/* --- TAB LOGIC --- */
.tab-content {
    display: none; 
    flex-direction: column;
    padding: 8rem 10% 0rem; 
    min-height: 100vh;
    animation: fadeIn 0.6s ease;
}
.active-tab { display: flex; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HOME LAYOUT & COMPONENTS --- */
.home-layout {
    align-items: center;
    justify-content: flex-start;
    padding-top: 140px; 
    gap: 4rem;
}

/* Hero */
.hero-container {
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}
.badge-glow {
    background: rgba(0, 230, 118, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
    display: inline-block;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 230, 118, 0.3));
}
.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}
.btn-group { display: flex; gap: 1rem; justify-content: center; }

/* Marquee */
.tech-marquee-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.5), transparent);
    padding: 2rem 0;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.7;
}
.tech-marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.track {
    display: flex;
    gap: 4rem;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}
.track i {
    font-size: 3rem;
    color: #444;
    transition: 0.3s;
}
.track i:hover {
    color: var(--primary);
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--primary));
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Cards & Grid */
.values-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}
.glass-card, .value-card, .service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s;
    text-align: left;
}
.glass-card:hover, .value-card:hover, .service-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px);
    border-color: var(--primary);
}
.card-icon, .service-card .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: rgba(0, 230, 118, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.value-card h3, .service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: white; }
.value-card p, .service-card p { color: var(--text-muted); line-height: 1.5; }

/* Process Section */
.process-section {
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}
.step-card { position: relative; }
.step-number {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 3rem; font-weight: 900;
    color: var(--primary); opacity: 0.2;
}

/* --- SHARED SECTIONS --- */
.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h2 { font-size: 3rem; margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; }

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 12px;
}
.glass-panel.narrow { max-width: 600px; margin: 0 auto; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* About & Careers */
.split-view { display: flex; gap: 4rem; align-items: center; }
.text-block { flex: 1.5; }
.stat-block { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature-list { list-style: none; margin-top: 1rem; }
.feature-list li { margin-bottom: 0.5rem; color: var(--text-muted); }
.feature-list i { color: var(--primary); margin-right: 10px; }
.stat-card {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem; text-align: center; border-radius: 8px;
}
.stat-card h1 { font-size: 2.5rem; color: var(--primary); margin: 0; }
.stat-card span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }

.careers-container { display: flex; flex-direction: column; gap: 1rem; max-width: 800px; margin: 0 auto; }
.job-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem; border: 1px solid var(--glass-border); border-radius: 8px; background: var(--glass);
}

/* Contact Form */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
    color: #fff; border-radius: 4px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.full-width { width: 100%; }
.contact-footer { margin-top: 2rem; text-align: center; color: var(--text-muted); }
.contact-footer p { margin-bottom: 0.5rem; }
.contact-footer i { color: var(--primary); margin-right: 8px; }
.contact-footer a { color: var(--text-main); text-decoration: none; transition: 0.3s; }
.contact-footer a:hover { color: var(--primary); }

/* Footer */
.global-footer {
    margin-top: auto;
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    h1, .hero-title { font-size: 2.5rem; }
    .split-view { flex-direction: column; }
    .grid-3, .values-section, .process-steps { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn-primary, .btn-ghost { width: 100%; text-align: center; }
    .home-layout { gap: 3rem; }
}