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

:root {
    --bg: #09090b;
    --bg-card: #111113;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --cta: #f59e0b;
    --cta-hover: #fbbf24;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --border: #27272a;
    --cyan: #06b6d4;
    --lime: #84cc16;
    --btc: #f7931a;

    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --section-pad: 120px 5%;
    --max-w: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 1.1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
    border-radius: 4px;
}
h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    max-width: 1080px;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.9rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

.logo .logo-bracket {
    color: var(--accent);
}

.logo .logo-digits {
    color: var(--accent-light);
}

.logo .logo-name {
    color: var(--text);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    padding: 0.45rem 0.2rem;
}

.nav-menu a:hover {
    color: var(--text);
}

.lang-switch {
    display: flex;
    gap: 0.4rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
}

.lang-btn svg {
    width: 22px;
    height: 16px;
    border-radius: 2px;
}

.lang-btn.active {
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.12);
}

.lang-btn:hover {
    border-color: var(--accent-light);
}
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--section-pad);
    padding-top: 10rem;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind hero text */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15) 0%, rgba(124, 58, 237, 0.04) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    padding-top: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0;
    border: 1px solid var(--border);
    border-width: 0 0 1px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0;
    margin-bottom: 2rem;
}

.hero-badge::before {
    content: '';
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--cta);
}

h1 .hero-accent {
    color: var(--accent-light);
}

.hero-description {
    font-size: clamp(1.08rem, 1.7vw, 1.32rem);
    color: var(--text-secondary);
    max-width: 760px;
    margin: 2rem 0 3rem;
    line-height: 1.7;
    text-wrap: pretty;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--cta);
    color: #09090b;
}

.btn-primary:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
    transform: translateY(-2px);
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 4vw, 3rem);
    margin-top: 4.5rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    position: relative;
    padding-top: 1rem;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1.8rem;
    height: 2px;
    background: var(--cta);
}

.stat-number {
    font-family: var(--font-head);
    font-size: clamp(1.65rem, 2.7vw, 2.15rem);
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.75rem;
    max-width: 20rem;
    line-height: 1.55;
}
section {
    padding: var(--section-pad);
}

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--accent-light);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 580px;
    font-size: 1.1rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-subtitle {
    margin: 0 auto;
}
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.portfolio-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.portfolio-showcase {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.8fr);
    gap: 1.25rem;
    align-items: stretch;
}

.portfolio-selector {
    display: grid;
    gap: 0.75rem;
}

.portfolio-tab {
    width: 100%;
    min-height: 72px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.portfolio-tab:hover,
.portfolio-tab.active {
    border-color: rgba(167, 139, 250, 0.45);
    background: rgba(124, 58, 237, 0.1);
    color: var(--text);
}

.portfolio-tab span {
    display: block;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.portfolio-tab small {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.portfolio-detail {
    min-height: 430px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.14), transparent 42%),
        var(--bg);
    overflow: hidden;
}

.portfolio-panel {
    display: none;
    min-height: 100%;
    padding: clamp(1.6rem, 4vw, 3rem);
}

.portfolio-panel.active {
    display: grid;
    grid-template-rows: auto 1fr auto;
    flex-direction: column;
    gap: 2rem;
}

.portfolio-panel-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.portfolio-kicker {
    font-family: var(--font-mono);
    color: var(--accent-light);
    font-size: 0.8rem;
}

.portfolio-panel-top a {
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.portfolio-panel-top a:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.portfolio-panel h3 {
    align-self: center;
    max-width: 760px;
    font-size: clamp(2.4rem, 4.6vw, 3.65rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.portfolio-panel p {
    max-width: 680px;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.35vw, 1.14rem);
    line-height: 1.7;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.34rem 0.72rem;
    border-radius: 100px;
    color: var(--accent-light);
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
}
.services-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

/* Top colored accent line per card */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:nth-child(1)::before, .service-card:nth-child(1).slider-card::before { background: var(--accent); }
.service-card:nth-child(2)::before, .service-card:nth-child(2).slider-card::before { background: var(--cyan); }
.service-card:nth-child(3)::before, .service-card:nth-child(3).slider-card::before { background: var(--lime); }
.service-card:nth-child(4)::before, .service-card:nth-child(4).slider-card::before { background: var(--accent-light); }
.service-card:nth-child(5)::before, .service-card:nth-child(5).slider-card::before { background: var(--cta); }
.service-card:nth-child(6)::before, .service-card:nth-child(6).slider-card::before { background: #ec4899; }

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.3);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    color: var(--accent-light);
    margin-bottom: 1.25rem;
    transition: background 0.3s, transform 0.3s;
}

.service-card:hover .service-icon {
    background: rgba(124, 58, 237, 0.18);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.service-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-light);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s, color 0.2s;
}

.service-link:hover {
    gap: 0.7rem;
    color: var(--accent);
}

/* Mobile sliders */
.services-slider-container {
    display: none;
    max-width: var(--max-w);
    margin: 0 auto;
}

.services-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-slider::-webkit-scrollbar {
    display: none;
}

.services-slider .service-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    max-width: 380px;
    opacity: 1 !important;
    transform: none !important;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.slider-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}
.contact-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-inner h2 {
    margin-bottom: 1.25rem;
}

.contact-inner > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 5rem 5% 3rem;
}

.footer-content {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand-name {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-brand-name .bracket { color: var(--accent); }
.footer-brand-name .digits { color: var(--accent-light); }

.footer-brand > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h3 {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    max-width: var(--max-w);
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.hero-orb {
    position: absolute;
    top: 15%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.testimonials-section {
    background: var(--bg);
    padding: var(--section-pad);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    min-height: 260px;
    background:
        linear-gradient(145deg, rgba(124, 58, 237, 0.12), transparent 48%),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, 0.45);
}

.testimonial-topline {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-topline span {
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.testimonial-text {
    font-size: 0.98rem;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
}

.author-info {
    min-width: 0;
    flex: 1;
}

.author-x-link {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-weight: 700;
    flex-shrink: 0;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.author-x-link:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
    background: rgba(167, 139, 250, 0.08);
}

.author-info .author-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.author-info .author-role {
    color: var(--text-secondary);
    font-size: 0.82rem;
}
.floating-chat-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.34);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    animation: float-pulse 2s infinite;
}

.floating-chat-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.48);
}

.floating-chat-btn svg {
    width: 40px;
    height: 40px;
    transform: translateX(1px);
}

.floating-chat-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

@keyframes float-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.34); }
    50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.5); }
}
@media (max-width: 1024px) {
    :root {
        --section-pad: 80px 5%;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(9, 9, 11, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        z-index: 999;
        padding-top: 80px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        font-size: 1.3rem;
        color: var(--text);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .portfolio-showcase {
        grid-template-columns: 1fr;
    }

    .portfolio-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

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

    .services-grid {
        display: none;
    }

    .services-slider-container {
        display: block;
    }

    .chat-suggestions {
        display: none;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-cta {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

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

    .portfolio-selector {
        grid-template-columns: 1fr;
    }

    .portfolio-panel-top {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
