/* ================================
   Base Styles
================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 76px;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background: #f8fafc;
}

a {
    transition: all 0.2s ease;
}

::selection {
    background: #38bdf8;
    color: #020617;
}

/* ================================
   Navbar
================================ */

.navbar {
    z-index: 999;
    padding: 14px 0;
    background: rgba(2, 6, 23, 0.94) !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.2px;
    color: #ffffff !important;
}

.navbar .nav-link {
    font-weight: 650;
    color: #cbd5e1 !important;
    margin-left: 12px;
    padding: 8px 10px !important;
    border-radius: 8px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.10);
}

.nav-contact {
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ================================
   Hero Section
================================ */

.hero-section {
    min-height: calc(100vh - 76px);
    background:
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.26), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.22), transparent 34%),
        linear-gradient(135deg, #020617 0%, #0f172a 45%, #111827 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

body.qa-mode .hero-section {
    background:
        radial-gradient(circle at 15% 20%, rgba(168, 85, 247, 0.28), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(56, 189, 248, 0.22), transparent 34%),
        linear-gradient(135deg, #020617 0%, #111827 45%, #1e1b4b 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.16);
    filter: blur(90px);
    top: -140px;
    right: -100px;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.14);
    filter: blur(95px);
    bottom: -120px;
    left: -120px;
}

.hero-overlay {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 70px 0;
    position: relative;
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
}

.hero-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e0f2fe;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 750;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 950;
    line-height: 1.02;
    margin-bottom: 18px;
    letter-spacing: -1.8px;
}

.hero-role {
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    font-weight: 750;
    color: #cbd5e1;
    line-height: 1.35;
    margin-bottom: 22px;
}

.hero-desc {
    font-size: 1.12rem;
    line-height: 1.8;
    color: #e5e7eb;
    max-width: 780px;
}

.hero-buttons .btn {
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 750;
    margin-bottom: 10px;
}

.btn-primary-custom {
    background: #38bdf8;
    border: none;
    color: #020617;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25);
}

body.qa-mode .btn-primary-custom {
    background: #a78bfa;
    box-shadow: 0 12px 30px rgba(167, 139, 250, 0.24);
}

.btn-primary-custom:hover {
    background: #7dd3fc;
    color: #020617;
    transform: translateY(-3px);
}

body.qa-mode .btn-primary-custom:hover {
    background: #c4b5fd;
}

.btn-outline-custom {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateY(-3px);
}

.hero-snapshot-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    padding: 28px;
    color: #ffffff;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    position: relative;
    z-index: 3;
}

.snapshot-label {
    color: #7dd3fc;
    font-weight: 800;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 1px;
}

body.qa-mode .snapshot-label {
    color: #c4b5fd;
}

.snapshot-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.snapshot-row span {
    color: #cbd5e1;
}

.snapshot-row strong {
    color: #ffffff;
    text-align: right;
}

.snapshot-tags {
    margin-top: 18px;
}

.snapshot-tags span {
    display: inline-block;
    background: rgba(56, 189, 248, 0.14);
    color: #e0f2fe;
    border: 1px solid rgba(56, 189, 248, 0.24);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin: 4px 3px;
}

body.qa-mode .snapshot-tags span {
    background: rgba(167, 139, 250, 0.16);
    color: #ede9fe;
    border-color: rgba(167, 139, 250, 0.26);
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    color: #e0f2fe;
    z-index: 4;
    opacity: 0.8;
    animation: bounce 1.8s infinite;
}

.scroll-indicator:hover {
    color: #38bdf8;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -8px);
    }
}

/* ================================
   Section Layout
================================ */

.section {
    padding-top: 82px;
    padding-bottom: 82px;
    scroll-margin-top: 90px;
}

.section-title {
    font-weight: 900;
    color: #111827;
    margin-bottom: 14px;
    letter-spacing: -0.6px;
}

.section-subtitle {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    color: #4b5563;
    line-height: 1.75;
    font-size: 1.05rem;
}

/* ================================
   Interactive Portfolio Views
================================ */

.role-switch-section {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.06), transparent 32%),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.07), transparent 34%);
}

.role-toggle-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.role-toggle {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.role-toggle i {
    margin-right: 8px;
}

.role-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.role-toggle.active {
    background: linear-gradient(135deg, #0ea5e9, #7c3aed);
    color: #ffffff;
    border-color: transparent;
}

.role-view-card {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.11), transparent 35%),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.10), transparent 35%),
        #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

body.qa-mode .role-view-card {
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.13), transparent 35%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.09), transparent 35%),
        #ffffff;
}

.view-label {
    display: inline-block;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #020617 !important;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 900;
    margin-bottom: 18px;
    box-shadow: 0 10px 26px rgba(56, 189, 248, 0.22);
}

.qa-label {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #ffffff !important;
    box-shadow: 0 10px 26px rgba(124, 58, 237, 0.24);
}

.role-view-card h2 {
    font-weight: 900;
    letter-spacing: -0.7px;
    color: #111827;
    margin-bottom: 16px;
}

.role-view-card p {
    color: #4b5563;
    line-height: 1.75;
}

.view-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.view-item {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 17px 18px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.view-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.view-item span {
    display: block;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.view-item strong {
    color: #111827;
    line-height: 1.5;
}

.view-helper {
    color: #64748b;
    font-weight: 650;
}

.active-view-note {
    display: inline-block;
    width: 100%;
    color: #475569;
    font-weight: 700;
}

.active-view-note span {
    color: #0f172a;
    background: #e0f2fe;
    padding: 6px 12px;
    border-radius: 999px;
}

body.qa-mode .active-view-note span {
    background: #ede9fe;
}

/* ================================
   Cards
================================ */

.card,
.about-mini-card,
.about-highlight-card,
.contact-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.card-title {
    font-weight: 800;
    color: #111827;
    margin-bottom: 14px;
}

.card-text,
.project-summary,
.project-focus,
#about p,
#experience p,
#experience li {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

/* ================================
   About Section
================================ */

.role-content {
    animation: softFade 0.24s ease;
}

@keyframes softFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-highlight-card {
    background: linear-gradient(135deg, #020617 0%, #111827 55%, #1e293b 100%);
    color: #ffffff !important;
    padding: 34px;
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.about-highlight-card.qa-card {
    background: linear-gradient(135deg, #020617 0%, #1e1b4b 55%, #312e81 100%);
}

.about-highlight-card h3 {
    font-weight: 850;
    margin-bottom: 20px;
    color: #ffffff !important;
}

.about-highlight-card p {
    color: #e5e7eb !important;
}

.skill-pills span {
    display: inline-block;
    background: rgba(56, 189, 248, 0.14);
    color: #e0f2fe !important;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 999px;
    padding: 7px 10px;
    margin: 4px 3px;
    font-size: 0.85rem;
    font-weight: 700;
}

body.qa-mode .skill-pills span {
    background: rgba(167, 139, 250, 0.16);
    color: #ede9fe !important;
    border-color: rgba(167, 139, 250, 0.30);
}

.about-mini-card {
    background: #ffffff;
    padding: 26px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.about-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.about-mini-card i {
    color: #0ea5e9;
    font-size: 1.5rem;
    margin-bottom: 14px;
}

body.qa-mode .about-mini-card i {
    color: #7c3aed;
}

.about-mini-card h5 {
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.about-mini-card p {
    margin-bottom: 0;
}

/* ================================
   Skills
================================ */

.skill-card {
    background: #ffffff;
}

.skill-card .card-body {
    padding: 30px;
}

.skill-icon {
    font-size: 1.6rem;
    color: #0ea5e9;
    margin-bottom: 16px;
}

body.qa-mode .skill-icon {
    color: #7c3aed;
}

/* ================================
   Experience
================================ */

.experience-card {
    background: #ffffff;
}

.experience-card .card-body {
    padding: 30px;
}

.experience-label,
.case-label {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 14px;
}

body.qa-mode .experience-label,
body.qa-mode .case-label {
    background: #f5f3ff;
    color: #6d28d9;
}

#experience ul {
    padding-left: 20px;
}

#experience li {
    margin-bottom: 8px;
}

/* ================================
   Projects / Case Studies
================================ */

.project-card-wrapper {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-card-wrapper.is-hidden {
    display: none;
}

.project-card {
    background: #ffffff;
    min-height: 100%;
}

.project-card .card-body {
    padding: 28px;
}

.project-summary {
    margin-bottom: 14px;
}

.project-focus {
    color: #4b5563;
    margin-bottom: 16px;
}

.project-tags {
    margin-bottom: 20px;
}

.project-tags span {
    display: inline-block;
    background: #f1f5f9;
    color: #111827;
    border-radius: 999px;
    padding: 6px 10px;
    margin: 4px 4px 4px 0;
    font-size: 0.82rem;
    font-weight: 750;
}

.project-btn {
    min-width: 150px;
    border-radius: 999px;
    font-weight: 750;
    padding: 10px 18px;
}

.earlier-projects {
    border-top: 1px solid #e5e7eb;
    padding-top: 48px;
}

.practice-card {
    background: #ffffff;
}

.github-more-card {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.10), transparent 35%),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.10), transparent 35%),
        #ffffff;
}

/* ================================
   Contact
================================ */

.contact-card {
    background: #111827;
    color: #ffffff;
    padding: 40px;
    text-align: center;
}

.contact-card h3 {
    font-weight: 850;
    margin-bottom: 16px;
}

.contact-card p {
    color: #e5e7eb;
    line-height: 1.75;
    margin-bottom: 28px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 750;
}

.contact-link:hover {
    transform: translateY(-3px);
    background: #e0f2fe;
    color: #111827;
}

body.qa-mode .contact-link:hover {
    background: #ede9fe;
}

/* ================================
   Back to Top
================================ */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #020617;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.25);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0ea5e9;
}

body.qa-mode .back-to-top:hover {
    background: #7c3aed;
}

/* ================================
   Footer
================================ */

.footer {
    text-align: center;
    padding: 28px;
    background: #020617;
    color: #ffffff;
}

/* ================================
   Responsive
================================ */

@media (max-width: 991px) {
    .navbar .nav-link {
        margin-left: 0;
        margin-top: 8px;
    }

    .hero-overlay {
        padding: 58px 0;
    }

    .hero-text {
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-snapshot-card {
        margin-top: 20px;
    }
}

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

    .hero-section,
    .hero-overlay {
        min-height: auto;
    }

    .hero-overlay {
        padding: 64px 0 72px;
    }

    .hero-title {
        font-size: clamp(2.6rem, 15vw, 4rem);
    }

    .hero-role {
        font-size: 1.1rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 12px;
    }

    .role-toggle {
        width: 100%;
    }

    .role-view-card {
        padding: 26px 20px;
    }

    .section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .contact-card {
        padding: 30px 22px;
    }
}

@media (max-width: 420px) {
    .hero-title {
        letter-spacing: -1px;
    }

    .snapshot-row {
        flex-direction: column;
        gap: 4px;
    }

    .snapshot-row strong {
        text-align: left;
    }
}
.role-view-card .qa-label {
    background: linear-gradient(135deg, #a78bfa, #7c3aed) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
}