:root {
    --main: #00f2fe;
    --second: #4facfe;
    --accent: #0066ff;
    --dark: #07070a;
    --card: #0f0f14;
    --card-hover: #141420;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(0,242,254,0.4);
    --text: #f0f0f5;
    --muted: #8888a0;
    --grad: linear-gradient(135deg, var(--second) 0%, var(--main) 100%);
    --grad-text: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --glow: 0 0 30px rgba(0,242,254,0.12);
    --shadow: 0 20px 60px rgba(0,0,0,0.5);
    --radius: 18px;
    --radius-sm: 10px;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0; padding: 0;
    box-sizing: border-box;
}
* { box-sizing: inherit; margin: 0; padding: 0; }

body {
    font-family: 'Assistant', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.7;
}
html { scroll-behavior: smooth; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; width: 100%; }

section { width: 100%; overflow: hidden; padding: 100px 0; }

/* ── HEADER ── */
header {
    padding: 14px 0;
    position: fixed;
    width: 100%; top: 0;
    z-index: 1000;
    background: rgba(7,7,10,0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.header-flex {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 24px; font-weight: 800; color: #fff; text-decoration: none; }
.logo span { color: var(--main); }

nav { display: flex; align-items: center; gap: 4px; }
nav a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 50px; font-weight: 600; font-size: 15px; transition: color 0.2s, background 0.2s; }
nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-cta {
    background: var(--grad);
    color: #000 !important;
    padding: 9px 22px !important;
    border-radius: 50px;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0,242,254,0.2);
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover { transform: translateY(-1px) !important; box-shadow: 0 0 32px rgba(0,242,254,0.4) !important; }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(79,172,254,0.13) 0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 80% 80%, rgba(0,102,255,0.07) 0%, transparent 60%),
        var(--dark);
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,242,254,0.04) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orb-pulse 7s ease-in-out infinite;
    z-index: 0;
}
@keyframes orb-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

.hero-content { position: relative; z-index: 1; max-width: 820px; padding: 0 20px; }

/* Badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,242,254,0.07);
    border: 1px solid rgba(0,242,254,0.2);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px; font-weight: 600; color: var(--main);
    margin-bottom: 30px; letter-spacing: 0.5px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--main); border-radius: 50%; animation: dot-blink 2s ease infinite; }
@keyframes dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 { font-size: clamp(38px, 8vw, 78px); font-weight: 800; margin-bottom: 22px; line-height: 1.15; letter-spacing: -1.5px; }

.highlight { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero p { font-size: 19px; color: var(--muted); margin-bottom: 44px; max-width: 620px; margin-inline: auto; line-height: 1.75; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
    padding: 15px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700; font-size: 16px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-primary { background: var(--grad); color: #000; box-shadow: 0 4px 24px rgba(0,242,254,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,242,254,0.4); }
.btn-secondary { border: 1px solid rgba(255,255,255,0.12); color: #fff; background: rgba(255,255,255,0.03); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.07); transform: translateY(-2px); }

/* Trust row */
.hero-trust {
    margin-top: 52px;
    display: flex; align-items: center; justify-content: center;
    gap: 22px; color: var(--muted); font-size: 13px; font-weight: 600;
}
.hero-trust .divider { width: 1px; height: 16px; background: var(--border); }

/* ── SECTION HEADERS ── */
.section-label {
    display: inline-block;
    background: rgba(0,242,254,0.07);
    border: 1px solid rgba(0,242,254,0.18);
    color: var(--main);
    font-size: 11px; font-weight: 700; letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 5px 14px; border-radius: 50px;
    margin-bottom: 14px;
}

h2 { text-align: center; font-size: clamp(28px, 5vw, 44px); margin-bottom: 14px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; }

.section-sub { text-align: center; color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 56px; line-height: 1.75; }

/* ── SERVICES ── */
.services { background: var(--dark); position: relative; }
.services::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,242,254,0.2), transparent); }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }

.service-box {
    background: var(--card);
    padding: 40px 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: right;
    transition: border-color 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.service-box:hover { border-color: var(--border-hover); transform: translateY(-6px); background: var(--card-hover); box-shadow: var(--glow), var(--shadow); }

.service-icon { font-size: 38px; margin-bottom: 22px; display: block; }
.service-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.service-box p { color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ── WHY ME ── */
.why-me { background: #09090d; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }

.why-box {
    background: var(--card);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.why-box:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--glow); }
.why-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.why-box p { color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ── ABOUT ── */
.about-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.about-text h2 { text-align: right; }
.about-text p { color: var(--muted); font-size: 16px; margin-bottom: 18px; line-height: 1.85; }

.about-stats { display: flex; gap: 36px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--border); }
.stat span { font-size: 34px; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; line-height: 1; margin-bottom: 6px; }
.stat p { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; }

.code-window {
    background: #010104;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow-x: auto;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.03);
}
.dots { display: flex; gap: 7px; margin-bottom: 20px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }
.dots span:nth-child(1) { background: #ff5f57; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #28ca41; }

.code-window pre { color: var(--main); font-family: 'Fira Code', monospace; font-size: 15px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }

.contact { background: var(--dark); text-align: center; position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; width: 900px; height: 900px; background: radial-gradient(circle, rgba(0,242,254,0.035) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.contact > .container { position: relative; z-index: 1; }
.contact h2 { margin-bottom: 14px; }
.contact > .container > p { color: var(--muted); font-size: 17px; margin-bottom: 44px; }

.contact-grid { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.c-card {
    background: var(--card); padding: 18px 34px; border-radius: var(--radius);
    text-decoration: none; color: #fff; display: flex; align-items: center; gap: 14px;
    border: 1px solid var(--border); font-weight: 700; font-size: 16px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.c-card img { width: 28px; height: 28px; object-fit: contain; }
.c-card:hover { border-color: var(--border-hover); transform: translateY(-4px) scale(1.02); box-shadow: var(--glow); background: var(--card-hover); }

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(40px) scale(0.93); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cardSlideIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }

.modal {
    display: none; position: fixed; z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.88);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    align-items: center; justify-content: center;
    animation: modalFadeIn 0.3s ease forwards;
}

.modal-content {
    background: var(--card); padding: 44px;
    border-radius: 24px; width: 90%; max-width: 480px;
    text-align: center; position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0,0,0,0.7), var(--glow);
    animation: modalSlideUp 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
}
.modal-content h2 { font-size: 26px; margin-bottom: 10px; }
.modal-content p { color: var(--muted); font-size: 15px; }

.close-modal { position: absolute; left: 18px; top: 16px; font-size: 26px; color: var(--muted); cursor: pointer; transition: color 0.2s, transform 0.3s; line-height: 1; }
.close-modal:hover { color: #fff; transform: rotate(90deg); }

.modal-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }

.modal-card {
    display: flex; align-items: center; padding: 16px 20px;
    background: rgba(255,255,255,0.025);
    border-radius: var(--radius-sm);
    text-decoration: none; color: #fff;
    border: 1px solid var(--border); text-align: right;
    gap: 16px; opacity: 0;
    transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.modal.active .modal-card:nth-child(1) { animation: cardSlideIn 0.35s ease forwards 0.25s; }
.modal.active .modal-card:nth-child(2) { animation: cardSlideIn 0.35s ease forwards 0.35s; }
.modal.active .modal-card:nth-child(3) { animation: cardSlideIn 0.35s ease forwards 0.45s; }

.modal-card:hover { background: rgba(255,255,255,0.06); border-color: var(--border-hover); transform: translateX(-4px); box-shadow: var(--glow); }

.modal-card img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.modal-card-text { flex: 1; text-align: right; }
.modal-card span { font-weight: 700; font-size: 17px; display: block; }
.modal-card small { color: var(--muted); font-size: 12px; margin-top: 2px; display: block; }

.modal-card .arrow { color: var(--muted); font-size: 18px; transition: transform 0.2s, color 0.2s; }
.modal-card:hover .arrow { transform: translateX(-4px); color: var(--main); }

footer { text-align: center; padding: 36px; color: var(--muted); border-top: 1px solid var(--border); font-size: 14px; }

.cursor { animation: blink 1s infinite; color: var(--main); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@media (max-width: 768px) {
    section { padding: 72px 0; }
    .header-flex { padding: 0 4px; }
    nav { gap: 2px; }
    nav a { font-size: 13px; padding: 7px 10px; }
    .hero h1 { font-size: 36px; letter-spacing: -0.5px; }
    .hero p { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
    .hero-trust { flex-wrap: wrap; gap: 14px; }
    .hero-trust .divider { display: none; }
    .about-wrapper { grid-template-columns: 1fr; text-align: center; gap: 36px; }
    .about-text h2 { text-align: center; }
    .about-stats { justify-content: center; }
    h2 { font-size: 28px; }
    .modal-content { padding: 32px 24px; }
}