/* General Body and HTML Reset */
:root {
    --primary-color: #00ffff;
    /* Cyan */
    --secondary-color: #4A90E2;
    /* Blue */
    --text-color: #eee;
    --bg-color: #1a1a1a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(0, 255, 255, 0.3);
    --highlight-text: #00ffff;
    --shadow: 0 0 30px rgba(0, 255, 255, 0.1);
    --warning-bg: rgba(255, 255, 0, 0.1);
    --warning-border: #ffdd00;
    --warning-text: #ffdd00;
    --sidebar-bg: #1a1a1a;
    /* নতুন ভ্যারিয়েবল: সাইডবার/মেনুর ব্যাকগ্রাউন্ড */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

body {
    font-family: 'Signika', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background image for hero/main content */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.4);
    /* Darken the background */
    z-index: -1;
    transition: filter 0.5s ease;
}

/* যখন মেনু খোলা থাকবে, তখন বডির উপর ওভারলে */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    /* কালো সেমি-ট্রান্সপারেন্ট ওভারলে */
    z-index: 999;
    /* মেনুর ঠিক নিচে থাকবে, কিন্তু অন্যান্য কন্টেন্টের উপরে */
    display: block;
    transition: background-color 0.4s ease-in-out;
}

/* যখন মেনু খোলা থাকবে, তখন বডির স্ক্রল বন্ধ করতে */
body.menu-open {
    overflow: hidden;
}

/* Container for common sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.highlight {
    color: var(--primary-color);
}


/* --- Navbar Section --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    /* Darker background when scrolled */
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 3px #0ff);
    animation: rotate 6s linear infinite;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 8px #0ff, 0 0 15px #00ffff;
    letter-spacing: 2px;
}

.nav-links ul {
    list-style: none;
    display: flex;
}

.nav-links ul li {
    margin: 0 20px;
}

.nav-links ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links ul li a:hover::after,
.nav-links ul li a.active::after {
    width: 100%;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
    color: var(--primary-color);
}

.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
    z-index: 1001;
    /* মেনু আইকন মেনুর উপরে থাকবে */
}


/* --- Buttons Section --- */
.btn {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    background-color: #00cccc;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.5);
}

/* Secondary Button with left-side color slide */
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
}

/* --- Common Sections --- */
.common-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    /* Ensure content is above background image */
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 3rem 50px;
    text-align: center;
    color: var(--text-color);
}

.hero-content {
    flex: 1;
    min-width: 300px;
    margin-right: 3rem;
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: #bbb;
}

.hero-buttons .btn {
    margin-right: 1.5rem;
    margin-bottom: 10px;
    /* For responsiveness */
}

.hero-image {
    flex: 0 0 auto;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 7px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #0ff;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: src 0.5s ease-in-out;
    /* Added transition for image source change */
}

/* --- About Section --- */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.about-image {
    flex: 0 0 auto;
    width: 350px;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 25px #0ff;
    border: 5px solid var(--primary-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: justify;
}

.about-text h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.personal-details {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.personal-details p,
.personal-details a { /* Apply styles to both p and a */
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none; /* Remove underline for links */
    transition: color 0.3s ease;
}

.personal-details a:hover {
    color: var(--primary-color); /* Highlight on hover */
}

.personal-details p i,
.personal-details a i { /* Apply styles to icons within both p and a */
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 3rem;
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: var(--shadow);
}

.stat-item {
    text-align: center;
}

.stat-item span {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1rem;
    color: #bbb;
}


/* --- Education Section --- */
.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.edu-card {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    opacity: 0;
    /* For scroll reveal */
    transform: translateY(50px);
    /* For scroll reveal */
}

.edu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.4);
}

.edu-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.edu-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.edu-card .institution {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 5px;
}

.edu-card .years {
    font-size: 1rem;
    color: #999;
    margin-bottom: 15px;
}

.edu-card .description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}


/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    opacity: 0;
    /* For scroll reveal */
    transform: translateY(50px);
    /* For scroll reveal */
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 255, 255, 0.4);
}


.skill-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    /* Initial state for animation */
    transition: width 1.5s ease-out;
    /* Animate on load via JS */
    border-radius: 5px;
}

.skill-card span {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-color);
}


/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.4);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 20px 20px 10px;
}

.project-card .project-description {
    font-size: 1rem;
    color: var(--text-color);
    padding: 0 20px 20px;
    line-height: 1.6;
}

.project-links {
    padding: 0 20px 20px;
    display: flex;
    gap: 15px;
}

.project-card .btn {
    position: relative;
    display: inline-block;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #111;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 0 10px #00ffe7, 0 0 20px #00ffe7 inset;
}

.project-card .btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from 0deg,
            #00ffff);
    border-radius: 50px;
    animation: spin-border 4s linear infinite;
    z-index: -2;
}

.project-card .btn::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: #111;
    border-radius: 45px;
    z-index: -1;
}

.project-card .btn:hover {
    color: #00ffe1;
    transform: scale(1.08);
    box-shadow: 0 0 15px #00ffe1, 0 0 25px #00ffe1 inset;
}

@keyframes spin-border {
    0% {
        transform: rotate(0deg);
    }
    
    100% {
        transform: rotate(360deg);
    }
}

/* বাটনের ধারক */
.show-project {
  display: flex;
  justify-content: center; /* বাটনগুলোকে মাঝখানে রাখে */
  align-items: center;
  margin: 20px 0; /* উপরে ও নিচে মার্জিন */
  gap: 15px; /* দুটি বাটনের মধ্যে ফাঁকা স্থান */
}

/* সাধারণ বাটন স্টাইল */
.visit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px; /* আইকন এবং টেক্সটের মধ্যে ফাঁকা স্থান */
  padding: 16px 30px; /* বাটনের প্যাডিং */
  background: linear-gradient(135deg, #141e30, #243b55); /* গাঢ় নীল/ধূসর গ্রেডিয়েন্ট ব্যাকগ্রাউন্ড */
  color: #fff; /* টেক্সটের রঙ সাদা */
  border-radius: 12px; /* গোলাকার কোণা */
  text-decoration: none; /* আন্ডারলাইন সরিয়ে দেয় */
  font-family: 'Segoe UI', sans-serif; /* ফন্ট */
  font-size: 1.1rem; /* ফন্ট সাইজ */
  font-weight: bold; /* ফন্ট মোটা */
  box-shadow: 0 0 15px rgba(0,255,255,0.1); /* হালকা সায়ান শ্যাডো */
  transition: all 0.4s ease; /* সব ট্রানজিশনের জন্য */
  overflow: hidden; /* ভেতরের উপাদান বাটনের বাইরে যেন না যায় */
  border: 2px solid #00ffff20; /* হালকা সায়ান বর্ডার */
  cursor: pointer; /* কার্সার পয়েন্টার */
}

/* বাটন হোভার প্রভাব */
.visit:hover {
  transform: scale(1.05); /* হোভার করলে সামান্য বড় হয় */
  box-shadow: 0 0 30px #00ffff66; /* হোভারে শ্যাডো আরও উজ্জ্বল হয় */
  border-color: #00ffff; /* হোভারে বর্ডার সায়ান হয় */
  background: linear-gradient(135deg, #1f1f2e, #2a2d4a); /* হোভারে ব্যাকগ্রাউন্ড সামান্য পরিবর্তিত হয় */
  color: #00ffff; /* হোভারে টেক্সটের রঙ সায়ান হয় */
}

/* বাটনের ভেতরের আইকন */
.visit .icon {
  font-size: 1.3rem; /* আইকনের সাইজ */
  transition: transform 0.3s ease; /* আইকন ট্রানজিশন */
}

/* হোভার করলে আইকনের প্রভাব */
.visit:hover .icon {
  transform: translateX(6px) rotate(10deg); /* হোভার করলে আইকন সামান্য ডানে সরে ও ঘোরে */
}

/* ছবিতে দেখা লাইভ ডেমো বাটনের জন্য নির্দিষ্ট আইকন */
.live-demo-btn .icon {
  /* Font Awesome "play" আইকনের জন্য fas fa-play ক্লাস ব্যবহার করা হয়েছে */
}

/* ছবিতে দেখা গিটহাব বাটনের জন্য নির্দিষ্ট আইকন */
.github-btn .icon {
  /* Font Awesome "github" আইকনের জন্য fab fa-github ক্লাস ব্যবহার করা হয়েছে */
}


/* --- Contact Section --- */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    margin-bottom: 50px;
}

.contact-info,
.contact-form {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: 300px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

/* Style for contact info links (newly changed) */
.contact-info p,
.contact-info a {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none; /* Remove underline for links */
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color); /* Highlight on hover */
}


.contact-info p i,
.contact-info a i { /* Apply styles to icons within both p and a */
    color: var(--primary-color);
    font-size: 1.3rem;
}

.social_icon {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social_icon a {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border-radius: 50%;
    border: 2px solid #0fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px #00ffff;
}

.social_icon a:hover {
    transform: translateY(-3px) scale(1.1);
    background-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.5);
}

/* For social icon click animation */
.social_icon a.clicked {
    animation: popScale 0.4s ease-out;
}

@keyframes popScale {
    0% {
        transform: scale(1);
    }
    
    50% {
        transform: scale(1.2);
    }
    
    100% {
        transform: scale(1.1);
    }
}


/* Contact Form */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.contact-form button[type="submit"] {
    width: auto;
    padding: 12px 30px;
}

.form-group textarea {
    resize: none;
}


/* Newsletter Section */
.newsletter-section {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-top: 50px;
}

.newsletter-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.newsletter-section p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    max-width: 350px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.newsletter-form button {
    padding: 12px 25px;
}


/* --- Footer Section --- */
.footer-section {
    background-color: #111;
    padding: 50px 0 20px;
    text-align: center;
    color: #ddd;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    margin-top: auto;
    /* Push footer to the bottom */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 1rem;
    line-height: 1.6;
    color: #bbb;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bbb;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
    /* For ripple effect */
    display: inline-block;
    padding: 5px 0;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

/* Ripple effect for footer links */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7);
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Style for footer contact links/paragraphs */
.footer-contact p,
.footer-contact a {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none; /* Remove underline for links */
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color); /* Highlight on hover */
}

.footer-contact p i,
.footer-contact a i { /* Apply styles to icons within both p and a */
    color: var(--primary-color);
    font-size: 1.1rem;
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
}

.footer-bottom .social-icons {
    display: flex;
    gap: 15px;
    opacity: 0;
    /* For scroll reveal */
    transform: translateY(20px);
    /* For scroll reveal */
}

.footer-bottom .social-icons a {
    color: #bbb;
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-bottom .social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}


/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    /* Hidden by default, shown by JS */
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

.scroll-top:hover {
    background-color: #00cccc;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.5);
}


/* --- Responsive Design (Media Queries) --- */
@media (max-width: 900px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    /* মোবাইল মেনুর জন্য মূল স্টাইল */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* প্রাথমিকভাবে স্ক্রিনের ডানপাশে লুকিয়ে থাকবে */
        width: 250px;
        /* মেনুর প্রস্থ */
        height: 100vh;
        /* পুরো ভিউপোর্ট হাইট জুড়ে থাকবে */
        background-color: var(--sidebar-bg);
        /* আপনার সাইডবার বা মেনুর ব্যাকগ্রাউন্ড কালার */
        padding-top: 60px;
        /* উপরের প্যাডিং, যদি আপনার নেভিগেশন বার থাকে */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        /* একটি হালকা শ্যাডো যাতে মেনু পপ আউট মনে হয় */
        transition: right 0.4s ease-in-out;
        /* স্মুথ ট্রানজিশন */
        z-index: 1000;
        /* নিশ্চিত করুন এটি অন্যান্য কন্টেন্টের উপরে থাকে */
        overflow-y: auto;
        /* মেনুর কন্টেন্ট বেশি হলে স্ক্রলবার দেখাবে */
        display: flex;
        /* ফ্লেক্সবক্স ব্যবহার করে কন্টেন্ট মাঝখানে আনা বা সাজানো */
        flex-direction: column;
        align-items: flex-start;
        /* আইটেমগুলোকে বামদিকে রাখবে */
        justify-content: flex-start;
        /* উপরে থেকে শুরু করবে */
    }
    
    /* যখন মেনু active হয় (মেনু আইকনে ক্লিক করলে) */
    .nav-links.show {
        right: 0;
        /* স্ক্রিনের ডানপাশে দৃশ্যমান হবে */
    }
    
    .nav-links ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 2rem 0;
    }
    
    .nav-links ul li {
        margin: 20px 0;
    }
    
    .nav-links ul li a {
        font-size: 1.5rem;
        display: block;
        padding: 10px 0;
    }
    
    .nav-links ul li a::after {
        /* নিশ্চিত করুন এই আফটার এলিমেন্টটিও সঠিকভাবে থাকে */
        /* এর z-index আলাদাভাবে দেওয়ার প্রয়োজন নেই যদি এর প্যারেন্টের z-index ঠিক থাকে */
    }
    
    .menu-icon {
        display: block;
        z-index: 1001;
        /* Ensure it's above the nav-links */
    }
    
    .hero-section {
        flex-direction: column-reverse;
        padding-top: 150px;
        text-align: center;
    }
    
    .hero-content {
        margin-right: 0;
        margin-top: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons .btn {
        margin-right: 1rem;
        margin-bottom: 15px;
    }
    
    .hero-image {
        width: 250px;
        height: 250px;
        border-width: 5px;
    }
    
    .section-title {
        font-size: 2.8rem;
        margin-bottom: 3.5rem;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
    }
    
    .about-image {
        width: 280px;
        height: 280px;
        border-width: 4px;
    }
    
    .about-text {
        text-align: center;
        min-width: unset;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form,
    .newsletter-section {
        padding: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        width: 100%;
        max-width: 350px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-about,
    .footer-links,
    .footer-contact {
        padding: 0;
        min-width: unset;
    }
    
    .footer-links ul {
        padding-left: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom .social-icons {
        margin-top: 10px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 580px) {
    .navbar {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        margin-right: 0;
        width: 80%;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
    
    .edu-card,
    .skill-card,
    .project-card,
    .contact-info,
    .contact-form,
    .newsletter-section {
        padding: 25px;
    }
    
    .edu-card h3,
    .contact-info h3,
    .contact-form h3,
    .newsletter-section h3 {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .skill-icon {
        font-size: 3rem;
    }
    
    .skill-card h3 {
        font-size: 1.1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        /* Single column for projects */
    }
    
    .footer-about,
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact p,
    .footer-contact a { /* Apply central alignment for both */
        justify-content: center;
    }
}


.footer-bottom p:hover {
    color: #00ffff;
}

.follow {
    text-align: center;
    padding-top: 10px;
    display: flex;
    font-size: 1.1rem;
    color: #0ff;
    justify-content: center;
}

/* --- Chat Bot Button --- */
.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    width: 60px;
    /* Slightly larger for chat icon */
    height: 60px;
    /* Slightly larger for chat icon */
    border-radius: 50%;
    display: flex;
    /* Always display flex for the icon */
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    /* Larger icon */
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease,
        box-shadow 0.3s ease;
    z-index: 999;
}

.chat-toggle-btn:hover {
    background-color: #00cccc;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.5);
}

/* --- Chat Bot Interface --- */
.chat-bot-container {
    position: fixed;
    bottom: 100px;
    /* Position above the chat button */
    right: 30px;
    width: 350px;
    height: 450px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 998;
    /* Below the button, but above content */
    transform: scale(0.8);
    /* Start smaller */
    opacity: 0;
    pointer-events: none;
    /* Make it unclickable when hidden */
    transition: all 0.3s ease-in-out;
}

.chat-bot-container.show {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
    /* Make it clickable when shown */
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.close-chat-btn {
    background: transparent;
    border: none;
    color: var(--bg-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-chat-btn:hover {
    transform: rotate(90deg);
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    
    /* Custom scrollbar for webkit browsers */
    &::-webkit-scrollbar {
        width: 8px;
    }
    
    &::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }
    
    &::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    &::-webkit-scrollbar-thumb:hover {
        background: #00cccc;
    }
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user-message {
    align-self: flex-end;
    background-color: #4a90e2;
    /* Blue */
    color: #fff;
    border-bottom-right-radius: 2px;
}

/* bot message box*/
.bot-message {
    background: linear-gradient(135deg, #141e30, #243b55);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.15);
    color: #e0f7ff;
    font-family: 'Signika', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    animation: fadeInUp 0.8s ease;
    border-left: 5px solid #00ffff;
    transition: transform 0.5s ease;
}

.bot-message:hover {
    transform: translateY(-5px);
}

.bot-message li {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-left: 10px;
}

.bot-message li:last-child {
    border-bottom: none;
}

.bot-message a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.bot-message a:hover {
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* bot input box*/
.chat-input-area {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-area input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input-area input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.chat-input-area button {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 255, 255, 0.3);
}

.chat-input-area button:hover {
    background-color: #00cccc;
    transform: scale(1.05);
}

/* Media Queries for Chat Bot (adjust for smaller screens) */
@media (max-width: 580px) {
    .chat-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .chat-bot-container {
        width: 90%;
        right: 5%;
        bottom: 80px;
        height: 400px;
    }
    
    .chat-header h3 {
        font-size: 1.1rem;
    }
    
    .close-chat-btn {
        font-size: 1.3rem;
    }
    
    .message {
        font-size: 0.9rem;
    }
    
    .chat-input-area input {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .chat-input-area button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    }
