:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

/* ── Navbar ── */
#mainNav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#mainNav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 0.6rem 0;
}

#mainNav .navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

#mainNav .nav-link {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    transition: color 0.2s;
}

#mainNav .nav-link:hover {
    color: var(--primary);
}

/* ── Hero ── */
.hero-section {
    min-height: 100vh;
    padding: 8rem 0 5rem;
    background-color: #0f172a;
    background-image: radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.35rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 520px;
    line-height: 1.75;
}

.hero-photo {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1e3a5f;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.35);
}

/* ── Sections ── */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* ── Service cards ── */
.service-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.service-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.service-card p {
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ── Tech stack ── */
.stack-group {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    height: 100%;
}

.stack-label {
    font-weight: 700;
    color: var(--text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-tech {
    display: inline-block;
    padding: 0.3em 0.8em;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #334155;
    border-radius: 6px;
    border: 1px solid var(--border);
    line-height: 1.5;
}

/* ── Contact ── */
.contact-info {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--primary);
}

/* ── Buttons ── */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ── Footer ── */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}

/* ── Form ── */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}