/* =========================================
   1. ROOT VARIABLES & SETUP
   ========================================= */
:root {
    /* Color Palette - Theme: "Neon Aqua Circuit" */
    --bg-dark: #05070f;
    --bg-panel: #070b18;
    --bg-card: #0b1224;

    --primary-color: #22d3ee;
    /* Neon Aqua */
    --primary-dim: #0891b2;
    /* Cyan 600 */
    --accent-color: #fb7185;
    /* Neon Coral */
    --text-main: #e5e7eb;
    --text-muted: #94a3b8;

    /* Gradients */
    --glow-lime: 0 0 20px rgba(34, 211, 238, 0.40);
    /* re-used for primary glow */
    --glow-violet: 0 0 20px rgba(251, 113, 133, 0.35);
    /* re-used for accent glow */
    --gradient-text: linear-gradient(to right, var(--primary-color), #a855f7);

    /* Typography */
    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout */
    --header-height: 80px;
    --container-width: 1300px;
    --border-color: rgba(255, 255, 255, 0.12);

    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Grid Background Pattern */
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 140px 0;
    position: relative;
}

/* Tech Borders & Panels */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
}

/* Corner Accents */
.corner-accents::before,
.corner-accents::after,
.corner-accents>.corners::before,
.corner-accents>.corners::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary-color);
    transition: var(--transition-smooth);
}

.corner-accents::before {
    top: -1px;
    left: -1px;
    border-right: 0;
    border-bottom: 0;
}

.corner-accents::after {
    top: -1px;
    right: -1px;
    border-left: 0;
    border-bottom: 0;
}

.corners::before {
    bottom: -1px;
    left: -1px;
    border-right: 0;
    border-top: 0;
}

.corners::after {
    bottom: -1px;
    right: -1px;
    border-left: 0;
    border-top: 0;
}

.corners {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.text-lime {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-smooth);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: var(--bg-dark);
    box-shadow: var(--glow-lime);
}

.btn-secondary {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary::before {
    background: var(--accent-color);
}

.btn-secondary:hover {
    color: white;
    box-shadow: var(--glow-violet);
}

/* =========================================
   3. HEADER & NAV
   ========================================= */
.header {
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure logo is white */
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-shadow: var(--glow-lime);
}

.nav-link::before {
    content: '>';
    margin-right: 5px;
    opacity: 0;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Scanning Line Animation */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(163, 230, 53, 0.2);
    box-shadow: 0 0 10px rgba(163, 230, 53, 0.5);
    animation: scan 6s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h4 {
    color: var(--accent-color);
    font-family: var(--font-mono);
    margin-bottom: 15px;
    font-size: 1rem;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.glitch {
    position: relative;
    color: white;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
}

/* Terminal / Code Window Visual */
.terminal-window {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 20px;
    font-family: var(--font-mono);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #22c55e;
}

.terminal-body {
    color: #a3e635;
    font-size: 0.9rem;
}

.code-line {
    display: block;
    margin-bottom: 10px;
    opacity: 0;
    animation: typeIn 0.5s forwards;
}

.cl-1 {
    animation-delay: 0.2s;
}

.cl-2 {
    animation-delay: 0.8s;
}

.cl-3 {
    animation-delay: 1.4s;
}

.cl-4 {
    animation-delay: 2.0s;
    color: white;
}

/* =========================================
   5. SERVICES (Holographic Cards)
   ========================================= */
.services {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(16, 16, 16, 0.8) 50%, rgba(5, 5, 5, 0) 100%);
}

.section-head {
    margin-bottom: 80px;
}

.section-head h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-head .line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    display: inline-block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(20, 20, 20, 0.6);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--primary-color);
    background: rgba(20, 20, 20, 1);
    transform: translateY(-5px);
}

.s-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.service-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-link:hover {
    gap: 15px;
}

/* =========================================
   6. CALCULATOR (HUD Interface)
   ========================================= */
.calculator-section {
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: #080808;
}

.hud-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-color);
    background: rgba(10, 10, 10, 0.8);
}

.hud-left {
    padding: 60px;
    border-right: 1px solid var(--border-color);
}

.hud-right {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(163, 230, 53, 0.05) 0%, transparent 70%);
}

.input-wrap {
    margin-bottom: 40px;
}

.input-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    margin-bottom: 15px;
    color: var(--text-main);
}

.input-val {
    color: var(--primary-color);
}

input[type=range] {
    width: 100%;
    height: 4px;
    background: #333;
    -webkit-appearance: none;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-color);
}

.data-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.data-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-right-color: var(--primary-color);
    animation: spin 3s linear infinite;
}

.roi-value {
    font-size: 3rem;
    font-family: var(--font-display);
    color: white;
    font-weight: 700;
}

.hud-stat-row {
    display: flex;
    gap: 30px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hud-stat-row span strong {
    color: white;
    display: block;
    font-size: 1.1rem;
}

/* =========================================
   7. TESTIMONIALS (Marquee)
   ========================================= */
.testimonials {
    overflow: hidden;
}

.marquee-container {
    display: flex;
    width: 200%;
    animation: scrollText 20s linear infinite;
}

.marquee-block {
    display: flex;
    justify-content: space-around;
    width: 50%;
    gap: 30px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid #333;
    padding: 30px;
    min-width: 350px;
    position: relative;
}

.review-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--border-color);
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: serif;
}

.stars {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 0.8rem;
}

.r-text {
    color: var(--text-main);
    margin-bottom: 20px;
    font-style: italic;
}

.r-author {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.r-author strong {
    color: white;
}

/* =========================================
   8. CONTACT PAGE
   ========================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border-color);
}

.contact-info {
    background: var(--bg-panel);
    padding: 80px 60px;
    border-right: 1px solid var(--border-color);
}

.contact-form-area {
    padding: 80px 60px;
    background: var(--bg-dark);
}

.info-point {
    margin-bottom: 40px;
}

.info-point h5 {
    color: var(--primary-color);
    font-family: var(--font-mono);
    margin-bottom: 5px;
}

.info-point p {
    font-size: 1.2rem;
}

.c-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    color: white;
    font-family: var(--font-mono);
    margin-bottom: 30px;
    transition: 0.3s;
}

.c-input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.c-input::placeholder {
    color: #555;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* =========================================
   9. LEGAL PAGES
   ========================================= */
.legal-wrapper {
    max-width: 900px;
    margin: 50px auto;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 60px;
}

.legal-content h1 {
    color: var(--primary-color);
    margin-bottom: 40px;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: white;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.legal-content ul {
    margin-left: 20px;
    list-style: square;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 10px;
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer {
    border-top: 1px solid var(--border-color);
    background: #000;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
}

.footer h4 {
    margin-bottom: 25px;
    font-size: 1rem;
    color: white;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: var(--text-muted);
}

.footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bar {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: #555;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* =========================================
   11. ANIMATIONS & RESPONSIVE
   ========================================= */
@keyframes scan {
    0% {
        top: -10%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .terminal-window {
        display: none;
    }

    /* Hide heavy visual on tablet */
    .hud-container {
        grid-template-columns: 1fr;
    }

    .hud-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: black;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        border-right: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .legal-wrapper {
        padding: 30px;
    }
}