/* ===== Base ===== */
:root {
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --dark-bg: #0f0f1a;
    --card-bg: #ffffff;
    --text-muted: #6b7280;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: #fafafa;
    color: #1f2937;
    line-height: 1.7;
    padding-top: 0;
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s;
    padding: 0.8rem 0;
}
.navbar .nav-link {
    color: rgba(255,255,255,0.75) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    border-radius: 8px;
}
.navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.06);
}
.brand-accent {
    color: var(--accent);
    margin-right: 2px;
}
.btn-nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
.btn-nav-cta:hover {
    background: var(--accent-dark) !important;
}

/* ===== Hero ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1040 40%, #0f0f1a 100%);
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}
/* subtle floating orbs */
.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    pointer-events: none;
}
.hero-tag {
    font-size: 0.95rem;
}
.badge-hero-greeting {
    background: rgba(139,92,246,0.15);
    color: #c4b5fd;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.85rem;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.gradient-text {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 1.15rem;
    max-width: 540px;
}

/* Code window in hero */
.hero-visual {
    display: flex;
    justify-content: center;
}
.code-window {
    background: #1a1a2e;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.code-header {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-body {
    padding: 16px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    margin: 0;
}
.keyword { color: #c792ea; }
.func { color: #82aaff; }
.comment { color: #546e7a; font-style: italic; }
.bool { color: #f78c6c; }

/* ===== Trust Banner ===== */
.trust-banner {
    border-bottom: 1px solid rgba(0,0,0,0.04);
    background: #fff;
}
.trust-item {
    display: inline-block;
    margin: 0 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

/* ===== Section Shared ===== */
.section-padding {
    padding: 5rem 0;
}
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.section-label.light {
    color: #c4b5fd;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.section-title.light {
    color: #fff;
}
.section-desc {
    color: var(--text-muted);
    max-width: 560px;
    font-size: 1.05rem;
}

/* ===== Project Cards ===== */
.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    height: 100%;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.project-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.75rem;
}
.project-tech span {
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    background: rgba(0,0,0,0.04);
    border-radius: 4px;
    color: #6b7280;
    font-weight: 500;
}

/* ===== Service Items ===== */
.service-item {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139,92,246,0.08);
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--accent);
}

/* ===== Stats ===== */
.stat-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ===== Blog Cards ===== */
.blog-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* ===== Blog Content ===== */
.blog-content h2 {
    margin-top: 2rem;
    font-weight: 700;
    font-size: 1.5rem;
}
.blog-content h3 {
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}
.blog-content p {
    margin-bottom: 1rem;
    color: #374151;
}
.blog-content ul, .blog-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.blog-content li {
    margin-bottom: 0.4rem;
}
.blog-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1rem;
    margin: 1.5rem 0;
    background: rgba(139,92,246,0.04);
    border-radius: 0 8px 8px 0;
}
.blog-content pre {
    background: #0f0f1a;
    color: #e0e0e0;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 1.5rem 0;
}
.blog-content code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ===== Footer ===== */
.footer {
    background: #0f0f1a;
}
.footer-icon {
    color: rgba(255,255,255,0.4);
    font-size: 1.2rem;
    transition: color 0.2s;
}
.footer-icon:hover {
    color: #fff;
}
.footer-links a:hover {
    color: #fff !important;
}

/* ===== Form Overrides (dark section) ===== */
#contact .form-control,
#contact .form-select {
    border-radius: 12px;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
}
#contact .form-control:focus,
#contact .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(139,92,246,0.2);
}
#contact .form-control::placeholder {
    color: rgba(255,255,255,0.25);
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    border-radius: 12px;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}
.btn-outline-light {
    border-radius: 12px;
    font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .section-padding {
        padding: 3.5rem 0;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
