/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body,
html {
    max-width: 100%;
}

/* Themed scrollbars */
body {
    scrollbar-color: var(--neon-green) rgba(0, 0, 0, 0.6);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    border-left: 1px solid rgba(0, 243, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-green), var(--cyan));
    border: 2px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.35);
    border-radius: 12px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--cyan), var(--neon-green));
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-white);
}

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

button {}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-pad {
    padding: var(--spacing-xl) 0;
}

.text-neon {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green-dim);
}

.glow-filter {
    filter: drop-shadow(0 0 10px var(--neon-green));
}

.btn-neon {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 243, 255, 0.1) 50%);
    background-size: 100% 4px;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-family: var(--font-mono);
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-neon:hover {
    background-color: var(--neon-green);
    color: var(--bg-black);
    box-shadow: 0 0 20px var(--neon-green);
    background-image: none;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--text-grey);
    color: var(--text-grey);
    font-family: var(--font-mono);
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

/* Background Effects */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neon-green);
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--text-white);
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 14px;
    position: relative;
}

.nav-links a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    /* Nav height */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-sm);
    margin-left: auto;
    margin-right: auto;
}

.hero-cta a {
    min-width: 180px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan);
    opacity: 0.85;
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

.scroll-indicator .line {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, var(--neon-green));
    border-radius: 999px;
}

@keyframes pulse {
    0% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
    100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
}

/* Glitch Effect (Simple CSS version) */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--magenta);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 var(--cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(40px, 9999px, 80px, 0);
    }

    80% {
        clip: rect(120px, 9999px, 140px, 0);
    }

    100% {
        clip: rect(60px, 9999px, 90px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(120px, 9999px, 140px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    40% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    60% {
        clip: rect(30px, 9999px, 60px, 0);
    }

    80% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    100% {
        clip: rect(90px, 9999px, 110px, 0);
    }
}

/* Studio Section */
.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

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

.studio-text {
    font-size: 1.1rem;
    color: var(--text-grey);
}

.studio-text .lead {
    font-size: 1.4rem;
    color: var(--neon-green);
    font-family: var(--font-mono);
    margin-bottom: var(--spacing-md);
    border-left: 3px solid var(--neon-green);
    padding-left: 1rem;
}

.studio-text p {
    margin-bottom: var(--spacing-md);
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.founder-image {
    width: 100%;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-text .lead {
    font-size: 1.2rem;
    color: var(--neon-green);
    font-family: var(--font-mono);
    margin-bottom: var(--spacing-sm);
}

.founder-text p {
    color: var(--text-grey);
    margin-bottom: var(--spacing-sm);
}

.founder-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.founder-highlights li {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-white);
    line-height: 1.5;
}

.founder-highlights strong {
    color: var(--cyan);
    letter-spacing: 0.5px;
}

.founder-values {
    margin-top: var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.value-pill {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    background: rgba(0, 243, 255, 0.05);
    color: var(--text-white);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 1px;
}

.founder-values-note {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-grey);
    line-height: 1.4;
}

.studio-visuals {
    text-align: center;
    transition: all 0.3s ease;
}

.studio-visuals {
    text-align: center;
    transition: all 0.3s ease;
}

.studio-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid rgba(0, 243, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    min-width: 140px;
}

@media (max-width: 768px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

.stat-box:hover {
    border-color: var(--neon-green);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    letter-spacing: 1px;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 243, 255, 0.1);
    padding: var(--spacing-lg);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.card-icon {
    font-size: 2rem;
    color: var(--neon-green);
    margin-bottom: var(--spacing-md);
}

.tech-tags {
    list-style: none;
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.tech-tags li {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    padding: 2px 8px;
    border-radius: 4px;
}

.studio-pillars {
    list-style: none;
    margin: var(--spacing-md) 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.studio-pillars li {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.4;
}

.studio-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.studio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
footer {
    border-top: 1px solid #333;
    padding: 20px 0 20px;
    background: var(--bg-dark-grey);
    text-align: center;
    min-height: 40px;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.footer-copy {
    flex: 1;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.system-status {
    color: var(--neon-green);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-left: auto;
}

.system-status::before {
    content: '';
    margin-right: 5px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 14px;
    }

    .section-pad {
        padding: 48px 0;
    }

    .hero-section {
        min-height: 90vh;
        padding-top: 60px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content h1 {
        font-size: 2.6rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .hero-cta {
        width: 100%;
        max-width: 360px;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .hero-cta a {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        justify-items: center;
    }

    .service-card {
        padding: var(--spacing-md);
        width: 100%;
        max-width: 520px;
    }

    .project-card .project-image {
        height: 180px;
    }

    .studio-stats {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .stat-box {
        flex: 1 1 140px;
        min-width: 140px;
    }

    .contact-wrapper {
        text-align: center;
        gap: var(--spacing-md);
    }

    .contact-form {
        padding: var(--spacing-lg);
    }

    .contact-info {
        padding-right: 0;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

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

    .footer-copy,
    .system-status {
        text-align: center;
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-pad {
        padding: 40px 0;
    }
}
