/* Bits Developers - homepage styles (used only by index.html) */

:root {
    --bg: #05070d;
    --bg-alt: #0b0f1a;
    --surface: #10162584;
    --border: #1f2940;
    --text: #e8ecf7;
    --muted: #93a0bd;
    --accent: #4f8cff;
    --accent-2: #7c4dff;
    --accent-glow: rgba(79, 140, 255, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Roboto', 'Reem Kufi', sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Nav ---------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(5, 7, 13, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.brand span {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1.2rem;
    padding: 8px 12px;
    cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
}

#particles-js {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(79, 140, 255, 0.12), transparent 45%),
        radial-gradient(circle at 80% 60%, rgba(124, 77, 255, 0.12), transparent 45%),
        var(--bg);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
    max-width: 780px;
}

.eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.15;
    margin: 0 0 20px;
    font-weight: 700;
}

.hero h1 .grad {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 36px;
}

.cta-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text);
    background: var(--surface);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- Sections ---------- */

section {
    position: relative;
    padding: 110px 0;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title .eyebrow {
    margin-bottom: 16px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 0 0 12px;
}

.section-title p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

/* About / values grid */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, var(--accent-glow), rgba(124, 77, 255, 0.2));
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Apps section */

.app-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 28px;
    margin-bottom: 16px;
}

.app-card .app-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.app-card .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.app-card .app-info h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.app-card .app-info p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.apps-footer {
    text-align: center;
    margin-top: 32px;
}

/* Contact */

.contact-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
}

.contact-card .mail-link {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin: 8px 0 28px;
}

.mail-btn a {
    color: #fff;
}

/* Footer */

footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-company {
    color: var(--text);
    font-weight: 600;
    margin: 0 0 6px;
}

.footer-meta {
    margin: 0 0 16px;
}

/* Reveal on scroll */

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

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

/* ---------- Responsive ---------- */

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

    .app-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-alt);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px 24px;
        gap: 18px;
        display: none;
    }

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

    .nav-toggle {
        display: inline-block;
    }

    .contact-card {
        padding: 32px 22px;
    }

    .contact-meta {
        gap: 24px;
    }
}
