:root {
    --bg: #ffffff;
    --bg-soft: #f0f9ff;
    /* Sky Blue tint */
    --surface: rgba(255, 255, 255, 0.85);
    /* Glass surface */
    --border: rgba(37, 99, 235, 0.1);
    --text: #0f172a;
    --muted: #64748b;
    --primary: #1e40af;
    /* Deep Blue for Navbar */
    --sky-blue: #7dd3fc;
    --primary-strong: #1e3a8a;
    --primary-soft: #e0f2fe;
    --primary-fade: #f0f9ff;
    --secondary: #0ea5e9;
    /* Sky blue accent */
    --secondary-soft: #f0f9ff;
    --shadow-soft: 0 20px 60px rgba(14, 165, 233, 0.1);
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #e0f2fe 50%, #f0f9ff 100%);
}

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

body {
    font-family: 'Inter', 'Poppins', 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text);
    margin: 0;
    padding-top: 84px;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* NAVBAR */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary);
    /* Deep Blue */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.75rem 0;
}

.navbar-custom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar-brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #ffffff;
    /* White text */
    cursor: default;
    user-select: none;
}

.navbar-custom .navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 1.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    margin-left: auto;
    flex-wrap: nowrap;
}

.navbar-custom .nav-link {
    font-size: 0.95rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    /* White text */
    padding: 0.35rem 0.45rem;
    border-radius: 10px;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.navbar-custom .nav-link.active,
.navbar-custom .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    /* White fade */
}

.navbar-custom .nav-link::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -8px;
    height: 3px;
    background: #ffffff;
    /* White underline */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
    border-radius: 6px;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    display: none;
}

/* HERO */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-wrap {
    position: relative;
    overflow: hidden;
    padding: 8rem 0 6rem;
    background: transparent;
}

.hero-wrap::before,
.hero-wrap::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: 0;
}

.hero-wrap::before {
    width: 400px;
    height: 400px;
    background: #7dd3fc;
    /* Sky blue orb */
    top: -150px;
    left: -100px;
}

.hero-wrap::after {
    width: 420px;
    height: 420px;
    background: #fef2f2;
    bottom: -200px;
    right: -60px;
}

.hero-grid-split {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    z-index: 1;
}

@media (max-width: 991px) {
    .hero-grid-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
}

.hero-copy-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

@media (max-width: 991px) {
    .hero-copy-left {
        align-items: center;
    }
}

.hero-visual-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-frame {
    position: relative;
    width: 380px;
    height: 480px;
    border-radius: 40px;
    overflow: hidden;
    transform: rotate(3deg);
    border: 8px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    animation: floating 6s ease-in-out infinite;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: rotate(-3deg) scale(1.1);
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--sky-blue) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.3;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(3deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0;
    background: linear-gradient(to right, #1e293b, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 600px;
    margin-top: 1.5rem;
    animation: fadeUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.btn-solid,
.btn-ghost,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-solid {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #ffffff;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.35);
}

.btn-solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.42);
}

.btn-ghost {
    color: var(--primary-strong);
    background: var(--primary-fade);
    border-color: rgba(37, 99, 235, 0.15);
}

.btn-ghost:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.btn-soft {
    color: var(--text);
    background: #ffffff;
    border-color: var(--border);
}

.btn-soft:hover {
    border-color: var(--primary);
    color: var(--primary-strong);
    transform: translateY(-1px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-orb {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #dcd5ff 55%, #c7bbff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 3.2rem;
    color: var(--primary-strong);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-orb::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 18%;
    left: 10%;
    filter: blur(6px);
}

.hero-orb-sm {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(145deg, #60a5fa, #2563eb);
    bottom: 12%;
    right: 6%;
    box-shadow: 0 25px 45px rgba(37, 99, 235, 0.28);
}

/* FEATURE GRID */
.feature-grid {
    position: relative;
    z-index: 1;
    margin-top: 2.8rem;
    max-width: 1180px;
    padding: 0 1.5rem 0.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.35rem 1.25rem;
    background: linear-gradient(150deg, #ffffff, #f8fafc);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    color: var(--text);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-strong);
    background: var(--primary-fade);
}

.feature-icon-secondary {
    color: var(--secondary);
    background: #fef2f2;
}

.feature-icon-tertiary {
    color: var(--primary);
    background: #dbeafe;
}

.feature-label {
    margin: 0 0 0.2rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.feature-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* CONTENT WRAPPER */
.main-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

#main-content {
    margin-top: 14px;
}

.content-section {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 2.4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.section-heading {
    font-size: 1.35rem;
    margin: 0 0 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

/* HOME INTRO */
.home-intro {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
    gap: 1.8rem;
    align-items: start;
}

.pill-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--primary-fade);
    color: var(--primary-strong);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pill-label.light {
    background: #f4f3ff;
    color: var(--muted);
}

.stacked-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.stacked-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem;
    border-radius: 12px;
    background: #faf9ff;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-top: 0.4rem;
}

.dot-primary {
    background: var(--primary);
}

.dot-secondary {
    background: var(--secondary);
}

.dot-tertiary {
    background: #64748b;
}

/* Muted blue-grey */

.home-panel {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
}

.home-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.badge-soft {
    background: var(--primary-fade);
    color: var(--primary-strong);
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.home-panel-links {
    display: grid;
    gap: 0.8rem;
}

.panel-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    background: #faf9ff;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.panel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.panel-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary-strong);
}

.panel-icon-primary {
    background: #efeaff;
}

.panel-icon-secondary {
    background: #fef2f2;
    color: var(--secondary);
}

.panel-icon-tertiary {
    background: #f1f5f9;
    color: var(--muted);
}

.arrow {
    font-size: 1.1rem;
    color: var(--muted);
}

/* FILTER BAR */
.search-filter-section {
    background: linear-gradient(135deg, #f5f2ff, #ffffff);
    border-radius: 18px;
    padding: 1.4rem 1.25rem;
    border: 1px solid rgba(37, 99, 235, 0.08);
    margin-bottom: 1.3rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.search-filter-section .row>div {
    display: flex;
}

.form-control {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.65rem 1.05rem;
    font-size: 0.95rem;
    background-color: #fff;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn {
    border-radius: 12px;
    padding: 0.7rem 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #eef0fb;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #e4e7fb;
    transform: translateY(-1px);
}

/* SORTING */
.sorting-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.sorting-links a {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: #faf9ff;
    color: var(--text);
}

.sorting-links a:hover {
    border-color: var(--primary);
    color: var(--primary-strong);
    background: var(--primary-fade);
}

/* DATA CARDS */
.activity-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.35rem 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.activity-details {
    min-width: 240px;
}

.activity-meta {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.activity-title {
    font-size: 1.2rem;
    margin: 0.35rem 0 0.55rem;
    color: var(--text);
}

.activity-media img,
.activity-media video {
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

/* CV SECTION */
.cv-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    border-radius: 20px;
    padding: 1.9rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    background: #fff;
}

.cv-photo {
    border-radius: 16px;
    overflow: hidden;
    background: #f4f2ff;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
}

.cv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-photo-placeholder {
    font-size: 0.95rem;
}

.cv-info h3 {
    margin-top: 0;
    font-size: 1.45rem;
}

.cv-info dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    row-gap: 0.85rem;
    column-gap: 1.5rem;
    align-items: baseline;
}

.cv-info dt {
    color: var(--muted);
    font-weight: 500;
}

.cv-info dd {
    margin: 0;
    font-weight: 600;
}

/* EDUCATION TIMELINE */
.education-timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.timeline-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.4rem;
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: var(--shadow-soft);
}

.timeline-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.timeline-title {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    color: var(--text);
}

/* TABLES */
.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
}

.table thead {
    background: var(--primary-fade);
}

.table th,
.table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.table tr:last-child td {
    border-bottom: none;
}

/* PAGINATION */
.pagination {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    padding-left: 0;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--text);
    background: #fff;
}

.pagination li.active span,
.pagination li a:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    border-color: transparent;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2.2rem 0;
    color: var(--muted);
    font-size: 0.95rem;
    border-top: 1px solid var(--border);
    background: #fff;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-desc {
        margin: 0 auto;
    }

    .hero-orb {
        width: 280px;
        height: 280px;
    }

    .hero-orb-sm {
        width: 120px;
        height: 120px;
    }
}

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

    .navbar-custom .container {
        flex-direction: column;
        gap: 0.4rem;
    }

    .navbar-custom .navbar-nav {
        gap: 0.5rem;
    }

    .content-section {
        padding: 1.6rem;
    }

    .activity-card {
        flex-direction: column;
    }

    .education-timeline {
        padding-left: 1rem;
    }

    .cv-card {
        grid-template-columns: 1fr;
    }

    .cv-info dl {
        grid-template-columns: 1fr;
    }
}