    :root {
        --primary-color: #6366f1;
        --primary-2: #8b5cf6;
        --bg-dark: #0f172a;
        --glass-bg: rgba(15, 23, 42, 0.78);
        --glass-border: rgba(255, 255, 255, 0.12);
        --text-main: #ffffff;
        --text-muted: #94a3b8;
        --transition: cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Inter', sans-serif;
    }

    body {
        background:
            radial-gradient(circle at top left, rgba(99, 102, 241, 0.25), transparent 35%),
            radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.25), transparent 35%),
            var(--bg-dark);
        min-height: 100vh;
        padding-top: 85px;
        overflow-x: hidden;
    }

    body:has(#nav-check:checked) {
        overflow: hidden;
    }

    .navbar {
position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;

  /* PREMIUM GRADIENT */
  background: linear-gradient(135deg, #0f172a, #1e293b);

  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);

  transition: all 0.3s ease;
    }

    .navbar.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.light-mode .navbar {
  background: linear-gradient(135deg, #ffffff, #eef2ff);
  border-bottom: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 8px 25px rgba(15,23,42,0.06);
}

    .nav-container {
        max-width: 1200px;
        margin: auto;
        padding: 0 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo a {
        text-decoration: none;
        font-size: 1.45rem;
        font-weight: 900;
        letter-spacing: 1px;
    }

    .logo-name {
        background: linear-gradient(90deg, #fff, #a5b4fc, #c084fc, #fff);
        background-size: 300%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: logoShine 4s linear infinite;
    }

    .dot {
        color: var(--primary-color);
        animation: dotPulse 1.4s infinite;
    }

    @keyframes logoShine {
        0% {
            background-position: 0%;
        }

        100% {
            background-position: 300%;
        }
    }

    @keyframes dotPulse {
        50% {
            text-shadow: 0 0 22px #8b5cf6;
        }
    }

    #nav-check {
        display: none;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 1.7rem;
        list-style: none;
    }

    .nav-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 600;
        position: relative;
        transition: 0.3s;
    }

    .nav-links a i {
        margin-right: 6px;
    }

    .nav-links a:not(.btn-contact)::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -7px;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-2));
        transition: 0.3s;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--text-main);
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 100%;
    }

    .btn-contact {
        color: #fff !important;
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        box-shadow: 0 0 22px rgba(99, 102, 241, 0.45);
        animation: pulseBtn 2s infinite;
    }

    @keyframes pulseBtn {
        70% {
            box-shadow: 0 0 0 14px rgba(99, 102, 241, 0);
        }
    }

    .nav-toggler,
    .mobile-menu-head,
    .mobile-social,
    .menu-overlay {
        display: none;
    }

    .hero-banner {
        min-height: calc(100vh - 85px);
        max-width: 1200px;
        margin: auto;
        padding: 4rem 2rem;
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        gap: 3rem;
        color: #fff;
    }

    .hero-small {
        color: var(--primary-color);
        font-size: 1rem;
        font-weight: 800;
        margin-bottom: 0.8rem;
        letter-spacing: 1.5px;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 6vw, 5rem);
        font-weight: 900;
        line-height: 1.1;
        background: linear-gradient(135deg, #fff, #c4b5fd);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero-content h2 {
        font-size: clamp(1.35rem, 3vw, 2.1rem);
        margin: 1rem 0;
        color: #e2e8f0;
        
    }

    .typing-text {
        display: inline-block;
        min-width: 320px;
        font-weight: 900;
        letter-spacing: 1px;
        background: linear-gradient(90deg, #60a5fa, #818cf8, #c084fc, #60a5fa);
        background-size: 300%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: textGradient 3s linear infinite, textGlow 2s ease-in-out infinite alternate;
    }

    .typing-text::after {
        content: "";
        display: inline-block;
        width: 3px;
        height: 1em;
        margin-left: 8px;
        background: #c4b5fd;
        border-radius: 10px;
        box-shadow: 0 0 15px #8b5cf6;
        animation: cursorBlink 0.7s infinite;
        vertical-align: -3px;
    }

    @keyframes textGradient {
        100% {
            background-position: 300%;
        }
    }

    @keyframes textGlow {
        from {
            filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.4));
        }

        to {
            filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.8));
        }
    }

    @keyframes cursorBlink {
        50% {
            opacity: 0;
        }
    }

    .hero-desc {
        max-width: 580px;
        color: var(--text-muted);
        font-size: 1rem;
        line-height: 1.8;
        margin: 1.4rem 0 2rem;
    }

    .hero-buttons {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero-btn {
        text-decoration: none;
        padding: 0.95rem 1.8rem;
        border-radius: 50px;
        font-weight: 800;
        transition: 0.35s;
    }

    .hero-btn i {
        margin-right: 8px;
    }

    .primary-btn {
        color: #fff;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        box-shadow: 0 0 25px rgba(99, 102, 241, 0.45);
    }

    .outline-btn {
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.06);
    }

    .hero-btn:hover {
        transform: translateY(-5px);
    }

    .hero-image-box {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-glow {
        position: absolute;
        width: 340px;
        height: 340px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        filter: blur(65px);
        opacity: 0.45;
        animation: glowMove 4s infinite alternate;
    }

    .hero-img {
        position: relative;
        width: 330px;
        height: 430px;
        object-fit: cover;
        border-radius: 42px;
        border: 2px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5);
        animation: floatImage 4s ease-in-out infinite;
    }

    .float-card,
    .skill-card,
    .project-card {
        position: absolute;
        background: rgba(15, 23, 42, 0.82);
        backdrop-filter: blur(18px);
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.38);
        animation: floatCard 3s ease-in-out infinite;
    }

    .float-card {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: #fff;
        text-decoration: none;
        font-size: 1.35rem;
    }

    .linkedin {
        top: 9%;
        right: 8%;
        background: #0a66c2;
    }

    .whatsapp {
        bottom: 22%;
        right: 2%;
        background: #25d366;
    }

    .call {
        bottom: 8%;
        left: 10%;
        background: #6366f1;
    }

    .skill-card,
    .project-card {
        padding: 0.95rem 1.15rem;
        border-radius: 22px;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    .skill-card {
        top: 18%;
        left: -10px;
    }

    .project-card {
        bottom: 18%;
        right: -5px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
    }

    .skill-card strong,
    .project-card strong {
        display: block;
        font-size: 1.55rem;
    }

    .skill-card span,
    .project-card span {
        font-size: 0.82rem;
        color: var(--text-muted);
        font-weight: 700;
    }

    @keyframes floatImage {
        50% {
            transform: translateY(-18px);
        }
    }

    @keyframes floatCard {
        50% {
            transform: translateY(-12px);
        }
    }

    @keyframes glowMove {
        to {
            transform: scale(1.15);
        }
    }

    @media (max-width: 900px) {
        .hero-banner {
            grid-template-columns: 1fr;
            text-align: center;
            padding: 3rem 1.2rem;
        }

        .hero-desc {
            margin-left: auto;
            margin-right: auto;
            display: none;
        }
        

        .hero-buttons {
            justify-content: center;
        }

        .hero-img {
            width: 280px;
            height: 360px;
        }

        .skill-card {
            left: 2%;
        }

        .project-card {
            right: 2%;
        }

        .typing-text {
            min-width: 260px;
        }
         .about-content h2{
            text-align: start;
         }
    }

    @media (max-width: 768px) {
        .nav-container {
            padding: 0 1.2rem;
        }

        .nav-toggler {
            display: flex;
            flex-direction: column;
            gap: 7px;
            width: 42px;
            height: 42px;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 1300;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .nav-toggler span {
            height: 3px;
            border-radius: 20px;
            background: #fff;
            transition: 0.4s var(--transition);
        }

        .line-1 {
            width: 24px;
        }

        .line-2 {
            width: 16px;
            align-self: center;
        }

        .menu-overlay {
            position: fixed;
            inset: 0;
            display: block;
            background: rgba(2, 6, 23, 0.55);
            backdrop-filter: blur(8px);
            opacity: 0;
            visibility: hidden;
            transition: 0.35s;
            z-index: 1050;
        }

        .nav-menu-wrapper {
            position: fixed;
            top: 0;
            right: -100%;
            width: min(86%, 360px);
            height: 100vh;
            padding: 6rem 1.4rem 1.5rem;
            background:
                radial-gradient(circle at top right, rgba(99, 102, 241, 0.28), transparent 35%),
                rgba(15, 23, 42, 0.98);
            backdrop-filter: blur(28px);
            border-left: 1px solid rgba(255, 255, 255, 0.14);
            box-shadow: -25px 0 80px rgba(0, 0, 0, 0.5);
            transition: 0.48s var(--transition);
            z-index: 1200;
        }

        .mobile-menu-head {
            display: block;
            margin-bottom: 1.5rem;
            padding: 1.2rem;
            border-radius: 22px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-menu-head h3 {
            font-size: 1.2rem;
            background: linear-gradient(90deg, #fff, #a5b4fc, #c084fc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .mobile-menu-head p {
            color: var(--text-muted);
            font-size: 0.85rem;
            margin-top: 0.25rem;
        }

        .nav-links {
            flex-direction: column;
            align-items: stretch;
            gap: 0.9rem;
        }

        .nav-links li {
            opacity: 0;
            transform: translateX(35px);
            transition: 0.4s ease;
        }

        .nav-links a {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            padding: 1rem 1.1rem;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.055);
            border: 1px solid rgba(255, 255, 255, 0.08);
            font-size: 1rem;
        }

        .nav-links a i {
            width: 22px;
            margin-right: 0;
            color: #a5b4fc;
        }

        .nav-links a:hover,
        .nav-links a.active {
            background: rgba(99, 102, 241, 0.18);
            color: #fff;
            transform: translateX(6px);
        }

        .nav-links a::after {
            display: none;
        }

        .btn-contact {
            justify-content: center;
            margin-top: 0.8rem;
        }

        .mobile-social {
            display: flex;
            gap: 0.8rem;
            margin-top: 1.4rem;
        }

        .mobile-social a {
            width: 44px;
            height: 44px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            color: #fff;
            text-decoration: none;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        #nav-check:checked~.menu-overlay {
            opacity: 1;
            visibility: visible;
        }

        #nav-check:checked~.nav-menu-wrapper {
            right: 0;
        }

        #nav-check:checked~.nav-menu-wrapper .nav-links li {
            opacity: 1;
            transform: translateX(0);
        }

        #nav-check:checked~.nav-menu-wrapper .nav-links li:nth-child(1) {
            transition-delay: 0.12s;
        }

        #nav-check:checked~.nav-menu-wrapper .nav-links li:nth-child(2) {
            transition-delay: 0.18s;
        }

        #nav-check:checked~.nav-menu-wrapper .nav-links li:nth-child(3) {
            transition-delay: 0.24s;
        }

        #nav-check:checked~.nav-menu-wrapper .nav-links li:nth-child(4) {
            transition-delay: 0.30s;
        }

        #nav-check:checked~.nav-menu-wrapper .nav-links li:nth-child(5) {
            transition-delay: 0.36s;
        }

        #nav-check:checked~.nav-toggler .line-1 {
            transform: translateY(5px) rotate(45deg);
        }

        #nav-check:checked~.nav-toggler .line-2 {
            width: 24px;
            transform: translateY(-5px) rotate(-45deg);
        }
    }

    @media (max-width: 480px) {
        .hero-img {
            width: 240px;
            height: 320px;
        }

        .float-card {
            width: 44px;
            height: 44px;
            font-size: 1.1rem;
        }

        .skill-card,
        .project-card {
            padding: 0.7rem 0.8rem;
            gap: 0.5rem;
        }

        .card-icon {
            width: 36px;
            height: 36px;
        }

        .skill-card strong,
        .project-card strong {
            font-size: 1.2rem;
        }

        .typing-text {
            min-width: 220px;
        }
    }


    /* ==========================================================================
    Premium About Section
    ========================================================================== */

    .about-section {
        padding: 8rem 2rem;
        color: var(--text-main);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .about-container {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        display: grid;
        /* Arranged with Content on the Left, Image on the Right */
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        gap: 6rem;
    }

    /* --- Content Elements --- */
    .tag-wrapper {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .section-tag {
        color: var(--primary-color);
        font-size: 0.85rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 3px;
    }

    .tag-line {
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), transparent);
    }

    .about-content h2 {
        font-size: clamp(2rem, 4vw, 3.2rem);
        line-height: 1.2;
        font-weight: 800;
        margin-bottom: 2rem;
        letter-spacing: -0.5px;
    }

    .text-gradient {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .about-desc {
        color: var(--text-muted);
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

    .about-desc strong {
        color: var(--text-main);
        font-weight: 600;
    }

    /* --- Luxury Glassmorphic Cards --- */
    .about-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin: 3rem 0;
    }

    .stat-card {
        padding: 1.5rem;
        border-radius: 20px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        transition: all 0.4s var(--transition);
    }

    .stat-icon-box {
        width: 45px;
        height: 45px;
        background: rgba(99, 102, 241, 0.08);
        border: 1px solid rgba(99, 102, 241, 0.15);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.4s var(--transition);
    }

    .stat-card i {
        color: var(--primary-color);
        font-size: 1.25rem;
    }

    .stat-info h3 {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 0.1rem;
    }

    .stat-info span {
        color: var(--text-muted);
        font-size: 0.85rem;
        font-weight: 500;
    }

    /* Hover Physics for Stats */
    .stat-card:hover {
        transform: translateY(-8px);
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(139, 92, 246, 0.3);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .stat-card:hover .stat-icon-box {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        border-color: transparent;
        transform: rotate(5deg);
    }

    .stat-card:hover .stat-icon-box i {
        color: var(--text-main);
    }

    /* --- High-End Call To Action Button --- */
    .about-btn {
        display: inline-flex;
        align-items: center;
        gap: 1.5rem;
        padding: 0.6rem 0.6rem 0.6rem 2rem;
        border-radius: 100px;
        color: var(--text-main);
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(10px);
        transition: all 0.4s var(--transition);
    }

    .btn-icon {
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.4s var(--transition);
    }

    .about-btn:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(99, 102, 241, 0.4);
        box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
    }

    .about-btn:hover .btn-icon {
        transform: translateX(3px) rotate(-45deg);
    }


    /* --- Luxury Geometric Image Layout --- */
    .about-image-wrapper {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .glow-orb {
        position: absolute;
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, var(--primary-2) 0%, transparent 70%);
        filter: blur(60px);
        opacity: 0.25;
        z-index: 1;
    }

    /* Floating Structural Offset Frame Behind Image */
    .image-accent-frame {
        position: absolute;
        width: 320px;
        height: 400px;
        border: 2px solid var(--primary-color);
        border-radius: 32px;
        transform: translate(-20px, 20px);
        z-index: 1;
        opacity: 0.3;
        transition: transform 0.5s var(--transition);
    }

    .about-image {
        position: relative;
        z-index: 2;
        transition: transform 0.5s var(--transition);
    }

    .about-image img {
        width: 320px;
        height: 400px;
        object-fit: cover;
        border-radius: 32px;
        border: 1px solid var(--glass-border);
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    }

    /* Floating Interactive Status Badge on Image */
    .glass-badge {
        position: absolute;
        bottom: -20px;
        right: -20px;
        background: rgba(15, 23, 42, 0.85);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(12px);
        padding: 0.8rem 1.4rem;
        border-radius: 100px;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    .pulse-dot {
        width: 8px;
        height: 8px;
        background: #10b981;
        border-radius: 50%;
        position: relative;
    }

    .pulse-dot::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: #10b981;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        100% {
            transform: scale(2.5);
            opacity: 0;
        }
    }

    .badge-text {
        font-size: 0.85rem;
        font-weight: 600;
        white-space: nowrap;
        letter-spacing: 0.5px;
    }

    /* Overall Image Area Hover Effects */
    .about-image-wrapper:hover .about-image {
        transform: translate(10px, -10px);
    }

    .about-image-wrapper:hover .image-accent-frame {
        transform: translate(-30px, 30px);
        opacity: 0.5;
    }


    /* ==========================================================================
    Responsive Logic (Text First Order System)
    ========================================================================== */

    @media (max-width: 1024px) {
        .about-container {
            gap: 4rem;
        }
    }

    @media (max-width: 900px) {
        .about-container {
            /* Changes column structure and forces HTML source sequence (Text First) */
            grid-template-columns: 1fr;
            text-align: center;
            gap: 5rem;
        }



        .about-stats {
            grid-template-columns: repeat(3, 1fr);
            max-width: 650px;
            margin: 3rem auto;
        }

        .about-image-wrapper {
            margin-top: 2rem;
            /* Separates it safely when pushed underneath text */
        }

    }

    @media (max-width: 600px) {
        .about-stats {
            grid-template-columns: 1fr;
            max-width: 380px;
        }

        .stat-card {
            flex-direction: row;
            align-items: center;
            text-align: left;
            padding: 1.25rem 1.5rem;
            gap: 1.25rem;
        }

        .about-image img {
            width: 280px;
            height: 360px;
        }

        .glass-badge {
            right: 50%;
            transform: translateX(50%);
            bottom: -15px;
        }

        .about-image-wrapper:hover .about-image {
            transform: none;
            /* Disables positional shifting on tracking displays */
        }
    }



    /* ==========================================================================
    Premium Circular Skills Matrix
    ========================================================================== */

    .skills-section {
        padding: 8rem 2rem;
        color: var(--text-main);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .skills-container {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
    }

    /* --- Section Header --- */
    .skills-header {
        text-align: center;
        max-width: 700px;
        margin: 0 auto 4rem auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .skills-header h2 {
        font-size: clamp(2rem, 4vw, 3.2rem);
        line-height: 1.2;
        font-weight: 800;
        margin-bottom: 1.2rem;
        letter-spacing: -0.5px;
    }


    /* --- Compact Grid Layout --- */
    .skills-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* --- Glassmorphic Mini-Card Configuration --- */
    .skill-mini-card {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 2rem;
        border-radius: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        text-align: center;
        transition: all 0.4s var(--transition);
    }

    /* --- High-Performance Circular Percent Logic --- */
    .progress-wrapper {
        position: relative;
        width: 110px;
        height: 110px;
    }

    .radial-progress {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: conic-gradient(var(--primary-color) 0%,
                var(--primary-2) var(--percent),
                rgba(255, 255, 255, 0.05) var(--percent) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.4s var(--transition);
    }

    .inner-circle {
        width: 90px;
        height: 90px;
        background: var(--bg-dark);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .percent-text {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-main);
        letter-spacing: -0.5px;
    }

    /* --- Label & Icon Area --- */
    .skill-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .skill-icon {
        font-size: 1.35rem;
        color: var(--text-muted);
        transition: color 0.3s var(--transition);
    }

    .skill-mini-card h3 {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text-main);
    }

    /* --- Premium Hover Engine --- */
    .skill-mini-card:hover {
        transform: translateY(-8px);
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(99, 102, 241, 0.35);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(99, 102, 241, 0.05);
    }

    /* Rotates and isolates the progress ring slightly on hover */
    .skill-mini-card:hover .radial-progress {
        transform: scale(1.04);
    }

    /* Direct branding accent activation during card tracking */
    .skill-mini-card:hover .skill-icon {
        color: var(--primary-color);
    }


    /* ==========================================================================
    Responsive Adaptability Layout
    ========================================================================== */

    @media (max-width: 992px) {
        .skills-grid {
            grid-template-columns: repeat(2, 1fr);
            /* Forms an organized 2x3 layout */
            gap: 1.5rem;
        }
    }

    @media (max-width: 640px) {
        .skills-section {
            padding: 6rem 1.25rem;
        }

        .skills-grid {
            grid-template-columns: 1fr;
            /* Full width tracking stack for touchscreens */
            max-width: 360px;
            margin: 0 auto;
            gap: 1.25rem;
        }

        .skill-mini-card {
            flex-direction: row;
            /* Horizontal profile cards to save spatial height */
            justify-content: flex-start;
            padding: 1.25rem 1.75rem;
            gap: 2rem;
            text-align: left;
        }

        .progress-wrapper {
            width: 85px;
            height: 85px;
            flex-shrink: 0;
        }

        .inner-circle {
            width: 69px;
            height: 69px;
        }

        .percent-text {
            font-size: 1.05rem;
        }

        .skill-info {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.4rem;
        }
    }




    /* ==========================================================================
    Premium Projects Grid Section (Isolated Prefixes)
    ========================================================================== */

    .project_section-projects-section {
        padding: 8rem 2rem;
        color: var(--text-main);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project_section-projects-container {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
    }

    /* --- Section Header --- */
    .project_section-projects-header {
        text-align: center;
        max-width: 700px;
        margin: 0 auto 4rem auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project_section-tag-wrapper {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .project_section-section-tag {
        color: var(--primary-color);
        font-size: 0.85rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 3px;
    }

    .project_section-tag-line {
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), transparent);
    }

    .project_section-projects-header h2 {
        font-size: clamp(2rem, 4vw, 3.2rem);
        line-height: 1.2;
        font-weight: 800;
        margin-bottom: 1.2rem;
        letter-spacing: -0.5px;
    }

    .project_section-text-gradient {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }


    /* --- Card Matrix Layout --- */
    .project_section-projects-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    /* --- Core Project Card --- */
    .project_section-project-card {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 24px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: all 0.4s var(--transition);
    }

    /* --- Image Frame and Interactive Overlays --- */
    .project_section-project-image-box {
        position: relative;
        width: 100%;
        height: 220px;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.2);
    }

    .project_section-project-image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s var(--transition);
    }

    .project_section-project-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.4s var(--transition);
    }

    /* --- Site Activation Link Button --- */
    .project_section-view-site-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.8rem 1.5rem;
        border-radius: 100px;
        color: var(--text-main);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
        transform: translateY(15px);
        transition: all 0.4s var(--transition);
    }

    .project_section-view-site-btn:hover {
        box-shadow: 0 12px 25px rgba(99, 102, 241, 0.5);
        transform: translateY(12px) scale(1.03);
    }

    /* --- Details Context Area --- */
    .project_section-project-content {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    /* Project Metadata Metrics (Time & Tech Count) */
    .project_section-project-meta {
        display: flex;
        gap: 1.25rem;
        margin-bottom: 1rem;
    }

    .project_section-meta-item {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .project_section-meta-item i {
        color: var(--primary-color);
        font-size: 0.9rem;
    }

    .project_section-project-content h3 {
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        color: var(--text-main);
    }


    /* --- Technology Identification Tags --- */
    .project_section-project-languages {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: auto;
    }

    .project_section-lang-tag {
        font-size: 0.75rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.7);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--glass-border);
        padding: 0.35rem 0.8rem;
        border-radius: 6px;
    }


    /* ==========================================================================
    Interactive Hover Mechanics
    ========================================================================== */

    .project_section-project-card:hover {
        transform: translateY(-8px);
        border-color: rgba(99, 102, 241, 0.3);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(99, 102, 241, 0.03);
    }

    .project_section-project-card:hover .project_section-project-image-box img {
        transform: scale(1.08);
    }

    .project_section-project-card:hover .project_section-project-overlay {
        opacity: 1;
    }

    .project_section-project-card:hover .project_section-view-site-btn {
        transform: translateY(0);
    }


    /* ==========================================================================
    Responsive Logic Engine
    ========================================================================== */

    @media (max-width: 1024px) {
        .project_section-projects-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1.75rem;
        }
    }

    @media (max-width: 680px) {
        .project_section-projects-section {
            padding: 6rem 1.25rem;
        }

        .project_section-projects-grid {
            grid-template-columns: 1fr;
            max-width: 420px;
            margin: 0 auto;
            gap: 1.75rem;
        }

        .project_section-project-image-box {
            height: 200px;
        }

        .project_section-project-content {
            padding: 1.5rem;
        }
    }






    /* ==========================================================================
    EXPERIENCE & EDUCATION TIMELINE STYLES (UPDATED FULL CODE)
    ========================================================================== */
    .resume-section {
        width: 100%;
        padding: 80px 0;
        position: relative;
    }

    .resume-main-container {
        width: 100%;
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Header Component Typography */
    .resume-header {
        margin-bottom: 45px;
        text-align: left;
    }

    .resume-tag-wrapper {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

    .resume-section-tag {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--primary-color);
    }

    .resume-tag-line {
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), transparent);
    }

    .resume-header h2 {
        font-size: 36px;
        font-weight: 800;
        color: var(--text-main);
        letter-spacing: -0.5px;
    }

    .resume-text-gradient {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Main Timeline Outer Box Layout - MATCHED TO 1140PX PROJECTS WIDTH */
    .resume-container {
        width: 100%;
        max-width: 1140px;
        margin: 0 auto;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    /* Tab Switching Control Header Buttons - CENTERED AND SIZED BEAUTIFULLY */
    .toggle-navigation {
        display: flex;
        max-width: 500px;
        margin: 0 auto 40px auto;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid var(--glass-border);
        padding: 6px;
        border-radius: 12px;
        gap: 4px;
    }

    .toggle-btn {
        flex: 1;
        padding: 12px 24px;
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        border-radius: 8px;
        transition: color 0.3s var(--transition), background 0.3s var(--transition), box-shadow 0.3s var(--transition);
    }

    .toggle-btn.active {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        color: var(--text-main);
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }

    /* JavaScript Dynamic Panel Visibilities */
    .content-section {
        display: none;
    }

    .content-section.active {
        display: block;
        animation: fadeInTab 0.5s var(--transition) forwards;
    }

    @keyframes fadeInTab {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Vertical Timeline Layout - CONVERTED TO A 2-COLUMN GRID ENGINE */
    .timeline {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding-left: 0;
    }

    /* Removed old singular line cut through since cards split layout across columns */
    .timeline::before {
        display: none;
    }

    /* Timeline Cards Content */
    .timeline-item {
        position: relative;
        background: rgba(255, 255, 255, 0.02);
        border-left: 3px solid var(--primary-color);
        padding: 10px 0 10px 24px;
        margin-bottom: 0;
        border-radius: 0 8px 8px 0;
    }

    /* Timeline Custom Left Node Indicators */
    .timeline-item::before {
        content: '';
        position: absolute;
        left: -7px;
        top: 15px;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: var(--bg-dark);
        border: 3px solid var(--primary-color);
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
        z-index: 2;
        transition: background 0.3s var(--transition);
    }

    .timeline-item:hover::before {
        background: var(--primary-2);
    }

    /* Time Badge Tags */
    .time-badge {
        display: inline-block;
        padding: 4px 12px;
        background: rgba(99, 102, 241, 0.15);
        border: 1px solid rgba(99, 102, 241, 0.3);
        color: #a5b4fc;
        font-size: 13px;
        font-weight: 600;
        border-radius: 20px;
        margin-bottom: 12px;
    }

    /* Text Headers Inside Timeline Layout */
    .item-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 4px;
    }

    .item-subtitle {
        font-size: 14px;
        font-weight: 500;
        color: var(--primary-color);
        margin-bottom: 12px;
    }

    .item-desc {
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.6;
    }

    /* ==========================================================================
    RESPONSIVE LAYOUT CONSTRAINTS
    ========================================================================== */
    @media (max-width: 992px) {

        /* Collapses to a single-column block format cleanly on medium screens */
        .timeline {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }

    @media (max-width: 768px) {
        .resume-section {
            padding: 50px 0;
        }

        .resume-header h2 {
            font-size: 28px;
        }

        .resume-container {
            padding: 25px 20px;
        }

        .toggle-navigation {
            margin-bottom: 30px;
        }

        .toggle-btn {
            padding: 10px 16px;
            font-size: 14px;
        }
    }



    /* ==========================================================================
    CONTACT SECTION STYLES
    ========================================================================== */
    .contact-section {
        width: 100%;
        padding: 80px 0;
        position: relative;
    }

    .contact-container {
        width: 100%;
        max-width: 1140px;
        /* Aligns with your project and timeline section margins */
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Header Alignment */
    .contact-header {
        margin-bottom: 50px;
        text-align: left;
    }

    .contact-tag-wrapper {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

    .contact-section-tag {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--primary-color);
    }

    .contact-tag-line {
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), transparent);
    }

    .contact-header h2 {
        font-size: 36px;
        font-weight: 800;
        color: var(--text-main);
        letter-spacing: -0.5px;
    }

    .contact-text-gradient {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Grid Layout */
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1.4fr;
        /* Balanced sidebar and form look */
        gap: 40px;
        align-items: start;
    }

    /* Info Side Card & Glassmorphic Details */
    .contact-info-card {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 40px;
    }

    .contact-info-card h3 {
        font-size: 22px;
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 12px;
    }

    .contact-info-card p {
        color: var(--text-muted);
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 35px;
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
    }

    .info-item:last-child {
        margin-bottom: 0;
    }

    .info-icon {
        width: 48px;
        height: 48px;
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid rgba(99, 102, 241, 0.2);
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--primary-color);
        font-size: 18px;
        flex-shrink: 0;
    }

    .info-details span {
        display: block;
        font-size: 12px;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 3px;
    }

    .info-details a,
    .info-details p {
        font-size: 16px;
        color: var(--text-main);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s var(--transition);
    }

    .info-details a:hover {
        color: var(--primary-2);
    }

    /* Form Styling Blocks */
    .contact-form-wrapper {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 40px;
    }

    .form-row {
        display: flex;
        gap: 20px;
    }

    .form-group {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 24px;
    }

    .form-group label {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-muted);
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid var(--glass-border);
        border-radius: 10px;
        padding: 14px 16px;
        color: var(--text-main);
        font-size: 15px;
        outline: none;
        transition: border-color 0.3s var(--transition), box-shadow 0.3s var(--transition);
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }

    .form-group textarea {
        resize: vertical;
        min-height: 150px;
    }

    /* Glowing Submit Button Setup */
    .submit-btn {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        color: var(--text-main);
        border: none;
        border-radius: 10px;
        padding: 16px 32px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        transition: transform 0.2s var(--transition), box-shadow 0.3s var(--transition);
    }

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    /* ==========================================================================
    RESPONSIVE DESIGN BREAKPOINTS
    ========================================================================== */
    @media (max-width: 992px) {
        .contact-grid {
            grid-template-columns: 1fr;
            /* Stacks side-by-side on smaller screen sizes */
            gap: 30px;
        }
    }

    @media (max-width: 600px) {
        .contact-section {
            padding: 50px 0;
        }

        .contact-header h2 {
            font-size: 28px;
        }

        .contact-info-card,
        .contact-form-wrapper {
            padding: 25px 20px;
        }

        .form-row {
            flex-direction: column;
            /* Stacked first/last name fields on mobile screen layouts */
            gap: 0;
        }

        .submit-btn {
            width: 100%;
            justify-content: center;
        }
    }



    /* ==========================================================================
    PORTFOLIO MODERN FOOTER STYLES
    ========================================================================== */
    .portfolio-footer {
        width: 100%;
        background: linear-gradient(180deg, transparent, rgba(10, 15, 30, 0.7));
        border-top: 1px solid var(--glass-border);
        padding: 70px 0 30px 0;
        position: relative;
        margin-top: 50px;
    }

    .footer-container {
        width: 100%;
        max-width: 1140px;
        /* Keeps perfectly in alignment with your 1140px project layouts */
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Footer Layout Grid Configuration */
    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1.5fr;
        /* Creates asymmetrical, professional pacing */
        gap: 60px;
        margin-bottom: 50px;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
    }

    /* Brand Column Details */
    .footer-logo {
        font-size: 24px;
        font-weight: 800;
        letter-spacing: -0.5px;
        color: var(--text-main, #ffffff);
        text-decoration: none;
        margin-bottom: 16px;
    }

    .logo-dot {
        color: var(--primary-color);
    }

    .footer-creed {
        font-size: 14px;
        color: var(--text-muted, #94a3b8);
        line-height: 1.6;
        margin-bottom: 24px;
    }

    /* Social Icon Badges */
    .footer-socials {
        display: flex;
        gap: 12px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--glass-border);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted, #94a3b8);
        text-decoration: none;
        font-size: 16px;
        transition: all 0.3s var(--transition, ease);
    }

    .social-icon:hover {
        color: var(--text-main, #ffffff);
        background: var(--primary-color);
        border-color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    }

    /* Lists and Links Column */
    .footer-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-main, #ffffff);
        margin-bottom: 24px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-links a {
        font-size: 14px;
        color: var(--text-muted, #94a3b8);
        text-decoration: none;
        transition: color 0.3s ease, padding-left 0.3s ease;
    }

    .footer-links a:hover {
        color: var(--primary-color);
        padding-left: 6px;
    }

    /* Interactive Status Card Block */
    .status-card {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--glass-border);
        border-radius: 14px;
        padding: 20px;
    }

    .status-indicator-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    .status-dot {
        width: 8px;
        height: 8px;
        background-color: #10b981;
        /* Premium Emerald Active Indicator */
        border-radius: 50%;
        position: relative;
    }

    /* Pulsing effect on availability dot indicator */
    .status-dot::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: #10b981;
        border-radius: 50%;
        animation: pulseDot 2s infinite ease-in-out;
    }

    @keyframes pulseDot {
        0% {
            transform: scale(1);
            opacity: 0.7;
        }

        100% {
            transform: scale(2.5);
            opacity: 0;
        }
    }

    .status-text {
        font-size: 13px;
        font-weight: 600;
        color: #10b981;
    }

    .status-desc {
        font-size: 13px;
        color: var(--text-muted, #94a3b8);
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .footer-email {
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-color);
        text-decoration: none;
        transition: opacity 0.3s ease;
    }

    .footer-email:hover {
        opacity: 0.8;
    }

    /* Divider Elements */
    .footer-divider {
        border: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
        margin-bottom: 30px;
    }

    /* Footer Meta Base Row */
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-bottom p {
        font-size: 13px;
        color: var(--text-muted, #64748b);
    }

    .heart-icon {
        color: #ef4444;
        display: inline-block;
        animation: heartbeat 1.5s infinite;
    }

    @keyframes heartbeat {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.15);
        }
    }

    /* ==========================================================================
    RESPONSIVE FOOTER TARGETS
    ========================================================================== */
    @media (max-width: 992px) {
        .footer-grid {
            grid-template-columns: 1fr 1fr;
            gap: 40px;
        }

        .brand-col {
            grid-column: span 2;
        }
    }

    @media (max-width: 576px) {
        .portfolio-footer {
            padding: 50px 0 30px 0;
        }

        .footer-grid {
            grid-template-columns: 1fr;
            gap: 35px;
        }

        .brand-col {
            grid-column: span 1;
        }

        .footer-bottom {
            flex-direction: column;
            gap: 12px;
            text-align: center;
        }
    }

    /* ==========================================================================
   Final polish fixes: SEO layout consistency, spacing, mobile and accessibility
   ========================================================================== */
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 95px;
    }

    body {
        color: var(--text-main);
    }

    img {
        max-width: 100%;
    }

    button,
    a,
    input,
    textarea {
        -webkit-tap-highlight-color: transparent;
    }

    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible {
        outline: 3px solid rgba(99, 102, 241, 0.55);
        outline-offset: 4px;
    }

    .hero-banner,
    .about-container,
    .skills-container,
    .project_section-projects-container,
    .resume-main-container,
    .contact-container,
    .footer-container {
        max-width: 1200px;
    }

    .about-section,
    .skills-section,
    .project_section-projects-section,
    .resume-section,
    .contact-section {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    .skills-header h2,
    .project_section-projects-header h2,
    .resume-header h2,
    .contact-header h2,
    .about-content h2 {
        font-size: clamp(2rem, 4vw, 3.2rem);
        line-height: 1.2;
    }

    .about-desc,
    .hero-desc,
    .contact-info-card p,
    .item-desc,
    .footer-creed {
        line-height: 1.75;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        white-space: nowrap;
    }

    .contact-header,
    .resume-header {
        text-align: center;
    }

    .contact-tag-wrapper,
    .resume-tag-wrapper {
        justify-content: center;
    }

    @media (max-width: 900px) {

        .about-section,
        .skills-section,
        .project_section-projects-section,
        .resume-section,
        .contact-section {
            padding-top: 5.5rem;
            padding-bottom: 5.5rem;
        }

        .hero-banner {
            min-height: auto;
            gap: 4rem;
        }
    }

    @media (max-width: 768px) {
        body {
            padding-top: 76px;
        }

        .navbar {
            padding: 0.85rem 0;
        }

        .nav-menu-wrapper {
            overflow-y: auto;
        }

        .nav-links {
            gap: 0.75rem;
        }
        .hero-content{
            text-align: start;
        }

        .hero-content h1 {
            font-size: clamp(2.45rem, 13vw, 4rem);
        }

        .hero-content h2 {
            display: flex;
            flex-direction: column;
            align-items: start;
            gap: 0.35rem;
        }

        .typing-text {
            min-width: auto;
            max-width: 100%;
        }

        .hero-buttons {
            width: 100%;
        }

        .hero-btn {
            flex: 1 1 230px;
            text-align: center;
            justify-content: center;
        }

        .project_section-project-meta {
            flex-wrap: wrap;
        }
    }

    @media (max-width: 480px) {

        .nav-container,
        .hero-banner,
        .about-section,
        .skills-section,
        .project_section-projects-section {
            padding-left: 1rem;
            padding-right: 1rem;
        }

        .logo a {
            font-size: 1.15rem;
        }

        .hero-desc,
        .about-desc {
            font-size: 0.98rem;
        }

        .about-btn {
            width: 100%;
            justify-content: space-between;
        }

        .glass-badge {
            padding: 0.7rem 1rem;
            font-size: 0.8rem;
        }
    }

    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            scroll-behavior: auto !important;
            transition-duration: 0.01ms !important;
        }
    }



/* FIX: stop header moving when scrollbar appears */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

 @media (max-width: 900px){
   .skills-header{
    align-items: start;
    /* text-align: start; */
   }
 }


 /* dark mood  */
 .theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

body.light-mode {
  --bg-dark: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(15, 23, 42, 0.12);
  --text-main: #0f172a;
  --text-muted: #475569;
}







/* ======================================================================
   FINAL UPDATE: mobile left alignment, premium light mode, mobile polish
   Added without removing your old design/sections.
   ====================================================================== */

body {
  transition: background 0.35s ease, color 0.35s ease;
}

body.light-mode {
  --bg-dark: #f1f5f9;
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(15, 23, 42, 0.10);
  --text-main: #0f172a;
  --text-muted: #475569;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.12), transparent 36%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);
}

body.light-mode .logo-name,
body.light-mode .hero-content h1,
body.light-mode .mobile-menu-head h3 {
  background: linear-gradient(90deg, #0f172a, #4f46e5, #7c3aed, #0f172a);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.light-mode .nav-links a {
  color: #475569;
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  color: #0f172a;
}

body.light-mode .nav-toggler,
body.light-mode .theme-toggle {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.10);
}

body.light-mode .nav-toggler span {
  background: #0f172a;
}

body.light-mode .hero-content h2 {
  color: #1e293b;
}

body.light-mode .hero-img,
body.light-mode .about-image img {
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.16);
}

body.light-mode .skill-mini-card,
body.light-mode .project_section-project-card,
body.light-mode .resume-container,
body.light-mode .timeline-item,
body.light-mode .contact-info-card,
body.light-mode .contact-form-wrapper,
body.light-mode .status-card,
body.light-mode .mobile-menu-head,
body.light-mode .float-card,
body.light-mode .skill-card,
body.light-mode .project-card,
body.light-mode .about-btn,
body.light-mode .glass-badge {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

body.light-mode .inner-circle,
body.light-mode .timeline-item::before {
  background: #f8fafc;
}

body.light-mode .project_section-lang-tag {
  color: #334155;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
}

body.light-mode .toggle-navigation,
body.light-mode .form-group input,
body.light-mode .form-group textarea {
  background: rgba(248, 250, 252, 0.96);
  border-color: rgba(15, 23, 42, 0.10);
  color: #0f172a;
}

body.light-mode .outline-btn {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.14);
}

body.light-mode .project_section-project-overlay {
  background: rgba(15, 23, 42, 0.65);
}

body.light-mode .portfolio-footer {
  background: linear-gradient(180deg, transparent, rgba(226, 232, 240, 0.84));
}

@media (max-width: 900px) {
  .hero-banner,
  .about-container {
    text-align: left !important;
  }

  .hero-content,
  .about-content,
  .skills-header,
  .project_section-projects-header,
  .resume-header,
  .contact-header {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .tag-wrapper,
  .project_section-tag-wrapper,
  .resume-tag-wrapper,
  .contact-tag-wrapper {
    justify-content: flex-start !important;
  }

  .hero-desc {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-buttons {
    justify-content: flex-start !important;
  }

  .about-image-wrapper {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 74px;
  }

  .hero-banner {
    padding: 2.6rem 1rem 4rem;
    gap: 3rem;
  }

  .hero-content h1 {
    font-size: clamp(2.25rem, 12vw, 3.6rem);
  }

  .hero-content h2 {
    font-size: 1.18rem;
    min-height: 1.8rem;
  }

  .hero-desc,
  .about-desc,
  .contact-info-card p,
  .item-desc,
  .footer-creed {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .hero-btn {
    flex: 1 1 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.3rem;
  }

  .hero-image-box {
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero-img {
    width: min(260px, 82vw);
    height: 340px;
    border-radius: 32px;
  }

  .skill-card,
  .project-card {
    transform: scale(0.88);
  }

  .skill-card {
    left: -8px;
  }

  .project-card {
    right: -8px;
  }

  .about-section,
  .skills-section,
  .project_section-projects-section,
  .resume-section,
  .contact-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .about-container {
    gap: 3.5rem;
  }

  .about-content h2,
  .skills-header h2,
  .project_section-projects-header h2,
  .resume-header h2,
  .contact-header h2 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
  }

  .skills-header,
  .project_section-projects-header,
  .resume-header,
  .contact-header {
    margin-bottom: 2.2rem;
  }

  .skill-mini-card,
  .project_section-project-card,
  .resume-container,
  .contact-info-card,
  .contact-form-wrapper {
    border-radius: 22px;
  }

  .skill-mini-card {
    max-width: 100%;
    padding: 1.15rem;
    gap: 1.2rem;
  }

  .skills-grid,
  .project_section-projects-grid {
    max-width: 100%;
  }

  .project_section-project-content,
  .resume-container,
  .contact-info-card,
  .contact-form-wrapper {
    padding: 1.25rem;
  }

  .timeline-item {
    padding-left: 20px;
  }

  .info-item {
    align-items: flex-start;
    gap: 14px;
  }

  .footer-grid,
  .footer-bottom {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .nav-container,
  .hero-banner,
  .about-section,
  .skills-section,
  .project_section-projects-section,
  .resume-main-container,
  .contact-container,
  .footer-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo a {
    font-size: 1.08rem;
  }

  .nav-toggler,
  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-menu-wrapper {
    width: min(88%, 340px);
    padding: 5.5rem 1rem 1.25rem;
  }

  .mobile-menu-head,
  .nav-links a {
    border-radius: 16px;
  }

  .section-tag,
  .project_section-section-tag,
  .resume-section-tag,
  .contact-section-tag {
    font-size: 0.72rem;
    letter-spacing: 2px;
  }

  .tag-line,
  .project_section-tag-line,
  .resume-tag-line,
  .contact-tag-line {
    width: 34px;
  }

  .about-image img {
    width: min(270px, 82vw);
    height: 340px;
  }

  .image-accent-frame {
    width: min(270px, 82vw);
    height: 340px;
  }

  .glass-badge {
    max-width: 92%;
    justify-content: center;
  }

  .badge-text {
    font-size: 0.78rem;
  }

  .project_section-project-image-box {
    height: 190px;
  }

  .project_section-project-meta {
    gap: 0.65rem;
  }

  .footer-bottom {
    align-items: flex-start;
    text-align: left;
  }
}

/* FIX: Header color same in dark/light + scroll */
.navbar,
.navbar.scrolled,
body.light-mode .navbar,
body.light-mode .navbar.scrolled {
  background: rgba(65, 72, 92, 0.96) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12) !important;
}

/* FIX: Navbar links/icons visible */
.navbar a,
.navbar i,
.nav-menu a,
.nav-menu a i,
body.light-mode .navbar a,
body.light-mode .navbar i,
body.light-mode .nav-menu a,
body.light-mode .nav-menu a i {
  color: #101935 !important;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu a:hover i,
.nav-menu a.active i {
  color: #6c55ff !important;
}

/* FIX: Hero social/call icons not white */
.social-links a,
.contact-info i,
.hero-social a,
.hero-social a i,
body.light-mode .social-links a,
body.light-mode .contact-info i,
body.light-mode .hero-social a,
body.light-mode .hero-social a i {
  color: #6c55ff !important;
}

/* Dark mode icon color */
body.dark-mode .social-links a,
body.dark-mode .contact-info i,
body.dark-mode .hero-social a,
body.dark-mode .hero-social a i {
  color: #ffffff !important;
}


/* ========================= */
/* FINAL NAVBAR TEXT FIX */
/* ========================= */

/* Default (Dark Mode) */
.nav-links a {
  color: #94a3b8 !important;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff !important;
}

/* Light Mode Fix */
body.light-mode .nav-links a {
  color: #1e293b !important;   /* DARK text */
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  color: #6366f1 !important;   /* PRIMARY highlight */
}

/* Icon Fix */
.nav-links a i {
  color: inherit !important;
}

/* Hire Me Button Fix */
body.light-mode .btn-contact {
  color: #ffffff !important;
}

/* Theme Toggle Icon Fix */
body.light-mode .theme-toggle {
  color: #0f172a !important;
}


/* =========================================================
   ULTRA PREMIUM NAVBAR FINAL UPDATE
   Paste-ready final override: keeps your full old CSS,
   upgrades navbar, nav text, Hire Me button, and theme button.
   ========================================================= */

:root {
  --nav-dark-1: rgba(8, 13, 30, 0.92);
  --nav-dark-2: rgba(30, 27, 75, 0.90);
  --nav-dark-3: rgba(49, 46, 129, 0.82);
  --nav-light-1: rgba(255, 255, 255, 0.92);
  --nav-light-2: rgba(238, 242, 255, 0.90);
  --nav-light-3: rgba(224, 231, 255, 0.84);
}

/* Header shell */
.navbar,
.navbar.scrolled {
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  padding: 0.95rem 0 !important;
  background:
    linear-gradient(135deg, var(--nav-dark-1) 0%, var(--nav-dark-2) 48%, var(--nav-dark-3) 100%) !important;
  border-bottom: 1px solid rgba(167, 139, 250, 0.24) !important;
  box-shadow:
    0 16px 45px rgba(2, 6, 23, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.navbar::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.22), transparent 28%),
    radial-gradient(circle at 80% 50%, rgba(192, 132, 252, 0.18), transparent 30%) !important;
  opacity: 0.85 !important;
}

.navbar::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.75), rgba(192, 132, 252, 0.75), transparent) !important;
  pointer-events: none !important;
}

.nav-container {
  position: relative !important;
  z-index: 2 !important;
}

/* Light mode header */
body.light-mode .navbar,
body.light-mode .navbar.scrolled {
  background:
    linear-gradient(135deg, var(--nav-light-1) 0%, var(--nav-light-2) 48%, var(--nav-light-3) 100%) !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.20) !important;
  box-shadow:
    0 16px 42px rgba(79, 70, 229, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.80) !important;
}

body.light-mode .navbar::before {
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.14), transparent 30%),
    radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.12), transparent 32%) !important;
}

/* Logo */
.logo-name {
  background: linear-gradient(90deg, #ffffff 0%, #a5b4fc 35%, #c084fc 70%, #ffffff 100%) !important;
  background-size: 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.22)) !important;
}

body.light-mode .logo-name {
  background: linear-gradient(90deg, #111827 0%, #4f46e5 40%, #7c3aed 72%, #111827 100%) !important;
  background-size: 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: none !important;
}

/* Desktop nav text */
.nav-links a {
  color: #cbd5e1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
}

.nav-links a i {
  color: inherit !important;
  opacity: 0.95 !important;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff !important;
  text-shadow: 0 0 18px rgba(129, 140, 248, 0.35) !important;
}

.nav-links a:not(.btn-contact)::after {
  height: 3px !important;
  bottom: -10px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #818cf8, #c084fc, #22d3ee) !important;
  box-shadow: 0 0 18px rgba(129, 140, 248, 0.55) !important;
}

body.light-mode .nav-links a {
  color: #334155 !important;
  text-shadow: none !important;
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  color: #4f46e5 !important;
  text-shadow: none !important;
}

/* Hire Me button */
.btn-contact {
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background:
    linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%) !important;
  box-shadow:
    0 12px 30px rgba(99, 102, 241, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
  transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease !important;
}

.btn-contact i,
.btn-contact span {
  color: #ffffff !important;
}

.btn-contact:hover {
  transform: translateY(-3px) scale(1.02) !important;
  filter: saturate(1.15) !important;
  box-shadow:
    0 18px 42px rgba(139, 92, 246, 0.56),
    0 0 0 6px rgba(139, 92, 246, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

/* Theme toggle button */
.theme-toggle {
  width: 46px !important;
  height: 46px !important;
  border-radius: 17px !important;
  color: #ffffff !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04)) !important;
  border: 1px solid rgba(167, 139, 250, 0.48) !important;
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.22),
    0 0 0 4px rgba(99, 102, 241, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;
  transition: all 0.35s ease !important;
}

.theme-toggle i {
  color: inherit !important;
  transition: transform 0.35s ease, color 0.35s ease !important;
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(4deg) scale(1.05) !important;
  box-shadow:
    0 14px 34px rgba(99, 102, 241, 0.30),
    0 0 28px rgba(139, 92, 246, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;
}

.theme-toggle:hover i {
  transform: rotate(18deg) !important;
}

body.light-mode .theme-toggle {
  color: #4f46e5 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(238,242,255,0.90)) !important;
  border: 1px solid rgba(99, 102, 241, 0.36) !important;
  box-shadow:
    0 12px 26px rgba(79, 70, 229, 0.14),
    0 0 0 4px rgba(99, 102, 241, 0.09),
    inset 0 1px 0 rgba(255,255,255,0.85) !important;
}

/* Mobile nav button */
.nav-toggler {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04)) !important;
  border: 1px solid rgba(167, 139, 250, 0.36) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.20) !important;
}

.nav-toggler span {
  background: #ffffff !important;
}

body.light-mode .nav-toggler {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(238,242,255,0.90)) !important;
  border-color: rgba(99, 102, 241, 0.30) !important;
}

body.light-mode .nav-toggler span {
  background: #111827 !important;
}

/* Mobile side menu premium */
@media (max-width: 768px) {
  .navbar,
  .navbar.scrolled {
    padding: 0.85rem 0 !important;
  }

  .nav-menu-wrapper {
    background:
      radial-gradient(circle at top right, rgba(99, 102, 241, 0.34), transparent 34%),
      radial-gradient(circle at bottom left, rgba(192, 132, 252, 0.18), transparent 34%),
      rgba(8, 13, 30, 0.98) !important;
    border-left: 1px solid rgba(167, 139, 250, 0.20) !important;
    box-shadow: -28px 0 90px rgba(2, 6, 23, 0.62) !important;
  }

  .nav-links a {
    color: #e5e7eb !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #ffffff !important;
    background: rgba(99, 102, 241, 0.22) !important;
  }

  body.light-mode .nav-menu-wrapper {
    background:
      radial-gradient(circle at top right, rgba(99, 102, 241, 0.18), transparent 34%),
      radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.12), transparent 34%),
      rgba(255, 255, 255, 0.98) !important;
    border-left: 1px solid rgba(99, 102, 241, 0.16) !important;
  }

  body.light-mode .nav-links a {
    color: #1e293b !important;
    background: rgba(99, 102, 241, 0.06) !important;
    border-color: rgba(99, 102, 241, 0.13) !important;
  }

  body.light-mode .nav-links a:hover,
  body.light-mode .nav-links a.active {
    color: #4f46e5 !important;
    background: rgba(99, 102, 241, 0.12) !important;
  }

  body.light-mode .btn-contact,
  .btn-contact {
    color: #ffffff !important;
  }
}

/* FIX DESKTOP + MOBILE HEADER BUTTON GAP */
.nav-container {
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  order: 3;
}

.nav-menu-wrapper {
  order: 2;
  margin-left: auto;
}

.logo {
  order: 1;
}

.header-actions .theme-toggle,
.header-actions .nav-toggler {
  margin: 0 !important;
  flex-shrink: 0;
}

/* Desktop: show only mood button in header-actions */
@media (min-width: 769px) {
  .header-actions {
    order: 2;
    margin-left: auto;
    margin-right: 14px;
  }

  .nav-menu-wrapper {
    order: 3;
    margin-left: 0;
  }

  .nav-toggler {
    display: none !important;
  }
}

/* Mobile: hamburger + mood side by side */
@media (max-width: 768px) {
  .header-actions {
    margin-left: auto;
    gap: 8px;
  }

  .nav-toggler {
    display: flex;
  }
}



/* FINAL FIX: mood button beside Hire Me on desktop */
.nav-container {
  display: flex;
  align-items: center;
}

.nav-menu-wrapper {
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.desktop-theme-item {
  display: flex;
  align-items: center;
}

.desktop-theme-toggle {
  margin: 0 !important;
}

.mobile-theme-toggle {
  display: none;
}

@media (min-width: 769px) {
  .nav-toggler {
    display: none !important;
  }

  .header-actions {
    display: none;
  }
}

@media (max-width: 768px) {
  .desktop-theme-item {
    display: none;
  }

  .mobile-theme-toggle {
    display: grid;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
}

/* ===== FINAL MOBILE SIDEBAR FIX ===== */
@media (max-width: 768px) {

  .nav-menu-wrapper {
    width: min(86%, 360px);
    padding: 6rem 1.4rem 1.5rem;
  }

  .nav-links {
    width: 100%;
    align-items: stretch !important;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    color: #ffffff !important;
  }

  .nav-links a i {
    color: #a5b4fc !important;
  }

  .btn-contact {
    width: 100%;
    justify-content: center !important;
  }

  .mobile-social a {
    color: #ffffff !important;
  }

  .mobile-social a i {
    color: #ffffff !important;
  }

  /* hamburger to cross fixed */
  #nav-check:checked ~ .header-actions .nav-toggler .line-1 {
    width: 24px;
    transform: translateY(5px) rotate(45deg);
  }

  #nav-check:checked ~ .header-actions .nav-toggler .line-2 {
    width: 24px;
    transform: translateY(-5px) rotate(-45deg);
  }
}


