/* Global Styles */
:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --card-bg: #171717;
    --surface: rgba(12, 14, 22, 0.60);
    --surface-strong: rgba(8, 10, 16, 0.78);
    --surface-border: rgba(255,255,255,0.08);
    --surface: rgba(12, 14, 22, 0.60);
    --surface-strong: rgba(8, 10, 16, 0.78);
    --surface-border: rgba(255,255,255,0.08);
    --nav-bg: rgba(10, 10, 10, 0.8);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s ease;

    /* --- Visual FX tuning (easy knobs) --- */
    --fx-aurora-opacity: 0.85;
    --fx-grid-opacity: 0.38;
    --fx-scan-opacity: 0.36;
    --fx-signal-opacity: 0.22;
    --fx-vignette-opacity: 0.45;

    /* Updated by JS at runtime to match the actual navbar height */
    --nav-h: 80px;
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}


/* =========================
   Decorative FX layers
   - Fixed-position overlays behind content
   - Professional motion: subtle, not distracting
   ========================= */

html {
    /* When clicking #anchors, keep the fixed navbar from covering headings */
    scroll-padding-top: calc(var(--nav-h) + 20px);
}

.section,
.hero-section,
footer {
    scroll-margin-top: calc(var(--nav-h) + 20px);
}

body {
    position: relative; /* Create a stacking context */
}

/* All actual page content should sit above the FX */
.navbar,
.hero-section,
.section,
footer {
    position: relative;
    z-index: 1;
}

.fx-aurora,
.fx-grid,
.fx-scanline,
.fx-vignette,
.fx-signal,
.scroll-progress {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Aurora glow (more visible + bluer) */
.fx-aurora {
    opacity: var(--fx-aurora-opacity);
    inset: -25%; /* extra room so blur doesn't clip at edges */
    filter: blur(60px) saturate(165%);
    background:
        radial-gradient(circle at 18% 22%, rgba(59, 130, 246, 0.65), transparent 52%),
        radial-gradient(circle at 82% 28%, rgba(139, 92, 246, 0.55), transparent 56%),
        radial-gradient(circle at 60% 85%, rgba(255, 255, 255, 0.10), transparent 55%);
    mix-blend-mode: screen;
    will-change: transform;
    animation: auroraDrift 14s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
    0%   { transform: translate3d(-2%, -1%, 0) scale(1.02); }
    100% { transform: translate3d(2%,  1%, 0) scale(1.06); }
}

/* Tech grid */
.fx-grid {
    opacity: var(--fx-grid-opacity);
    background-image:
        linear-gradient(rgba(59,130,246,0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: 0 0;
    animation: gridDrift 10s linear infinite;
    mix-blend-mode: screen;
    will-change: transform;
}

@keyframes gridDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 320px 240px; }
}

/* Scanline sweep + subtle horizontal scanlines */
.fx-scanline {
    opacity: var(--fx-scan-opacity);
    mix-blend-mode: screen;
}

.fx-scanline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -40%;
    height: 55%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255,255,255,0.18) 45%,
        rgba(59,130,246,0.10) 55%,
        transparent 100%
    );
    filter: blur(1px);
    animation: scanSweep 6.5s linear infinite;
    will-change: transform;
}

.fx-scanline::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.05) 1px,
        transparent 1px,
        transparent 6px
    );
    opacity: 0.20;
}

@keyframes scanSweep {
    0%   { transform: translate3d(0, -30%, 0); }
    100% { transform: translate3d(0, 140%, 0); }
}

/* Vignette for depth */
.fx-vignette {
    opacity: var(--fx-vignette-opacity);
    background: radial-gradient(circle at 50% 35%, transparent 0 45%, rgba(0,0,0,0.65) 78%, rgba(0,0,0,0.90) 100%);
}

/* "Signal" wave overlay (subtle concentric arcs drifting) */
.fx-signal {
    opacity: var(--fx-signal-opacity);
    mix-blend-mode: screen;
}

.fx-signal::before {
    content: "";
    position: absolute;
    left: -18%;
    top: 38%;
    width: 136%;
    height: 62%;
    background-image: repeating-radial-gradient(
        circle at 50% 70%,
        rgba(59, 130, 246, 0) 0 26px,
        rgba(59, 130, 246, 0.14) 27px 28px
    );
    transform: skewY(-8deg);
    -webkit-mask-image: radial-gradient(closest-side at 50% 70%, rgba(0,0,0,1) 0 60%, rgba(0,0,0,0) 92%);
    mask-image: radial-gradient(closest-side at 50% 70%, rgba(0,0,0,1) 0 60%, rgba(0,0,0,0) 92%);
    animation: signalDrift 14s linear infinite;
    will-change: transform;
}

@keyframes signalDrift {
    0%   { transform: translate3d(-2%, 0, 0) skewY(-8deg); }
    100% { transform: translate3d(2%,  0, 0) skewY(-8deg); }
}

/* Scroll progress bar (top) */
.scroll-progress {
    height: 3px;
    top: 0;
    bottom: auto;
    background: linear-gradient(90deg, rgba(59,130,246,1), rgba(255,255,255,0.85));
    transform-origin: 0 0;
    transform: scaleX(0);
    opacity: 0.9;
    z-index: 1200; /* above navbar */
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fx-aurora,
    .fx-scanline::before,
    .fx-signal::before {
        animation: none !important;
    }
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
}


/* Button shimmer (primary + secondary) */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -30%;
    width: 60%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: translateX(-140%) rotate(18deg);
    opacity: 0;
    will-change: transform;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    opacity: 1;
    animation: btnShine 1.2s ease-in-out infinite;
}

@keyframes btnShine {
    0%   { transform: translateX(-140%) rotate(18deg); }
    100% { transform: translateX(260%)  rotate(18deg); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary:hover::after,
    .btn-secondary:hover::after {
        animation: none !important;
    }
}

.section {
    position: relative;
    padding: 100px 0;
}

/* Section overlay so FX layers show through without visible seams */
.section::before {
    content: "";
    position: absolute;
    /* Extend 1px vertically to hide subpixel seams between stacked sections */
    inset: -1px 0;
    background: rgba(6, 10, 18, 0.34);
    pointer-events: none;
}

.section > .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: #a0a0a0;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(7, 10, 18, 0.78), rgba(7, 10, 18, 0.46));
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.is-scrolled {
    background: linear-gradient(to bottom, rgba(7, 10, 18, 0.92), rgba(7, 10, 18, 0.62));
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

/* Navbar "signal" wave (animated bars, constant motion) */
.nav-signal{
    flex: 1 1 520px;
    max-width: 720px;
    min-width: 220px;
    height: 14px;
    border-radius: 999px;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: flex-end;
    gap: 3px;
    padding: 3px 10px;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 0 0 1px rgba(59,130,246,0.10), 0 0 24px rgba(59,130,246,0.16);
    backdrop-filter: blur(10px);
}

/* faint "tube" sheen behind the bars */
.nav-signal::before{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.00) 55%, rgba(0,0,0,0.10));
    pointer-events:none;
}

/* Bars are injected by JS so HTML stays clean */
.nav-signal-bar{
    width: 3px;
    flex: 0 0 3px;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(255,255,255,0.80), rgba(59,130,246,0.75));
    transform-origin: bottom;
    opacity: 0.70;
    animation: navWave 2.6s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.085s);
    will-change: transform, opacity;
}

/* Makes it read as a "wave" rather than random bouncing */
@keyframes navWave {
    0%, 100% { transform: scaleY(0.22); opacity: 0.35; }
    50%      { transform: scaleY(1.15); opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-signal-bar{ animation: none !important; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    flex-wrap: nowrap;
}

/* Prevent flex shrink from wrapping "Contact Us" into two lines */
.nav-links li { flex: 0 0 auto; }

.nav-links a.btn-primary{
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    line-height: 1;
    flex-shrink: 0;
}


.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #ccc;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    padding-top: calc(var(--nav-h) + 30px);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: -1px 0;
    background: rgba(6, 10, 18, 0.34);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}


.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    font-size: 1.25rem;
    color: #a0a0a0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: #ccc;
}

.placeholder-box {
    width: 100%;
    height: 400px;
    background: #222;
    border: 2px dashed #444;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    border-radius: 10px;
}

/* Services Section */
.services-section {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(12, 14, 22, 0.72), rgba(7, 9, 14, 0.56));
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--surface-border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Looping shine pass (runs continuously while hovered) */
.service-card::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: linear-gradient(115deg,
        transparent 0%,
        rgba(255,255,255,0.18) 45%,
        rgba(255,255,255,0.06) 55%,
        transparent 80%
    );
    transform: translateX(-120%);
    opacity: 0;
    will-change: transform;
}

.service-card:hover::after {
    opacity: 1;
    animation: cardShine 1.35s ease-in-out infinite;
}

@keyframes cardShine {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
    .service-card:hover::after { animation: none !important; }
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #a0a0a0;
}

/* Contact Section */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(12, 14, 22, 0.78), rgba(7, 9, 14, 0.60));
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--surface-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ccc;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.btn-block {
    width: 100%;
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    color: var(--accent-color);
}

.form-message.error {
    color: #ef4444;
}

/* Footer */
footer {
    background: linear-gradient(to top, rgba(7, 10, 18, 0.82), rgba(7, 10, 18, 0.56));
    backdrop-filter: blur(10px);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-col p {
    color: #888;
    margin-bottom: 10px;
}

.social-links a {
    display: block;
    color: #888;
    margin-bottom: 8px;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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



/* Small equalizer-style "signal" widget */
.signal-wave {
    position: absolute;
    right: 28px;
    bottom: 22px;
    display: flex;
    gap: 6px;
    opacity: 0.55;
    filter: drop-shadow(0 0 12px rgba(59,130,246,0.25));
}

.signal-wave span {
    width: 4px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(59,130,246,0.85));
    transform-origin: bottom;
    animation: signalBounce 1.25s ease-in-out infinite;
}

.signal-wave span:nth-child(2) { animation-delay: 0.10s; }
.signal-wave span:nth-child(3) { animation-delay: 0.20s; }
.signal-wave span:nth-child(4) { animation-delay: 0.30s; }
.signal-wave span:nth-child(5) { animation-delay: 0.40s; }
.signal-wave span:nth-child(6) { animation-delay: 0.50s; }

@keyframes signalBounce {
    0%, 100% { transform: scaleY(0.45); opacity: 0.7; }
    50%      { transform: scaleY(1.25); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .signal-wave span { animation: none !important; }
}



@media (max-width: 980px) {
    .nav-signal { display: none; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    /* Mobile Navigation */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(7, 10, 18, 0.92);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        padding: 0;
        z-index: 999;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.5s ease;
    }

    .nav-links.nav-active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger animation for links */
    .nav-links.nav-active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.nav-active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.nav-active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.nav-active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .hamburger {
        display: block;
        z-index: 2000;
        /* Increased z-index to be sure */
        position: relative;
        /* Ensure it has a position context */
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 5px 0;
        transition: var(--transition);
    }

    /* Hamburger Animation */
    .hamburger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: calc(var(--nav-h) + 50px);
        padding-bottom: 60px;
    }

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

    .contact-wrapper {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 30px;
    }
}
/* Honeypot field - hidden from humans but visible in DOM for bots */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Just in case: don't show on screen readers either */
.hp-field input,
.hp-field label {
    visibility: hidden;
}



.cat-emoji {
  position: fixed;
  font-size: 32px;         /* make them big floofy */
  pointer-events: none;
  z-index: 9999;
  animation: catFloat 3s ease-out forwards;
}

@keyframes catFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-150px) scale(0.8);
    opacity: 0;
  }
}
