 :root {
            --primary-bg: #0b0a1f;
            /* Dark Indigo */
            --secondary-bg: #161327;
            /* Deep Violet */
            --card-bg: #211b3d;
            /* Soft Purple card background */
            --accent-color: #c084fc;
            /* Soft Lavender accent */
            --text-color: #ffffff;
            --muted-text-color: #a3a3a3;
            --border-color: #2e2b44;
            --blue-link-color: #8b5cf6;
            --blue-link-hover-color: #7c3aed;


        }


        /* Base font size for REM calculations */
        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }


        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.7;
            background-color: var(--primary-bg);
            color: var(--text-color);
            /* Use mobile-first base font size */
            font-size: var(--font-size-base);
        }

        section {
            scroll-margin-top: 80px;
        }
        /* Apply desktop font sizes for medium screens and up */
        @media (min-width: 768px) {


            /* Tailwind's 'md' breakpoint */
            body {
                font-size: var(--font-size-desktop-base);
            }


            .text-base {
                font-size: var(--font-size-desktop-md);
            }


            .text-xl {
                font-size: var(--font-size-desktop-lg);
            }


            .text-3xl {
                font-size: var(--font-size-desktop-xl);
            }


            .text-lg {
                font-size: var(--font-size-desktop-base);
            }
        }


        /* Hero Section Animations */
        .animate-fade {
            opacity: 0;
            animation: fadeIn 1.5s ease-out forwards;
        }


        @keyframes fadeIn {
            to {
                opacity: 1;
            }
        }


        .animate-slide {
            opacity: 0;
            transform: translateY(2.5rem);
            animation: slideIn 1.8s ease-out 0.8s forwards;
        }


        @keyframes slideIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


        .animate-bounce {
            opacity: 0;
            animation: bounceIn 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) 1.5s forwards;
        }


        @keyframes bounceIn {
            0% {
                opacity: 0;
                transform: scale(0.7);
            }


            60% {
                opacity: 1;
                transform: scale(1.1);
            }


            100% {
                transform: scale(1);
            }
        }


        /* Typewriter text (JS controlled) */
        .typewriter {
            display: inline-block;
            min-width: 16ch;
            white-space: nowrap;
            color: var(--text-color);
        }

        /* static cursor | */
        .typewriter::after {
            content: "";
        }


        /* Sidebar active/hover underline effect */
        .sidebar-link::after {
            content: '';
            position: absolute;
            width: 0%;
            height: 0.125rem;
            bottom: 0.3125rem;
            left: 0;
            background-color: var(--accent-color);
            transition: width 0.3s ease-in-out;
        }


        .sidebar-link.active::after,
        .sidebar-link:hover::after {
            width: 100%;
        }


        /* Section Title Underline - Enhanced for unique look */
        /* .section-title-underline {
            display: fit-content;
        }

        .section-title-underline::after {
            content: '';
            position: absolute;
            left: 5%;
            bottom: -0.3125rem;
            transform: translateX(0);
            width: 6.25rem;
            height: 0.3125rem;
            background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
            border-radius: 0.1875rem;
            box-shadow: 0 0 0.9375rem var(--accent-color-rgb, rgba(245, 158, 11, 0.6));
            animation: pulsateUnderline 2s infinite alternate;
        } */
        .section-title {
            text-align: left;
            /* চাইলে center */
        }


        .title-text {
            position: relative;
            display: inline-block;
        }


        /* underline */
        .title-text::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -10px;
            transform: translateX(-50%);


            width: 60%;
            height: 5px;


            background: linear-gradient(90deg,
                    transparent,
                    var(--accent-color),
                    transparent);


            border-radius: 9999px;
        }


        @keyframes pulsateUnderline {
            from {
                transform: translateX(-50%) scaleX(0.9);
                opacity: 0.8;
            }


            to {
                transform: translateX(-50%) scaleX(1);
                opacity: 1;
            }
        }


        /* Navigation menu font */
        nav a,
        #myNav a {
            font-family: 'Roboto Mono', monospace;
            font-weight: 500;
        }


        /* Prevent scrolling when overlay is open */
        .overflow-hidden {
            overflow: hidden;
        }


        /* Hero Section Background with subtle overlay */
        .hero-bg {
            background-image: url("https://via.placeholder.com/1920x1080/0c0d16/ffffff?text=Your+Distinct+Hero+Image");
            background-size: cover;
            background-position: center;
            position: relative;
        }


        .hero-bg::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(12, 13, 22, 0.4);
            z-index: 1;
        }


        .hero-bg>div {
            position: relative;
            z-index: 2;
        }


        /* Section Fade-in for sections on scroll */
        .section-scroll-fade {
            opacity: 0;
            transform: translateY(1.875rem);
            transition: opacity 1s ease-out, transform 0.8s ease-out;
        }


        .section-scroll-fade.is-visible {
            opacity: 1;
            transform: translateY(0);
        }


        /* Overlay Navigation Menu (Mobile) */
        #myNav {
            height: 100%;
            width: 0;
            position: fixed;
            z-index: 2000;
            top: 0;
            left: 0;
            background-color: rgba(0, 0, 0, 0.9);
            overflow-x: hidden;
            transition: 0.5s;
            display: flex;
            padding-top: 10px;
            padding-left: 10px;
        }


        #myNav .closebtn {
            position: absolute;
            top: 10px;
            right: 25px;
            /* Use variable for close button font size */
            font-size: var(--font-size-3xl);
            color: var(--text-color);
            cursor: pointer;
            transition: 0.3s;
        }


        #myNav .closebtn:hover {
            color: var(--accent-color);
        }


        #myNav .overlay-content {
            position: relative;
            top: 0;
            width: 100%;
            text-align: start;
            margin-top: 1.875rem;
        }


        #myNav a {
            padding: 0.5rem;
            text-decoration: none;
            /* Use variable for overlay link font size */
            font-size: var(--font-size-2xl);
            color: var(--muted-text-color);
            display: block;
            transition: 0.3s;
        }


        #myNav a:hover,
        #myNav a:focus {
            color: var(--accent-color);
        }


        /* Adjust font sizes for different sections using variables (Mobile-first defaults) */
        h1 {
            font-size: 2rem;
        }


        h2 {
            font-size: 1.875rem;
        }


        h5 {
            font-size: 1.125rem;
        }


        p {
            font-size: 1rem;
        }


        small {
            font-size: 0.875rem;
        }


        /* Media Queries for larger screens (md breakpoint and up) */
        @media (min-width: 768px) {
            h1 {
                font-size: 3.75rem;
            }


            h2 {
                font-size: 3rem;
            }


            h5 {
                font-size: 1.25rem;
            }
        }