  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
       
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
       
        :root {
            --primary: #0f0f0f;
            --secondary: #ff4e50;
            --accent: #fc913a;
            --light: #f9f9f9;
            --text: #333;
            --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }
       
        body {
            font-family: 'Poppins', sans-serif;
            background: var(--primary);
            color: var(--light);
            overflow-x: hidden;
            cursor: none;
        }
       
        /* Custom Cursor */
        .cursor {
            width: 20px;
            height: 20px;
            border: 2px solid var(--secondary);
            border-radius: 50%;
            position: fixed;
            transform: translate(-50%, -50%);
            pointer-events: none;
            transition: all 0.1s ease;
            z-index: 9999;
            mix-blend-mode: difference;
        }
       
        .cursor-follower {
            width: 40px;
            height: 40px;
            background: rgba(255, 78, 80, 0.1);
            border-radius: 50%;
            position: fixed;
            transform: translate(-50%, -50%);
            pointer-events: none;
            transition: all 0.3s ease;
            z-index: 9998;
        }
       
        .cursor.hover {
            width: 50px;
            height: 50px;
            background: rgba(255, 78, 80, 0.3);
            border-color: transparent;
        }
       
        /* Preloader */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            transition: opacity 0.5s, visibility 0.5s;
        }
       
        .preloader.fade-out {
            opacity: 0;
            visibility: hidden;
        }
       
        .loader {
            position: relative;
            width: 150px;
            height: 150px;
        }
       
        .loader-circle {
            position: absolute;
            border: 3px solid transparent;
            border-top-color: var(--secondary);
            border-radius: 50%;
            animation: rotate 2s linear infinite;
        }
       
        .loader-circle:nth-child(1) {
            width: 150px;
            height: 150px;
            animation-duration: 2s;
        }
       
        .loader-circle:nth-child(2) {
            width: 120px;
            height: 120px;
            top: 15px;
            left: 15px;
            animation-duration: 1.5s;
            border-top-color: var(--accent);
        }
       
        .loader-circle:nth-child(3) {
            width: 90px;
            height: 90px;
            top: 30px;
            left: 30px;
            animation-duration: 1s;
            border-top-color: #f9d423;
        }
       
        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
       
        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 20px 50px;
            z-index: 1000;
            transition: all 0.3s ease;
        }
       
        nav.scrolled {
            padding: 15px 50px;
            background: rgba(15, 15, 15, 0.9);
            backdrop-filter: blur(10px);
        }
       
        .nav-container {
            display: flex;
            padding: 25px 0px;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto; /* Fixed: Changed from -10 auto to 0 auto */
        }
       
        .logo {
    display: inline-block;
    width: 65px;            
    height: 65px;
    border-radius: 50%;    
    overflow: hidden;     
    position: relative;
    border: 2px solid var(--secondary); 
    background: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;  
    display: block;
}

.logo:hover {
    transform: scale(1.1); 
    box-shadow: 0 0 15px rgba(255, 78, 80, 0.6); 
}


.logo::after {
    display: none;
}
       
        .nav-menu {
           display: flex;
           list-style: none;
           gap: 40px;
        }
       
        .nav-link {
            color: var(--light);
            text-decoration: none;
            font-weight: 500;
            position: relative;
            transition: color 0.3s ease;
        }
       
        .nav-link::before {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--secondary);
            transition: width 0.3s ease;
        }
       
        .nav-link:hover::before,
        .nav-link.active::before {
            width: 100%;
        }
       
        .nav-link:hover,
        .nav-link.active {
            color: var(--secondary);
        }
       
        .menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            z-index: 1001;
        }
       
        .menu-toggle span {
            width: 25px;
            height: 3px;
            background: var(--light);
            margin: 3px 0;
            transition: 0.3s;
        }
       
        /* Hero Section */
        .hero {
            height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
       
        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
       
        .particles {
            position: absolute;
            width: 100%;
            height: 100%;
        }
       
        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--secondary);
            border-radius: 50%;
            opacity: 0.5;
        }
       
        .hero-content {
            text-align: center;
            z-index: 2;
            max-width: 900px;
            padding: 0 20px;
        }
       
        .glitch {
            font-size: 5rem;
            font-weight: 800;
            text-transform: uppercase;
            position: relative;
            color: var(--light);
            letter-spacing: 3px;
            animation: glitch 2s infinite;
        }
       
        .glitch::before,
        .glitch::after {
            content: 'KAMRUL HOSSAIN';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
       
        .glitch::before {
            animation: glitch-1 0.5s infinite;
            color: var(--secondary);
            z-index: -1;
        }
       
        .glitch::after {
            animation: glitch-2 0.5s infinite;
            color: var(--accent);
            z-index: -2;
        }
       
        @keyframes glitch {
            0%, 100% { text-shadow: 0 0 5px rgba(255, 78, 80, 0.5); }
            50% { text-shadow: 0 0 20px rgba(255, 78, 80, 0.8); }
        }
       
        @keyframes glitch-1 {
            0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
            20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
            40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
            60% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 1px); }
            80% { clip-path: inset(80% 0 5% 0); transform: translate(1px, -1px); }
        }
       
        @keyframes glitch-2 {
            0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
            20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
            40% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, 2px); }
            60% { clip-path: inset(30% 0 40% 0); transform: translate(1px, -2px); }
            80% { clip-path: inset(5% 0 80% 0); transform: translate(-1px, 1px); }
        }
       
        .hero-subtitle {
            font-size: 1.5rem;
            margin: 20px 0;
            opacity: 0.8;
            animation: fadeInUp 1s ease 0.5s both;
        }
       
        .typing-text {
            font-size: 1.2rem;
            color: var(--secondary);
            min-height: 30px;
            margin: 20px 0;
        }
       
        .typing-cursor {
            display: inline-block;
            width: 3px;
            height: 1.2rem;
            background: var(--secondary);
            animation: blink 1s infinite;
        }
       
        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }
       
        .hero-buttons {
            margin-top: 40px;
            display: flex;
            gap: 20px;
            justify-content: center;
            animation: fadeInUp 1s ease 1s both;
        }
       
        .btn {
            padding: 15px 30px;
            font-size: 1rem;
            font-weight: 600;
            text-decoration: none;
            border-radius: 50px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
       
        .btn-primary {
            background: var(--gradient);
            color: var(--light);
            border: none;
        }
       
        .btn-outline {
            background: transparent;
            color: var(--light);
            border: 2px solid var(--secondary);
        }
       
        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transition: left 0.5s ease;
            z-index: -1;
        }
       
        .btn:hover::before {
            left: 100%;
        }
       
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(255, 78, 80, 0.3);
        }
       
        .btn-outline:hover {
            background: var(--secondary);
            color: var(--light);
        }
       
        /* Scroll Indicator */
        .scroll-indicator {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s infinite;
        }
       
        .scroll-indicator i {
            font-size: 2rem;
            color: var(--secondary);
        }
       
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
            40% { transform: translateX(-50%) translateY(-20px); }
            60% { transform: translateX(-50%) translateY(-10px); }
        }
       
        /* About Section */
        .about {
            padding: 100px 50px;
            background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
            position: relative;
        }
       
        .section-header {
            text-align: center;
            margin-bottom: 80px;
            position: relative;
        }
       
        .section-title {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 20px;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            position: relative;
            display: inline-block;
        }
       
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: var(--gradient);
            border-radius: 2px;
        }
       
        .about-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }
       
        .about-image {
            position: relative;
            perspective: 1000px;
        }
       
        .about-img-wrapper {
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.6s;
        }
       
        .about-img-wrapper:hover {
            transform: rotateY(10deg) rotateX(-10deg);
        }
       
        .about-img {
            width: 100%;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }
       
        .about-img-decoration {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 3px solid var(--secondary);
            border-radius: 20px;
            top: 20px;
            left: 20px;
            z-index: -1;
        }
       
        .about-content h3 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            background: var(--gradient-2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
       
        .about-text {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 30px;
            opacity: 0.9;
        }
       
        .about-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 40px;
        }
       
        .info-item {
            display: flex;
            align-items: center;
            gap: 15px;
        }
       
        .info-icon {
            width: 50px;
            height: 50px;
            background: var(--gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }
       
        .info-text h4 {
            font-size: 0.9rem;
            opacity: 0.7;
            margin-bottom: 5px;
        }
       
        .info-text p {
            font-size: 1.1rem;
            font-weight: 600;
        }
       
        /* Skills Section */
        .skills {
            padding: 100px 50px;
            background: var(--primary);
            position: relative;
            overflow: hidden;
        }
       
        .skills-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.05;
            background-image:
                radial-gradient(circle at 20% 30%, var(--secondary) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, var(--accent) 0%, transparent 50%);
            z-index: 0;
        }
       
        .skills-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }
       
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
        }
       
        .skill-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
            border-radius: 20px;
            padding: 40px 30px;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }
       
        .skill-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
       
        .skill-card:hover::before {
            opacity: 0.1;
        }
       
        .skill-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(255, 78, 80, 0.2);
            border-color: var(--secondary);
        }
       
        .skill-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: var(--gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            position: relative;
        }
       
        .skill-icon::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: var(--gradient);
            opacity: 0.3;
            animation: pulse 2s infinite;
        }
       
        @keyframes pulse {
            0% { transform: scale(1); opacity: 0.3; }
            50% { transform: scale(1.1); opacity: 0.1; }
            100% { transform: scale(1); opacity: 0.3; }
        }
       
        .skill-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--light);
        }
       
        .skill-card p {
            opacity: 0.8;
            line-height: 1.6;
        }
       
        .skill-level {
            margin-top: 20px;
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            overflow: hidden;
        }
       
        .skill-progress {
            height: 100%;
            background: var(--gradient);
            border-radius: 4px;
            width: 0;
            transition: width 2s ease;
        }
       
        /* Portfolio Section */
        .portfolio {
            padding: 100px 50px;
            background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
        }
       
        .portfolio-filters {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 50px;
            flex-wrap: wrap;
        }
       
        .filter-btn {
            padding: 10px 25px;
            background: transparent;
            color: var(--light);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
       
        .filter-btn:hover,
        .filter-btn.active {
            background: var(--gradient);
            border-color: transparent;
            transform: translateY(-3px);
        }
       
        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }
       
        .portfolio-item {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            background: var(--primary);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            cursor: pointer;
        }
       
        .portfolio-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(255, 78, 80, 0.3);
        }
       
        .portfolio-image {
            position: relative;
            height: 250px;
            overflow: hidden;
        }
       
        .portfolio-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
       
        .portfolio-item:hover .portfolio-image img {
            transform: scale(1.1);
        }
       
        .portfolio-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 30px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
       
        .portfolio-item:hover .portfolio-overlay {
            opacity: 1;
        }
       
        .portfolio-category {
            display: inline-block;
            padding: 5px 15px;
            background: var(--gradient);
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 10px;
        }
       
        .portfolio-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }
       
        .portfolio-link {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: var(--secondary);
            text-decoration: none;
            font-weight: 600;
            transition: gap 0.3s ease;
        }
       
        .portfolio-link:hover {
            gap: 15px;
        }
       
        /* Contact Section */
        .contact {
            padding: 100px 50px;
            background: var(--primary);
            position: relative;
        }
       
        .contact-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: start;
        }
       
        .contact-info {
            padding: 40px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
       
        .contact-info h3 {
            font-size: 2rem;
            margin-bottom: 30px;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
       
        .contact-item {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 30px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 15px;
            transition: all 0.3s ease;
        }
       
        .contact-item:hover {
            background: rgba(255, 78, 80, 0.1);
            transform: translateX(10px);
        }
       
        .contact-icon {
            width: 60px;
            height: 60px;
            background: var(--gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }
       
        .contact-details h4 {
            font-size: 1.2rem;
            margin-bottom: 5px;
            color: var(--secondary);
        }
       
        .contact-details p {
            opacity: 0.8;
        }
       
        .contact-form {
            padding: 40px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
       
        .form-group {
            margin-bottom: 25px;
        }
       
        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: var(--secondary);
        }
       
        .form-control {
            width: 100%;
            padding: 15px 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: var(--light);
            font-size: 1rem;
            transition: all 0.3s ease;
        }
       
        .form-control:focus {
            outline: none;
            border-color: var(--secondary);
            background: rgba(255, 255, 255, 0.08);
        }
       
        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }
       
        .submit-btn {
            width: 100%;
            padding: 15px;
            background: var(--gradient);
            color: var(--light);
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
       
        .submit-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
       
        .submit-btn:hover::before {
            width: 300px;
            height: 300px;
        }
       
        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(255, 78, 80, 0.3);
        }
       
        /* Footer */
        .footer {
            padding: 50px;
            background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
       
        .social-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
        }
       
        .social-link {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--light);
            font-size: 1.2rem;
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
       
        .social-link::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: var(--gradient);
            transform: translate(-50%, -50%);
            transition: width 0.3s, height 0.3s;
            z-index: -1;
        }
       
        .social-link:hover::before {
            width: 100%;
            height: 100%;
        }
       
        .social-link:hover {
            transform: translateY(-5px);
            border-color: transparent;
        }
       
        .footer-text {
            opacity: 0.7;
            margin-top: 20px;
        }
       
        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
       
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
       
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
       
     
                /* ========================================= */
        /* RESPONSIVE CSS FOR MOBILE (FIXED JUMPING) */
        /* ========================================= */
       
        @media (hover: none) and (pointer: coarse) {
            .cursor, .cursor-follower {
                display: none;
            }
            body {
                cursor: auto;
            }
        }
       
        @media (max-width: 768px) {
           
            /* Global Adjustments */
            section {
                padding: 60px 20px !important;
            }
            
            /* Add padding at bottom for fixed nav */
            body {
                padding-bottom: 80px;
                height: 100dvh;
                scrollbar-gutter: stable;
            }
           
            /* CRITICAL FIX: Prevent Parent Nav from changing properties on scroll 
               This stops the 'Jumping' caused by stacking context changes */
            nav, nav.scrolled {
                position: absolute !important;
                padding: 15px 20px !important;
                background: transparent !important;
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
                box-shadow: none !important;
                transition: none !important; 
                transform: none !important;  
            }
           
            /* Navigation Container */
            .nav-container {
                display: block;
                text-align: center;
            }
            
            .logo {
                display: inline-block;
                margin-bottom: 0;
                position: relative;
                z-index: 1;
            }
            
            .menu-toggle {
                display: none;
            }
            
            /* Bottom Bar Styling */
            .nav-menu {
                position: fixed;
                top: auto;
                bottom: 0px;
                left: 0;
                right: 0; 
                width: 100%;
                height: auto;
                padding: 10px 0;
                /* Safe area for modern phones */
                padding-bottom: calc(30px + env(safe-area-inset-bottom)); 
                
                margin: 0; 
                transform: none !important; /* Force position reset */
                
                /* Override desktop slide-in animation */
                right: 0 !important; 
                
                background: rgba(15, 15, 15, 0.98);
                backdrop-filter: blur(10px);
                border-top: 1px solid var(--secondary);
                box-shadow: 0 -5px 30px rgba(255, 78, 80, 0.4);
                
                flex-direction: row;
                justify-content: space-around;
                align-items: center;
                z-index: 999;
                
                transition: all 0.3s ease;
            }
            
            .nav-link {
                display: flex;
                flex-direction: column;
                align-items: center;
                font-size: 0.65rem;
                padding: 5px;
                color: #aaa;
            }
            
            .nav-link::before {
                display: block;
                font-family: 'Font Awesome 6 Free';
                font-weight: 900;
                font-size: 1.2rem;
                margin-bottom: 4px;
                transition: transform 0.2s;
            }
            
            .nav-link:hover::before, .nav-link.active::before {
                transform: translateY(-2px);
            }
            
            .nav-link[href="#home"]::before { content: '\f015'; }
            .nav-link[href="#about"]::before { content: '\f007'; }
            .nav-link[href="#skills"]::before { content: '\f0b1'; }
            .nav-link[href="#portfolio"]::before { content: '\f07c'; }
            .nav-link[href="#contact"]::before { content: '\f0e0'; }
            
            .nav-link.active {
                color: var(--secondary);
                text-shadow: 0 0 10px rgba(255, 78, 80, 0.5);
            }
            
            .nav-link::after {
                display: none;
            }
           
            /* Hero Section */
            .glitch {
                font-size: 2.2rem;
                letter-spacing: 1px;
            }
           
            .glitch::before, .glitch::after {
                content: 'KAMRUL HOSSAIN';
            }
           
            .hero-subtitle {
                font-size: 1.1rem;
            }
           
            .typing-text {
                font-size: 1rem;
            }
           
            .hero-buttons {
                flex-direction: column;
                align-items: center; 
                gap: 15px;
            }
           
            .btn {
                width: 100%;
                max-width: 250px;
            }
           
            /* Section Titles */
            .section-title {
                font-size: 2rem;
            }
           
            .section-header {
                margin-bottom: 40px;
            }
           
            /* About Section */
            .about-container {
                grid-template-columns: 1fr;
                gap: 40px;
            }
           
            .about-img-decoration {
                display: none;
            }
           
            .about-content h3 {
                font-size: 1.8rem;
            }
           
            .about-info {
                grid-template-columns: 1fr;
            }
           
            /* Skills Section */
            .skills-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
           
            /* Portfolio Section */
            .portfolio-grid {
                grid-template-columns: 1fr;
                min-width: 0;
            }
           
            .portfolio-image {
                height: 200px;
            }
           
            .portfolio-overlay {
                opacity: 1;
                background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
            }
           
            /* Contact Section */
            .contact-container {
                grid-template-columns: 1fr;
                gap: 40px;
            }
           
            .contact-info, .contact-form {
                padding: 25px;
            }
           
            .contact-item {
                padding: 15px;
            }
           
            /* Footer */
            .social-links {
                gap: 15px;
            }
           
            .social-link {
                width: 45px;
                height: 45px;
            }
        }