/* ===========================================
   Liquid Glass UI Theme
   A premium frosted-glass design system with:
   - Translucent depth layers & refraction highlights
   - Floating pill navigation
   - Animated caustic shimmer & gradient borders
   - Modern variable-weight typography
   - Smooth spring animations
   =========================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* Backgrounds */
    --lg-bg-deep: #060610;
    --lg-bg-base: #0a0a18;
    --lg-bg-surface: rgba(255, 255, 255, 0.03);
    --lg-bg-elevated: rgba(255, 255, 255, 0.05);
    --lg-bg-glass: rgba(255, 255, 255, 0.06);
    --lg-bg-glass-hover: rgba(255, 255, 255, 0.10);

    /* Accent */
    --lg-accent: #7b6cf6;
    --lg-accent-bright: #9d8fff;
    --lg-accent-dim: #5a4fd4;
    --lg-accent-gradient: linear-gradient(135deg, #7b6cf6 0%, #4ecdc4 50%, #44b8f2 100%);
    --lg-accent-glow: rgba(123, 108, 246, 0.25);

    /* Text */
    --lg-text-primary: #f0eef6;
    --lg-text-secondary: rgba(240, 238, 246, 0.60);
    --lg-text-muted: rgba(240, 238, 246, 0.38);

    /* Glass borders */
    --lg-border: rgba(255, 255, 255, 0.08);
    --lg-border-light: rgba(255, 255, 255, 0.12);
    --lg-border-accent: rgba(123, 108, 246, 0.25);

    /* Shadows */
    --lg-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --lg-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --lg-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --lg-shadow-glow: 0 0 30px rgba(123, 108, 246, 0.15);
    --lg-shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.06);

    /* Radii */
    --lg-radius-xs: 8px;
    --lg-radius-sm: 12px;
    --lg-radius-md: 16px;
    --lg-radius-lg: 24px;
    --lg-radius-xl: 32px;
    --lg-radius-pill: 100px;

    /* Animation */
    --lg-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --lg-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --lg-duration: 0.4s;
    --lg-duration-fast: 0.25s;

    /* Glass blur */
    --lg-blur-sm: 12px;
    --lg-blur-md: 20px;
    --lg-blur-lg: 40px;
    --lg-blur-xl: 60px;
}

/* ---------- Base ---------- */
body.dark-vertion.black-bg {
    background-color: var(--lg-bg-deep) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, 'Inter', sans-serif;
    color: var(--lg-text-primary);
    opacity: 1;
    overflow-x: hidden;
    padding-bottom: 80px; /* space for bottom navbar */
}

/* Global font override — San Francisco typeface */
body, h1, h2, h3, h4, h5, h6, p, a, span, li, div, input, textarea, button, select {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, 'Inter', 'Segoe UI', sans-serif !important;
}

/* Ambient gradient orbs behind content */
body.dark-vertion.black-bg::before,
body.dark-vertion.black-bg::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

body.dark-vertion.black-bg::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #7b6cf6, transparent 70%);
    top: -10%;
    left: -10%;
    animation: lg-drift 20s ease-in-out infinite alternate;
}

body.dark-vertion.black-bg::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4ecdc4, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation: lg-drift 25s ease-in-out infinite alternate-reverse;
}

@keyframes lg-drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

.dark-vertion {
    opacity: 1;
}

/* ---------- Loader ---------- */
.dark-vertion .section-loader {
    background: var(--lg-bg-deep);
}

.section-loader .loader div:nth-child(1) {
    border-color: var(--lg-accent);
}

.section-loader .loader div:nth-child(2) {
    border-color: #4ecdc4;
}

/* ---------- Typography ---------- */
.dark-vertion h2,
.dark-vertion h3,
.dark-vertion h4,
.dark-vertion h5,
.dark-vertion h6 {
    color: var(--lg-text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.dark-vertion p,
.dark-vertion address,
.dark-vertion span,
.dark-vertion div,
.dark-vertion ul li,
.dark-vertion a {
    color: var(--lg-text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Glass Mixin via Utility ---------- */
.glass-panel {
    background: var(--lg-bg-glass);
    backdrop-filter: blur(var(--lg-blur-md)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--lg-blur-md)) saturate(1.4);
    border: 1px solid var(--lg-border);
    box-shadow: var(--lg-shadow-md), var(--lg-shadow-inner);
    position: relative;
}

/* Top-edge highlight for glass panels */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    border-radius: 1px;
    pointer-events: none;
}

/* ============================================
   NAVIGATION — Bottom Floating Pill Glass Nav
   ============================================ */
.mh-header {
    background: transparent !important;
    border-bottom: none;
    border-top: none;
    padding: 16px 0;
    transition: all var(--lg-duration) var(--lg-ease);
    z-index: 100;
    /* Override the top fixed positioning — move to bottom */
    top: auto !important;
    bottom: 0 !important;
}

.mh-header .container {
    max-width: 1200px;
    display: flex;
    justify-content: center;
}

.mh-header .navbar {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(var(--lg-blur-xl)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--lg-blur-xl)) saturate(1.8);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-pill);
    padding: 5px 6px;
    box-shadow:
        0 -4px 24px rgba(0, 0, 0, 0.25),
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 0.5px rgba(255, 255, 255, 0.04);
    transition: all var(--lg-duration) var(--lg-ease);
    position: relative;
    overflow: visible;
    clip-path: inset(0 round var(--lg-radius-pill));
    margin: 0 auto;
    display: inline-flex !important;
    width: auto;
}

/* Subtle inner caustic shimmer on nav */
.mh-header .navbar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(123, 108, 246, 0.04) 60deg,
        transparent 120deg,
        rgba(78, 205, 196, 0.04) 180deg,
        transparent 240deg,
        rgba(68, 184, 242, 0.03) 300deg,
        transparent 360deg
    );
    animation: lg-caustic-spin 12s linear infinite;
    pointer-events: none;
}

@keyframes lg-caustic-spin {
    to { transform: rotate(360deg); }
}

/* Scrolled state — keep consistent at bottom */
.mh-header.nav-strict {
    padding: 12px 0;
}

.mh-header.nav-strict .navbar {
    background: rgba(10, 10, 24, 0.8);
    backdrop-filter: blur(var(--lg-blur-xl)) saturate(2);
    -webkit-backdrop-filter: blur(var(--lg-blur-xl)) saturate(2);
    border-color: var(--lg-border-light);
    box-shadow:
        0 -4px 32px rgba(0, 0, 0, 0.4),
        0 4px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dark-vertion .nav-strict {
    background-color: transparent !important;
}

/* Nav Links */
.mh-header .navbar-brand {
    display: none; /* No brand logo in bottom nav */
}

.mh-header .navbar-nav {
    gap: 2px;
    align-items: center;
    margin: 0 auto !important; /* center the links, override Bootstrap ml-auto */
}

.mh-header .desktop-nav {
    flex: 1;
    display: flex !important;
    justify-content: center;
}

.mh-header .navbar-nav li a {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lg-text-secondary) !important;
    padding: 7px 12px !important;
    border-radius: var(--lg-radius-pill);
    border: 1px solid transparent;
    transition: all var(--lg-duration-fast) var(--lg-ease);
    position: relative;
    border-bottom: none;
    white-space: nowrap;
}

.mh-header .navbar-nav li a:hover {
    color: var(--lg-text-primary) !important;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--lg-border);
}

.mh-header .navbar-nav li.active a {
    color: #fff !important;
    background: rgba(123, 108, 246, 0.15);
    border-color: var(--lg-border-accent);
    box-shadow: 0 0 16px rgba(123, 108, 246, 0.12);
    border-bottom: none !important;
}

.dark-vertion .mh-header .navbar-nav li.active a {
    border-color: var(--lg-border-accent);
    border-bottom: none;
}

/* ============================================
   HERO / HOME SECTION
   ============================================ */
.dark-vertion .img-color-overlay {
    background: linear-gradient(
        160deg,
        rgba(6, 6, 16, 0.94) 0%,
        rgba(10, 10, 24, 0.90) 50%,
        rgba(6, 6, 16, 0.96) 100%
    );
}

.mh-home .mh-header-info h2 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    background: linear-gradient(135deg, #f0eef6 0%, #a899f7 50%, #7b6cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes lg-text-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.mh-home .mh-header-info h4 {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--lg-text-secondary);
    margin-top: 8px;
}

.mh-home .mh-header-info ul li {
    color: var(--lg-text-secondary);
}

.mh-home .mh-header-info ul li:hover .fa {
    color: var(--lg-accent);
}

/* Hero image — glass frame */
.dark-vertion .mh-home .img-border {
    border: 2px solid rgba(123, 108, 246, 0.2);
    border-radius: var(--lg-radius-lg);
    box-shadow:
        0 0 40px rgba(123, 108, 246, 0.12),
        inset 0 0 30px rgba(123, 108, 246, 0.05);
    overflow: hidden;
    position: relative;
}

.dark-vertion .mh-home .img-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(123, 108, 246, 0.08) 0%,
        transparent 40%,
        transparent 60%,
        rgba(78, 205, 196, 0.06) 100%
    );
    pointer-events: none;
}

.dark-vertion .mh-home .hero-img img {
    border: none;
    border-radius: var(--lg-radius-lg);
}

/* Social icons */
.mh-home .mh-header-info .social-icon li .fa {
    border-radius: var(--lg-radius-sm);
    transition: all var(--lg-duration) var(--lg-spring);
    border: 1px solid var(--lg-border);
    background: var(--lg-bg-glass);
}

.dark-vertion .mh-home .mh-header-info .social-icon li .fa:hover {
    background: var(--lg-accent-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(123, 108, 246, 0.35);
}

/* ============================================
   BUTTONS — Glass Pill Buttons
   ============================================ */
.btn.btn-fill {
    background: var(--lg-accent-gradient);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--lg-radius-pill);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.03em;
    color: #fff;
    padding: 12px 30px;
    transition: all var(--lg-duration) var(--lg-spring);
    box-shadow: 0 4px 20px rgba(123, 108, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn.btn-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s var(--lg-ease);
}

.btn.btn-fill:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(123, 108, 246, 0.45);
    background-position: 100% 50%;
}

.btn.btn-fill:hover::before {
    left: 100%;
}

/* ============================================
   ABOUT SECTION — Enhanced Liquid Glass
   ============================================ */
.mh-about {
    position: relative;
}

.mh-about .mh-about-inner {
    padding-left: 40px;
}

.mh-about .mh-about-inner h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--lg-text-primary) 0%, var(--lg-accent-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

/* Accent underline beneath heading */
.mh-about .mh-about-inner h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: var(--lg-accent-gradient);
    background-size: 200% 100%;
    animation: lg-text-shimmer 4s ease-in-out infinite;
}

.mh-about .mh-about-inner p {
    color: var(--lg-text-secondary);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.mh-about .mh-about-inner p strong {
    color: var(--lg-accent-bright);
    font-weight: 600;
}

@media (max-width: 767px) {
    .mh-about .mh-about-inner {
        padding-left: 0;
        text-align: center;
        margin: 30px 15px;
    }
    .mh-about .mh-about-inner h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* About image — glass frame with shimmer */
.mh-about-img {
    border-radius: var(--lg-radius-xl);
    overflow: hidden;
    position: relative;
    background: var(--lg-bg-glass);
    padding: 6px;
    border: 1px solid var(--lg-border);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-about-img img {
    border-radius: calc(var(--lg-radius-xl) - 4px);
}

.mh-about-img:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--lg-border-accent);
    box-shadow:
        0 16px 56px rgba(123, 108, 246, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Glass overlay gradient on image */
.mh-about-img::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: calc(var(--lg-radius-xl) - 4px);
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(6, 6, 16, 0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.mh-about-img:hover::before {
    opacity: 0.6;
}

/* Shimmer sweep on image */
.mh-about-img::after {
    content: '';
    position: absolute;
    top: 6px;
    left: -100%;
    width: 60%;
    height: calc(100% - 12px);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
    transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: calc(var(--lg-radius-xl) - 4px);
}

.mh-about-img:hover::after {
    left: 140%;
}

.mh-about-tag ul li span {
    border: 1px solid var(--lg-border-accent);
    border-radius: var(--lg-radius-pill);
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--lg-accent-bright) !important;
    transition: all var(--lg-duration-fast) var(--lg-ease);
    background: rgba(123, 108, 246, 0.06);
}

.mh-about-tag ul li span:hover {
    background: rgba(123, 108, 246, 0.15) !important;
    border-color: var(--lg-accent-bright);
    box-shadow: 0 0 12px rgba(123, 108, 246, 0.15);
}

/* ============================================
   SERVICE SECTION — Glass Cards
   ============================================ */
.mh-service .row {
    display: flex;
    flex-wrap: wrap;
}

.mh-service [class*="col-"] {
    display: flex;
}

.mh-service .mh-service-item {
    background: var(--lg-bg-glass);
    backdrop-filter: blur(var(--lg-blur-md)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--lg-blur-md)) saturate(1.3);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-lg);
    padding: 36px 28px;
    transition: all var(--lg-duration) var(--lg-spring);
    box-shadow: var(--lg-shadow-md), var(--lg-shadow-inner);
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Inner highlight */
.mh-service .mh-service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    pointer-events: none;
}

.mh-service .mh-service-item:hover {
    background: var(--lg-bg-glass-hover);
    transform: translateY(-6px);
    border-color: var(--lg-border-accent);
    box-shadow: var(--lg-shadow-lg), var(--lg-shadow-glow);
}

.dark-vertion .mh-service .mh-service-item {
    box-shadow: var(--lg-shadow-md), var(--lg-shadow-inner);
}

.mh-service .mh-service-item .fa.purple-color { color: #a78bfa; }
.mh-service .mh-service-item .fa.iron-color { color: #fb923c; }
.mh-service .mh-service-item .fa.sky-color { color: #38bdf8; }

/* ============================================
   DARK-BG CARDS (Edu, Work, Contact)
   ============================================ */
.dark-bg {
    background: var(--lg-bg-glass) !important;
    backdrop-filter: blur(var(--lg-blur-sm)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--lg-blur-sm)) saturate(1.3);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-lg) !important;
    transition: all var(--lg-duration) var(--lg-spring);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.dark-bg:hover {
    background: var(--lg-bg-glass-hover) !important;
    border-color: var(--lg-border-accent);
    box-shadow: none;
    transform: translateY(-2px);
}

/* Top-edge highlight */
.dark-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
    pointer-events: none;
}

/* ============================================
   EDUCATION & WORK — Timeline Grid
   ============================================ */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
    .timeline-grid {
        grid-template-columns: 1fr;
    }
}

.timeline-grid > [class*="col-"] {
    max-width: 100%;
    flex: none;
    padding: 0;
}

.mh-work-section {
    background-color: var(--lg-bg-base);
}

.mh-volunteering-section {
    background-color: var(--lg-bg-deep);
}

/* Education & Experience cards */
.mh-experince .mh-education-deatils .mh-education-item,
.mh-work .mh-experience-deatils .mh-work-item {
    border-radius: var(--lg-radius-lg);
    border: 1px solid var(--lg-border);
    transition: all var(--lg-duration) var(--lg-spring);
    height: 100%;
    padding: 28px 28px;
    position: relative;
    overflow: hidden;
    background: var(--lg-bg-glass);
    backdrop-filter: blur(var(--lg-blur-sm)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--lg-blur-sm)) saturate(1.3);
    box-shadow: none;
}

/* Left accent bar */
.mh-experince .mh-education-deatils .mh-education-item::before,
.mh-work .mh-experience-deatils .mh-work-item::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    width: 3px;
    height: calc(100% - 24px);
    background: var(--lg-accent-gradient);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: all var(--lg-duration) var(--lg-ease);
}

.mh-experince .mh-education-deatils .mh-education-item:hover::before,
.mh-work .mh-experience-deatils .mh-work-item:hover::before {
    opacity: 1;
}

.mh-experince .mh-education-deatils .mh-education-item:hover,
.mh-work .mh-experience-deatils .mh-work-item:hover {
    transform: translateY(-2px);
    border-color: var(--lg-border-accent);
    box-shadow: none;
}

.mh-education {
    padding-right: 0;
}

/* ============================================
   EDUCATION — Modern Card Design
   ============================================ */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.edu-card {
    background: var(--lg-bg-glass);
    backdrop-filter: blur(var(--lg-blur-sm)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--lg-blur-sm)) saturate(1.3);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.edu-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--lg-accent-gradient);
    background-size: 200% 100%;
    animation: lg-text-shimmer 4s ease-in-out infinite;
    border-radius: var(--lg-radius-lg) var(--lg-radius-lg) 0 0;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
}

.edu-card:hover {
    border-color: var(--lg-border-accent);
    transform: translateY(-4px);
}

.edu-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(123, 108, 246, 0.1);
    border: 1px solid rgba(123, 108, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    margin-top: 2px;
}

.edu-card-icon .fa {
    font-size: 20px;
    color: var(--lg-accent-bright);
}

.edu-card:hover .edu-card-icon {
    background: rgba(123, 108, 246, 0.18);
    border-color: rgba(123, 108, 246, 0.35);
    transform: scale(1.08);
}

.edu-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.edu-card-date {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--lg-text-muted);
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-pill);
    background: rgba(255, 255, 255, 0.03);
    width: fit-content;
}

.edu-card-date .fa {
    margin-right: 4px;
    opacity: 0.6;
}

.edu-card-degree {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--lg-text-primary);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.edu-card-school {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--lg-accent-bright);
}

.edu-card-school .fa {
    font-size: 12px;
    margin-right: 4px;
    opacity: 0.7;
}

.edu-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--lg-text-secondary);
    margin: 0;
}

.edu-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.edu-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--lg-radius-pill);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lg-accent-bright);
    background: rgba(123, 108, 246, 0.08);
    border: 1px solid rgba(123, 108, 246, 0.15);
    transition: all 0.3s ease;
}

.edu-badge .fa {
    font-size: 10px;
}

.edu-badge-gold {
    color: #f0b952;
    background: rgba(240, 185, 82, 0.10);
    border-color: rgba(240, 185, 82, 0.25);
}

.edu-card:hover .edu-badge {
    background: rgba(123, 108, 246, 0.13);
    border-color: rgba(123, 108, 246, 0.25);
}

.edu-card:hover .edu-badge-gold {
    background: rgba(240, 185, 82, 0.13);
    border-color: rgba(240, 185, 82, 0.3);
}

/* Responsive */
@media (max-width: 767px) {
    .edu-grid {
        grid-template-columns: 1fr;
    }
    .edu-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .edu-card-date {
        align-self: center;
    }
    .edu-badges {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .edu-card {
        padding: 22px 20px;
    }
}

/* Light mode */
body.light-mode .edu-card {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .edu-card:hover {
    border-color: rgba(99, 86, 224, 0.20);
}

body.light-mode .edu-card::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.70), transparent);
}

body.light-mode .edu-card-icon {
    background: rgba(99, 86, 224, 0.08);
    border-color: rgba(99, 86, 224, 0.15);
}

body.light-mode .edu-card-date {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .edu-badge {
    background: rgba(99, 86, 224, 0.06);
    border-color: rgba(99, 86, 224, 0.12);
}

body.light-mode .edu-badge-gold {
    background: rgba(240, 185, 82, 0.06);
    border-color: rgba(240, 185, 82, 0.15);
}

.mh-work {
    padding-left: 0;
}

.mh-work-section .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
    .mh-work-section .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .mh-work-section .timeline-grid {
        grid-template-columns: 1fr;
    }
}

.mh-experince .mh-education-deatils .mh-education-item h4 a,
.mh-work .mh-experience-deatils .mh-work-item h4 a {
    color: var(--lg-accent-bright) !important;
}

.mh-experince .mh-education-deatils .mh-education-item .mh-eduyear,
.mh-work .mh-experience-deatils .mh-work-item .mh-eduyear {
    color: var(--lg-accent) !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* ============================================
   SKILLS SECTION — Glass Grouped Cards
   ============================================ */
.skills-grouped {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.skill-category {
    background: var(--lg-bg-glass);
    backdrop-filter: blur(var(--lg-blur-md)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--lg-blur-md)) saturate(1.3);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-xl);
    padding: 28px;
    transition: all var(--lg-duration) var(--lg-spring);
    box-shadow: var(--lg-shadow-sm), var(--lg-shadow-inner);
    position: relative;
    overflow: hidden;
}

/* Top highlight */
.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
    pointer-events: none;
}

.skill-category:hover {
    border-color: var(--lg-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--lg-shadow-md), var(--lg-shadow-glow);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.skill-category-header i {
    font-size: 20px;
    color: var(--lg-accent-bright);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--lg-radius-sm);
    background: rgba(123, 108, 246, 0.10);
    border: 1px solid rgba(123, 108, 246, 0.15);
    flex-shrink: 0;
}

.skill-category-header h4 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--lg-text-primary);
    margin: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--lg-radius-pill);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--lg-text-primary);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 50%, rgba(123,108,246,0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Inner glass refraction highlight */
.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 100%);
    border-radius: var(--lg-radius-pill) var(--lg-radius-pill) 0 0;
    pointer-events: none;
}

/* Subtle accent glow on the left edge */
.skill-tag::after {
    content: '';
    position: absolute;
    top: 20%;
    left: -2px;
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--lg-accent), var(--lg-teal));
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: scaleY(0.5);
}

.skill-tag:hover {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(123,108,246,0.18) 0%, rgba(78,205,196,0.10) 50%, rgba(68,184,242,0.12) 100%);
    border-color: rgba(123, 108, 246, 0.35);
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 6px 20px rgba(123, 108, 246, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.skill-tag:hover::after {
    opacity: 1;
    transform: scaleY(1);
}

/* Staggered entrance animation */
.skill-tag:nth-child(odd) {
    animation: lg-pill-float 6s ease-in-out infinite;
}
.skill-tag:nth-child(even) {
    animation: lg-pill-float 6s ease-in-out 3s infinite;
}

@keyframes lg-pill-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Professional skills cards */
.prof-skills-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--lg-text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.prof-skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.prof-skill-card {
    background: var(--lg-bg-glass);
    backdrop-filter: blur(var(--lg-blur-md)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--lg-blur-md)) saturate(1.3);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-xl);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--lg-duration) var(--lg-spring);
    box-shadow: var(--lg-shadow-sm), var(--lg-shadow-inner);
    position: relative;
    overflow: hidden;
}

.prof-skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
    pointer-events: none;
}

.prof-skill-card:hover {
    border-color: var(--lg-border-accent);
    transform: translateY(-6px);
    box-shadow: var(--lg-shadow-lg), var(--lg-shadow-glow);
}

.prof-skill-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--lg-radius-md);
    background: var(--lg-accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 4px 16px rgba(123, 108, 246, 0.25);
    position: relative;
}

.prof-skill-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: var(--lg-accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.prof-skill-icon i {
    font-size: 22px;
    color: #fff;
}

.prof-skill-card h5 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--lg-text-primary);
    margin-bottom: 10px;
}

.prof-skill-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--lg-text-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .skills-grouped {
        grid-template-columns: repeat(2, 1fr);
    }
    .prof-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .skills-grouped {
        grid-template-columns: 1fr;
    }
    .prof-skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CERTIFICATES & PROJECTS — Glass Items
   ============================================ */
.mh-featured-project .mh-featured-item {
    background: var(--lg-bg-glass);
    backdrop-filter: blur(var(--lg-blur-sm)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--lg-blur-sm)) saturate(1.3);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-xl);
    padding: 24px;
    margin: 16px 0;
    transition: all var(--lg-duration) var(--lg-spring);
    box-shadow: var(--lg-shadow-sm), var(--lg-shadow-inner);
    position: relative;
    overflow: hidden;
}

.mh-featured-project .mh-featured-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

.mh-featured-project .mh-featured-item:hover {
    background: var(--lg-bg-glass-hover);
    border-color: var(--lg-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--lg-shadow-lg), var(--lg-shadow-glow);
}

.mh-featured-project .mh-featured-item .mh-featured-project-content .project-category {
    color: var(--lg-accent-bright) !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 13px;
}

.mh-featured-project-img {
    border-radius: var(--lg-radius-lg);
    overflow: hidden;
    border: 1px solid var(--lg-border);
}

.mh-featured-project-img img {
    border-radius: var(--lg-radius-lg);
    transition: all var(--lg-duration) var(--lg-ease);
}

.mh-featured-project .mh-featured-item:hover .mh-featured-project-img img {
    transform: scale(1.04);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title h3,
.section-title h2 {
    font-weight: 800;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

.section-title h3::after,
.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--lg-accent-gradient);
    margin: 14px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(123, 108, 246, 0.3);
}

/* ============================================
   FOOTER / CONTACT
   ============================================ */
.mh-footer-address .mh-address-footer-item {
    border-radius: var(--lg-radius-lg) !important;
    transition: all var(--lg-duration) var(--lg-spring);
    box-shadow: var(--lg-shadow-sm), var(--lg-shadow-inner);
}

.mh-footer-address .mh-address-footer-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--lg-shadow-md), var(--lg-shadow-glow);
}

.dark-vertion .mh-footer-address .mh-address-footer-item {
    box-shadow: var(--lg-shadow-md);
}

.mh-footer-address .mh-address-footer-item .each-icon .fa {
    border-color: var(--lg-border-accent) !important;
    color: var(--lg-accent-bright);
    transition: all var(--lg-duration) var(--lg-spring);
}

.mh-footer-address .mh-address-footer-item:hover .each-icon .fa {
    background: var(--lg-accent-gradient);
    color: #fff;
    border-color: transparent !important;
    box-shadow: 0 0 20px rgba(123, 108, 246, 0.3);
    transform: scale(1.05);
}

/* ============================================
   SCROLLBAR — Glass Style
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--lg-bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(123, 108, 246, 0.25);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(123, 108, 246, 0.45);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(123, 108, 246, 0.3);
    color: #fff;
}

/* ============================================
   SCROLL OFFSET — navbar is now at bottom, minimal top offset
   ============================================ */
[id] {
    scroll-margin-top: 20px;
}

/* ============================================
   WORK RESPONSIBILITY LIST
   ============================================ */
.work-responsibility li {
    font-size: 13px;
    padding: 3px 0;
    color: var(--lg-text-secondary);
}

.work-responsibility li .fa-circle {
    font-size: 5px;
    vertical-align: middle;
    margin-right: 8px;
    color: var(--lg-accent);
}

/* ============================================
   WORK EXPERIENCE — Grid Cards
   ============================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-grid-card {
    background: var(--lg-bg-glass);
    backdrop-filter: blur(var(--lg-blur-sm)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--lg-blur-sm)) saturate(1.3);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Top accent bar */
.work-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--lg-accent-gradient);
    background-size: 200% 100%;
    animation: lg-text-shimmer 4s ease-in-out infinite;
    border-radius: var(--lg-radius-lg) var(--lg-radius-lg) 0 0;
}

/* Top highlight */
.work-grid-card::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
}

.work-grid-card:hover {
    border-color: var(--lg-border-accent);
    transform: translateY(-4px);
}

.work-card-role {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--lg-text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.work-company {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--lg-accent-bright);
}

.work-company .fa {
    font-size: 12px;
    margin-right: 4px;
    opacity: 0.7;
}

.work-card-date {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--lg-text-muted);
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-pill);
    background: rgba(255, 255, 255, 0.03);
    width: fit-content;
}

.work-card-date .fa {
    margin-right: 4px;
    opacity: 0.6;
}

/* Responsibility tags */
.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.work-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--lg-radius-pill);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--lg-text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--lg-border);
    transition: all 0.3s ease;
}

.work-grid-card:hover .work-tag {
    border-color: rgba(123, 108, 246, 0.15);
    color: var(--lg-text-primary);
}

/* Responsive */
@media (max-width: 767px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .work-grid-card {
        padding: 22px 20px;
    }
}

/* Light mode overrides */
body.light-mode .work-grid-card {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .work-grid-card::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.70), transparent);
}

body.light-mode .work-grid-card:hover {
    border-color: rgba(99, 86, 224, 0.20);
}

body.light-mode .work-card-date {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .work-tag {
    background: rgba(255, 255, 255, 0.60);
    border-color: rgba(0, 0, 0, 0.06);
    color: var(--lg-text-secondary);
}

body.light-mode .work-grid-card:hover .work-tag {
    border-color: rgba(99, 86, 224, 0.15);
    color: var(--lg-text-primary);
}

/* ============================================
   CREDENTIAL TEXT
   ============================================ */
.mh-featured-project-content div {
    color: var(--lg-text-muted);
    font-size: 13px;
}

/* ============================================
   RESPONSIVE NAV GLASS OVERRIDES
   ============================================ */

/* --- Mobile hamburger button (outside the pill) --- */
.mobile-only-toggler {
    display: none; /* hidden on desktop */
}

/* --- Mobile slide-out panel (outside the navbar pill) --- */
.mobile-nav-panel {
    display: none; /* hidden on desktop */
}

@media only screen and (max-width: 991px) {
    /* Hide the entire navbar pill on mobile — navigation handled by mobile panel */
    .mh-header .navbar {
        display: none !important;
    }

    /* Make the header invisible on mobile — nav handled by mobile panel */
    .mh-header {
        padding: 0;
        background: transparent !important;
        border: none;
        box-shadow: none;
        top: auto !important;
        bottom: 0 !important;
    }

    .mh-header.nav-strict {
        padding: 0;
        background: transparent !important;
    }

    /* Show the standalone hamburger at bottom-right */
    .mobile-only-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        z-index: 1001;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 1px solid var(--lg-border);
        border-radius: var(--lg-radius-sm);
        background: var(--lg-bg-glass);
        backdrop-filter: blur(var(--lg-blur-md));
        -webkit-backdrop-filter: blur(var(--lg-blur-md));
        cursor: pointer;
        outline: none;
        transition: all var(--lg-duration-fast) var(--lg-ease);
    }

    .mobile-only-toggler:hover {
        border-color: var(--lg-border-accent);
    }

    /* The icon span acts as the middle bar and hosts ::before / ::after */
    .mobile-only-toggler .icon {
        position: relative;
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background-color: var(--lg-text-primary);
        transition: all 0.4s ease-out;
    }

    .mobile-only-toggler .icon::after,
    .mobile-only-toggler .icon::before {
        content: '';
        position: absolute;
        left: 0;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background-color: var(--lg-text-primary);
        transition: all 0.4s ease-out;
    }

    .mobile-only-toggler .icon::before {
        transform: translateY(-7px);
    }

    .mobile-only-toggler .icon::after {
        transform: translateY(7px);
    }

    /* X animation when active */
    .mobile-only-toggler.active .icon {
        background-color: transparent;
    }

    .mobile-only-toggler.active .icon::before {
        transform: translateY(0) rotate(-135deg);
    }

    .mobile-only-toggler.active .icon::after {
        transform: translateY(0) rotate(135deg);
    }

    /* Overlay */
    .mh-xs-mobile-nav .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 998;
        display: none;
    }

    .mh-xs-mobile-nav .overlay.active {
        display: block;
        background-color: rgba(6, 6, 16, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    /* Mobile slide-out panel */
    .mobile-nav-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        z-index: 999;
        background: rgba(10, 10, 24, 0.95);
        backdrop-filter: blur(var(--lg-blur-xl)) saturate(1.6);
        -webkit-backdrop-filter: blur(var(--lg-blur-xl)) saturate(1.6);
        border-right: 1px solid var(--lg-border);
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
        padding: 80px 24px 40px;
    }

    .mobile-nav-panel.active {
        transform: translateX(0);
    }

    /* Nav list */
    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-list li {
        margin-bottom: 4px;
    }

    .mobile-nav-list li a {
        display: block;
        padding: 12px 16px;
        border-radius: var(--lg-radius-sm);
        color: var(--lg-text-secondary) !important;
        font-family: 'Inter', system-ui, sans-serif;
        font-size: 15px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-decoration: none;
        transition: all var(--lg-duration-fast) var(--lg-ease);
    }

    .mobile-nav-list li a:hover {
        color: #fff !important;
        background: rgba(123, 108, 246, 0.12);
    }

    /* Theme toggle in mobile panel */
    .mobile-theme-toggle {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--lg-border);
    }

    .mobile-theme-toggle .theme-toggle-btn {
        width: 100%;
        height: auto;
        border-radius: var(--lg-radius-sm);
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    .mobile-theme-toggle .theme-toggle-btn .fa {
        position: static;
        font-size: 16px;
    }

    .mobile-theme-toggle .theme-toggle-btn span {
        font-family: 'Inter', system-ui, sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: var(--lg-text-secondary);
    }

    /* Light mode mobile overrides */
    body.light-mode .mobile-nav-panel {
        background: rgba(244, 242, 247, 0.95);
    }

    body.light-mode .mobile-nav-list li a {
        color: var(--lg-text-secondary) !important;
    }

    body.light-mode .mobile-nav-list li a:hover {
        color: var(--lg-accent) !important;
        background: rgba(99, 86, 224, 0.08);
    }

    body.light-mode .mobile-only-toggler {
        background: rgba(255, 255, 255, 0.6);
    }

    body.light-mode .mh-xs-mobile-nav .overlay.active {
        background-color: rgba(244, 242, 247, 0.5);
    }

    /* Override old responsive.css nav rules that conflict */
    .mh-xs-mobile-nav .navbar-toggler {
        display: none !important; /* old toggler no longer exists */
    }
    .mh-xs-mobile-nav .navbar-collapse {
        display: none !important; /* old collapse panel no longer used */
    }
    .mh-xs-mobile-nav .navbar-header {
        display: none !important;
    }
    .mh-nav {
        padding: 0 !important;
    }
}

@media only screen and (max-width: 575px) {
    /* Pill already hidden on mobile; no extra changes needed */
}

/* ============================================
   ANIMATED GRADIENT BORDERS FOR KEY SECTIONS
   ============================================ */
@property --lg-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes lg-border-rotate {
    to { --lg-angle: 360deg; }
}

/* Section separators — subtle glass line */
.section-separator {
    position: relative;
    padding-top: 60px; /* reduced — no top navbar to clear */
}

/* Hero home section — fill the top gap */
.home-padding {
    padding: 80px 0 100px !important; /* less top pad since nav is at bottom */
}

/* Ensure all sections render above ambient orbs */
section, footer, header {
    position: relative;
    z-index: 1;
}

/* Promote heavy layers to GPU for smoother scroll */
.dark-bg,
.skill-category,
.prof-skill-card,
.mh-service .mh-service-item,
.mh-featured-project .mh-featured-item {
    will-change: transform;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.nav-theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 4px;
}

.theme-toggle-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-pill);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(var(--lg-blur-sm));
    -webkit-backdrop-filter: blur(var(--lg-blur-sm));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--lg-duration) var(--lg-spring);
    overflow: hidden;
    padding: 0;
    outline: none;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    border-color: var(--lg-border-accent);
    background: var(--lg-bg-glass-hover);
    box-shadow: var(--lg-shadow-glow);
    transform: scale(1.08);
}

.theme-toggle-btn .fa {
    font-size: 16px;
    position: absolute;
    transition: all var(--lg-duration) var(--lg-spring);
}

/* Dark mode (default): show sun icon, hide moon */
.theme-toggle-btn .theme-icon-light {
    color: #fbbf24;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle-btn .theme-icon-dark {
    color: var(--lg-accent-bright);
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Light mode: show moon icon, hide sun */
body.light-mode .theme-toggle-btn .theme-icon-light {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

body.light-mode .theme-toggle-btn .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
body.light-mode {
    --lg-bg-deep: #f4f2f7;
    --lg-bg-base: #eae7f0;
    --lg-bg-surface: rgba(0, 0, 0, 0.02);
    --lg-bg-elevated: rgba(0, 0, 0, 0.03);
    --lg-bg-glass: rgba(255, 255, 255, 0.55);
    --lg-bg-glass-hover: rgba(255, 255, 255, 0.72);

    --lg-accent: #6356e0;
    --lg-accent-bright: #7b6cf6;
    --lg-accent-dim: #4a3fc4;

    --lg-text-primary: #1a1730;
    --lg-text-secondary: rgba(26, 23, 48, 0.65);
    --lg-text-muted: rgba(26, 23, 48, 0.42);

    --lg-border: rgba(0, 0, 0, 0.08);
    --lg-border-light: rgba(0, 0, 0, 0.12);
    --lg-border-accent: rgba(99, 86, 224, 0.25);

    --lg-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --lg-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --lg-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.10);
    --lg-shadow-glow: 0 0 30px rgba(99, 86, 224, 0.10);
    --lg-shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.60);
}

body.light-mode.dark-vertion.black-bg {
    background-color: var(--lg-bg-deep) !important;
    color: var(--lg-text-primary);
}

/* Ambient orbs — lighter & more subtle */
body.light-mode.dark-vertion.black-bg::before {
    background: radial-gradient(circle, #7b6cf6, transparent 70%);
    opacity: 0.06;
}

body.light-mode.dark-vertion.black-bg::after {
    background: radial-gradient(circle, #4ecdc4, transparent 70%);
    opacity: 0.06;
}

/* Typography overrides */
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: var(--lg-text-primary);
}

body.light-mode p,
body.light-mode address,
body.light-mode span,
body.light-mode div,
body.light-mode ul li,
body.light-mode a {
    color: var(--lg-text-secondary);
}

/* Nav in light mode */
body.light-mode .mh-header .navbar {
    background: rgba(255, 255, 255, 0.55);
    border-color: var(--lg-border);
    box-shadow:
        0 -4px 24px rgba(0, 0, 0, 0.04),
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

body.light-mode .mh-header.nav-strict .navbar {
    background: rgba(255, 255, 255, 0.75);
    box-shadow:
        0 -4px 32px rgba(0, 0, 0, 0.06),
        0 4px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

body.light-mode .mh-header .navbar-nav li a {
    color: var(--lg-text-secondary) !important;
}

body.light-mode .mh-header .navbar-nav li a:hover {
    color: var(--lg-text-primary) !important;
    background: rgba(0, 0, 0, 0.04);
}

body.light-mode .mh-header .navbar-nav li.active a {
    color: var(--lg-accent) !important;
    background: rgba(99, 86, 224, 0.08);
    border-color: var(--lg-border-accent);
}

/* Hero section */
body.light-mode .img-color-overlay {
    background: linear-gradient(
        160deg,
        rgba(244, 242, 247, 0.94) 0%,
        rgba(234, 231, 240, 0.90) 50%,
        rgba(244, 242, 247, 0.96) 100%
    ) !important;
}

body.light-mode .mh-home .mh-header-info h2 {
    background: linear-gradient(135deg, #1a1730 0%, #5a4abf 50%, #6356e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .mh-home .img-border {
    border-color: rgba(99, 86, 224, 0.15);
    box-shadow: 0 0 40px rgba(99, 86, 224, 0.08);
}

/* Social icons */
body.light-mode .mh-home .mh-header-info .social-icon li .fa {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--lg-border);
    color: var(--lg-text-secondary);
}

body.light-mode .mh-home .mh-header-info .social-icon li .fa:hover {
    background: var(--lg-accent-gradient);
    color: #fff;
    border-color: transparent;
}

/* Cards & panels in light mode */
body.light-mode .dark-bg {
    background: var(--lg-bg-glass) !important;
    border-color: var(--lg-border);
    box-shadow: none;
}

body.light-mode .dark-bg:hover {
    background: var(--lg-bg-glass-hover) !important;
    border-color: var(--lg-border-accent);
    box-shadow: none;
}

/* Work section background */
body.light-mode .mh-work-section {
    background-color: var(--lg-bg-base);
}

body.light-mode .mh-volunteering-section {
    background-color: var(--lg-bg-deep);
}

/* Skill tags */
body.light-mode .skill-tag {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(244,242,247,0.60) 50%, rgba(99,86,224,0.08) 100%);
    border: 1px solid rgba(99, 86, 224, 0.12);
    color: #3d3270;
    box-shadow:
        0 2px 8px rgba(99, 86, 224, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(99, 86, 224, 0.04);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
}

body.light-mode .skill-tag::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, transparent 100%);
}

body.light-mode .skill-tag::after {
    background: linear-gradient(180deg, var(--lg-accent), #4ecdc4);
}

body.light-mode .skill-tag:hover {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(99,86,224,0.85) 0%, rgba(123,108,246,0.75) 50%, rgba(78,205,196,0.70) 100%);
    border-color: rgba(99, 86, 224, 0.50);
    box-shadow:
        0 8px 24px rgba(99, 86, 224, 0.22),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Featured items */
body.light-mode .mh-featured-project .mh-featured-item {
    background: var(--lg-bg-glass);
    border-color: var(--lg-border);
}

body.light-mode .mh-featured-project .mh-featured-item:hover {
    background: var(--lg-bg-glass-hover);
    border-color: var(--lg-border-accent);
}

/* Buttons */
body.light-mode .btn.btn-fill {
    box-shadow: 0 4px 20px rgba(99, 86, 224, 0.20);
}

body.light-mode .btn.btn-fill:hover {
    box-shadow: 0 8px 28px rgba(99, 86, 224, 0.30);
}

/* About section light mode */
body.light-mode .mh-about .mh-about-inner h2 {
    background: linear-gradient(135deg, var(--lg-text-primary) 0%, var(--lg-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .mh-about .mh-about-inner p strong {
    color: var(--lg-accent);
}

body.light-mode .mh-about-img {
    background: rgba(255, 255, 255, 0.50);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

body.light-mode .mh-about-img:hover {
    border-color: rgba(99, 86, 224, 0.25);
    box-shadow:
        0 16px 56px rgba(99, 86, 224, 0.10),
        0 8px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

body.light-mode .mh-about-img::before {
    background: linear-gradient(180deg, transparent 60%, rgba(244, 242, 247, 0.3) 100%);
}

/* Scrollbar light */
body.light-mode ::-webkit-scrollbar-track {
    background: var(--lg-bg-deep);
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(99, 86, 224, 0.20);
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 86, 224, 0.35);
}

/* Loader */
body.light-mode .section-loader {
    background: var(--lg-bg-deep);
}

/* Smooth transition between themes */
body,
body::before,
body::after,
.mh-header .navbar,
.dark-bg,
.skill-category,
.prof-skill-card,
.mh-service .mh-service-item,
.mh-featured-project .mh-featured-item,
.mh-footer-address .mh-address-footer-item,
.theme-toggle-btn {
    transition: background-color 0.5s var(--lg-ease),
                border-color 0.5s var(--lg-ease),
                box-shadow 0.5s var(--lg-ease),
                color 0.5s var(--lg-ease);
}
