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

:root {
    --bg: #f8f9fc;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --border: #e8eaed;
    --border-light: #f0f1f3;
    --text: #1a1a2e;
    --text-sub: #6c6f7f;
    --text-light: #9ca0af;
    --accent: #5046e5;
    --accent-hover: #4338ca;
    --accent-soft: rgba(80,70,229,0.08);
    --accent-glow: rgba(80,70,229,0.15);
    --green: #10b981;
    --font: 'Inter', -apple-system, sans-serif;
    --font-display: 'Sora', sans-serif;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.06), 0 16px 48px rgba(0,0,0,0.08);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    transition: all 0.4s var(--ease);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 800;
    color: var(--text);
}
.logo span { color: var(--accent); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 28px; }
.nav-links a {
    font-size: 0.88rem; font-weight: 500;
    color: var(--text-sub);
    transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600 !important;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease) !important;
}
.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer; border: none;
    transition: all 0.3s var(--ease);
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(80,70,229,0.25);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero-bg {
    position: absolute; inset: 0;
    overflow: hidden;
    z-index: 0;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 12s ease-in-out infinite;
}
.blob-1 {
    width: 400px; height: 400px;
    background: rgba(80,70,229,0.15);
    top: -10%; right: -5%;
    animation-delay: 0s;
}
.blob-2 {
    width: 300px; height: 300px;
    background: rgba(16,185,129,0.12);
    bottom: 10%; left: -5%;
    animation-delay: -4s;
}
.blob-3 {
    width: 250px; height: 250px;
    background: rgba(251,191,36,0.1);
    top: 40%; left: 50%;
    animation-delay: -8s;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative; z-index: 1;
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    background: var(--accent-soft);
    border: 1px solid rgba(80,70,229,0.12);
    border-radius: 100px;
    font-size: 0.82rem; font-weight: 600;
    color: var(--accent);
    margin-bottom: 28px;
}
.badge-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}
.highlight {
    position: relative;
    color: var(--accent);
}
.highlight::after {
    content: '';
    position: absolute;
    left: 0; bottom: 2px;
    width: 100%; height: 8px;
    background: var(--accent-glow);
    border-radius: 4px;
    z-index: -1;
}
.hero-desc {
    font-size: 1.05rem;
    color: var(--text-sub);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; }

/* Stats */
.hero-stats {
    display: inline-flex; align-items: center; gap: 32px;
    padding: 20px 36px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat-num {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 800;
    color: var(--text);
}
.stat-plus { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.stat-label { display: block; font-size: 0.75rem; font-weight: 500; color: var(--text-light); margin-top: 2px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block;
    font-size: 0.78rem; font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    padding: 5px 14px;
    background: var(--accent-soft);
    border-radius: 6px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.section-desc { color: var(--text-sub); font-size: 0.95rem; }

/* ===== PROJECT CARDS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.pcard {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease);
}
.pcard:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(80,70,229,0.15);
}

/* Browser mockup */
.pcard-img { padding: 20px 20px 0; background: var(--bg); }
.pcard-browser {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-bottom: none;
    transition: transform 0.4s var(--ease);
}
.pcard:hover .pcard-browser { transform: scale(1.02); }

.pb-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: #f4f5f7;
    border-bottom: 1px solid var(--border);
}
.pb-dots { display: flex; gap: 5px; }
.pb-dots i {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: block;
}
.pb-dots i:nth-child(1) { background: #ef4444; }
.pb-dots i:nth-child(2) { background: #f59e0b; }
.pb-dots i:nth-child(3) { background: #22c55e; }
.pb-url {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.68rem; font-weight: 500;
    color: var(--text-sub);
    background: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.pb-body { padding: 16px; min-height: 180px; }

/* Rakit mockup */
.rakit-bg { background: linear-gradient(180deg, #f5f3ff 0%, #eef2ff 100%); }
.pb-mock-nav {
    height: 8px; width: 50%;
    background: rgba(80,70,229,0.12);
    border-radius: 4px;
    margin-bottom: 14px;
}
.pb-mock-hero {
    padding: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    margin-bottom: 14px;
}
.pb-mock-title {
    height: 8px; width: 60%;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
    margin-bottom: 6px;
}
.pb-mock-subtitle {
    height: 6px; width: 40%;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    margin-bottom: 10px;
}
.pb-mock-btn {
    height: 10px; width: 28%;
    background: rgba(255,255,255,0.7);
    border-radius: 5px;
}
.pb-mock-grid { display: flex; gap: 8px; }
.pb-mock-grid.two-col { display: grid; grid-template-columns: 1fr 1fr; }
.pb-mock-card {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid rgba(0,0,0,0.04);
}
.pmc-img {
    height: 32px;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
    border-radius: 5px;
    margin-bottom: 6px;
}
.pmc-line { height: 5px; background: #e5e7eb; border-radius: 3px; margin-bottom: 4px; }
.pmc-line.short { width: 60%; }

/* HOJ overrides */
.hoj-bg { background: linear-gradient(180deg, #faf8f0 0%, #f0ebe0 100%); }
.hoj-nav { background: rgba(30,58,95,0.12) !important; }
.hoj-hero-block { background: linear-gradient(135deg, #1e3a5f, #2a5a8f) !important; }
.hoj-btn { background: rgba(212,168,83,0.8) !important; }
.hoj-card { border-color: rgba(212,168,83,0.1) !important; }
.hoj-img { background: linear-gradient(135deg, rgba(30,58,95,0.1), rgba(212,168,83,0.12)) !important; }

/* Card body */
.pcard-body { padding: 24px; }
.pcard-tags { display: flex; gap: 6px; margin-bottom: 12px; }
.pcard-tags span {
    font-size: 0.7rem; font-weight: 600;
    padding: 4px 10px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 6px;
    letter-spacing: 0.02em;
}
.pcard-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 6px;
}
.pcard-body p {
    font-size: 0.88rem;
    color: var(--text-sub);
    margin-bottom: 16px;
    line-height: 1.55;
}
.pcard-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; font-weight: 600;
    color: var(--accent);
    transition: gap 0.3s var(--ease);
}
.pcard:hover .pcard-link { gap: 10px; }

/* ===== CONTACT ===== */
.contact-box {
    text-align: center;
    padding: 72px 40px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.contact-box::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: var(--accent-glow);
    filter: blur(60px);
}
.contact-box > * { position: relative; }
.contact-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}
.contact-box p {
    color: var(--text-sub);
    max-width: 400px;
    margin: 0 auto 28px;
    font-size: 0.95rem;
}
.contact-actions { display: flex; justify-content: center; }

/* ===== FOOTER ===== */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border-light);
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
}
.footer p { font-size: 0.82rem; color: var(--text-light); }

/* ===== ANIMATIONS ===== */
.anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.anim.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { gap: 16px; }
    .projects-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; padding: 16px 24px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .contact-box { padding: 48px 24px; }
}
@media (max-width: 480px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .hero { padding-top: 100px; }
    .section { padding: 72px 0; }
    .footer-inner { flex-direction: column; gap: 8px; }
}
