/* --- CSS RESET & VARIABLES --- */
:root {
    --primary-color: #00f3ff;
    --primary-dim: #00f3ff80;
    --secondary-color: #ff0055;
    --secondary-dim: #ff005580;
    --tertiary-color: #7000ff;
    --bg-dark: #030303;
    --bg-panel: #0a0a0a;
    --bg-card: #111111;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --border-color: #333;
    --glass: rgba(20, 20, 20, 0.6);
    --grid-line: rgba(255, 255, 255, 0.03);
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-dark);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.text-mono {
    font-family: var(--font-mono);
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

/* --- UTILITIES & ANIMATIONS --- */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 100px 0;
}

.glitch {
    position: relative;
    color: #fff;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary-color);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary-color);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(10% 0 60% 0);
    }

    100% {
        clip-path: inset(30% 0 30% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
    }

    100% {
        clip-path: inset(5% 0 80% 0);
    }
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: var(--transition);
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: #000;
    box-shadow: 0 0 20px var(--primary-color);
}

.scanlines {
    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.1) 50%, rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
}

.vhs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, #000 150%);
    pointer-events: none;
    z-index: 998;
    opacity: 0.6;
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav__logo img , .footer__logo img {
    height: 60px;
    filter: invert(1) drop-shadow(0 0 5px var(--primary-color));
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav__toggle span {
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* --- PAGE HEADER (COMMON) --- */
.page-header {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.page-header__subtitle {
    max-width: 600px;
    margin: 20px auto 0;
    font-family: var(--font-mono);
}

/* --- HERO SECTION (INDEX) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__tag {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 20px;
    box-shadow: 0 0 10px var(--secondary-dim);
}

.hero__bg-anim {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    background: conic-gradient(from 0deg, var(--primary-color), var(--tertiary-color), var(--secondary-color), var(--primary-color));
    filter: blur(80px);
    opacity: 0.3;
    animation: rotate 10s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* --- MARQUEE --- */
.marquee {
    background: var(--bg-panel);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee__content {
    display: flex;
    gap: 50px;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee__item {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #444;
    font-size: 2rem;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card__number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-mono);
    color: #222;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

/* --- CALCULATOR SECTION --- */
.calculator-section {
    background: linear-gradient(45deg, var(--bg-panel), #000);
    border: 1px solid var(--border-color);
}

.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.calc-inputs label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.calc-range {
    width: 100%;
    margin-bottom: 25px;
    -webkit-appearance: none;
    height: 4px;
    background: #333;
    outline: none;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-color);
}

.calc-results {
    background: #000;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border-color);
}

.result-box h4 {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 5px;
}

.result-value {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-dim);
}

/* --- DASHBOARD SAMPLE --- */
.dashboard-sample {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-top: 40px;
    position: relative;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.dash-stat {
    background: #080808;
    padding: 15px;
    border: 1px solid #222;
}

.dash-stat span {
    font-size: 0.8rem;
    color: #666;
    display: block;
}

.dash-stat strong {
    font-size: 1.5rem;
    color: #fff;
}

.dash-chart {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px;
    border-left: 1px solid #333;
    border-bottom: 1px solid #333;
}

.bar {
    flex: 1;
    background: var(--primary-color);
    opacity: 0.7;
    animation: growBar 2s ease-out forwards;
}

.bar:nth-child(even) {
    background: var(--secondary-color);
}

@keyframes growBar {
    from {
        height: 0;
    }
}

/* --- LEGAL PAGES SPECIFIC --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 60px;
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 3rem;
    font-size: 1.8rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.legal-content p,
.legal-content li {
    font-family: 'Roboto', sans-serif;
    /* Cleaner for long text */
    color: #ccc;
    margin-bottom: 1.2rem;
}

/* --- CONTACT FORM --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border-color);
}

.contact-info-block {
    background: var(--bg-panel);
    padding: 60px;
    border-right: 1px solid var(--border-color);
}

.contact-form-wrapper {
    background: #000;
    padding: 60px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 15px;
    font-family: var(--font-mono);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* --- FOOTER --- */
.footer {
    background: #000;
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
    padding-bottom: 30px;
    position: relative;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}


.footer__links h3,
.footer__contact h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
}

.footer__links ul li {
    margin-bottom: 12px;
}

.footer__links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #555;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .nav__menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(0, 0, 0, 0.95);
        overflow: hidden;
        flex-direction: column;
        justify-content: center;
        transition: height 0.3s ease;
    }

    .nav__menu.open {
        height: calc(100vh - var(--nav-height));
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav__toggle {
        display: flex;
    }

    .calc-wrapper,
    .contact-wrapper,
    .footer__content {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .contact-info-block {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}