:root {
    --bg-color: #050505;
    --card-bg: #0f0f0f;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #00dc82; /* Tech Green */
    --highlight: #ffd700; /* Tech Yellow/Gold */
    --border: #222222;
    --font-main: "Inter", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #333333 var(--bg-color);
}

::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background-color: #333333;
    border-radius: 10px;
    border: 3px solid var(--bg-color);
    transition: background-color 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px
        ),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.05em;
    color: var(--text-main);
    text-decoration: none;
}

.logo-cursor {
    display: inline-block;
    color: var(--text-main);
    animation: blink 1s step-end infinite;
    font-weight: 700;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.btn-contact {
    background: transparent;
    color: var(--highlight) !important;
    border: 1px solid var(--highlight) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 2rem;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--highlight) !important;
    color: #000000 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(to bottom right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
}

.hero-sub {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-terminal {
    font-family: var(--font-mono);
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Services Section */
.section-title {
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.services {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.services-header {
    margin-bottom: 4rem;
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: 400;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--text-muted);
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-icon {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.code-bg {
    position: absolute;
    right: -20px;
    bottom: -20px;
    opacity: 0.03;
    font-family: var(--font-mono);
    font-size: 4rem;
    pointer-events: none;
}

/* --- TEAM SECTION --- */
.team {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-member {
    text-align: center;
    opacity: 0; /* Hidden by default for GSAP */
}

.img-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: border-color 0.3s ease;
}

.team-member:hover .img-wrapper {
    border-color: var(--accent);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* Techy black/white look */
    transition: filter 0.3s ease;
}

.team-member:hover img {
    filter: grayscale(0%);
}

.team-member h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.team-member .role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- CALL TO ACTION (CTA) SECTION --- */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
    background: linear-gradient(
        180deg,
        var(--bg-color) 0%,
        rgba(15, 15, 15, 0.8) 100%
    );
    border-top: 1px solid var(--border);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.95);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: var(--accent);
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-terminal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: inline-block;
    padding: 2rem 4rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    text-align: left;
}

.prompt {
    color: var(--accent);
    margin-right: 10px;
}
.cmd {
    color: var(--text-main);
}

.email-link {
    display: block;
    margin-top: 1rem;
    font-size: 1.5rem;
    color: var(--highlight);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.email-link:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 220, 130, 0.4);
}

/* Footer */
footer {
    position: relative; /* Creates a context for the door */
    border-top: 1px solid var(--border);
    padding: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    overflow: hidden; /* Ensures the light/door doesn't spill out of footer bounds (optional) */
}

.status-online {
    color: var(--accent);
    font-weight: 600;
    display: inline-block;
    margin-left: 5px;
    text-shadow: 0 0 5px rgba(0, 220, 130, 0.5);
    animation: pulse-status 2s infinite ease-in-out;
}

@keyframes pulse-status {
    0% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(0, 220, 130, 0.5);
    }
    50% {
        opacity: 0.4;
        text-shadow: none;
        color: #006633;
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(0, 220, 130, 0.5);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
    nav {
        padding: 1.5rem;
    }
    .nav-links {
        display: none;
    }
    .services,
    .team {
        padding: 4rem 1.5rem;
    }
    .contact-terminal {
        padding: 1.5rem;
        width: 100%;
    }
    .email-link {
        font-size: 1.2rem;
    }
}
/* --- INTERACTIVE MOUSE EFFECTS --- */
/* --- INTERACTIVE MOUSE EFFECTS --- */

/* 1. Binary Rain Drops */
.binary-drop {
    position: fixed;
    top: 0;
    left: 0;
    font-family: "JetBrains Mono", monospace;
    color: var(--accent);
    font-size: 14px; /* Slightly bigger to be seen */
    line-height: 1;
    pointer-events: none;
    z-index: 9999;
    user-select: none;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 220, 130, 0.8);
    will-change: transform, opacity; /* Performance optimization */
}

/* 2. Energy Charge Orb */
.charge-orb {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 220, 130, 0.2);
    border: 2px solid var(--accent);
    /* Center anchor point logic is handled in GSAP xPercent/yPercent usually, 
       but here we center via transform inside JS or simple margin */
    pointer-events: none;
    z-index: 9998;
    box-shadow: 0 0 15px var(--accent);
    border-radius: 50%;
}

/* 3. Explosion Particles */
.explosion-particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--highlight);
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--highlight);
}

.explosion-particle.green {
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* --- HIDDEN DOOR UPDATES --- */

.hidden-door-trigger {
    position: absolute; /* Absolute relative to the Footer now */
    bottom: 0;
    left: 0;
    margin-left: 50px; /* Added margin as requested */
    width: 80px; /* Slightly smaller to fit footer better */
    height: 120px;
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hidden-door-trigger:hover {
    opacity: 1;
}

.hidden-door-scene {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 800px;
}

/* Adjust door panel to fit the new size */
.door-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-right: 1px solid #333;
    border-top: 1px solid #333;
    transform-origin: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(
        45deg,
        #1a1a1a 25%,
        #222 25%,
        #222 50%,
        #1a1a1a 50%,
        #1a1a1a 75%,
        #222 75%,
        #222 100%
    );
    background-size: 15px 15px; /* Scaled down pattern */
    box-shadow: inset 0 0 20px #000;
}

.door-plate {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.5rem; /* Smaller text */
    color: #555;
    border: 1px solid #333;
    padding: 2px 4px;
    margin-top: 8px;
    background: #000;
}

.door-handle {
    width: 6px;
    height: 20px;
    background: #444;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
}

.door-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateZ(-1px);
    opacity: 0;
    box-shadow: 0 0 40px 15px rgba(255, 255, 255, 0.8),
        0 0 80px 40px rgba(255, 255, 255, 0.4);
    filter: blur(5px);
}
