* {
    box-sizing: border-box;
}

:root {
    --bg: #040713;
    --bg-2: #080d1d;
    --text: #f4f7ff;
    --muted: #a7b1ca;
    --line: rgba(98, 123, 255, 0.16);
    --panel: rgba(9, 15, 32, 0.64);
    --primary: #18c9f8;
    --secondary: #6c63ff;
    --success: #5cf2be;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 15%, rgba(24, 201, 248, 0.14), transparent 24%),
        radial-gradient(circle at 80% 20%, rgba(108, 99, 255, 0.14), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, #050916 42%, #070b16 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(28, 56, 112, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 56, 112, 0.18) 1px, transparent 1px);
    background-size: 62px 62px;
    opacity: .35;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: .25;
}

.glow-1 {
    width: 360px;
    height: 360px;
    background: var(--primary);
    left: -120px;
    top: 180px;
}

.glow-2 {
    width: 420px;
    height: 420px;
    background: var(--secondary);
    right: -120px;
    top: 100px;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.glass {
    background: var(--panel);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(5, 9, 22, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.logo span {
    color: var(--primary);
}

.desktop-nav {
    display: flex;
    gap: 28px;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: white;
}

.menu-btn {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.15rem;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    flex-direction: column;
    gap: 14px;
}

.mobile-nav.open {
    display: flex;
}

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

.hero {
    padding-top: 52px;
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
}

.hero-layout,
.two-col,
.contact-layout,
.footer-layout {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 32px;
    align-items: center;
}

.hero-badge,
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 22px;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: .95;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text,
.text-panel p,
.contact-text,
.site-footer p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 32px 0 28px;
}

.btn {
    min-height: 58px;
    padding: 0 28px;
    border-radius: 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #041019;
    background: linear-gradient(135deg, var(--primary), #2de1ff);
    box-shadow: 0 12px 34px rgba(24, 201, 248, 0.25);
}

.btn-secondary {
    color: white;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn.full {
    width: 100%;
}

.hero-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mini-stat {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-stat strong {
    display: block;
    margin-bottom: 6px;
    color: white;
}

.mini-stat span {
    color: var(--muted);
    font-size: .95rem;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.orbital {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(84, 122, 255, 0.22);
}

.orbital-1 {
    width: 420px;
    height: 420px;
}

.orbital-2 {
    width: 320px;
    height: 320px;
}

.orbital-3 {
    width: 220px;
    height: 220px;
}

.hero-card {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    padding: 24px;
    border-radius: 28px;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    margin-bottom: 18px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 18px rgba(92, 242, 190, 0.8);
}

.pipeline {
    display: grid;
    gap: 8px;
}

.pipe-step,
.pipe-arrow {
    text-align: center;
}

.pipe-step {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pipe-arrow {
    color: var(--primary);
    font-weight: 700;
}

.strip {
    padding: 0 0 20px;
}

.strip-grid,
.skills-grid,
.services-grid,
.projects-grid,
.testimonial-grid {
    display: grid;
    gap: 18px;
}

.strip-grid {
    grid-template-columns: repeat(4, 1fr);
}

.impact-item,
.skill-card,
.service-card,
.project-card,
.text-panel,
blockquote,
.contact-form,
details,
.stack-cloud {
    border-radius: var(--radius);
}

.impact-item {
    padding: 22px;
    text-align: center;
}

.impact-item span {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.impact-item p {
    margin: 0;
    color: var(--muted);
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-header {
    margin-bottom: 24px;
}

.text-panel {
    padding: 24px;
}

.skills-grid {
    grid-template-columns: repeat(3, 1fr);
}

.services-grid {
    grid-template-columns: repeat(4, 1fr);
}

.projects-grid {
    grid-template-columns: repeat(3, 1fr);
}

.skill-card,
.service-card,
.project-card,
blockquote {
    padding: 24px;
}

.skill-card p,
.service-card p,
.project-card p,
blockquote {
    color: var(--muted);
    line-height: 1.7;
}

.project-top {
    color: var(--primary);
    font-size: .9rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.project-card span {
    display: inline-block;
    margin-top: 12px;
    color: #d5ddff;
    font-size: .95rem;
}

.stack-cloud {
    padding: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stack-cloud span {
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #eaf0ff;
}

.testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
}

blockquote {
    margin: 0;
    font-size: 1.05rem;
}

blockquote cite {
    display: block;
    margin-top: 14px;
    color: var(--primary);
    font-style: normal;
}

.faq-list {
    display: grid;
    gap: 14px;
}

details {
    padding: 18px 20px;
}

summary {
    cursor: pointer;
    font-weight: 700;
}

details p {
    color: var(--muted);
    line-height: 1.7;
    margin: 12px 0 0;
}

.contact-form {
    padding: 24px;
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    color: #eef4ff;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    font: inherit;
    padding: 14px 16px;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #8690ad;
}

.site-footer {
    padding: 26px 0 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-layout {
    align-items: start;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 22px;
    justify-content: flex-end;
}

.chat-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), #12e1ff);
    color: #021017;
    font-size: 1.8rem;
    box-shadow: 0 12px 34px rgba(24, 201, 248, 0.3);
    z-index: 60;
}

.chatbox {
    position: fixed;
    right: 24px;
    bottom: 118px;
    width: min(370px, calc(100% - 24px));
    z-index: 60;
    overflow: hidden;
    border-radius: 24px;
}

.hidden {
    display: none;
}

.chatbox-header {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chatbox-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.chatbox-header button {
    border: none;
    background: transparent;
    color: white;
    font-size: 1.7rem;
    cursor: pointer;
}

.chatbox-body {
    padding: 16px;
    display: grid;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 16px;
    line-height: 1.5;
}

.chat-msg.bot {
    background: rgba(255, 255, 255, 0.05);
}

.chat-msg.user {
    background: rgba(24, 201, 248, 0.16);
    justify-self: end;
}

.chat-msg.typing {
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 16px;
}

.chat-msg.typing span {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite both;
}

.chat-msg.typing span:nth-child(1) {
    animation-delay: 0s;
}
.chat-msg.typing span:nth-child(2) {
    animation-delay: 0.2s;
}
.chat-msg.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-quick {
    padding: 0 16px 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-form button {
    border: none;
    border-radius: 14px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--primary), #2be1ff);
    color: #041019;
    font-weight: 800;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {

    .skills-grid,
    .projects-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .strip-grid,
    .two-col,
    .contact-layout,
    .footer-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }
}

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

    .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .skills-grid,
    .services-grid,
    .projects-grid,
    .strip-grid,
    .testimonial-grid,
    .two-col,
    .contact-layout,
    .footer-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 34px;
    }

    .hero-mini-stats {
        flex-direction: column;
    }

    .hero-visual {
        min-height: 420px;
    }

    .orbital-1 {
        width: 320px;
        height: 320px;
    }

    .orbital-2 {
        width: 250px;
        height: 250px;
    }

    .orbital-3 {
        width: 180px;
        height: 180px;
    }

    .chat-fab {
        width: 72px;
        height: 72px;
        right: 16px;
        bottom: 16px;
    }

    .chatbox {
        right: 12px;
        bottom: 96px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}