:root {
    --bg: #0b0f14;
    --bg-soft: #121821;
    --card: #111827;
    --card-2: #0f1722;
    --text: #f5f7fa;
    --muted: #b8c2cc;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --title-bright: #f8fbff;
    --title-soft: #eaf4ff;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 28%),
        linear-gradient(180deg, #0b0f14 0%, #0b0f14 100%);
    color: var(--text);
    font-family: Arial, sans-serif;
    line-height: 1.65;
    padding-top: 76px;
}

/* Navbar */
.custom-navbar {
    background: rgba(11, 15, 20, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff;
}

/* Global sections */
.section-spacing {
    padding: 88px 0;
}

.section-alt {
    background-color: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 12px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--title-bright);
    text-shadow: 0 0 1px rgba(255,255,255,0.08);
}

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

/* Hero */
.hero-section {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 40px 0 60px;
}

.hero-row {
    min-height: 70vh;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 1.8px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3.4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 22px;
    max-width: 760px;
    color: var(--title-bright);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero-description {
    color: #d7e2ec;
    font-size: 1.08rem;
    max-width: 690px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.custom-btn-primary {
    background-color: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #ffffff;
    padding: 12px 22px;
    font-weight: 700;
    border-radius: 999px;
}

.custom-btn-primary:hover,
.custom-btn-primary:focus {
    background-color: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.custom-btn-secondary {
    padding: 12px 22px;
    font-weight: 700;
    border-radius: 999px;
    border-width: 1px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.highlight-badge {
    padding: 8px 14px;
    border-radius: 999px;
    background-color: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.18);
    color: #dff6ff;
    font-size: 0.92rem;
}

/* Profile card */
.profile-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: var(--shadow);
    max-width: 380px;
    margin: 0 auto;
}

.profile-img {
    width: 210px;
    max-width: 100%;
    border-radius: 18px;
    margin-bottom: 22px;
    border: 1px solid var(--border);
}

.profile-name {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--title-soft);
}

.profile-role {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-location {
    color: #d4dee8;
    margin-bottom: 0;
}

/* Shared cards */
.content-card,
.skill-card,
.project-card,
.cv-card,
.contact-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.content-card {
    padding: 28px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--title-soft);
}

.card-text {
    color: var(--muted);
    margin-bottom: 14px;
}

.value-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.value-list li + li {
    margin-top: 10px;
}

/* Skill cards */
.skill-card {
    padding: 26px 22px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.28);
}

.skill-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--title-soft);
}

.skill-text {
    color: var(--muted);
    margin-bottom: 0;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-pill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: #d9e2ec;
    font-size: 0.9rem;
}

/* Projects */
.project-card {
    padding: 26px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.25);
}

.featured-project {
    position: relative;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.10), rgba(255,255,255,0.025));
    border-color: rgba(56, 189, 248, 0.34);
    box-shadow: 0 16px 45px rgba(14, 165, 233, 0.12);
}

.featured-project::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(14, 165, 233, 0.10));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.featured-project:hover {
    transform: translateY(-7px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 20px 55px rgba(14, 165, 233, 0.18);
}

.project-content {
    position: relative;
    z-index: 1;
}

.project-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.project-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #d1fae5;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--title-soft);
}

.project-text {
    color: var(--muted);
    margin-bottom: 14px;
}

.project-impact {
    color: #dbeafe;
    margin-bottom: 0;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}

.project-links a,
.contact-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.project-links a:hover,
.contact-links a:hover {
    text-decoration: underline;
}

.project-links .live-link::after {
    content: " ↗";
}

/* CV */
.cv-card {
    padding: 30px 24px;
}

.cv-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--title-soft);
}

.cv-text {
    color: var(--muted);
    margin-bottom: 20px;
}

/* Contact */
.contact-box {
    padding: 42px 26px;
    max-width: 880px;
    margin: 0 auto;
}

.contact-subtitle {
    max-width: 700px;
    margin: 0 auto;
}

.contact-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

/* Footer */
.footer-section {
    padding: 28px 0 40px;
    border-top: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.02);
}

.footer-credits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #cbd5df;
}

.footer-credit-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-credit-select {
    background: transparent;
    border: none;
    padding: 0;
    color: #aeb9c4;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
}

.footer-credit-select:hover {
    color: #ffffff;
}

.footer-credit-select option {
    background: #0f1722;
    color: #ffffff;
}

.footer-credit-text {
    color: #cbd5df;
    font-size: 0.95rem;
}

.footer-credit-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.footer-credit-link:hover {
    color: #7dd3fc;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding-top: 24px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 72px;
    }

    .section-spacing {
        padding: 72px 0;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-description,
    .section-subtitle,
    .card-text,
    .skill-text,
    .project-text,
    .cv-text {
        font-size: 0.98rem;
    }

    .profile-card,
    .content-card,
    .skill-card,
    .project-card,
    .cv-card,
    .contact-box {
        border-radius: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .project-top-meta {
        align-items: flex-start;
    }

    .footer-credit-group {
        flex-direction: column;
        gap: 4px;
    }
}
