/* ============================================
   VoltWire Systems - Terminal Theme Stylesheet
   ============================================ */

/* CSS Custom Properties */
:root {
    --primary: #0a0f0a;
    --primary-dark: #050805;
    --secondary: #00ff41;
    --secondary-dim: #00cc33;
    --secondary-dark: #009922;
    --accent: #ff8c00;
    --accent-dim: #cc7000;
    --text-main: #00ff41;
    --text-dim: #00aa2a;
    --text-dimmer: #006618;
    --text-white: #c0ffc0;
    --text-gray: #667766;
    --border-color: #00ff41;
    --border-dim: #004d13;
    --border-amber: #ff8c00;
    --bg-terminal: #0a0f0a;
    --bg-terminal-body: #050a05;
    --bg-titlebar: #0d140d;
    --red: #ff3333;
    --yellow: #ffff33;
    --green: #00ff41;
    --glow-green: 0 0 10px #00ff41, 0 0 20px #00ff4166, 0 0 40px #00ff4133;
    --glow-green-sm: 0 0 5px #00ff4188, 0 0 10px #00ff4144;
    --glow-amber: 0 0 10px #ff8c00, 0 0 20px #ff8c0066;
    --glow-amber-sm: 0 0 5px #ff8c0088;
    --font-mono: 'Fira Code', 'Courier New', 'Consolas', monospace;
    --scanline-opacity: 0.04;
    --transition-speed: 0.3s;
}

/* Reset & Base */
*,
*::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-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-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);
}

/* CRT Overlay Effects */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, var(--scanline-opacity)) 2px,
        rgba(0, 255, 65, var(--scanline-opacity)) 4px
    );
}

.crt-flicker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    animation: crt-flicker 0.15s infinite;
    opacity: 0.015;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

@keyframes crt-flicker {
    0% { opacity: 0.015; }
    5% { opacity: 0.02; }
    10% { opacity: 0.015; }
    15% { opacity: 0.025; }
    20% { opacity: 0.015; }
    100% { opacity: 0.015; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.3;
}

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

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

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

p {
    margin-bottom: 0.5rem;
}

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-green { color: var(--secondary) !important; }
.text-amber { color: var(--accent) !important; }
.text-dim { color: var(--text-dim) !important; }

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

.prompt {
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.5rem;
}

.cmd {
    color: var(--text-white);
}

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

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

/* Terminal Window Component */
.terminal-window {
    border: 1px solid var(--border-dim);
    background: var(--bg-terminal);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

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

.terminal-titlebar {
    background: var(--bg-titlebar);
    border-bottom: 1px solid var(--border-dim);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
}

.dot-red { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-green { background: var(--green); }

.terminal-title {
    color: var(--text-gray);
    font-size: 0.75rem;
    margin-left: 0.5rem;
    flex: 1;
}

.terminal-body {
    padding: 1.25rem;
    background: var(--bg-terminal-body);
}

.terminal-line {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-main);
}

/* Buttons */
.btn-terminal {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border: 1px solid;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-transform: none;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
    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.5s;
}

.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-sm);
    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-sm);
    text-shadow: none;
}

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

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

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* Image containers */
.img-container {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.3) brightness(0.8) contrast(1.2);
    transition: filter 0.5s, transform 0.5s;
}

.img-container:hover img {
    filter: saturate(0.5) brightness(0.9) contrast(1.1);
    transform: scale(1.03);
}

.img-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.06) 2px,
        rgba(0, 255, 65, 0.06) 4px
    );
    z-index: 2;
}

/* Section Styling */
.section-header {
    margin-bottom: 3rem;
}

.section-header .terminal-line {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.05em;
}

/* =====================
   NAVIGATION
   ===================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 10, 0.95);
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
}

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

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

.nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

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

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

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

.logo-suffix {
    color: var(--text-dim);
    font-weight: 400;
    font-size: 0.85rem;
}

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

.nav-links li a {
    color: var(--text-dim);
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    display: block;
    transition: all var(--transition-speed);
    text-decoration: none;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--secondary);
    text-shadow: var(--glow-green-sm);
}

.nav-prompt {
    color: var(--accent);
    font-size: 0.7rem;
}

.nav-cta {
    margin-left: 0.5rem;
}

.nav-cta .btn-terminal {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 1px solid var(--border-dim);
    padding: 8px;
    cursor: pointer;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--secondary);
    transition: all var(--transition-speed);
}

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

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

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

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 100px 1.5rem 60px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    animation: grid-scroll 20s linear infinite;
}

@keyframes grid-scroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

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

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

.hero-lines {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-company {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    padding-left: 1.5rem;
}

.hero-heading {
    font-size: 1.8rem;
    color: var(--secondary);
    text-shadow: var(--glow-green);
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.hero-location {
    color: var(--text-dim);
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.hero-desc {
    color: var(--text-white);
    padding-left: 1.5rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Hero line animation */
.line-anim {
    opacity: 0;
    transform: translateY(5px);
    animation: line-appear 0.4s ease forwards;
}

.line-anim[data-delay="0"] { animation-delay: 0.2s; }
.line-anim[data-delay="1"] { animation-delay: 0.5s; }
.line-anim[data-delay="2"] { animation-delay: 0.9s; }
.line-anim[data-delay="3"] { animation-delay: 1.2s; }
.line-anim[data-delay="4"] { animation-delay: 1.6s; }
.line-anim[data-delay="5"] { animation-delay: 1.9s; }
.line-anim[data-delay="6"] { animation-delay: 2.3s; }
.line-anim[data-delay="7"] { animation-delay: 2.6s; }
.line-anim[data-delay="8"] { animation-delay: 3.0s; }

@keyframes line-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Image Strip */
.hero-image-strip {
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    overflow: hidden;
}

.hero-img-cell {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-img-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0) brightness(0.5) contrast(1.5);
}

.hero-img-cell .img-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 255, 65, 0.08) 3px,
        rgba(0, 255, 65, 0.08) 6px
    );
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-text {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dimmer);
    letter-spacing: 0.1em;
}

.scroll-arrow {
    display: block;
    color: var(--text-dimmer);
    font-size: 1rem;
    margin-top: 0.25rem;
}

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

/* =====================
   STATS SECTION
   ===================== */
.stats-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
}

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

.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid var(--border-dim);
    background: var(--bg-terminal);
    transition: all var(--transition-speed);
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.5s;
    transform-origin: left;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

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

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

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

/* =====================
   ABOUT SECTION
   ===================== */
.about-section {
    padding: 6rem 0;
}

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

.about-image .img-container {
    height: 400px;
}

/* =====================
   TRUST SECTION
   ===================== */
.trust-section {
    padding: 6rem 0;
    background: var(--primary-dark);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

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

.trust-card {
    border: 1px solid var(--border-dim);
    padding: 1.5rem;
    background: var(--bg-terminal);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.trust-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: center;
}

.trust-card:hover::after {
    transform: scaleX(1);
}

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

.trust-icon {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: var(--glow-amber-sm);
}

.trust-card h3 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.trust-card p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.trust-card a {
    color: var(--accent);
    text-decoration: underline;
}

/* =====================
   SERVICES SECTION
   ===================== */
.services-section {
    padding: 6rem 0;
}

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

.service-card {
    transition: transform var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-4px);
}

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

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

.service-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

.service-features li {
    font-size: 0.78rem;
    color: var(--text-main);
    padding: 0.2rem 0;
    line-height: 1.5;
}

.check-mark {
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.25rem;
}

.service-detail-btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
}

/* =====================
   PORTFOLIO / CASE STUDIES
   ===================== */
.portfolio-section {
    padding: 6rem 0;
    background: var(--primary-dark);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

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

.case-study-card .terminal-window {
    transition: border-color var(--transition-speed);
}

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

.case-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    margin: -1.25rem -1.25rem 1.25rem -1.25rem;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.3) brightness(0.7) contrast(1.2);
    transition: filter 0.5s;
}

.case-study-card:hover .case-image img {
    filter: saturate(0.5) brightness(0.8) contrast(1.1);
}

.case-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.case-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: var(--text-dimmer);
}

/* =====================
   GALLERY SECTION
   ===================== */
.gallery-section {
    padding: 6rem 0;
}

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

.gallery-item .terminal-window {
    transition: all var(--transition-speed);
}

.gallery-item:hover .terminal-window {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
}

.gallery-item .img-container {
    height: 180px;
}

.gallery-caption {
    font-size: 0.7rem;
    color: var(--text-dimmer);
    margin-top: 0.5rem;
    padding-left: 0.25rem;
}

/* =====================
   TEAM SECTION
   ===================== */
.team-section {
    padding: 6rem 0;
    background: var(--primary-dark);
    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 .terminal-window {
    transition: all var(--transition-speed);
    height: 100%;
}

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

.team-avatar {
    width: 60px;
    height: 60px;
    border: 2px solid var(--secondary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    background: var(--primary);
    margin: 0 auto 1rem;
    transition: all var(--transition-speed);
}

.team-card:hover .team-avatar {
    border-color: var(--accent);
    color: var(--accent);
    text-shadow: var(--glow-amber-sm);
}

.team-name {
    font-size: 0.95rem;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.75rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.team-bio p {
    font-size: 0.73rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* =====================
   TESTIMONIALS SECTION
   ===================== */
.testimonials-section {
    padding: 6rem 0;
}

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

.testimonial-card .terminal-window {
    height: 100%;
    transition: all var(--transition-speed);
}

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

.testimonial-rating {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
}

.testimonial-text {
    font-size: 0.85rem;
    color: var(--text-white);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-text .prompt {
    font-style: normal;
    font-size: 1.2rem;
}

.testimonial-author {
    border-top: 1px solid var(--border-dim);
    padding-top: 0.75rem;
}

.author-name {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.author-title {
    font-size: 0.73rem;
    color: var(--text-dimmer);
}

/* =====================
   CONTACT SECTION
   ===================== */
.contact-section {
    padding: 6rem 0;
    background: var(--primary-dark);
    border-top: 1px solid var(--border-dim);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
    background: var(--primary);
    border: 1px solid var(--border-dim);
    color: var(--text-main);
    outline: none;
    transition: all var(--transition-speed);
    -webkit-appearance: none;
    appearance: none;
}

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

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

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300ff41' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.form-group select option {
    background: var(--primary);
    color: var(--text-main);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

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

.form-consent {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

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

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--secondary);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--accent);
}

.btn-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.form-message {
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

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

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

/* Contact Info */
.info-block {
    margin-bottom: 1.5rem;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block .terminal-line {
    font-size: 0.75rem;
    color: var(--text-dimmer);
    margin-bottom: 0.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.info-text {
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.6;
}

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

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

.info-sub {
    font-size: 0.7rem;
    color: var(--text-dimmer);
}

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

.map-body {
    padding: 0.75rem !important;
}

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

/* =====================
   FOOTER
   ===================== */
.main-footer {
    padding: 4rem 0 2rem;
    background: var(--primary);
    border-top: 1px solid var(--border-dim);
}

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

.footer-logo {
    margin-bottom: 1rem;
    display: inline-flex;
}

.footer-desc {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-address {
    font-size: 0.73rem;
    color: var(--text-dimmer);
}

.footer-heading {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-dimmer);
    transition: all var(--transition-speed);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-divider {
    height: 1px;
    background: var(--border-dim);
    margin: 2rem 0 1.5rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-legal {
    font-size: 0.72rem;
}

.footer-legal a {
    color: var(--text-dimmer);
    margin: 0 0.25rem;
}

.footer-legal a:hover {
    color: var(--secondary);
}

/* =====================
   MODALS
   ===================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.modal-container {
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
}

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

.modal-terminal .terminal-titlebar {
    position: relative;
}

.modal-close {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--red);
    background: none;
    border: 1px solid var(--red);
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.modal-close:hover {
    background: var(--red);
    color: var(--primary);
}

.modal-body {
    max-height: calc(85vh - 60px);
    overflow-y: auto;
    padding: 1.5rem !important;
}

.modal-title {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--secondary);
}

.modal-content p {
    font-size: 0.85rem;
    line-height: 1.7;
}

.modal-list {
    list-style: none;
    padding-left: 0;
}

.modal-list li {
    font-size: 0.82rem;
    color: var(--text-main);
    padding: 0.2rem 0;
    padding-left: 1rem;
}

.modal-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-dim);
}

.modal-cta {
    display: inline-block;
}

/* =====================
   COOKIE BANNER
   ===================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10001;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--border-dim);
}

.cookie-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-terminal {
    border-color: var(--accent-dim);
}

.cookie-body {
    padding: 1rem !important;
}

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

.cookie-links {
    font-size: 0.75rem;
    color: var(--text-dimmer);
    margin-bottom: 0.75rem;
}

.cookie-links a {
    color: var(--accent);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-actions .btn-terminal {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

.cookie-settings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-dim);
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin: 0.4rem 0;
    cursor: pointer;
}

.cookie-option input {
    accent-color: var(--secondary);
    cursor: pointer;
}

.cookie-settings .btn-terminal {
    margin-top: 0.75rem;
}

/* =====================
   SCROLL ANIMATIONS
   ===================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

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

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

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(10, 15, 10, 0.98);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-bottom: 1px solid var(--border-dim);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        gap: 0;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li a {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        border-bottom: 1px solid var(--border-dim);
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .nav-cta .btn-terminal {
        display: block;
        text-align: center;
    }

    .hero-heading {
        font-size: 1.3rem;
    }

    .hero-image-strip {
        display: none;
    }

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

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

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

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

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

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

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

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

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

    .footer-bottom-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

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

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

    .modal-overlay {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

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

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

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

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

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions .btn-terminal {
        width: 100%;
        text-align: center;
    }

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

    .cookie-actions .btn-terminal {
        width: 100%;
        text-align: center;
    }
}

/* =====================
   PRINT STYLES
   ===================== */
@media print {
    .crt-overlay,
    .crt-flicker,
    .main-nav,
    .cookie-banner,
    .modal-overlay,
    .scroll-indicator,
    .hero-bg-grid,
    .hero-image-strip,
    .img-scanline {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .terminal-window {
        border: 1px solid #ccc;
    }

    .section-title,
    .glow-text {
        text-shadow: none;
        color: black;
    }
}
