/* CSS Variables for consistent theming */
:root {
    --primary-bg: #000000;
    --secondary-bg: #0a0a0a;
    --accent-color: #e63946; /* Dark mode accent - Bright Red */
    --accent-color2: #ff6b6b; /* Dark mode accent 2 - Light Red */
    --accent-hover: #ff5252; /* Dark mode hover - Hover Red */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --card-bg: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.95));
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-radius: 14px;
    --transition: all 0.4s cubic-bezier(0.22, 0.9, 0.3, 1);
    --shadow: 0 10px 30px rgba(2, 6, 12, 0.6);
    --glass-blur: 8px;
    --vh: 1vh;
}
/* Light Mode Variables - Premium Off-White Gradient */
.light-mode {
    --primary-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    --secondary-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --accent-color: #dc2626; /* Light mode accent - Dark Red */
    --accent-color2: #ef4444; /* Light mode accent 2 - Medium Red */
    --accent-hover: #b91c1c; /* Light mode hover - Deep Red */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98));
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}







/* লাইট মোডে বাটনের ভিতরের কালার সাদা করতে */
.dark-mode .btn {
    color: #ffffff !important; /* সাদা কালার */
}
.dark-mode .btn-outline {
    color: var(--text-primary) !important; /* Outline বাটনের জন্য normal কালার */
}

.dark-mode .btn-outline:hover {
    color: #ffffff !important; /* Outline বাটন hover এ সাদা কালার */
}
.light-mode .btn {
    color: #ffffff !important; /* সাদা কালার */
}

.light-mode .btn-outline {
    color: var(--text-primary) !important; /* Outline বাটনের জন্য normal কালার */
}

.light-mode .btn-outline:hover {
    color: #ffffff !important; /* Outline বাটন hover এ সাদা কালার */
}

/* সব মোডে বাটনের box shadow লাল করতে */
.btn {
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.4) !important; /* লাল shadow */
}

.btn:hover {
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.6) !important; /* Hover এ আরো লাল shadow */
}

/* Outline বাটনের জন্য */
.btn-outline {
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3) !important; /* Outline বাটনের লাল shadow */
}

.btn-outline:hover {
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.5) !important; /* Outline hover এ লাল shadow */
}

/* Small বাটনের জন্য */
.btn.small {
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3) !important;
}

.btn.small:hover {
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.5) !important;
}

/* SweetAlert বাটনের জন্য */
.swal-confirm-btn {
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4) !important;
}

.swal-confirm-btn:hover {
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.6) !important;
}

/* Project actions বাটনের জন্য */
.proj-actions .btn {
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3) !important;
}

.proj-actions .btn:hover {
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.5) !important;
}

/* Hero section CTA বাটনের জন্য */
.hero-cta .btn {
    box-shadow: 0 12px 30px rgba(230, 57, 71, 0) !important;
}

.hero-cta .btn:hover {
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.6) !important;
}




/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* Header height for anchor links */
}
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary-bg);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), var(--accent-color2));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-hover), var(--accent-color2));
}
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, var(--primary-bg), #041018 140%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
section {
    padding: 100px 0;
    width: 100%;
    overflow: hidden;
}
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}
h1 {
    font-size: 3.5rem;
    animation: fadeInUp 1s ease-out;
}
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    animation: fadeInUp 1s ease-out 0.2s both;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
    border-radius: 2px;
    animation: slideIn 1s ease-out 0.5s both;
}
p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out 0.4s both;
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
    color: #021018;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.651);
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}
.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 9, 9, 0.397);
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    box-shadow: none;
}
.btn-outline:hover {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
    color: #021018;
}
/* Glass Card Effect */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    width: 100%;
    animation: fadeInUp 1s ease-out;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-5px);
    
    box-shadow: 0 20px 40px rgba(6, 53, 124, 0.8);
}
/* Progress Bar */
#progress-bar {
    position: fixed;
    left: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
    width: 0;
    z-index: 9999;
    transition: width .2s linear;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}
/* Header & Navigation */
header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 999;
    background: rgba(7, 16, 24, 0.5);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    width: 100%;
    animation: slideDown 0.8s ease-out;
}
.light-mode header {
    background: rgba(247, 251, 255, 0.5);
}
header.scrolled {
    box-shadow: 0 3px 20px rgba(10, 69, 158, 0.692);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    width: 100%;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    animation: fadeInLeft 1s ease-out;
}
.logo span {
    color: var(--accent-color);
}
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 18px;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    transition: var(--transition);
    animation: fadeInRight 1s ease-out;
}
.nav-links a:hover, .nav-links a.active {
    color: #000000;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
    box-shadow: 0 8px 30px rgba(153, 11, 11, 0.747);
    transform: translateY(-2px);
}
/* Theme Toggle Button - Fixed Split Switch */
.theme-toggle {
    width: 70px;
    height: 34px;
    border-radius: 25px;
    border: 2px solid var(--glass-border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    padding: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInRight 1s ease-out 0.4s both;
}
.theme-toggle:hover {
    transform: none;
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(150, 11, 11, 0.747);
}
.theme-toggle:active {
    transform: scale(0.95);
}
.theme-toggle .icon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color2));
    color: #021018;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
/* Dark mode: Moon on right side, Sun hidden on left */
.theme-toggle .sun {
    left: 3px;
    opacity: 0;
    transform: translateX(-10px) scale(0.5);
}
.theme-toggle .moon {
    right: 3px;
    opacity: 1;
    transform: translateX(0) scale(1);
}
/* Light mode: Sun on left side, Moon hidden on right */
.theme-toggle.active .sun {
    left: 3px;
    opacity: 1;
    transform: translateX(0) scale(1);
}
.theme-toggle.active .moon {
    right: 3px;
    opacity: 0;
    transform: translateX(10px) scale(0.5);
}
/* Toggle Track Background */
.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    background:
        linear-gradient(90deg,
            rgba(255, 0, 0, 0.3) 0%,
            rgba(255, 0, 0, 0.1) 30%,
            rgba(0, 179, 255, 0.1) 70%,
            rgba(0, 179, 255, 0.3) 100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.theme-toggle.active::before {
    background:
        linear-gradient(90deg,
            rgba(255, 0, 0, 0.342) 0%,
            rgba(255, 0, 0, 0.219) 30%,
            rgba(0, 179, 255, 0.3) 70%,
            rgba(0, 179, 255, 0.6) 100%);
    opacity: 0.8;
}
/* Light mode specific toggle styles */
.light-mode .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}
.light-mode .theme-toggle:hover {
    border-color: var(--accent-color);
}
/* Mobile responsive for toggle */
@media (max-width: 768px) {
    .theme-toggle {
        width: 60px;
        height: 30px;
    }
   
    .theme-toggle .icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
}
/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    width: 100%;
}
.bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 80px 0;
    width: 100%;
}
.headline {
    font-size: 48px;
    margin-bottom: 8px;
    letter-spacing: 0.4px;
    animation: fadeInUp 1s ease-out 0.3s both;
}
.typing-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    animation: fadeInUp 1s ease-out 0.5s both;
}
.typed {
    color: var(--accent-color2);
    font-weight: 700;
}
.cursor {
    color: var(--accent-color2);
    opacity: 1;
    animation: blink 1s steps(2) infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}
.lead {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.7s both;
}
.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    animation: fadeInUp 1s ease-out 0.9s both;
}


/* Light mode এ হালকা কালো border */
.light-mode .hero-cta .btn {
    border: 1px solid rgba(0, 0, 0, 0.1) !important; /* হালকা কালো border */
   
}



/* Hero Section Social Media Buttons - Same as Contact Section */
.hero-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: rgba(136, 18, 18, 0.527) !important;
    color: var(--text-primary) !important;
    transition: var(--transition);
    animation: bounceIn 1s ease-out;
}

/* Light mode default for hero social */
.light-mode .hero-social a {
    background: rgba(48, 41, 41, 0.308) !important;
    color: #ff0000 !important;
}

/* Hero Social Media Hover States with Original Colors */

/* GitHub - Original Color on Hover */
.hero-social a[href*="github"]:hover {
    background: #000000 !important; /* GitHub Black */
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
}

/* YouTube - Original Color on Hover */
.hero-social a[href*="youtube"]:hover {
    background: #ff0000 !important; /* YouTube Red */
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
}

/* Facebook - Original Color on Hover */
.hero-social a[href*="facebook"]:hover {
    background: #1877f2 !important; /* Facebook Blue */
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
}

/* LinkedIn - Original Color on Hover */
.hero-social a[href*="linkedin"]:hover {
    background: #0077b5 !important; /* LinkedIn Blue */
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
}

/* Instagram - Original Color on Hover */
.hero-social a[href*="instagram.com"]:hover {
    background: linear-gradient(45deg, 
        #405DE6, 
        #5851DB, 
        #833AB4, 
        #C13584, 
        #E1306C, 
        #FD1D1D, 
        #F56040, 
        #F77737, 
        #FCAF45, 
        #FFDC80
    ) !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
}

/* Light mode hover states for hero social */
.light-mode .hero-social a[href*="github"]:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

.light-mode .hero-social a[href*="youtube"]:hover {
    background: #ff0000 !important;
    color: #ffffff !important;
}

.light-mode .hero-social a[href*="facebook"]:hover {
    background: #1877f2 !important;
    color: #ffffff !important;
}

.light-mode .hero-social a[href*="linkedin"]:hover {
    background: #0077b5 !important;
    color: #ffffff !important;
}

.light-mode .hero-social a[href*="instagram.com"]:hover {
    background: linear-gradient(45deg, 
        #405DE6, 
        #5851DB, 
        #833AB4, 
        #C13584, 
        #E1306C, 
        #FD1D1D, 
        #F56040, 
        #F77737, 
        #FCAF45, 
        #FFDC80
    ) !important;
    color: #ffffff !important;
}









/* Profile Image with Glow */
.profile-glow {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    position: relative;
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 107, 0.15), transparent 50%);
    box-shadow: 
        0 0 80px rgba(7, 39, 107, 0.616),
        0 20px 60px rgba(2, 6, 12, 0.6);
    animation: scaleIn 1s ease-out 0.5s both, float 6s ease-in-out infinite;
}

.profile-glow img {
    width: 86%;
    height: 86%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: block;
}
.profile-card {
    margin-top: 20px;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}
/* About Section */
.about {
    background-color: var(--secondary-bg);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 18px;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    animation: fadeInLeft 1s ease-out;
    transition: var(--transition);
}
.feature-list li:hover {
    transform: translateX(10px);
    color: var(--accent-color2);
}
.feature-list i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
    color: #021018;
    transition: var(--transition);
}
.feature-list li:hover i {
    transform: scale(1.1) rotate(10deg);
}
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.stat {
    text-align: center;
    animation: pulse 2s infinite;
}
.stat h4 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}
/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}
.skill h4 {
    margin-bottom: 8px;
    color: var(--accent-color);
}
.skill ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
}
.skill ul li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
}
.skill ul li:hover {
    transform: translateX(5px);
    color: var(--accent-color2);
}
.light-mode .skill ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
/* Projects Section */
.projects {
    background-color: var(--secondary-bg);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.project .proj-media {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: var(--transition);
    overflow: hidden;
    animation: zoomIn 0.8s ease-out;
}
.project .proj-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}
.project:hover .proj-media {
    transform: scale(1.02);
}
.project:hover .proj-media img {
    transform: scale(1.1);
}
.proj-body h3 {
    color: var(--accent-color2);
}
.proj-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}
.btn.small {
    padding: 8px 12px;
    font-size: 14px;
}
/* Experience Section */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.timeline-item h4 {
    margin: 0;
    color: var(--accent-color);
}
.timeline-item p {
    margin: 6px 0;
    color: var(--text-secondary);
}
/* Light mode Experience text color - Light Red */
.light-mode .timeline-item p {
    color: #e53e3e !important; /* Light Red */
}
.light-mode .timeline-item .muted {
    color: #c53030 !important; /* Darker Red for muted text */
}
/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
/* Interests Section */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.interest {
    text-align: center;
    animation: bounceIn 1s ease-out;
    transition: var(--transition);
}
.interest:hover {
    transform: translateY(-10px) scale(1.05);
}
.interest i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    transition: var(--transition);
}
.interest:hover i {
    color: var(--accent-color2);
    transform: scale(1.2) rotate(15deg);
}
/* Light mode Personal Interests text color - Light Red */
.light-mode .interest p {
    color: #e53e3e !important; /* Light Red */
}















/* Contact Section */
.contact {
    background-color: var(--secondary-bg);
}
.contact-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 20px;
    align-items: start;
}
.contact-card .contact-info p {
    margin: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}
.contact-card .contact-info p:hover {
    color: var(--accent-color2);
    transform: translateX(5px);
}
.contact-card .social {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.contact-card .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    transition: var(--transition);
    animation: bounceIn 1s ease-out;
}

/* Default state - White/Gray icons */
.contact-card .social a {
    background: rgba(148, 0, 0, 0.479) !important;
    color: var(--text-primary) !important;
}

/* Light mode default */
.light-mode .contact-card .social a {
    background: rgba(54, 54, 54, 0.438) !important;
    color: #000000 !important;
}

/* Hover states with original colors */

/* GitHub - Original Color on Hover */
.contact-card .social a[href*="github"]:hover {
    background: #000000 !important; /* GitHub Black */
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
}

/* YouTube - Original Color on Hover */
.contact-card .social a[href*="youtube"]:hover {
    background: #ff0000 !important; /* YouTube Red */
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
}

/* Facebook - Original Color on Hover */
.contact-card .social a[href*="facebook"]:hover {
    background: #1877f2 !important; /* Facebook Blue */
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
}

/* LinkedIn - Original Color on Hover */
.contact-card .social a[href*="linkedin"]:hover {
    background: #0077b5 !important; /* LinkedIn Blue */
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
}

/* Instagram Fix with exact href matching */
.contact-card .social a[href*="instagram.com"]:hover {
    background: linear-gradient(45deg, 
        #405DE6, 
        #5851DB, 
        #833AB4, 
        #C13584, 
        #E1306C, 
        #FD1D1D, 
        #F56040, 
        #F77737, 
        #FCAF45, 
        #FFDC80
    ) !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
}

/* Light mode hover states */
.light-mode .contact-card .social a[href*="github"]:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

.light-mode .contact-card .social a[href*="youtube"]:hover {
    background: #ff0000 !important;
    color: #ffffff !important;
}

.light-mode .contact-card .social a[href*="facebook"]:hover {
    background: #1877f2 !important;
    color: #ffffff !important;
}

.light-mode .contact-card .social a[href*="linkedin"]:hover {
    background: #0077b5 !important;
    color: #ffffff !important;
}

.light-mode .contact-card .social a[href*="instagram.com"]:hover {
    background: linear-gradient(45deg, 
        #405DE6, 
        #5851DB, 
        #833AB4, 
        #C13584, 
        #E1306C, 
        #FD1D1D, 
        #F56040, 
        #F77737, 
        #FCAF45, 
        #FFDC80
    ) !important;
    color: #ffffff !important;
}



/* Form */
form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}
form input, form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.288);
    background: transparent;
    color: var(--text-primary);
    resize: vertical;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}
.light-mode form input, .light-mode form textarea {
    border: 1px solid rgba(0, 0, 0, 0.1);
}
form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(0, 230, 168, 0.1);
}
form textarea {
    min-height: 130px;
}
/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 40px;
    animation: fadeInUp 1s ease-out;
}
.light-mode footer {
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    color: #718096 !important; /* Light gray blur color */
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Remove Md. Amran from footer */
.footer-logo {
    display: none !important;
}
.footer-links {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}
.light-mode .footer-links a {
    color: #032e6e !important;
}
.light-mode .footer-links a:hover {
    color: var(--accent-color) !important;
}
.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.light-mode .copyright {
    color: #718096 !important;
}
/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.show {
    opacity: 1;
    transform: none;
}
/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
/* ========== SMOOTH SCROLL STYLES ========== */
/* Enhanced smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--primary-bg);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), var(--accent-color2));
    border-radius: 10px;
    border: 2px solid var(--primary-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-hover), var(--accent-color2));
    transform: scale(1.1);
}
/* Smooth scroll for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--primary-bg);
}
/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
/* For users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
   
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ========== SWEET ALERT & FORM STYLES ========== */
/* SweetAlert Custom Styling */
.custom-swal-popup {
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    border-radius: var(--border-radius) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)) !important;
    animation: scaleIn 0.3s ease-out !important;
}
.swal2-title {
    color: var(--text-primary) !important;
    font-family: 'Poppins', sans-serif !important;
}
.swal2-html-container {
    color: var(--text-secondary) !important;
    font-family: 'Poppins', sans-serif !important;
}
.swal2-confirm {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2)) !important;
    color: #021018 !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    transition: var(--transition) !important;
}
.swal2-confirm:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(0, 230, 168, 0.4) !important;
}
.swal2-error {
    border-color: #ff4444 !important;
}
.swal2-success {
    border-color: var(--accent-color) !important;
}
/* Light mode SweetAlert styles */
.light-mode .custom-swal-popup {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(32, 31, 31, 0.322) !important;
}
/* Form validation styles */
form input:valid,
form textarea:valid {
    border-color:  rgb(26, 180, 26) !important;
}
form input:invalid:not(:focus):not(:placeholder-shown),
form textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff4444 !important;
    animation: shake 0.5s ease-in-out;
}
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}
/* Form focus styles */
form input:focus,
form textarea:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(43, 20, 20, 0.288) !important;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}


/* সব non-required input এর valid স্টাইল বন্ধ */
form input:not([required]):valid,
form textarea:not([required]):valid {
    border-color: rgba(255, 255, 255, 0.26) !important;
}

.light-mode form input:not([required]):valid,
.light-mode form textarea:not([required]):valid {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ========== MOBILE RESPONSIVE STYLES ========== */
/* Tablet Styles */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
   
    .hero-content {
        grid-template-columns: 1fr 360px;
    }
   
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
   
    .projects-grid {
        grid-template-columns: 1fr;
    }
   
    .contact-grid {
        grid-template-columns: 350px 1fr;
    }
}
/* Mobile Styles */
@media (max-width: 768px) {
    html {
        font-size: 14px;
        scroll-padding-top: 70px;
    }
   
    .container {
        width: 95%;
        padding: 0 15px;
    }
   
    /* Mobile: Hide specific navigation items */
    .nav-links li:nth-child(1), /* Home */
    .nav-links li:nth-child(2), /* About */
    .nav-links li:nth-child(3) { /* Skills */
        display: none;
    }
   
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
   
    .nav-links a {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
   
    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0 !important;
        text-align: center;
    }
   
    .headline {
        font-size: 32px !important;
        text-align: center;
    }
   
    .typing-wrap {
        justify-content: center;
    }
   
    .typed {
        font-size: 1.2rem;
    }
   
    .lead {
        text-align: center;
        font-size: 0.95rem;
    }
   
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
   
    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
   
    .profile-glow {
        width: 220px !important;
        height: 220px !important;
    }
   
    .about-grid {
        grid-template-columns: 1fr;
        padding-top: 10px;
    }
   
    .contact-grid {
        grid-template-columns: 1fr;
    }
   
    section {
        padding: 60px 0 !important;
    }
   
    h1 {
        font-size: 2.2rem !important;
    }
   
    h2 {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }
   
    /* Skills grid for mobile */
    .skills-container {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
   
    /* Interests grid for mobile */
    .interests-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
   
    /* Awards grid for mobile */
    .awards-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
   
    /* Card padding for mobile */
    .card {
        padding: 20px 15px;
    }
   
    .hero-social {
        justify-content: center;
    }
}
/* Small Mobile Styles */
@media (max-width: 480px) {
    html {
        font-size: 13px;
        scroll-padding-top: 60px;
    }
   
    .container {
        width: 100%;
        padding: 0 10px;
    }
   
    h1 {
        font-size: 1.8rem !important;
    }
   
    h2 {
        font-size: 1.5rem !important;
    }
   
    .headline {
        font-size: 24px !important;
    }
   
    .profile-glow {
        width: 180px !important;
        height: 180px !important;
    }
   
    .interests-grid {
        grid-template-columns: 1fr !important;
    }
   
    /* Footer links */
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
   
    .proj-actions {
        flex-direction: column;
    }
   
    .btn.small {
        width: 100%;
    }
}
/* Very Small Mobile Styles */
@media (max-width: 360px) {
    .profile-glow {
        width: 150px !important;
        height: 150px !important;
    }
   
    .headline {
        font-size: 22px !important;
    }
   
    .hero-cta .btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}
/* ========== SWEET ALERT FIX STYLES ========== */
/* Sweet Alert Custom Styling */
.custom-swal-popup {
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    border-radius: var(--border-radius) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)) !important;
}
.swal2-title {
    color: var(--text-primary) !important;
    font-family: 'Poppins', sans-serif !important;
}
.swal2-html-container {
    color: var(--text-secondary) !important;
    font-family: 'Poppins', sans-serif !important;
}
/* Sweet Alert Confirm Button Fix */
.swal-confirm-btn {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2)) !important;
    color: #021018 !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    transition: var(--transition) !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    margin: 0 10px !important;
}
.swal-confirm-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(0, 230, 168, 0.4) !important;
}
/* Ensure SweetAlert z-index is proper */
.swal2-container {
    z-index: 10000 !important;
}
/* Fix for SweetAlert backdrop */
.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.5) !important;
}
/* Light mode SweetAlert styles */
.light-mode .custom-swal-popup {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
/* Sweet Alert animations */
.swal2-show {
    animation: swal2-show 0.3s !important;
}
.swal2-hide {
    animation: swal2-hide 0.15s !important;
}
@keyframes swal2-show {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes swal2-hide {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}
/* Fix button focus states */
.swal-confirm-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.5) !important;
}
/* ========== MOBILE HEADER CLEANUP ========== */
@media (max-width: 768px) {
    /* Mobile: Hide specific navigation items for cleaner look */
    .nav-links li:nth-child(4), /* Projects */
    .nav-links li:nth-child(5), /* Experience */
    .nav-links li:nth-child(6), /* Awards */
    .nav-links li:nth-child(7), /* Interests */
    .nav-links li:nth-child(8) { /* Contact */
        display: none;
    }
   
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
   
    .nav-links a {
        padding: 6px 10px;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        transition: var(--transition);
    }
   
    .nav-links a:hover {
        background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
        color: #041722;
        transform: translateY(-2px);
    }
}
/* ========== MOBILE FOOTER CLEANUP ========== */
@media (max-width: 768px) {
    /* Mobile: Hide all footer links */
    .footer-links {
        display: none !important;
    }
   
    /* Center the copyright text */
    .footer-content {
        text-align: center;
    }
   
    .copyright {
        margin-top: 10px;
        font-size: 0.9rem;
    }
}
/* ========== LIGHT MODE SKILLS & SECTIONS STYLING ========== */
/* Light mode Skills section headings - Red Color */
.light-mode .skill h4 {
    color: #e53e3e !important; /* Red color for skill headings */
    font-weight: 700;
}
/* Light mode Skills section background */
.light-mode .skills {
    background-color: #d9d9d9 !important; /* Light gray background */
}
/* Light mode Experience section background */
.light-mode .experience {
    background-color: #d9d9d9 !important; /* Light gray background */
}
/* Light mode Interests section background */
.light-mode .interests {
    background-color: #d9d9d9 !important; /* Light gray background */
}
/* Light mode specific styling for better contrast */
.light-mode .skills .card,
.light-mode .experience .card,
.light-mode .interests .card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}
/* Light mode skill list items styling */
.light-mode .skill ul li {
    color: #2d3748 !important; /* Dark text for better readability */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.light-mode .skill ul li:hover {
    color: #e53e3e !important; /* Red color on hover */
    transform: translateX(5px);
}
/* Light mode section headings styling */
.light-mode .skills h2,
.light-mode .experience h2,
.light-mode .interests h2 {
    color: #1a365d !important; /* Dark blue for section titles */
}
/* Light mode section underline */
.light-mode .skills h2::after,
.light-mode .experience h2::after,
.light-mode .interests h2::after {
    background: linear-gradient(90deg, #e53e3e, #c53030) !important; /* Red gradient underline */
}
/* ========== LIGHT MODE SECTION UNDERLINES & EXPERIENCE TEXT ========== */
/* Light mode section underlines - Same as Awards section */
.light-mode .skills h2::after,
.light-mode .experience h2::after,
.light-mode .interests h2::after {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2)) !important; /* Same as Awards section */
}
/* Light mode experience institution names - Blue Color */
.light-mode .timeline-item h4 {
    color: #3182ce !important; /* Blue color for institution names */
    font-weight: 700;
}
/* Light mode experience text styling */
.light-mode .timeline-item p:not(.muted) {
    color: #2d3748 !important; /* Dark color for description text */
}
/* Light mode muted text in experience */
.light-mode .timeline-item .muted {
    color: #718096 !important; /* Gray color for dates */
    font-weight: 500;
}
/* Light mode experience card hover effect */
.light-mode .timeline-item.card:hover h4 {
    color: #0d1c2b !important; /* Darker blue on hover */
    transition: var(--transition);
}
/* ========== LIGHT MODE FOOTER STYLING ========== */
/* Light mode footer background color */
.light-mode footer {
    background-color: #f8fafc !important; /* Light gray background */
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}
/* Light mode footer text colors for better contrast */
.light-mode .copyright {
    color: #64748b !important; /* Slate gray for copyright */
}
/* Light mode footer links styling */
.light-mode .footer-links a {
    color: #475569 !important; /* Darker gray for links */
}
.light-mode .footer-links a:hover {
    color: #ff0000 !important; /* Accent color on hover */
    transform: translateY(-2px);
}
/* Light mode footer social icons */
.light-mode .footer-social a {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #475569 !important;
}
.light-mode .footer-social a:hover {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2)) !important;
    color: #021018 !important;
}
/* ========== COMPREHENSIVE HOVER FIX FOR SPECIFIC SECTIONS ========== */
/* Force hover for all cards in experience section */
section.experience .card,
section.experience .timeline-item {
    transition: all 0.4s ease !important;
}
section.experience .card:hover,
section.experience .timeline-item:hover {
    transform: translateY(-5px) !important;
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important; */ /* Replaced by ::after shadow */
   
}
/* Force hover for all cards in interests section */
section.interests .card,
section.interests .interest {
    transition: all 0.4s ease !important;
}
section.interests .card:hover,
section.interests .interest:hover {
    transform: translateY(-5px) !important;
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important; */ /* Replaced by ::after shadow */
   
}
/* Specific selector for timeline items */
#experience .timeline-item.card {
    transition: all 0.4s ease !important;
}
#experience .timeline-item.card:hover {
    transform: translateY(-5px) !important;
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important; */ /* Replaced by ::after shadow */
   
}
/* Specific selector for interest items */
#interests .interest.card {
    transition: all 0.4s ease !important;
}
#interests .interest.card:hover {
    transform: translateY(-5px) !important;
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important; */ /* Replaced by ::after shadow */
   
}
/* ========== SKILLS & EXPERTISE HOVER ANIMATIONS ========== */
/* Skills section container hover */
.skills {
    transition: var(--transition);
}
.skills:hover {
    transform: translateY(-2px);
}
/* Skills container grid */
.skills-container {
    transition: var(--transition);
}
/* Individual skill cards hover effects */
.skill {
    transition: all 0.4s cubic-bezier(0.22, 0.9, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.skill:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(2, 6, 12, 0.8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)) !important;
    border-color: rgba(0, 230, 168, 0.3) !important;
}
/* Skill card header hover */
.skill:hover h4 {
    color: var(--accent-color2) !important;
    transform: translateX(5px);
}
/* Skill list items hover */
.skill ul li {
    transition: all 0.3s ease;
    position: relative;
    padding-left: 5px;
}
.skill ul li:hover {
    transform: translateX(10px);
    color: var(--accent-color2) !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding-left: 15px;
}
.skill ul li:hover::before {
    content: '▸';
    position: absolute;
    left: 5px;
    color: var(--accent-color);
    font-weight: bold;
}
/* Light mode specific skills hover */
.light-mode .skill:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 230, 168, 0.2) !important;
}
.light-mode .skill:hover h4 {
    color: #c53030 !important; /* Darker red on hover */
}
.light-mode .skill ul li:hover {
    color: #e53e3e !important; /* Red color on hover */
    background: rgba(0, 230, 168, 0.1);
}
.light-mode .skill ul li:hover::before {
    color: #e53e3e;
}
/* Skills section title hover */
.skills h2 {
    transition: var(--transition);
}
.skills h2:hover {
    transform: scale(1.05);
}
.skills h2:hover::after {
    width: 120px;
    background: linear-gradient(90deg, var(--accent-color2), var(--accent-color)) !important;
}
/* Light mode skills title hover */
.light-mode .skills h2:hover::after {
    background: linear-gradient(90deg, #c53030, #e53e3e) !important;
}
/* Skills container grid animation */
.skills-container:hover .skill {
    transition-delay: calc(var(--i, 0) * 0.1s);
}
/* Individual skill card animations */
.skill:nth-child(1):hover { transition-delay: 0s; }
.skill:nth-child(2):hover { transition-delay: 0.1s; }
.skill:nth-child(3):hover { transition-delay: 0.2s; }
/* Pulse animation on skill icons */
.skill h4::before {
    content: '⚡';
    margin-right: 8px;
    opacity: 0;
    transition: var(--transition);
}
.skill:hover h4::before {
    opacity: 1;
    transform: scale(1.2);
    color: var(--accent-color);
}
/* Light mode skill icon */
.light-mode .skill:hover h4::before {
    color: #e53e3e;
}
/* Skills background glow effect */
.skill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 230, 168, 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    border-radius: var(--border-radius);
}
.skill:hover::after {
    opacity: 1;
    animation: skillGlow 2s ease-in-out infinite;
}
@keyframes skillGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}
/* Mobile responsive skills hover */
@media (max-width: 768px) {
    .skill:hover {
        transform: translateY(-5px) scale(1.01);
    }
   
    .skill ul li:hover {
        transform: translateX(5px);
    }
}
/* ========== EXPERIENCE & INTERESTS SHADOW EFFECTS - FIXED ========== */
/* 1. মূল কার্ড থেকে ব্যাকগ্রাউন্ড সরিয়ে ফেলা হলো */
.experience .timeline-item,
.interests .interest {
    transition: all 0.4s cubic-bezier(0.22, 0.9, 0.3, 1);
    box-shadow: none !important; /* মূল শ্যাডো বাদ দেয়া হলো, কারণ আমরা ::after ব্যবহার করবো */
    border: none !important; /* বর্ডার ::before-এ দেয়া হবে */
    background: transparent !important; /* খুবই গুরুত্বপূর্ণ: ব্যাকগ্রাউন্ড شفاف করা হলো */
    position: relative;
    z-index: 1;
}
/* 2. কার্ডের ভেতরের কন্টেন্টকে সবার উপরে আনা হলো */
.experience .timeline-item > *,
.interests .interest > * {
    position: relative;
    z-index: 3;
}
/* 3. ::before কে ব্যাকগ্রাউন্ড লেয়ার হিসেবে ব্যবহার করা হলো (লেয়ার ২) */
.experience .timeline-item::before,
.interests .interest::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: var(--border-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
/* 4. ::after কে শ্যাডো লেয়ার হিসেবে ব্যবহার করা হলো (লেয়ার ১) */
.experience .timeline-item::after,
.interests .interest::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    bottom: -15px;
    background: rgba(2, 6, 12, 0.6);
    border-radius: var(--border-radius);
    filter: blur(25px);
    z-index: 1; /* ব্যাকগ্রাউন্ডের নিচে থাকবে */
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateZ(0);
}
/* 5. Hover ইফেক্টগুলো ঠিক করা */
.experience .timeline-item:hover,
.interests .interest:hover {
    transform: translateY(-8px); /* কার্ডটি উপরে উঠবে */
}
/* Hover: ব্যাকগ্রাউন্ড পরিবর্তন (লেয়ার ২) */
.experience .timeline-item:hover::before,
.interests .interest:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-color: rgba(0, 230, 168, 0.3);
}
/* Hover: শ্যাডো দৃশ্যমান করা (লেয়ার ১) */
.experience .timeline-item:hover::after,
.interests .interest:hover::after {
    opacity: 0.9;
    transform: translateZ(0) scale(0.95);
}
/* 6. Light Mode-এর জন্য ফিক্স */
.light-mode .experience .timeline-item::before,
.light-mode .interests .interest::before {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.light-mode .experience .timeline-item:hover::before,
.light-mode .interests .interest:hover::before {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 230, 168, 0.2);
}
.light-mode .experience .timeline-item::after,
.light-mode .interests .interest::after {
    background: rgba(0, 0, 0, 0.3);
    filter: blur(20px);
}
/* 7. মোবাইল রেসপন্সিভ শ্যাডো ফিক্স (আগের কোডের অংশ) */
@media (max-width: 768px) {
    .experience .timeline-item:hover,
    .interests .interest:hover {
        transform: translateY(-5px);
    }
   
    .experience .timeline-item::after,
    .interests .interest::after {
        top: 15px;
        left: 8px;
        right: 8px;
        bottom: -10px;
        filter: blur(20px);
    }
   
    .light-mode .experience .timeline-item::after,
    .light-mode .interests .interest::after {
        background: rgba(0, 0, 0, 0.25);
        filter: blur(15px);
    }
}
@media (max-width: 480px) {
    .experience .timeline-item::after,
    .interests .interest::after {
        top: 12px;
        left: 5px;
        right: 5px;
        bottom: -8px;
        filter: blur(15px);
    }
}
/* ========== LIVE MAP STYLES ========== */
.map-card {
    grid-column: 1 / -1;
    margin-top: 20px;
}
.map-card h3 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--accent-color2);
    font-size: 1.3rem;
}
#liveMap {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
}
.light-mode #liveMap {
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.map-card .muted {
    margin-top: 12px !important;
    font-size: 0.9rem;
    text-align: center;
}
/* Mobile responsive map */
@media (max-width: 768px) {
    #liveMap {
        height: 180px;
    }
}
@media (max-width: 480px) {
    #liveMap {
        height: 150px;
    }
   
    .map-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
}
/* Mobile responsive map */
@media (max-width: 768px) {
    #liveMap {
        height: 250px; /* Mobile-এও choto */
    }
}
@media (max-width: 480px) {
    #liveMap {
        height: 200px; /* আরও choto */
    }
}
/* Mobile responsive map */
@media (max-width: 768px) {
    #liveMap {
        height: 300px; /* Mobile-এও বড় */
    }
}
@media (max-width: 480px) {
    #liveMap {
        height: 250px;
    }
}
/* Email Link Styles */
.contact-info a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    border-bottom: 1px dotted transparent;
}
.contact-info a:hover {
    color: var(--accent-color2) !important;
    border-bottom-color: var(--accent-color2);
    transform: translateX(3px);
}
.light-mode .contact-info a {
    color: #2d3748 !important;
}
.light-mode .contact-info a:hover {
    color: #ff0000 !important;
}
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
}
.map-container p {
    text-align: center;
    padding: 15px;
    margin: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}
/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--card-bg);
        padding: 80px 20px 20px;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
   
    .nav-links.active {
        right: 0;
    }
   
    .nav-links li {
        margin: 10px 0;
    }
   
    .nav-links a {
        display: block;
        padding: 12px 15px;
        border-radius: 8px;
        transition: var(--transition);
    }
   
    .nav-links a:hover {
        background: var(--primary-color);
        color: white;
    }
   
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
    }
   
    /* Map responsive fixes */
    .map-container {
        border-radius: 12px;
        overflow: hidden;
        margin: 20px 0;
    }
   
    .map-iframe {
        width: 100%;
        height: 300px;
        border: 0;
    }
}
@media (max-width: 480px) {
    .map-iframe {
        height: 250px;
    }
   
    .nav-links {
        width: 100%;
    }
}
/* Desktop Navigation */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
   
    .nav-links {
        display: flex;
        gap: 30px;
    }
}
/* Common Styles */
.menu-toggle {
    display: none;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.overlay.active {
    display: block;
}
/* Map Section Styles */
#location {
    padding: 80px 0;
    background: var(--section-bg);
}
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
}
.map-iframe {
    width: 100%;
    border: 0;
    display: block;
}
/* Hide Home button from navigation */
.nav-links li:first-child,
.nav-links a[href="#home"] {
    display: none !important;
}
/* Adjust navigation spacing after hiding home */
.nav-links {
    gap: 18px;
}
/* Mobile navigation home button hide */
@media (max-width: 768px) {
    .nav-links li:first-child,
    .nav-links a[href="#home"] {
        display: none !important;
    }
   
    /* Adjust mobile nav spacing */
    .nav-links {
        gap: 10px;
    }
}
/* Footer home link hide */
.footer-links a[href="#home"],
.footer-links a[href="/"],
.footer-links a:first-child {
    display: none !important;
}
/* Adjust footer links spacing */
.footer-links {
    gap: 20px;
}
/* Smooth scroll for entire website */
html {
    scroll-behavior: smooth;
}
/* Optional: Make projects section scroll extra smooth */
.projects {
    scroll-behavior: smooth;
}
/* Fix Featured Projects scroll */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    overflow: visible !important; /* Remove scroll */
    scroll-behavior: auto !important;
}
/* Remove any horizontal scroll */
.projects {
    overflow: hidden !important;
}
/* Ensure projects don't cause overflow */
.project {
    width: 100%;
    max-width: 100%;
}
/* Mobile responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        overflow: visible !important;
    }
   
    .project {
        margin: 0;
        width: 100%;
    }
}
/* ========== PROJECT MODAL STYLES ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}
.modal-content {
    background: linear-gradient(180deg, var(--card-bg), rgba(255,255,255,0.02));
    margin: 2% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    animation: slideUp 0.4s ease;
    position: relative;
}
.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.close-modal:hover {
    color: var(--accent-color);
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}
.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
}
.modal-header h3 {
    margin: 0;
    color: var(--accent-color2);
    font-size: 1.8rem;
}
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}
.modal-gallery img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: var(--transition);
}
.image-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    border: 2px solid transparent;
}
.thumb:hover, .thumb.active {
    opacity: 1;
    border-color: var(--accent-color);
    transform: scale(1.1);
}
.modal-details h4 {
    color: var(--accent-color);
    margin: 20px 0 10px;
}
.modal-details h4:first-child {
    margin-top: 0;
}
.project-features ul {
    list-style: none;
    padding: 0;
}
.project-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    padding-left: 20px;
}
.project-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}
.tech-tag {
    background: rgba(0, 230, 168, 0.1);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 230, 168, 0.3);
}
.project-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
/* Light mode modal styles */
.light-mode .modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.light-mode .project-features li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
   
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
   
    .modal-header {
        padding: 20px 20px 15px;
    }
   
    .project-links {
        flex-direction: column;
    }
   
    .project-links .btn {
        width: 100%;
        text-align: center;
    }
}
/* Project Modal Button Styles */
.proj-actions .btn {
    cursor: pointer;
}
/* Hide buttons when links are not available */
.project-links a[style*="display: none"] {
    display: none !important;
}
/* Modal backdrop fix */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}
.modal-content {
    background: linear-gradient(180deg, var(--card-bg), rgba(255,255,255,0.02));
    margin: 2% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    animation: slideUp 0.4s ease;
    position: relative;
}
/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* ========== LIGHT MODE MODAL FIXES ========== */
.light-mode .modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}
.light-mode .modal-header {
    background: linear-gradient(135deg, rgba(0, 230, 168, 0.05), transparent) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.light-mode .modal-header h3 {
    color: #1a365d !important; /* Dark blue for title */
}
.light-mode .modal-header .muted {
    color: #4a5568 !important; /* Dark gray for subtitle */
}
.light-mode .modal-details h4 {
    color: #2d3748 !important; /* Dark color for headings */
}
.light-mode .modal-details p {
    color: #4a5568 !important; /* Dark gray for paragraphs */
}
.light-mode .project-features li {
    color: #4a5568 !important; /* Dark gray for features */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.light-mode .project-features li:before {
    color: #00e6a8 !important; /* Accent color for checkmarks */
}
.light-mode .tech-tag {
    background: rgba(0, 230, 168, 0.1) !important;
    color: #2d3748 !important; /* Dark text for tech tags */
    border: 1px solid rgba(0, 230, 168, 0.3) !important;
}
.light-mode .close-modal {
    color: #4a5568 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}
.light-mode .close-modal:hover {
    color: #e53e3e !important;
    background: rgba(0, 0, 0, 0.1) !important;
}
/* Light mode modal buttons */
.light-mode .project-links .btn {
    color: #1a365d !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.light-mode .project-links .btn:hover {
    color: #021018 !important;
}
/* Light mode image thumbnail border */
.light-mode .thumb {
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
}
.light-mode .thumb:hover,
.light-mode .thumb.active {
    border-color: #00e6a8 !important;
}
/* Light mode SweetAlert in modal */
.light-mode .custom-swal-popup {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.light-mode .swal2-title {
    color: #1a365d !important;
}
.light-mode .swal2-html-container {
    color: #4a5568 !important;
}
/* Light mode modal scrollbar */
.light-mode .modal-content::-webkit-scrollbar-track {
    background: #f7fafc !important;
}
.light-mode .modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00e6a8, #00b3ff) !important;
}
/* Modal backdrop for light mode */
.light-mode .modal {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
}
/* Additional text contrast fixes */
.light-mode .modal-body {
    color: #2d3748 !important;
}
.light-mode .modal-details {
    color: #4a5568 !important;
}
/* Ensure all text is visible in light mode */
.light-mode #modalTitle,
.light-mode #modalSubtitle,
.light-mode #modalDescription {
    color: #2d3748 !important;
}
.light-mode .project-features h4,
.light-mode .project-tech h4 {
    color: #1a365d !important;
}
/* Code blocks in light mode */
.light-mode code {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #2d3748 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
/* ========== MODAL SMOOTH SCROLL FIX ========== */
html {
    scrollbar-gutter: stable; /* Prevent layout shift when scrollbar disappears */
}
body {
    overflow-x: hidden;
}
/* Modal open的时候 smooth transition */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    /* Prevent scrollbar jump */
    overflow: hidden;
}
/* Modal content smooth animation */
.modal-content {
    background: linear-gradient(180deg, var(--card-bg), rgba(255,255,255,0.02));
    margin: 2% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    animation: smoothSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    transform: translateZ(0); /* Hardware acceleration */
}
/* Smooth animation for modal */
@keyframes smoothSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* Body scroll lock without layout shift */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}
/* Alternative method for scroll lock */
.body-scroll-lock {
    overflow: hidden;
    padding-right: 15px; /* Compensate for scrollbar width */
}
/* Smooth scrollbar for webkit browsers */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), var(--accent-color2));
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-hover), var(--accent-color2));
}
/* Mobile responsive fixes */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
        animation: smoothSlideUpMobile 0.4s ease;
    }
   
    @keyframes smoothSlideUpMobile {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
   
    /* No padding compensation on mobile */
    .body-scroll-lock {
        padding-right: 0;
    }
}
/* Simple fix that works in most cases */
@media (max-width: 480px) {
    .swal2-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
   
    .swal2-actions button {
        width: 100% !important;
        margin: 2px 0 !important;
    }
}


/* শুধু গ্রিন স্ট্রোক/গ্লো বন্ধ করতে */
section.interests .interest:hover,
section.experience .timeline-item:hover,
section.experience .card:hover {
    border-color: var(--glass-border) !important;
}

/* Light mode এর জন্য */
.light-mode section.interests .interest:hover,
.light-mode section.experience .timeline-item:hover,
.light-mode section.experience .card:hover {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Specific border color fixes */
.experience .timeline-item:hover::before,
.interests .interest:hover::before {
    border-color: var(--glass-border) !important;
}

.light-mode .experience .timeline-item:hover::before,
.light-mode .interests .interest:hover::before {
    border-color: rgba(0, 0, 0, 0.1) !important;
}



/* Skills & Expertise section - শুধু hover transform আর shadow রাখো */
.skill:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(2, 6, 12, 0.8) !important;
    background: transparent !important; /* Background effect বন্ধ */
    border-color: var(--glass-border) !important; /* Green stroke বন্ধ */
}

.light-mode .skill:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
    background: transparent !important; /* Background effect বন্ধ */
    border-color: rgba(0, 0, 0, 0.1) !important; /* Green stroke বন্ধ */
}

/* Personal Interests, Experience sections - শুধু hover transform আর shadow রাখো */
section.interests .interest:hover,
section.experience .timeline-item:hover,
section.experience .card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(5, 49, 114, 0.8) !important;
    background: transparent !important; /* Background effect বন্ধ */
    border-color: var(--glass-border) !important; /* Green stroke বন্ধ */
}

.light-mode section.interests .interest:hover,
.light-mode section.experience .timeline-item:hover,
.light-mode section.experience .card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.651) !important;
    background: transparent !important; /* Background effect বন্ধ */
    border-color: rgba(0, 0, 0, 0.1) !important; /* Green stroke বন্ধ */
}

/* Background glow effects বন্ধ করতে */
.skill:hover::after,
.experience .timeline-item:hover::after,
.interests .interest:hover::after {
    opacity: 0 !important;
    display: none !important;
}

.skill:hover::before,
.experience .timeline-item:hover::before,
.interests .interest:hover::before {
    background: transparent !important;
}





/* Interests section style hover effect সব sections এ apply করতে */
.skill:hover,
section.experience .timeline-item:hover,
section.experience .card:hover,
.project:hover,
.about .card:hover,
.awards-grid .card:hover,
.contact-card:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: 0 20px 40px rgba(6, 49, 114, 0.8) !important;
    border-color: var(--glass-border) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)) !important;
    transition: all 0.4s cubic-bezier(0.22, 0.9, 0.3, 1) !important;
}

/* Light mode এর জন্য */
.light-mode .skill:hover,
.light-mode section.experience .timeline-item:hover,
.light-mode section.experience .card:hover,
.light-mode .project:hover,
.light-mode .about .card:hover,
.light-mode .awards-grid .card:hover,
.light-mode .contact-card:hover {
    transform: translateY(-10px) scale(1.0) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.651) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98)) !important;
}

/* Skills section এর icons এর জন্য hover effect */
.skill:hover h4 {
    color: var(--accent-color2) !important;
    transform: translateX(5px);
    transition: var(--transition);
}

.skill:hover h4::before {
    opacity: 1;
    transform: scale(1.2);
    color: var(--accent-color);
}

/* Projects section এর images এর জন্য hover effect */
.project:hover .proj-media {
    transform: scale(1.01);
}

.project:hover .proj-media img {
    transform: scale(1.1);
}

/* Experience section এর text colors */
.timeline-item:hover h4 {
    color: var(--accent-color2) !important;
    transition: var(--transition);
}

/* Extra effects বন্ধ করতে */
.skill:hover::after,
.experience .timeline-item:hover::after,
.interests .interest:hover::after,
.project:hover::after {
    opacity: 0 !important;
    display: none !important;
}

.skill:hover::before,
.experience .timeline-item:hover::before,
.interests .interest:hover::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)) !important;
    border-color: var(--glass-border) !important;
}

.light-mode .skill:hover::before,
.light-mode .experience .timeline-item:hover::before,
.light-mode .interests .interest:hover::before {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98)) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}





/* Dark mode এ hover effect কমাতে */
:root {
    --hover-shadow-dark: 0 15px 30px rgba(6, 48, 139, 0.795); /* Dark mode এর জন্য কম shadow */
    --hover-shadow-light: 0 20px 40px rgba(0, 0, 0, 0.651); /* Light mode এর জন্য normal shadow */
}

/* Dark mode এ specific sections এর hover effect কমাতে */
.skill:hover,
.project:hover,
.contact-card:hover {
    transform: translateY(-4px) scale(1.0) !important; /* একটু কম transform */
    box-shadow: var(--hover-shadow-dark) !important; /* কম shadow */
}

/* Light mode এ normal রাখতে */
.light-mode .skill:hover,
.light-mode .project:hover,
.light-mode .contact-card:hover {
    transform: translateY(-4px) scale(1.0) !important; /* Normal transform */
    box-shadow: var(--hover-shadow-light) !important; /* Normal shadow */
}

/* Skills section specific dark mode fix */
.skill:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) !important;
}

.light-mode .skill:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98)) !important;
}

/* Projects section specific dark mode fix */
.project:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) !important;
}

.light-mode .project:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98)) !important;
}

/* Contact section specific dark mode fix */
.contact-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) !important;
}

.light-mode .contact-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98)) !important;
}

/* Extra glow effects বন্ধ করতে dark mode এ */
.skill:hover::after,
.project:hover::after,
.contact-card:hover::after {
    opacity: 0 !important;
    display: none !important;
}







/*=============== Education section hover effect smooth animation & shadow fixes =================/*

/* Smooth hover animation */
.education .timeline-item {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.education .timeline-item:hover {
    transform: translateY(-6px) scale(1.0) !important;
    box-shadow: 0 25px 50px rgba(6, 49, 114, 0.596) !important;
}

/* Light mode এ কালো shadow */
.light-mode .education .timeline-item {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.329) !important;
}

.light-mode .education .timeline-item:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.671) !important;
}



/* Mobile auto type (warp) specific fixes */

/* Dot only on mobile devices */
@media (max-width: 768px) {
    .typed::after {
        content: ' ।'; /* Space before dot - only on mobile */
        color: var(--accent-color2);
    }
    
    .typing-wrap {
        height: 35px;
        justify-content: center;
    }
    
    .typed {
        font-size: 1.2rem;
        min-width: 180px;
    }
    
    .cursor {
        font-size: 1.2rem;
    }
}
/* Mobile auto type flex */

@media (max-width: 768px) {
    .typing-wrap {
        height: 35px;
        justify-content: center;
    }
    
    .typed {
        font-size: 1rem;
        min-width: 180px;
    }
    
    .cursor {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .typing-wrap {
        height: 30px;
    }
    
    .typed {
        font-size: 1 rem;
        min-width: 160px;
    }
    
    .cursor {
        font-size: 1 rem;
    }
}