/* ============================================
   CSS VARIABLES & RESET
   ============================================ */

:root {
    --primary: #0a0f0a;
    --primary-dark: #050805;
    --primary-light: #0f170f;
    --secondary: #00ff41;
    --secondary-dim: #00cc33;
    --secondary-dark: #009926;
    --secondary-glow: rgba(0, 255, 65, 0.15);
    --accent: #ff8c00;
    --accent-dim: #cc7000;
    --accent-glow: rgba(255, 140, 0, 0.15);
    --text-primary: #00ff41;
    --text-secondary: #00cc33;
    --text-dim: #008f22;
    --text-muted: #005f16;
    --border-color: #00ff41;
    --border-dim: #004d13;
    --error-color: #ff3333;
    --success-color: #00ff41;
    --white: #e0ffe6;

    --font-mono: 'Fira Code', 'Courier New', 'Lucida Console', monospace;

    --glow-green: 0 0 5px rgba(0, 255, 65, 0.4), 0 0 10px rgba(0, 255, 65, 0.2), 0 0 20px rgba(0, 255, 65, 0.1);
    --glow-green-strong: 0 0 7px rgba(0, 255, 65, 0.6), 0 0 15px rgba(0, 255, 65, 0.3), 0 0 30px rgba(0, 255, 65, 0.15), 0 0 50px rgba(0, 255, 65, 0.05);
    --glow-amber: 0 0 5px rgba(255, 140, 0, 0.4), 0 0 10px rgba(255, 140, 0, 0.2);
    --glow-amber-strong: 0 0 7px rgba(255, 140, 0, 0.6), 0 0 15px rgba(255, 140, 0, 0.3), 0 0 30px rgba(255, 140, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-dark) var(--primary);
}

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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-dark);
    border: 1px solid var(--border-dim);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-dim);
}

/* Selection */
::selection {
    background: var(--secondary);
    color: var(--primary);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent);
    text-shadow: var(--glow-amber);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-mono);
}

/* ============================================
   CRT & SCANLINE OVERLAYS
   ============================================ */

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
}

.scanlines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    animation: scanline-shift 0.1s linear infinite;
}

.scanlines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 255, 65, 0.02) 50%,
        transparent 100%
    );
    animation: scanline-glow 4s ease-in-out infinite;
}

@keyframes scanline-shift {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes scanline-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   TERMINAL WINDOW COMPONENT
   ============================================ */

.terminal-window {
    border: 1px solid var(--border-dim);
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.terminal-window:hover {
    border-color: var(--secondary-dark);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.05);
}

.terminal-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--primary-light);
    border-bottom: 1px solid var(--border-dim);
    position: relative;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    background: var(--error-color);
    display: inline-block;
    border: none;
}

.terminal-dot.amber {
    background: var(--accent);
}

.terminal-dot.green {
    background: var(--secondary);
}

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: auto;
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: 1.25rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-terminal {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.65rem 1.5rem;
    border: 1px solid;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.4s ease;
}

.btn-terminal:hover::before {
    left: 100%;
}

.btn-green {
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-green:hover {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: var(--glow-green);
    text-shadow: none;
}

.btn-amber {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-amber:hover {
    background: var(--accent);
    color: var(--primary);
    box-shadow: var(--glow-amber);
    text-shadow: none;
}

.btn-dim {
    color: var(--text-dim);
    border-color: var(--text-dim);
}

.btn-dim:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-large {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
}

.btn-small {
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.glow-text {
    text-shadow: var(--glow-green-strong);
    color: var(--secondary);
}

.glow-text-small {
    text-shadow: var(--glow-green);
    color: var(--secondary);
}

.amber-text {
    color: var(--accent);
    text-shadow: var(--glow-amber);
}

.prompt-symbol {
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.3em;
}

.check-mark {
    color: var(--secondary);
    margin-right: 0.5em;
    font-weight: 700;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 10, 0.92);
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    background: rgba(5, 8, 5, 0.98);
    box-shadow: 0 2px 20px rgba(0, 255, 65, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    gap: 0;
}

.logo-bracket {
    color: var(--accent);
    font-weight: 400;
}

.logo-text {
    color: var(--secondary);
    text-shadow: var(--glow-green);
}

.logo-cursor {
    color: var(--secondary);
    animation: blink-cursor 1s step-end infinite;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-prefix {
    color: var(--text-muted);
    font-weight: 400;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
    text-shadow: var(--glow-green);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 1px;
    background: var(--secondary);
    box-shadow: var(--glow-green);
}

.nav-link-cta {
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    margin-left: 0.5rem;
}

.nav-link-cta:hover {
    background: var(--accent);
    color: var(--primary) !important;
    text-shadow: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--border-dim);
    padding: 8px;
    cursor: pointer;
}

.toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
}

.nav-toggle.active .toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active .toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 2rem 2rem;
    overflow: hidden;
}

.hero-bg-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

#matrix-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
}

.hero-terminal {
    border-color: var(--secondary-dark);
}

.hero-terminal .terminal-body {
    padding: 2rem;
}

.type-line {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    opacity: 0;
    animation: fade-in-line 0.5s ease forwards;
}

.type-line.line-1 { animation-delay: 0.5s; }
.type-line.line-2 { animation-delay: 2s; }
.type-line.line-3 { animation-delay: 3.5s; }

@keyframes fade-in-line {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.75rem 0 1rem;
    color: var(--secondary);
    text-shadow: var(--glow-green-strong);
    opacity: 0;
    animation: hero-title-in 0.8s ease forwards;
    animation-delay: 1.2s;
    position: relative;
}

@keyframes hero-title-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Glitch effect on hover */
.glitch-text {
    position: relative;
}

.glitch-text:hover {
    animation: glitch 0.3s ease;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(0); }
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fade-in-line 0.5s ease forwards;
    animation-delay: 2.5s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-in-line 0.5s ease forwards;
    animation-delay: 4s;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    animation: scroll-bounce 2s ease-in-out infinite;
    z-index: 1;
}

.scroll-arrow {
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    padding: 4rem 0;
    background: var(--primary-light);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 120px,
            var(--border-dim) 120px,
            var(--border-dim) 121px
        );
    opacity: 0.3;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid var(--border-dim);
    background: var(--primary-dark);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--secondary-dark);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
    transform: translateY(-3px);
}

.stat-terminal {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.stat-prefix {
    color: var(--accent);
    font-size: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: var(--glow-green-strong);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 700;
}

.stat-label {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
    padding: 5rem 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

.service-card .terminal-window {
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover .terminal-window {
    border-color: var(--secondary);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.1), inset 0 0 25px rgba(0, 255, 65, 0.02);
}

.service-icon-ascii {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.2;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon-ascii {
    color: var(--secondary-dim);
}

.service-icon-ascii pre {
    font-family: var(--font-mono);
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    text-shadow: var(--glow-green);
}

.service-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-features {
    margin-bottom: 1.25rem;
}

.service-features li {
    font-size: 0.78rem;
    color: var(--text-dim);
    padding: 0.2rem 0;
    transition: color 0.2s ease;
}

.service-features li:hover {
    color: var(--text-primary);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 5rem 0;
    background: var(--primary-light);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

.about-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-certs {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-dim);
}

.about-certs h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.cert-list li {
    font-size: 0.82rem;
    color: var(--text-dim);
    padding: 0.35rem 0;
    line-height: 1.5;
}

.image-container {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: grayscale(60%) brightness(0.7) contrast(1.2);
    transition: all 0.5s ease;
}

.about-img:hover {
    filter: grayscale(20%) brightness(0.8) contrast(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: rgba(10, 15, 10, 0.85);
    border-top: 1px solid var(--border-dim);
}

.image-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================
   CASES SECTION
   ============================================ */

.cases-section {
    padding: 5rem 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.case-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.case-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-image-wrapper {
    margin: -1.25rem -1.25rem 1.25rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border-dim);
}

.case-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(70%) brightness(0.6) contrast(1.3) sepia(20%);
    transition: all 0.5s ease;
}

.case-card:hover .case-img {
    filter: grayscale(30%) brightness(0.7) contrast(1.2) sepia(10%);
    transform: scale(1.03);
}

.case-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary);
    text-shadow: var(--glow-green);
    margin-bottom: 1rem;
}

.case-details p {
    font-size: 0.78rem;
    color: var(--text-dim);
    padding: 0.2rem 0;
    line-height: 1.5;
}

.case-label {
    color: var(--accent);
    font-weight: 600;
}

.case-result {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-dim);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.result-tag {
    color: var(--secondary);
    font-weight: 700;
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team-section {
    padding: 5rem 0;
    background: var(--primary-light);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.team-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card .terminal-window {
    height: 100%;
}

.team-card:hover .terminal-window {
    border-color: var(--accent-dim);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.08);
}

.team-avatar {
    text-align: center;
    margin-bottom: 0.75rem;
}

.avatar-ascii {
    font-size: 0.6rem;
    color: var(--text-muted);
    line-height: 1.1;
    transition: color 0.3s ease;
}

.team-card:hover .avatar-ascii {
    color: var(--secondary-dim);
}

.avatar-ascii pre {
    font-family: var(--font-mono);
    display: inline-block;
}

.team-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    text-shadow: var(--glow-green);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.72rem;
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.team-bio {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.team-spec {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.spec-tag {
    font-size: 0.65rem;
    color: var(--text-muted);
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--border-dim);
    transition: all 0.2s ease;
}

.spec-tag:hover {
    color: var(--secondary);
    border-color: var(--secondary-dark);
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-section {
    padding: 5rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-img-container {
    padding: 0 !important;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(80%) brightness(0.5) contrast(1.4);
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-img {
    filter: grayscale(20%) brightness(0.7) contrast(1.2);
    transform: scale(1.05);
}

.gallery-item:hover .terminal-window {
    border-color: var(--secondary);
    box-shadow: var(--glow-green);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    padding: 5rem 0;
    background: var(--primary-light);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-card:nth-child(even) {
    transform: translateX(20px);
}

.testimonial-card:nth-child(even).visible {
    transform: translateX(0);
}

.testimonial-card:hover .terminal-window {
    border-color: var(--accent-dim);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.star-ascii {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-shadow: var(--glow-amber);
}

.testimonial-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: normal;
    border: none;
    padding: 0;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-dim);
}

.author-name {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
}

.author-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--primary);
    border: 1px solid var(--border-dim);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.form-input.error {
    border-color: var(--error-color);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.1);
}

.form-input.valid {
    border-color: var(--secondary);
}

.form-error {
    display: block;
    font-size: 0.72rem;
    color: var(--error-color);
    margin-top: 0.3rem;
    min-height: 1rem;
}

.form-consent {
    margin-top: 1rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-checkbox {
    color: var(--secondary);
    font-weight: 700;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.consent-label input[type="checkbox"]:checked ~ .consent-checkbox {
    color: var(--secondary);
}

.consent-label input[type="checkbox"]:checked ~ .consent-checkbox::after {
    content: '';
}

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

.btn-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    border: 1px solid;
}

.form-success {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(0, 255, 65, 0.05);
}

.form-error-msg {
    border-color: var(--error-color);
    color: var(--error-color);
    background: rgba(255, 51, 51, 0.05);
}

/* Contact Info */
.contact-info-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-dim);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.info-value a {
    color: var(--secondary);
}

.info-value a:hover {
    color: var(--accent);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hours-list span {
    font-size: 0.82rem;
}

/* Map */
.map-window {
    margin-top: 1.5rem;
}

.map-container {
    padding: 1rem !important;
}

.map-ascii {
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.3;
}

.map-ascii pre {
    font-family: var(--font-mono);
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    padding: 4rem 0 0;
    background: var(--primary-dark);
    border-top: 1px solid var(--border-dim);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-address {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    text-shadow: var(--glow-green);
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-dim);
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    text-shadow: var(--glow-green);
    padding-left: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-dim);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    text-align: center;
}

.footer-copyright {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer-copyright-output {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 1rem;
    background: rgba(5, 8, 5, 0.95);
    border-top: 1px solid var(--border-dim);
    backdrop-filter: blur(15px);
}

.cookie-terminal {
    max-width: 900px;
    margin: 0 auto;
}

.cookie-content {
    padding: 1rem;
}

.cookie-content p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.cookie-content .terminal-prompt {
    color: var(--text-primary);
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 5, 0.9);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-terminal {
    border-color: var(--secondary-dark);
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--error-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--white);
    text-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-body h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.modal-list li {
    font-size: 0.82rem;
    color: var(--text-dim);
    padding: 0.35rem 0;
    line-height: 1.5;
}

.modal-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-dim);
    text-align: center;
}

/* ============================================
   ANIMATIONS & SCROLL REVEAL
   ============================================ */

.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Flicker animation for text */
@keyframes text-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

.glow-text {
    animation: text-flicker 8s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid .case-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(5, 8, 5, 0.98);
        border-bottom: 1px solid var(--border-dim);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid .case-card:last-child {
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-terminal {
        text-align: center;
    }

    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-terminal .terminal-body {
        padding: 1.25rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .modal-content {
        max-height: 90vh;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .scanlines::before,
    .scanlines::after {
        animation: none;
    }

    .logo-cursor {
        animation: none;
    }
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip to content link (hidden until focused) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    z-index: 99999;
    border: 1px solid var(--secondary);
}

.skip-link:focus {
    top: 0;
}
