/* ============================================
   TestardStudios — Global Styles
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16162266;
    --accent-green: #00ff88;
    --accent-purple: #7b2fff;
    --accent-cyan: #00d4ff;
    --text-primary: #e0e0e0;
    --text-secondary: #888899;
    --text-muted: #555566;
    --border-color: #1a1a2e;
    --border-glow: rgba(0, 255, 136, 0.15);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-bracket {
    color: var(--accent-green);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-green);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--accent-green);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(10, 10, 15, 0.4) 0%, rgba(10, 10, 15, 0.7) 50%, rgba(10, 10, 15, 1) 100%);
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: rgba(0, 255, 136, 0.05);
}

.tag-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.tag-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}


/* Glitch Effect */

.glitch {
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

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

.glitch::before {
    color: var(--accent-cyan);
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.glitch::after {
    color: var(--accent-purple);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%,
    90%,
    100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-3px, 1px);
    }
    94% {
        transform: translate(3px, -1px);
    }
    96% {
        transform: translate(-2px, -1px);
    }
    98% {
        transform: translate(2px, 1px);
    }
}

@keyframes glitch-2 {
    0%,
    90%,
    100% {
        transform: translate(0);
    }
    91% {
        transform: translate(3px, -1px);
    }
    93% {
        transform: translate(-3px, 1px);
    }
    95% {
        transform: translate(2px, 1px);
    }
    97% {
        transform: translate(-2px, -1px);
    }
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--accent-green);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-green);
    color: #0a0a0f;
}

.btn-primary:hover {
    background: #00e07a;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-green), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

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


/* ============================================
   Sections — Common
   ============================================ */

.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    margin-bottom: 64px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-green);
    display: block;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-green);
    font-weight: 600;
}


/* ============================================
   About Section
   ============================================ */

.about {
    border-top: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.about-lead {
    font-size: 1.3rem !important;
    color: var(--text-primary) !important;
    font-weight: 400;
    line-height: 1.6;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-card {
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.value-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.05);
    transform: translateY(-4px);
}

.value-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--accent-green);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ============================================
   Work Section
   ============================================ */

.work {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.work-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-primary);
    transition: all var(--transition);
}

.work-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.work-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover .work-card-image img {
    transform: scale(1.08);
}

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 15, 0.9) 100%);
}

.work-card-content {
    padding: 28px;
}

.work-card-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.work-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.work-card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.work-tags li {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
}

.work-card:hover .work-tags li {
    border-color: rgba(0, 255, 136, 0.2);
    color: var(--text-secondary);
}


/* ============================================
   Manifesto Section
   ============================================ */

.manifesto {
    border-top: 1px solid var(--border-color);
}

.manifesto-content {
    max-width: 800px;
}

.manifesto-block {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition);
}

.manifesto-block:first-child {
    padding-top: 0;
}

.manifesto-block:last-child {
    border-bottom: none;
}

.manifesto-block:hover {
    padding-left: 12px;
}

.manifesto-number {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-green);
    min-width: 40px;
    padding-top: 2px;
}

.manifesto-block p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.manifesto-signature {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.signature-line {
    width: 60px;
    height: 1px;
    background: var(--accent-green);
}

.manifesto-signature p {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}


/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-style {
    font-family: var(--font-mono);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* ============================================
   Animations — Fade In
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .work-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-grid .footer-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        font-size: 1.2rem;
    }
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    .section {
        padding: 80px 0;
    }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .manifesto-block {
        flex-direction: column;
        gap: 12px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid .footer-info {
        grid-column: auto;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .work-card-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: -1px;
    }
    .hero-description {
        font-size: 0.95rem;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}