  /* ==========================================================================
           CSS VARIABLES & THEMES
           ========================================================================== */
           :root {
            --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            
            /* Light Theme Defaults — warm paper background, ember accent */
            --bg-primary: #faf6ef;
            --bg-secondary: #f1e9db;
            --text-primary: #201a12;
            --text-secondary: #6e6255;
            --accent: #d9530f;
            --accent-hover: #b8430a;
            --accent-rgb: 217, 83, 15;
            --accent-secondary: #0f9488;
            --glass-bg: rgba(255, 255, 255, 0.65);
            --glass-border: rgba(255, 255, 255, 0.4);
            --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
            --inset-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
            --gradient-1: linear-gradient(135deg, #d9530f 0%, #0f9488 100%);
            --gradient-bg: linear-gradient(180deg, #faf6ef 0%, #ede2cf 100%);
            --scrollbar-bg: #ede2cf;
            --scrollbar-thumb: #d6c7ae;
            --error: #ef4444;
            --success: #22c55e;
            
            --radius-sm: 8px;
            --radius-md: 16px;
            --radius-lg: 24px;
            --radius-full: 9999px;
            --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        [data-theme="dark"] {
            /* Dark Theme — warm ink-charcoal background, ember/teal accents */
            --bg-primary: #0b0f14;
            --bg-secondary: #131a22;
            --text-primary: #f5f0e6;
            --text-secondary: #93a0ab;
            --accent: #ff7a33;
            --accent-hover: #ff9a5c;
            --accent-rgb: 255, 122, 51;
            --accent-secondary: #2dd4bf;
            --glass-bg: rgba(19, 26, 34, 0.65);
            --glass-border: rgba(255, 255, 255, 0.06);
            --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
            --inset-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
            --gradient-1: linear-gradient(135deg, #ff7a33 0%, #2dd4bf 100%);
            --gradient-bg: linear-gradient(180deg, #0b0f14 0%, #05070a 100%);
            --scrollbar-bg: #131a22;
            --scrollbar-thumb: #3a4552;
        }

        /* ==========================================================================
           RESET & BASE STYLES
           ========================================================================== */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
            overflow-x: hidden;
        }

        body {
            font-family: var(--font-main);
            background: var(--bg-primary);
            color: var(--text-primary);
            transition: background-color 0.5s ease, color 0.3s ease;
            overflow-x: hidden;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        .light-background-1 {
            background-color: black;
            position: fixed;
            top: 0;
            height: 10000px;
            width: 100%;
            z-index: 1500;
            opacity: 0.8;
            display: grid;
          }
          .light-background {
            display: none;
          }
          .showdp{
            position: fixed;
            width: 10vw;
            /* height: 10vh; */
            left: 50%;
            top: 50%;
            -ms-transform: translate(-50%,-50%);
            -o-transform:translate(-50%,-50%) ;
            -moz-transform:translate(-50%,-50%) ;
            -webkit-transform:translate(-50%,-50%) ;
            transform: translate(-50%,-50%);
            border-radius: 5px;
            transition: var(--transition);
            padding: 20px;
            z-index: 1501;
            display: flex;
            opacity: 0;
            visibility: hidden;
            /* transition: all 1s; */
        }
        .showdp.show{
            opacity: 1;
            visibility: visible;
            width: 50vw;
            /* height: 50vh; */
        }
          #showdp{
            width: 100%;
            margin: auto;
          }


          /* NOTICE BOX START */
        .notice-box{
            position: fixed;
            box-sizing: content-box;
            z-index: 1000000;
            max-width: 300px;
            width: 10%;
            height: 50px;
            left: 50%;
            top: -20%;
            -ms-transform: translate(-50%,-50%);
            -o-transform:translate(-50%,-50%) ;
            -moz-transform:translate(-50%,-50%) ;
            -webkit-transform:translate(-50%,-50%) ;
            transform: translate(-50%,-50%);
            border-radius: 5px;
            border: 1px solid rgba(128, 128, 128, 0.4);
            display: flex;
            justify-content: left;
            background: var(--glass-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            /* box-shadow: 0 5px 6px gray,0 4px 15px gray; */
            visibility: hidden;
            transition: all 0.5s;
          }
          .notice-box.show{
            /* opacity: 1; */
            visibility: visible;
            top: 15%;
            width: 80%; 
          }
          .notice-box div{
            /* width: 8px; */
            height: 80%;
            background-color: limegreen;
            margin-top: auto;
            margin-bottom: auto;
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
            margin-left: 3%;
            display: flex;
            color: var(--text-primary);
          }
          .notice-box small{
            color: var(--text-primary);
            font-weight: bold;
            margin-left: 3%;
            margin-right: 3%;
            margin-top: auto;
            margin-bottom: auto;
          }
          /* NOTICE BOX END */

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
        }
        ::-webkit-scrollbar-track {
            background: var(--scrollbar-bg);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--scrollbar-thumb);
            border-radius: var(--radius-full);
            border: 2px solid var(--scrollbar-bg);
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent);
        }

        /* Utility Layout Classes */
        section {
            padding: 50px 24px;
            max-width: 1300px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .container {
            width: 100%;
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-header h2 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 16px;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
        }

        .section-header p {
            color: var(--text-secondary);
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Glassmorphism Structural Token */
        .glass {
            background: var(--glass-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            box-shadow: var(--card-shadow), var(--inset-shadow);
            border-radius: var(--radius-md);
        }

        /* Buttons & Interactive Elements */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 28px;
            font-weight: 600;
            border-radius: var(--radius-full);
            border: none;
            cursor: pointer;
            text-decoration: none;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            gap: 8px;
            font-size: 0.95rem;
        }

        .btn-primary {
            background: var(--gradient-1);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.6);
        }

        .btn-secondary {
            background: transparent;
            color: var(--text-primary);
            border: 2px solid var(--accent);
        }

        .btn-secondary:hover {
            background: rgba(var(--accent-rgb), 0.1);
            transform: translateY(-2px);
        }

        /* Button Ripple Effect Setup */
        .ripple {
            position: absolute;
            background: rgba(255, 255, 255, 0.4);
            border-radius: 50%;
            transform: scale(0);
            animation: ripple-effect 0.6s linear;
            pointer-events: none;
        }
        @keyframes ripple-effect {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        /* ==========================================================================
           GLOBAL REVEAL / SCROLL ANIMATIONS
           ========================================================================== */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
        }
        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Accessibility Focus Outlines */
        *:focus-visible {
            outline: 3px solid var(--accent);
            outline-offset: 2px;
        }

        /* ==========================================================================
           COMPONENTS: LOADING, CURSOR, PERIPHERALS
           ========================================================================== */
        #loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: var(--bg-primary);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }
        .loader-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid var(--bg-secondary);
            border-top: 4px solid var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        #scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 4px;
            background: var(--gradient-1);
            width: 0%;
            z-index: 1001;
        }

        #bg-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        #custom-cursor {
            width: 8px;
            height: 8px;
            background: var(--accent);
            border-radius: 50%;
            position: fixed;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 10000;
            transition: width 0.2s, height 0.2s;
        }
        #custom-cursor-blur {
            width: 32px;
            height: 32px;
            border: 2px solid var(--accent);
            border-radius: 50%;
            position: fixed;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 9999;
            transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1);
            opacity: 0.4;
        }
        @media (pointer: coarse) {
            #custom-cursor, #custom-cursor-blur { display: none; }
        }

        #back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 99;
            color: var(--text-primary);
        }
        #back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        #back-to-top:hover {
            transform: translateY(-5px);
            background: var(--accent);
            color: #fff;
        }

        /* ==========================================================================
           HEADER / NAVIGATION
           ========================================================================== */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 80px;
            z-index: 1000;
            transition: var(--transition);
        }
        header.sticky {
            height: 70px;
            background: var(--glass-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--glass-border);
            box-shadow: var(--card-shadow);
        }
        .nav-container {
            max-width: 1300px;
            height: 100%;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
        }
        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            text-decoration: none;
            color: var(--text-primary);
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .nav-links {
            display: flex;
            gap: 20px;
            list-style: none;
            align-items: center;
        }
        .nav-links a {
            text-decoration: none;
            color: var(--text-secondary);
            font-weight: 500;
            font-size: 0.95rem;
            transition: var(--transition);
            padding: 8px 12px;
            border-radius: var(--radius-sm);
        }
        .nav-links a:hover, .nav-links a.active {
            color: var(--accent);
            background: rgba(var(--accent-rgb), 0.08);
        }
        .theme-toggle {
            background: transparent;
            border: none;
            cursor: pointer;
            color: var(--text-primary);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: var(--transition);
        }
        .theme-toggle:hover {
            background: rgba(var(--accent-rgb), 0.1);
        }
        .theme-toggle .sun { display: none; }
        [data-theme="dark"] .theme-toggle .sun { display: block; }
        [data-theme="dark"] .theme-toggle .moon { display: none; }

        .burger {
            display: none;
            flex-direction: column;
            gap: 6px;
            cursor: pointer;
            border: none;
            background: transparent;
            padding: 4px;
            z-index: 1002;
        }
        .burger div {
            width: 28px;
            height: 3px;
            background: var(--text-primary);
            transition: var(--transition);
            border-radius: var(--radius-full);
        }

        /* Hamburger Animation Transforms */
        .burger.toggle .line1 { transform: rotate(-45deg) translate(-6px, 6px); }
        .burger.toggle .line2 { opacity: 0; }
        .burger.toggle .line3 { transform: rotate(45deg) translate(-6px, -7px); }

        @media (max-width: 1024px) {
            .burger { display: flex; }
            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 300px;
                height: 100vh;
                background: var(--bg-secondary);
                box-shadow: -10px 0 30px rgba(0,0,0,0.1);
                flex-direction: column;
                padding: 100px 40px;
                align-items: flex-start;
                transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
                z-index: 1001;
            }
            .nav-links.open { right: 0; }
        }

        /* ==========================================================================
           HERO SECTION
           ========================================================================== */
        #home {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding-top: 120px;
        }
        .hero-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 40px;
            align-items: center;
            width: 100%;
        }
        .hero-text h2 {
            font-size: 30px;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 16px;
        }
        .hero-text small{
            font-size: 15px;
            color: var(--text-secondary);
        }
        .profile-country {
            display: flex;
            align-items: left;
            justify-content: left;
            gap: 0.5rem;
            margin-top: -0.5rem;
        }
        .country-text {
            /* font-family: 'Dancing Script', cursive; */
            font-size: 1.2rem;
            color: var(--accent-secondary);
            margin: auto 0;
            font-weight: bold;
        }
        .flag-icon {
            width: 24px;
            height: 16px;
            border-radius: 2px;
            box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
            margin: auto 0;
        }
        .typing-container {
            font-size: 1.75rem;
            font-weight: 600;
            color: var(--text-secondary);
            height: 60px; 
            margin: 10px auto;
            font-size: 17px;
        }
        .skills-text{
            padding: 15px 0;
            margin-bottom: 10px;
            /*border-bottom: 1px solid rgba(128, 128, 128, 0.507);
            border-top: 1px solid rgba(128, 128, 128, 0.507);*/
        }
        .skills-text b{
            text-decoration: none;
            color: var(--text-secondary);
            /*background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent; */
        }
        .typing-cursor {
            animation: blink 0.7s infinite;
        }
        @keyframes blink {
            50% { opacity: 0; }
        }
        .hero-text p {
            color: var(--text-secondary);
            font-size: 1.15rem;
            margin-bottom: 36px;
            max-width: 550px;
        }
        .hero-actions {
            display: flex;
            gap: 16px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }
        .social-row {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
        .social-icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            transition: var(--transition);
            background: var(--bg-secondary);
            text-decoration: none;
        }
        .social-icon:hover {
            color: #fff;
            background: var(--accent);
            transform: translateY(-3px);
        }
        .hero-visual {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .profile-wrapper {
            position: relative;
            width: 320px;
            height: 320px;
            border-radius: 50%;
            padding: 12px;
            background: var(--gradient-1);
            animation: floating 6s ease-in-out infinite;
        }
        .profile-wrapper img{
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            background: var(--bg-secondary);
            border: 4px solid var(--bg-primary);
        }
        .profile-img-fallback {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            background: var(--bg-secondary);
            border: 4px solid var(--bg-primary);
        }
        .shape {
            position: absolute;
            background: var(--gradient-1);
            border-radius: 50%;
            opacity: 0.15;
            filter: blur(20px);
            z-index: -1;
            animation: floating 8s ease-in-out infinite;
        }
        .shape-1 { width: 150px; height: 150px; top: -20px; left: -20px; }
        .shape-2 { width: 200px; height: 200px; bottom: -40px; right: -20px; animation-delay: -3s; }

        @keyframes floating {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
        }

        @media (max-width: 992px) {
            .hero-grid { grid-template-columns: 1fr; text-align: center; }
            .hero-text h1 { font-size: 2.75rem; }
            .hero-text p { margin: 0 auto 36px auto; }
            .hero-actions, .social-row { justify-content: center; }
            .profile-wrapper { width: 260px; height: 260px; }
            .profile-country {justify-content: center;align-items: center;}
            .showdp.show {width: 100vw;}
        }

        /* ==========================================================================
           ABOUT ME & STATS
           ========================================================================== */
        .about-grid {
            display: grid;
            grid-template-columns: 0.9fr 1.1fr;
            gap: 50px;
            align-items: start;
        }
        .about-visual {
            position: relative;
            border-radius: var(--radius-lg);
            overflow: hidden;
        }
        .about-img {
            width: 100%;
            height: 100%;
            min-height: 400px;
            object-fit: cover;
            border-radius: var(--radius-lg);
            display: block;
        }
        .about-text p {
            color: var(--text-secondary);
            font-size: 1.05rem;
            margin-bottom: 30px;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
        .stat-card {
            padding: 24px;
            text-align: center;
            transition: var(--transition);
        }
        .stat-card:hover {
            transform: translateY(-5px);
        }
        .stat-number {
            font-size: 2.25rem;
            font-weight: 800;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 4px;
        }
        .stat-label {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        @media (max-width: 768px) {
            .about-grid { grid-template-columns: 1fr; }
            .stats-grid { grid-template-columns: 1fr; }
        }

        /* ==========================================================================
           SKILLS SECTION
           ========================================================================== */
        .filter-row {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }
        .filter-btn {
            padding: 8px 20px;
            border-radius: var(--radius-full);
            border: 1px solid var(--glass-border);
            background: var(--glass-bg);
            color: var(--text-secondary);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        .filter-btn.active, .filter-btn:hover {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 20px;
        }
        .skill-card {
            padding: 24px;
            transition: opacity 0.4s, transform 0.4s, box-shadow 0.4s;
        }
        .skill-card.hidden {
            display: none;
        }
        .skill-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }
        .skill-icon {
            width: 40px;
            height: 40px;
            color: var(--accent);
        }
        .skill-name {
            font-weight: 700;
            font-size: 1.1rem;
        }
        .progress-bar-bg {
            width: 100%;
            height: 6px;
            background: var(--bg-secondary);
            border-radius: var(--radius-full);
            overflow: hidden;
            position: relative;
        }
        .progress-bar-fill {
            height: 100%;
            background: var(--gradient-1);
            width: 0%;
            border-radius: var(--radius-full);
            transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
        }
        .skill-percentage {
            display: block;
            text-align: right;
            font-size: 0.85rem;
            font-weight: 700;
            margin-top: 8px;
            color: var(--text-secondary);
        }

        /* ==========================================================================
           SERVICES SECTION
           ========================================================================== */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        .service-card {
            padding: 40px 30px;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px -15px rgba(var(--accent-rgb), 0.25);
            border-color: rgba(var(--accent-rgb), 0.3);
        }
        .service-icon-container {
            width: 60px;
            height: 60px;
            border-radius: var(--radius-md);
            background: rgba(var(--accent-rgb), 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            margin-bottom: 24px;
            transition: var(--transition);
        }
        .service-card:hover .service-icon-container {
            background: var(--accent);
            color: #fff;
        }
        .service-card h3 {
            font-size: 1.35rem;
            margin-bottom: 14px;
            font-weight: 700;
        }
        .service-card p {
            color: var(--text-secondary);
            font-size: 0.95rem;
            margin-bottom: 24px;
            flex-grow: 1;
        }

        /* ==========================================================================
           PORTFOLIO SECTION
           ========================================================================== */
        .search-row {
            max-width: 450px;
            margin: -20px auto 40px auto;
            position: relative;
        }
        .search-input {
            width: 100%;
            padding: 14px 24px;
            border-radius: var(--radius-full);
            border: 1px solid var(--glass-border);
            background: var(--glass-bg);
            color: var(--text-primary);
            font-family: var(--font-main);
            font-size: 0.95rem;
        }
        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
            justify-content: center;
        }
        .portfolio-card {
            overflow: hidden;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
        }
        .portfolio-card.hidden-filter, .portfolio-card.hidden-search {
            display: none;
        }
        .portfolio-thumb {
            width: 100%;
            height: 220px;
            overflow: hidden;
            position: relative;
            background: var(--bg-secondary);
        }
        .portfolio-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .portfolio-card:hover .portfolio-thumb img {
            transform: scale(1.08);
        }
        .portfolio-content {
            padding: 24px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        .portfolio-category {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--accent);
            letter-spacing: 1px;
            margin-bottom: 8px;
        }
        .portfolio-content h3 {
            font-size: 1.25rem;
            margin-bottom: 10px;
        }
        .portfolio-content p {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 20px;
            flex-grow: 1;
        }
        .tech-badges {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 24px;
        }
        .badge {
            font-size: 0.75rem;
            padding: 4px 10px;
            border-radius: var(--radius-full);
            background: var(--bg-secondary);
            color: var(--text-secondary);
            font-weight: 600;
        }
        .portfolio-actions {
            display: flex;
            gap: 12px;
        }
        .portfolio-actions .btn {
            padding: 8px 16px;
            font-size: 0.85rem;
            flex: 1;
        }
        .load-more-container {
            text-align: center;
        }

        /* ==========================================================================
           MODAL LAYER
           ========================================================================== */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.7);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            padding: 20px;
        }
        .modal.open {
            opacity: 1;
            visibility: visible;
        }
        .modal-wrapper {
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            border-radius: var(--radius-lg);
            background: var(--bg-primary);
        }
        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0,0,0,0.5);
            color: white;
            border: 1px solid gray;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        /* Modal Gallery Structure */
        .modal-carousel {
            position: relative;
            height: 400px;
            background: #000;
        }
        .modal-web-button button{
            width: 100%;
            border-radius: 5px;
            margin-top: 30px;
        }
        .modal-web-button a{
            text-decoration: none;
        }
        .modal-slide {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease;
            object-fit: cover;
        }
        .modal-slide.active { opacity: 1; }
        #modal-slide-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.5);
            color: #fff;
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .carousel-prev { left: 20px; }
        .carousel-next { right: 20px; }
        .modal-body { padding: 40px; }
        .modal-body h3 { font-size: 1.75rem; margin-bottom: 12px; }
        .modal-body p { color: var(--text-secondary); margin-bottom: 24px; }
        .blog-modal-body .blog-meta { margin-bottom: 12px; color: var(--text-secondary); font-size: 0.9rem; }
        .blog-modal-body code {
            background: rgba(var(--accent-rgb), 0.12);
            color: var(--accent);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9em;
        }
        .blog-modal-body strong { color: var(--text-primary); }
        .blog-content .blog-read-btn { margin-top: auto; align-self: flex-start; }

        /* ===== Personal Photo Gallery Carousel ===== */
        .gallery-carousel-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .gallery-carousel {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            padding: 8px 4px 20px;
            flex: 1;
            scrollbar-width: thin;
        }
        .gallery-item {
            flex: 0 0 auto;
            width: 220px;
            height: 280px;
            border-radius: var(--radius-lg);
            overflow: hidden;
            cursor: pointer;
            scroll-snap-align: start;
            position: relative;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        }
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.4s ease;
        }
        .gallery-item:hover img { transform: scale(1.08); }
        .gallery-scroll-btn { position: static; flex-shrink: 0; }

        @media (max-width: 768px) {
            .gallery-item { width: 160px; height: 210px; }
            .gallery-scroll-btn { display: none; }
            .gallery-carousel {
                scrollbar-width: none; /* Firefox */
                -ms-overflow-style: none; /* old Edge/IE */
            }
            .gallery-carousel::-webkit-scrollbar {
                display: none; /* Chrome, Safari, newer Edge */
            }
        }

        /* ===== Gallery Zoom/Pan Modal Viewer ===== */
        .gallery-modal-wrapper {
            max-width: 900px;
            padding: 0;
            background: var(--bg-primary);
            display: flex;
            flex-direction: column;
            align-items: stretch;
        }
        .gallery-modal-viewport {
            width: 100%;
            height: 65vh;
            max-height: 620px;
            background: #000;
            overflow: hidden;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            touch-action: none;
        }
        #gallery-modal-img {
            max-width: 100%;
            max-height: 100%;
            user-select: none;
            -webkit-user-drag: none;
            touch-action: none;
            cursor: grab;
            will-change: transform;
        }
        #gallery-modal-img.dragging { cursor: grabbing; }
        .gallery-modal-hint {
            padding: 14px 20px;
            font-size: 0.8rem;
            color: var(--text-secondary);
            text-align: center;
        }
        .gallery-modal-wrapper .carousel-prev { left: 16px; }
        .gallery-modal-wrapper .carousel-next { right: 16px; }

        @media (max-width: 576px) {
            .gallery-modal-viewport { height: 50vh; }
            .gallery-modal-hint { font-size: 0.72rem; padding: 10px 14px; }
        }

        @media (max-width: 576px) {
            .modal-carousel { height: 250px; }
            .modal-body { padding: 24px; }
        }

        /* ==========================================================================
           EXPERIENCE SECTION (TIMELINE)
           ========================================================================== */
        .timeline-container {
            position: relative;
            max-width: 900px;
            margin: 0 auto;
        }
        .timeline-container::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            width: 2px;
            height: 100%;
            background: var(--glass-border);
            transform: translateX(-50%);
        }
        .timeline-item {
            display: flex;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 40px;
            position: relative;
        }
        .timeline-item:nth-child(even) {
            flex-direction: row-reverse;
        }
        .timeline-dot {
            width: 20px;
            height: 20px;
            background: var(--accent);
            border: 4px solid var(--bg-primary);
            border-radius: 50%;
            position: absolute;
            left: 50%;
            top: 24px;
            transform: translateX(-50%);
            z-index: 2;
        }
        .timeline-card {
            width: 45%;
            padding: 30px;
            position: relative;
        }
        .time-frame {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 8px;
            display: block;
        }
        .timeline-card h3 {
            font-size: 1.25rem;
            margin-bottom: 4px;
        }
        .company-name {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-secondary);
            margin-bottom: 12px;
            display: block;
        }
        .timeline-card p {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        @media (max-width: 768px) {
            .timeline-container::before { left: 24px; }
            .timeline-item { flex-direction: row !important; margin-bottom: 30px; }
            .timeline-dot { left: 24px; }
            .timeline-card { width: calc(100% - 60px); margin-left: 60px; }
        }

        /* ==========================================================================
           TESTIMONIALS SECTION
           ========================================================================== */
        .testimonial-slider-container {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
            padding: 20px 0;
        }
        .testimonial-track {
            display: flex;
            transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
            width: 100%;
        }
        .testimonial-slide-item {
            min-width: 100%;
            box-sizing: border-box;
            padding: 0 10px;
        }
        .testimonial-card {
            padding: 40px;
            text-align: center;
        }
        .client-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin: 0 auto 20px auto;
            object-fit: cover;
            background: var(--bg-secondary);
        }
        .client-info h4 { font-size: 1.15rem; margin-bottom: 2px; }
        .client-info span { font-size: 0.85rem; color: var(--text-secondary); display: block; margin-bottom: 16px; }
        .rating-stars { color: #f59e0b; margin-bottom: 20px; display: flex; justify-content: center; gap: 4px; }
        .testimonial-card p { font-size: 1.05rem; italic: true; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
        .slider-controls { display: flex; justify-content: center; gap: 16px; margin-top: 30px; }
        .slider-arrow {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1px solid var(--glass-border);
            background: var(--glass-bg);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            transition: var(--transition);
        }
        .slider-arrow:hover { background: var(--accent); color: #fff; }

        /* ==========================================================================
           BLOG SECTION
           ========================================================================== */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }
        .blog-card {
            overflow: hidden;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
        }
        .blog-card:hover { transform: translateY(-8px); }
        .blog-thumb { width: 100%; height: 200px; overflow: hidden; background: var(--bg-secondary); }
        .blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
        .blog-card:hover .blog-thumb img { transform: scale(1.05); }
        .blog-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
        .blog-meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 12px; }
        .blog-content h3 { font-size: 1.3rem; margin-bottom: 12px; line-height: 1.4; }
        .blog-content p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 24px; flex-grow: 1; }

        /* ==========================================================================
           CONTACT & CONNECT LAYOUTS
           ========================================================================== */
        .contact-grid {
            display: grid;
            grid-template-columns: 0.8fr 1.2fr;
            gap: 40px;
        }
        .contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
        .info-card { padding: 24px; display: flex; align-items: flex-start; gap: 16px; }
        .info-icon-wrapper {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-sm);
            background: rgba(var(--accent-rgb), 0.1);
            color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .info-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
        .info-card p, .info-card a { font-size: 0.9rem; color: var(--text-secondary); text-decoration: none; }
        
        .contact-form-wrapper { padding: 40px; }
        .form-group { margin-bottom: 24px; position: relative; }
        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
        .form-group label .label-optional { font-weight: 400; color: var(--text-secondary); }
        .form-group input, .form-group textarea, .form-group select {
            width: 100%;
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--glass-border);
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-family: var(--font-main);
            font-size: 0.95rem;
            transition: var(--transition);
            resize: none;
        }
        .form-group select { cursor: pointer; }
        .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
            border-color: var(--accent);
            background: var(--bg-primary);
        }
        .phone-input-row {
            display: flex;
            gap: 10px;
        }
        .dial-code-select {
            flex: 0 0 160px;
            min-width: 0;
        }
        .phone-input-row input { flex: 1; }
        @media (max-width: 480px) {
            /* .phone-input-row { flex-direction: column; } */
            .dial-code-select { flex: 1; }
        }
        .error-msg { color: var(--error); font-size: 0.8rem; margin-top: 4px; display: none; }
        .char-counter { font-size: 0.75rem; color: var(--text-secondary); text-align: right; display: block; margin-top: 4px; }
        .privacy-note {
            font-size: 0.78rem;
            color: var(--text-secondary);
            text-align: center;
            margin-top: 14px;
            line-height: 1.5;
        }
        
        .form-status {
            padding: 14px;
            border-radius: var(--radius-sm);
            margin-bottom: 20px;
            display: none;
            font-size: 0.95rem;
            font-weight: 600;
            text-align: center;
        }
        .form-status.success { background: rgba(34, 197, 94, 0.1); color: var(--success); display: block; }
        .form-status.error { background: rgba(239, 68, 68, 0.1); color: var(--error); display: block; }

        @media (max-width: 992px) {
            .contact-grid { grid-template-columns: 1fr; }
            .form-row { grid-template-columns: 1fr; gap: 0; }
        }

        /* ==========================================================================
           FOOTER COMPONENT
           ========================================================================== */
        footer {
            background: var(--bg-secondary);
            padding: 80px 24px 30px 24px;
            border-top: 1px solid var(--glass-border);
            position: relative;
            z-index: 1;
        }
        .footer-grid {
            max-width: 1300px;
            margin: 0 auto 50px auto;
            display: grid;
            grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
            gap: 40px;
        }
        .footer-brand p { color: var(--text-secondary); font-size: 0.95rem; margin-top: 16px; max-width: 280px; }
        .footer-links h4 { font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; }
        .footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
        .footer-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.95rem; transition: var(--transition); }
        .footer-links a:hover { color: var(--accent); padding-left: 4px; }
        
        .newsletter-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
        .newsletter-input-group { display: flex; width: 100%; }
        .newsletter-input-group input {
            flex-grow: 1;
            padding: 12px 16px;
            border-radius: var(--radius-sm) 0 0 var(--radius-sm);
            border: 1px solid var(--glass-border);
            background: var(--bg-primary);
            color: var(--text-primary);
        }
        .newsletter-input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0 20px; }
        
        .footer-bottom {
            max-width: 1300px;
            margin: 0 auto;
            padding-top: 30px;
            border-top: 1px solid var(--glass-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        @media (max-width: 992px) {
            .footer-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 576px) {
            .footer-grid { grid-template-columns: 1fr; }
            .footer-bottom { flex-direction: column; text-align: center; }
        }
        /* ===== Pricing Teaser Section ===== */
.pricing-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.pricing-teaser-card {
    padding: 30px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.pricing-teaser-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(var(--accent-rgb), 0.25);
}
.pricing-teaser-featured {
    border-color: var(--accent);
    border-width: 2px;
}
.pricing-teaser-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: #0b0f14;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.pricing-teaser-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.pricing-teaser-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.pricing-teaser-from {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.pricing-teaser-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.pricing-teaser-cta {
    text-align: center;
}
.pricing-teaser-cta .btn { gap: 10px; }
.pricing-teaser-note {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .pricing-teaser-grid { grid-template-columns: 1fr; }
}
