/* KB-BIT Modern Stylesheet */
:root {
    --bg: #0b1020;
    --bg-soft: #111733;
    --surface: #ffffff;
    --surface-2: #f5f7fb;
    --text: #0f172a;
    --text-muted: #5b6478;
    --text-invert: #f4f6fb;
    --primary: #4f46e5;
    --primary-2: #7c3aed;
    --accent: #06b6d4;
    --border: rgba(15, 23, 42, .08);
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
    --shadow-md: 0 18px 40px -12px rgba(15, 23, 42, .18);
    --shadow-lg: 0 30px 60px -20px rgba(79, 70, 229, .35);
    --radius: 18px;
    --radius-sm: 10px;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #06b6d4 100%);
    --gradient-soft: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(6, 182, 212, .08));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-2); }

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 .6em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === NAV === */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 0;
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links {
    display: flex;
    gap: .25rem;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-links a {
    display: inline-block;
    padding: .55rem 1rem;
    border-radius: 999px;
    color: var(--text);
    font-weight: 500;
    font-size: .95rem;
    transition: all .2s ease;
}
.nav-links a:hover, .nav-links a.active {
    background: var(--gradient-soft);
    color: var(--primary);
}
.nav-cta {
    background: var(--gradient) !important;
    color: white !important;
    padding: .6rem 1.25rem !important;
    box-shadow: var(--shadow-sm);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.nav-toggle {
    display: none;
    background: none; border: 0; padding: .5rem;
    cursor: pointer;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text); margin: 5px 0;
    transition: transform .25s ease, opacity .25s ease;
}

@media (max-width: 860px) {
    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: white;
        padding: 1rem 1.5rem;
        gap: .25rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-10px);
        opacity: 0; pointer-events: none;
        transition: all .25s ease;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-toggle { display: block; }
    .nav-links a { display: block; padding: .75rem 1rem; }
}

/* === HERO === */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at top right, rgba(124, 58, 237, .25), transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(6, 182, 212, .2), transparent 60%),
                linear-gradient(180deg, #0b1020 0%, #111733 100%);
    color: var(--text-invert);
    padding: 7rem 0 8rem;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.04) 0, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,.04) 0, transparent 1px);
    background-size: 60px 60px, 80px 80px;
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: #c7d0e3;
    margin-bottom: 1.5rem;
}
.eyebrow::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 10px #22c55e;
}
.hero h1 { color: white; }
.hero h1 .grad {
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p.lead {
    font-size: 1.15rem;
    color: #c7d0e3;
    max-width: 56ch;
    margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
}
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { color: white; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
    background: rgba(255,255,255,.06);
    color: white;
    border-color: rgba(255,255,255,.18);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: white; }

.hero-card {
    position: relative;
    border-radius: 24px;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
.hero-card .stat-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    margin-top: 1rem;
}
.stat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 1rem;
}
.stat .num {
    font-family: 'Poppins', sans-serif;
    font-size: 1.85rem; font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat .lbl { font-size: .82rem; color: #9aa6c0; margin-top: .35rem; }

.code-window {
    background: #0a0f24;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    padding: 1rem 1.1rem;
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: .82rem;
    color: #c7d0e3;
    margin-bottom: 1rem;
}
.code-window .dots { display: flex; gap: 6px; margin-bottom: .85rem; }
.code-window .dots span { width: 11px; height: 11px; border-radius: 50%; background: #2a3050; }
.code-window .dots span:nth-child(1) { background: #ef4444; }
.code-window .dots span:nth-child(2) { background: #f59e0b; }
.code-window .dots span:nth-child(3) { background: #22c55e; }
.code-window .k { color: #c084fc; }
.code-window .s { color: #67e8f9; }
.code-window .c { color: #64748b; }

/* === SECTION === */
.section { padding: 6rem 0; }
.section-light { background: var(--surface-2); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head .eyebrow-light {
    display: inline-block;
    padding: .35rem .9rem;
    background: var(--gradient-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-head p { font-size: 1.1rem; }

/* === CARDS === */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gradient-soft);
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 0; }

.card ul.tag-list {
    list-style: none; padding: 0; margin: 1rem 0 0;
    display: flex; flex-wrap: wrap; gap: .4rem;
}
.card .tag {
    font-size: .78rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-weight: 500;
}

/* === ABOUT/SPLIT === */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.feature-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: .85rem;
    color: var(--text);
}
.feature-list li::before {
    content: '';
    position: absolute; left: 0; top: .35rem;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--gradient);
    background-image: var(--gradient), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 110%, 60%;
}

/* === GALLERY === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
    content: attr(data-label);
    position: absolute; left: 1.25rem; bottom: 1.25rem;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    z-index: 1;
}
.gallery-item::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(11,16,32,.75));
    pointer-events: none;
}

/* === CTA === */
.cta-banner {
    position: relative;
    border-radius: 28px;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--gradient);
    color: white;
    overflow: hidden;
}
.cta-banner::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,.2), transparent 50%);
}
.cta-banner h2 { color: white; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 56ch; margin: 0 auto 2rem; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }
.cta-banner .btn-primary { background: white; color: var(--primary); }
.cta-banner .btn-primary:hover { background: white; }

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}
.contact-card .row {
    display: flex; gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .icon-box {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--gradient-soft);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
}
.contact-card .icon-box svg { width: 20px; height: 20px; }
.contact-card .label {
    font-size: .8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .15rem;
}
.contact-card .val { color: var(--text); font-weight: 600; }

/* === FOOTER === */
.footer {
    background: var(--bg);
    color: #c7d0e3;
    padding: 4rem 0 2rem;
}
.footer h4 { color: white; font-size: 1rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .5rem; }
.footer a { color: #c7d0e3; }
.footer a:hover { color: white; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 1rem; display: block; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.5rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    font-size: .9rem;
    color: #8b95ad;
}

/* === SUB HERO === */
.sub-hero {
    background: radial-gradient(ellipse at top, rgba(124, 58, 237, .15), transparent 60%),
                linear-gradient(180deg, #0b1020 0%, #111733 100%);
    color: white;
    padding: 6rem 0 5rem;
    text-align: center;
}
.sub-hero h1 { color: white; }
.sub-hero h1 .grad {
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sub-hero p { color: #c7d0e3; max-width: 70ch; margin: 0 auto; font-size: 1.1rem; }

/* === Reveal anim === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Tech marquee === */
.tech-strip {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.tech-list {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: center;
    list-style: none; margin: 0; padding: 0;
}
.tech-list li {
    padding: .55rem 1.1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    font-family: 'JetBrains Mono', monospace;
}
