@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;400;700;800&family=Outfit:wght@100;400;900&display=swap');

:root {
    --bg: #050505;
    --accent: #009FE3;
    --text: #ffffff;
    --text-muted: #666;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Locomotive Scroll Base */
html.has-scroll-smooth { overflow: hidden; }
.has-scroll-smooth body { overflow: hidden; }

/* Header */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(5,5,5,0.9), transparent);
    backdrop-filter: blur(15px);
}

.logo-img { height: 55px; width: auto; }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    transition: 0.3s;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }

/* Sections */
.section-padding { padding: 120px 5%; }

.tricorder-hud { display: none; }

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    background: linear-gradient(to right, rgba(5,5,5,1) 20%, rgba(5,5,5,0.3)), url('../img/hero_bg.png');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(50px, 10vw, 120px);
    line-height: 0.85;
    text-transform: uppercase;
    font-weight: 900;
    margin: 0;
}

.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
}

#projects {
    min-height: 100vh;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 4px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
    cursor: pointer;
}

.portfolio-card:hover { 
    border-color: var(--accent); 
    transform: scale(1.03);
    z-index: 10;
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

/* Simple Lightbox */
#lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}

#lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(0,159,227,0.3);
}

/* Service Blocks */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 4px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover { border-color: var(--accent); }

.service-img-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #000;
    border: 1px solid rgba(255,255,255,0.05);
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.8);
    transition: 0.8s cubic-bezier(0.2, 0, 0.2, 1);
    transform: scale(1.1);
}

.service-card:hover .service-img-wrapper img {
    filter: grayscale(0) brightness(1);
    transform: scale(1);
}

.service-card h3 { font-family: 'Outfit', sans-serif; font-size: 24px; text-transform: uppercase; color: var(--accent); }
.service-card p { margin-top: 15px; color: #888; font-size: 14px; }

/* Team Section - Avatar Style */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-box {
    width: 80px;
    height: 80px;
    background: rgba(0, 159, 227, 0.1);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 159, 227, 0.2);
}

.team-info h3 { font-size: 20px; margin-bottom: 5px; }
.team-info .nick { font-size: 10px; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }

/* Massive Text Background */
.massive-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(100px, 18vw, 300px);
    font-weight: 900;
    opacity: 0.03;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: -1;
    text-transform: uppercase;
    pointer-events: none;
}

.sticky-filter-wrapper {
    position: sticky;
    top: 100px;
    z-index: 500;
    margin-top: 30px;
    padding: 10px 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(5,5,5,0.7);
    backdrop-filter: blur(15px);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid var(--border);
    width: fit-content;
    margin: 0 auto;
}

.filter-btn {
    background: none; border: 1px solid transparent;
    color: #888; padding: 8px 20px; font-size: 11px;
    text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; transition: 0.3s; border-radius: 25px;
    font-weight: 700;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.contact-link:hover {
    color: var(--accent) !important;
    text-shadow: 0 0 20px rgba(0, 159, 227, 0.4);
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

.year-indicator {
    position: absolute;
    left: 40px;
    top: 0;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
}

.year-indicator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 159, 227, 0.3);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.year-indicator::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotate 15s linear infinite reverse;
}


@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.year-val { font-size: 18px; font-weight: 900; color: white; letter-spacing: 2px; position: relative; z-index: 2; }
.era-label { font-size: 8px; font-weight: 400; color: var(--accent); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 5px; opacity: 0.8; position: relative; z-index: 2; }

/* Inquiry Bubble */
.inquiry-bubble {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 159, 227, 0.4);
    transition: 0.3s;
}
.inquiry-bubble:hover { transform: scale(1.1) rotate(5deg); }

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content {
    background: rgba(15,15,15,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 60px;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(30px);
    transition: 0.4s;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 30px; right: 30px;
    background: none; border: none;
    color: #444; font-size: 30px; cursor: pointer;
    transition: 0.3s;
}
.modal-close:hover { color: white; }

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 20px;
    outline: none;
    transition: 0.3s;
}
.form-input:focus { border-color: var(--accent); background: rgba(0, 159, 227, 0.05); }

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: 0.3s;
}
.submit-btn:hover { filter: brightness(1.2); transform: translateY(-3px); }

/* --- TRICORDER & MOBILE UI (Up to 1024px for Tablets) --- */
@media (max-width: 1024px) {
    /* HUD Elements */
    body::before {
        content: '';
        position: fixed;
        top: 0; left: 0; width: 100%; height: 2px;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
        z-index: 10000;
        pointer-events: none;
        animation: scannerSweep 8s linear infinite;
        opacity: 0.5;
    }
    
    .tricorder-hud {
        display: block !important;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 9998;
        pointer-events: none;
    }
    
    .hud-bracket {
        position: absolute;
        width: 20px; height: 20px;
        border: 1px solid rgba(0, 159, 227, 0.3);
    }
    .hud-tl { top: 20px; left: 20px; border-right: 0 !important; border-bottom: 0 !important; }
    .hud-tr { top: 20px; right: 20px; border-left: 0 !important; border-bottom: 0 !important; }
    .hud-bl { bottom: 20px; left: 20px; border-right: 0 !important; border-top: 0 !important; }
    .hud-br { bottom: 20px; right: 20px; border-left: 0 !important; border-top: 0 !important; }
    
    .hud-data {
        position: absolute;
        font-family: monospace;
        font-size: 8px;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 1px;
        opacity: 0.4;
    }
    .data-1 { top: 45px; left: 20px; }
    .data-2 { bottom: 45px; right: 20px; text-align: right; }

    /* Header & Navigation */
    header {
        padding: 15px 30px !important;
        background: rgba(0,0,0,0.8) !important;
    }
    .nav-links { display: none !important; }
    .mobile-menu-btn { display: flex !important; }
    .logo-img { height: 25px !important; }

    /* Hero Tablet/Mobile Fix */
    .hero h1 { font-size: clamp(34px, 8vw, 60px) !important; padding: 0 5% !important; margin: 0 !important; line-height: 1.1 !important; }
    .massive-text { font-size: 15vw !important; opacity: 0.1 !important; top: 15% !important; left: 5% !important; transform: none !important; }
    .hero p { font-size: 16px !important; padding: 0 5% !important; max-width: 80% !important; }

    /* Portfolio Filter Tablet Fix */
    .sticky-filter-wrapper { position: relative !important; top: 0 !important; margin-bottom: 40px !important; }
    .portfolio-filters {
        width: calc(100% + 10%) !important;
        margin-left: -5% !important;
        border-radius: 0 !important;
        padding: 15px 5% !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        background: rgba(10,10,10,0.95) !important;
        border-left: 0 !important; border-right: 0 !important;
    }
    .portfolio-filters::-webkit-scrollbar { display: none; }
    .filter-btn { flex: 0 0 auto !important; padding: 10px 20px !important; font-size: 11px !important; }

    /* Era Tracker Tablet Fix */
    .era-tracker {
        width: 120px !important; height: 120px !important;
        right: 10px !important; top: 30% !important;
        transform: scale(0.8) !important;
        opacity: 0.15 !important;
        pointer-events: none;
    }

    /* Sections */
    .section-padding { padding: 80px 5% !important; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
    .project-info h3 { font-size: 22px !important; }
    
    .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Mobile Small Fixes */
@media (max-width: 480px) {
    .portfolio-grid { grid-template-columns: 1fr !important; }
    .team-grid { grid-template-columns: 1fr !important; }
    .hero h1 { font-size: 32px !important; }
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(25px);
    z-index: 11000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
}
.mobile-overlay a {
    color: white; font-size: 22px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 5px;
    text-decoration: none; transition: 0.3s;
}
.mobile-overlay a:hover { color: var(--accent); }

.mobile-menu-btn {
    display: none;
    flex-direction: column; gap: 5px; cursor: pointer;
    z-index: 11001;
}
.mobile-menu-btn span {
    width: 25px; height: 2px; background: white; transition: 0.3s;
}

@keyframes scannerSweep {
    0% { top: -5%; }
    100% { top: 105%; }
}

