/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Palette: Midnight Iris */
    --bg-dark: #030712;
    /* Deep charcoal */
    --bg-card: #111827;
    /* Soft slate card */
    --bg-light: #f9fafb;

    --primary: #7c3aed;
    /* Iris Violet */
    --primary-hover: #6d28d9;
    --accent: #22d3ee;
    /* Cyan highlight */

    --text-main: #f8fafc;
    --text-muted: #9ca3af;
    --text-dark: #0f172a;

    --border: rgba(255, 255, 255, 0.12);
    --border-light: rgba(15, 23, 42, 0.12);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --gap-sm: 1rem;
    --gap-md: 2rem;
    --gap-lg: 4rem;

    /* Layout */
    --max-w: 1400px;
    --header-h: 90px;

    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.5rem;
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* =========================================
   2. UI COMPONENTS
   ========================================= */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--primary-hover);
    padding-right: 40px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(20, 184, 166, 0.1);
}

/* =========================================
   3. HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 100;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-desktop {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    opacity: 0.7;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary);
}

.nav-link::after {
    content: '/';
    position: absolute;
    right: -1.5rem;
    color: var(--border);
}

.nav-link:last-child::after {
    display: none;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    padding-top: var(--header-h);
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--gap-lg);
    align-items: center;
}

.hero-text h1 span {
    display: block;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h1 span.highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: transparent;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin: 3rem 0;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Visual: Tech Grid Animation */
.hero-visual {
    height: 500px;
    background: radial-gradient(circle at center, rgba(20, 184, 166, 0.1), transparent 60%);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-circle {
    position: absolute;
    border: 1px solid var(--border);
    border-radius: 50%;
    animation: pulse 4s infinite;
}

.r1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.r2 {
    width: 350px;
    height: 350px;
    animation-delay: 1s;
}

.r3 {
    width: 500px;
    height: 500px;
    animation-delay: 2s;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem;
    width: 180px;
    z-index: 2;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.floating-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.fc-1 {
    top: 20%;
    left: 10%;
}

.fc-2 {
    bottom: 20%;
    right: 10%;
}

.fc-3 {
    top: 15%;
    right: 15%;
}

/* =========================================
   5. BENTO GRID SERVICES
   ========================================= */
.section-padding {
    padding: 120px 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 20px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.bento-item.large {
    grid-column: span 2;
}

.bento-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.bento-item h3 {
    margin-bottom: 1rem;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Service Tags */
.tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 4px;
}

/* =========================================
   6. CALCULATOR (Terminal Style)
   ========================================= */
.calc-section {
    background: #0f172a;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.terminal-window {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--font-mono);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #1e293b;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #eab308;
}

.green {
    background: #22c55e;
}

.terminal-body {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.cmd-line {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cmd-line span {
    color: var(--primary);
    margin-right: 10px;
}

.range-wrap {
    margin-bottom: 30px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 0;
    /* Square thumb for tech feel */
}

.terminal-output {
    border-left: 1px solid #333;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.json-output {
    color: #a5f3fc;
    line-height: 1.8;
}

.key {
    color: #f472b6;
}

.string {
    color: #fde047;
}

.number {
    color: var(--primary);
}

/* =========================================
   7. TESTIMONIALS (Marquee)
   ========================================= */
.scrolling-wrapper {
    overflow: hidden;
    white-space: nowrap;
    padding: 40px 0;
    background: var(--primary);
    color: var(--bg-dark);
}

.scrolling-content {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.scrolling-content span {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin: 0 50px;
    text-transform: uppercase;
}

/* =========================================
   8. CONTACT
   ========================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    margin-top: 50px;
}

.contact-details {
    padding: 80px;
    border-right: 1px solid var(--border);
    background: var(--bg-card);
}

.contact-form-wrapper {
    padding: 80px;
    background: var(--bg-dark);
}

.minimal-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    color: white;
    font-family: var(--font-mono);
    margin-bottom: 30px;
    transition: 0.3s;
}

.minimal-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* =========================================
   9. FOOTER
   ========================================= */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
    background: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-nav h5 {
    font-family: var(--font-mono);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: white;
    padding-left: 5px;
}

.legal-bar {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   10. LEGAL PAGES
   ========================================= */
.legal-body {
    padding: 150px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-body h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.legal-body h2 {
    font-size: 1.5rem;
    margin: 3rem 0 1rem;
    color: white;
}

.legal-body p,
.legal-body li {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-body ul {
    list-style: square;
    padding-left: 20px;
}

/* =========================================
   11. ANIMATIONS & MEDIA QUERIES
   ========================================= */
@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .bento-item.large {
        grid-column: span 1;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-details {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .terminal-body {
        grid-template-columns: 1fr;
    }

    .terminal-output {
        border-left: none;
        border-top: 1px solid #333;
        padding-left: 0;
        padding-top: 30px;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}