/* ==========================
   VARIABLES
========================== */
:root {
    --bg-dark: #071127;
    --bg-dark-alt: #051026;
    --accent: #0ea5ff;
    --accent-2: #7c5bff;
    --accent-alt: #2dd4bf;
    --muted: #98a2b3;
    --glass: rgba(255, 255, 255, 0.05);
    --radius: 12px;
    --container: 1150px;
    --ease: cubic-bezier(0.16, 0.84, 0.24, 1);
    --transition-fast: 0.18s var(--ease);
    --transition-medium: 0.3s var(--ease);
}

/* ==========================
   GLOBAL RESET
========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-dark-alt) 95%);
    color: #e8f2f8;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 92%;
    max-width: var(--container);
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    outline-style: solid;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================
   HEADER
========================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: linear-gradient(180deg, rgba(3, 7, 12, 0.85), rgba(3, 7, 12, 0.45));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand {
    font-weight: 800;
    color: var(--accent);
    font-size: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: #e8f2f8;
    font-size: 22px;
    cursor: pointer;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 18px;
    list-style: none;
}

.nav-list a {
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-list a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.btn-small {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #041017;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
}

/* MOBILE NAVIGATION */
@media(max-width:980px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        right: 16px;
        top: 64px;
    }

    .nav-list {
        flex-direction: column;
        background: linear-gradient(180deg, rgba(7, 14, 25, 0.96), rgba(7, 10, 18, 0.96));
        border-radius: 12px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
        padding: 12px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease-in-out;
    }

    .main-nav.active .nav-list {
        max-height: 500px;
    }
}

/* ==========================
   HERO
========================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 24px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.float-blobs {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(32px);
    opacity: 0.6;
    mix-blend-mode: screen;
    animation: float 8s ease-in-out infinite alternate, hue 12s linear infinite;
}

.blob.b1 {
    width: 360px;
    height: 220px;
    left: -6%;
    top: 10%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.blob.b2 {
    width: 260px;
    height: 160px;
    right: 8%;
    top: 6%;
    background: linear-gradient(135deg, var(--accent-alt), var(--accent));
}

.blob.b3 {
    width: 200px;
    height: 120px;
    left: 40%;
    top: -4%;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(16px) translateX(8px); }
    100% { transform: translateY(0) translateX(0); }
}

@keyframes hue {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* HERO CONTENT */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 480px;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

@media(max-width:980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
}

.hero-left { max-width: 720px; }

.kicker {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-weight: 700;
}

.hero-title {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(28px, 4.4vw, 48px);
    margin: 18px 0;
    color: #fff;
    line-height: 1.05;
}

.hero-title .reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    animation: reveal 0.6s var(--ease) forwards;
}

.hero-title .reveal:nth-child(1) { animation-delay: 0.15s; }
.hero-title .reveal:nth-child(2) { animation-delay: 0.32s; }
.hero-title .reveal:nth-child(3) { animation-delay: 0.52s; }

@keyframes reveal {
    to { opacity: 1; transform: none; }
}

.lead { color: var(--muted); max-width: 880px; margin: 0 0 22px; font-size: 1.05rem; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #021018;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(14, 165, 255, 0.06);
    transition: transform 0.3s ease;
}

.btn-primary:hover { transform: translateY(-2px) scale(1.02); }

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

/* ==========================
   STATS
========================== */
.stats-section { padding: 36px 0; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    align-items: center;
}

.stat {
    background: var(--glass);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(28px);
    transition: all 0.6s var(--ease);
}

.stat.visible { opacity: 1; transform: none; }

.stat:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.stat h3 { font-size: 28px; color: var(--accent); margin-bottom: 6px; }
.stat p { color: var(--muted); font-weight: 600; }

/* ==========================
   ABOUT
========================== */
.about { padding: 48px 0; background: #f9fafb; color: #111827; }

.about-grid { display: grid; grid-template-columns: 1fr 460px; gap: 2rem; align-items: center; }

.about-text h2 { font-size: 2rem; margin-bottom: 1rem; color: #0f172a; }
.lead-small { color: #374151; margin-bottom: 12px; }

.about-bullets { margin: 12px 0 18px; list-style: disc; padding-left: 20px; color: var(--muted); }
.about-actions { display: flex; gap: 10px; }
.about-text { max-width: 640px; }
.about-media img { width: 100%; border-radius: 12px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45); max-width: 460px; }

/* ==========================
   SERVICES / CAPABILITIES
========================== */
.capabilities { padding: 80px 20px; background: #081129; text-align: center; }
.capabilities .section-title { font-size: 2.5rem; margin-bottom: 10px; color: #fff; }
.capabilities .section-subtitle { color: #9ca3af; margin-bottom: 40px; font-size: 1.1rem; }

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cap-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cap-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
    z-index: 0;
}

.cap-card:hover::before { transform: scale(1); }
.cap-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12); }
.cap-card * { position: relative; z-index: 1; }

.cap-card img.cap-img { width: 110px; height: 110px; margin-bottom: 1rem; object-fit: contain; transition: transform 0.4s ease; }
.cap-card:hover img.cap-img { transform: scale(1.1) rotate(3deg); }

.cap-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--accent); }
.cap-card p { font-size: 0.95rem; color: #45A; line-height: 1.5; }

/* Reveal animations for all sections */
.reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* ==========================
   RESPONSIVE TWEAKS
========================== */
@media(max-width:980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
}

@media(max-width:720px) {
    .showcase-item img { height: 140px; }
    .testimonial { min-width: 260px; }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

/* ==========================
   SHOWCASE / CAROUSEL
========================== */
.showcase { padding: 48px 0; }

.carousel {
    position: relative;
    overflow: hidden;
    padding: 6px 0 22px;
}

.carousel-track {
    display: flex;
    gap: 18px;
    transition: transform .55s var(--ease);
    will-change: transform;
    align-items: stretch;
}

.showcase-item {
    background: linear-gradient(180deg, #141b2d, #0d1320);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    min-height: 260px;
    flex: 0 0 auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.showcase-item:hover img { transform: scale(1.05); }

.showcase-info {
    padding: 12px 14px;
    color: #cbd5e1;
    flex: 1;
}

.showcase-info h3 {
    color: #fff;
    margin-bottom: 6px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, rgba(2, 8, 16, 0.9), rgba(2, 8, 16, 0.75));
    color: #fff;
    border: 0;
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 10px;
    z-index: 30;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
}

.carousel-btn:hover { background: rgba(14,165,255,0.4); }

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-dots { text-align: center; margin-top: 14px; }
.carousel-dots button {
    width: 10px; height: 10px; border-radius: 50%; margin: 0 6px;
    background: #2b3440; border: 0; cursor: pointer; transition: all 0.3s;
}
.carousel-dots button.active { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* ==========================
   CLIENTS / MARQUEE
========================== */
.clients { padding: 80px 20px; background: #f9fafb; color: #111827; text-align: center; }

.clients .section-title { font-size: 2.3rem; margin-bottom: 10px; color: #0f172a; }
.clients .section-subtitle { color: #374151; margin-bottom: 40px; }

.client-marquee { overflow: hidden; position: relative; }
.client-track {
    display: flex; gap: 60px;
    animation: scroll-marquee 25s linear infinite;
}
.client-track img {
    height: 60px; width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}
.client-track img:hover { transform: scale(1.1); }

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================
   WORKFLOW / TIMELINE
========================== */
.workflow-section {
    padding: 80px 20px; background: #0a0f1c; color: #e8f2f8; position: relative;
}
.workflow-section .section-title {
    font-size: 2.5rem; text-align: center; margin-bottom: 8px; color: #fff;
}
.workflow-section .section-subtitle {
    color: #9ca3af; text-align: center; margin-bottom: 60px; font-size: 1.1rem;
}

.timeline {
    display: flex; justify-content: space-between; align-items: flex-start;
    position: relative; flex-wrap: nowrap; padding-top: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 28px; left: 8%; right: 8%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 1;
}
.timeline-item {
    flex: 1; max-width: 180px; text-align: center; position: relative; z-index: 2;
}
.timeline-dot {
    width: 24px; height: 24px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%; margin: 0 auto 12px;
    box-shadow: 0 0 12px rgba(14,165,255,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-dot:hover { transform: scale(1.2); box-shadow: 0 0 20px rgba(14,165,255,0.8); }

.timeline-content h3 { font-size: 1.2rem; color: #fff; margin-bottom: 6px; }
.timeline-content p { font-size: 0.95rem; color: #9ca3af; line-height: 1.5; }

@media(max-width:980px) {
    .timeline { flex-direction: column; align-items: center; }
    .timeline::before { top: 0; left: 50%; width: 4px; height: 100%; transform: translateX(-50%); }
    .timeline-item { max-width: 320px; text-align: left; margin-bottom: 40px; }
    .timeline-dot { margin-left: calc(50% - 12px); margin-bottom: 12px; }
}

/* ==========================
   TESTIMONIALS
========================== */
.testimonials { padding: 48px 0; background: #f9fafb; color: #111827; }
.testimonials .section-title { font-size: 2.3rem; margin-bottom: 10px; color: #0f172a; text-align: center; }
.testimonials .section-subtitle { color: #374151; margin-bottom: 40px; text-align: center; }

.testimonial-track { display: flex; gap: 16px; transition: transform 0.45s var(--ease); }
.testimonial {
    min-width: 300px; background: linear-gradient(180deg, #071225, #071224);
    padding: 18px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.test-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.test-photo {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(14,165,255,0.12); box-shadow: 0 6px 18px rgba(14,165,255,0.06);
}
.stars { color: #ffd166; }
.testimonial p { color: var(--muted); margin-bottom: 10px; }
.testimonial h4 { color: var(--accent); font-size: .98rem; }

/* ==========================
   FAQ
========================== */
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.02);
    transition: all 0.3s;
}
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item[open] { background: rgba(255,255,255,0.04); }

/* ==========================
   DISCOVERY CTA
========================== */
.discovery {
    padding: 40px; background: linear-gradient(90deg, rgba(12,20,36,0.9), rgba(6,12,24,0.95));
    border-radius: 12px; margin: 28px auto; max-width: calc(var(--container)-40px); text-align: center;
}
.discovery h2 { color: #fff; }
.discovery p { color: var(--muted); }

/* ==========================
   MODAL / LIGHTBOX
========================== */
.modal {
    position: fixed; inset:0; display:none; align-items:center; justify-content:center;
    background: rgba(0,0,0,0.6); z-index:2500; padding:22px;
}
.modal.open { display:flex; }
.modal-content {
    width: 100%; max-width:720px;
    background: linear-gradient(180deg, #041022, #061630);
    padding: 22px; border-radius:12px; border:1px solid rgba(255,255,255,0.04);
    color:#fff; box-shadow: 0 30px 80px rgba(0,0,0,0.7); position:relative;
}
.modal-close { position:absolute; right:22px; top:18px; background:none; border:0; color:#fff; font-size:20px; cursor:pointer; }
.lightbox-content { display:grid; grid-template-columns:1fr; gap:14px; }
.lightbox-content img { width:100%; max-height:60vh; object-fit:cover; border-radius:10px; }
.lightbox-info h3 { margin:6px 0; }
.lightbox-info p { color: var(--muted); }

/* ==========================
   FORMS
========================== */
.form-row { margin-bottom: 10px; }
.form-row label { display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
.form-row input, .form-row textarea {
    width:100%; padding:10px; border-radius:8px;
    border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02);
    color:#fff; transition: all 0.3s;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); }

/* ==========================
   FOOTER
========================== */
.site-footer {
    padding:44px 0; border-top:1px solid rgba(255,255,255,0.03);
    background: linear-gradient(180deg, #020612, #03081a);
}
.footer-grid {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:18px;
}
.footer-grid strong { display:block; margin-bottom:8px; }
.muted { color: var(--muted); }
.quick-links { list-style:none; padding:0; margin-top:8px; }
.quick-links li { margin-bottom:6px; }
.copy { text-align:center; color:#6c7b8a; margin-top:18px; font-size:13px; }

/* ==========================
   RESPONSIVE TWEAKS
========================== */
@media(max-width:980px){
    .hero-inner{grid-template-columns:1fr;}
    .about-grid{grid-template-columns:1fr;}
    .hero-illustration{height:260px;}
}
@media(max-width:720px){
    .showcase-item img{height:140px;}
    .testimonial{min-width:260px;}
    .services-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));}
}
