:root {
    --bg-dark: #0a0a1a;
    --primary-blue: #00BFFF; /* Deep Sky Blue */
    --secondary-purple: #8A2BE2; /* Blue Violet */
    --text-light: #e0e0e0;
    --text-dark: #333;
    --card-bg: #10102a;
    --header-font: 'Chakra Petch', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--body-font);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--header-font);
    font-size: 1.8em;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-light);
}


/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.hero-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.hero-content h1 {
    font-family: var(--header-font);
    font-size: 4em;
    margin: 0;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-family: var(--header-font);
    font-size: 2em;
    color: var(--primary-blue);
    margin: 10px 0 20px 0;
    height: 40px; 
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--primary-blue);
    animation: blink 0.7s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-content p {
    max-width: 600px;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
}
.cta-button:hover {
    background-color: transparent;
    color: var(--primary-blue);
}
.cta-secondary {
    background-color: transparent;
    color: var(--text-light);
    margin-left: 15px;
    border: 2px solid #555;
}
.cta-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* --- General Section Styles --- */
.section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
}
main section:last-of-type {
    border-bottom: none;
}

.section-title {
    text-align: center;
    font-family: var(--header-font);
    font-size: 2.8em;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}
.skills-list h3, .about-text h3 {
    font-family: var(--header-font);
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.skills-list ul {
    list-style: none;
    padding: 0;
}
.skills-list li {
    margin-bottom: 10px;
    background-color: var(--card-bg);
    padding: 8px 12px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-blue);
}
.skills-list i {
    margin-right: 10px;
    color: var(--primary-blue);
}


/* --- Services Section Styles === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 191, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.1);
}
.service-card .service-icon {
    font-size: 3em;
    color: var(--primary-blue);
    margin-bottom: 20px;
}
.service-card h3 {
    font-family: var(--header-font);
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text-light);
}
.service-card p {
    font-size: 0.95em;
    color: #aaa;
}


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

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-image {
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.project-content { padding: 25px; }
.project-content h3 {
    font-family: var(--header-font);
    font-size: 1.5em;
    margin: 0 0 10px 0;
    color: var(--primary-blue);
}
.project-content .tech-stack {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 15px;
}

/* --- Project Link Button Styles --- */
.project-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.project-links a {
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}
.project-links a i {
    margin-left: 5px;
}
.project-links a.btn-demo {
    background-color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    color: #fff;
}
.project-links a.btn-demo:hover {
    background-color: transparent;
    color: var(--primary-blue);
}
.project-links a.btn-code {
    background-color: transparent;
    border: 1px solid #555;
    color: #aaa;
}
.project-links a.btn-code:hover {
    background-color: #555;
    border-color: #555;
    color: #fff;
}


/* --- Contact Section --- */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.social-links { margin-top: 30px; }
.social-links a {
    color: var(--text-light);
    font-size: 2em;
    margin: 0 20px;
    transition: color 0.3s ease;
}
.social-links a:hover { color: var(--primary-blue); }
.contact-email { margin-top: 20px; font-size: 1.2em; }
.contact-email a { color: var(--primary-blue); text-decoration: none; }


/* --- Footer --- */
.footer {
    padding: 30px 0;
    text-align: center;
    color: #888;
    background-color: #050510;
}
.footer-social {
    margin-bottom: 15px;
}
.footer-social a {
    color: #888;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.footer-social a:hover {
    color: var(--primary-blue);
}
.footer p {
    margin: 0;
}


/* --- Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Accessibility Upgrade Styles --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 15px;
    z-index: 101;
    transition: top 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    }
    .nav-item:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-content h1 { font-size: 2.8em; }
    .hero-content .subtitle { font-size: 1.5em; }

    .about-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2em; }
    .projects-grid { grid-template-columns: 1fr; }
    .social-links a { margin: 0 10px; }
}
/* === ভিডিও এবং ব্লগ সেকশনের স্টাইল === */
.videos-grid,
.blog-list-container {
    display: grid;
    grid-template-columns: 1fr; /* ব্লগ এবং ভিডিও লিস্ট এক কলামে */
    gap: 30px;
    max-width: 800px; /* কন্টেন্ট যেন বেশি চওড়া না হয় */
    margin: 0 auto;
}

.video-card,
.blog-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}
.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-card h3 {
    font-family: var(--header-font);
    font-size: 1.4em;
    color: var(--primary-blue);
    padding: 20px;
    margin: 0;
}

.blog-card-content {
    padding: 30px;
}
.blog-card-content .blog-date {
    font-size: 0.9em;
    color: var(--text-medium);
    margin-bottom: 10px;
}
.blog-card-content h3 {
    font-family: var(--header-font);
    font-size: 1.8em;
    margin-bottom: 15px;
}
.blog-card-content h3 a {
    color: var(--primary-blue);
    text-decoration: none;
}
.blog-card-content h3 a:hover {
    color: #008fcc;
}
.blog-card-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* === কন্টাক্ট ফর্ম স্টাইল === */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    display: grid;
    gap: 20px;
}
.form-group {
    position: relative;
}
.contact-form label {
    color: var(--text-light);
    background-color: var(--bg-dark); /* অথবা .section-এর ব্যাকগ্রাউন্ড কালার */
    font-size: 0.9em;
    padding: 0 5px;
    position: absolute;
    top: -10px;
    left: 15px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 5px;
    border: 1px solid rgba(0, 191, 255, 0.2);
    background-color: var(--card-bg);
    color: var(--text-light);
    font-family: var(--body-font);
    font-size: 1rem;
    box-sizing: border-box; 
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}
.contact-form button {
    width: auto;
    justify-self: center;
    cursor: pointer;
}
#contact .contact-email { display: none; }

/* === রেসপন্সিভ ফিক্স (মোবাইল মেনু) === */
@media (max-width: 768px) {
    /* এই কোডটি আপনার আগের কোডকে ওভাররাইট করবে (যদি থাকে) */
    .nav-menu {
        gap: 10px; /* গ্যাপ আরও কমানো হলো */
    }
    .nav-link {
        font-size: 0.85em; /* ফন্ট সাইজ আরও কমানো হলো */
        padding: 5px;
    }
}/* === নতুন: ব্লগ পোস্ট পেজের স্টাইল === */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
}

.blog-header .blog-post-image {
    width: 100%;
    height: auto;
    max-height: 400px; /* ছবির উচ্চতা限制 */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.blog-header .blog-date {
    font-size: 0.9em;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.blog-header h1 {
    font-family: var(--header-font);
    font-size: 2.5em;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.blog-content {
    font-size: 1.1em;
    line-height: 1.7;
}

.blog-content h2 {
    font-family: var(--header-font);
    font-size: 1.8em;
    color: var(--primary-blue);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.blog-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.blog-content ul {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}
.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content .incore-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}
.blog-content .incore-link:hover {
    color: #008fcc;
}
/* === "আপগ্রেডেড" কন্টাক্ট পেজের স্টাইল === */
.contact-methods {
    margin-top: 40px;
}
.contact-email-button i {
    margin-right: 10px; /* আইকন এবং টেক্সটের মধ্যে স্পেস */
}

.contact-divider {
    margin: 30px 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-light);
}

/* পুরোনো সোশাল লিঙ্ক স্টাইলটি নতুনভাবে সাজানো */
.contact-content .social-links {
    margin-top: 0;
}
.contact-content .social-links a {
    font-size: 2.2em; /* আইকনগুলো একটু বড় করা হলো */
    margin: 0 15px;
}
/* === Services পেজের H1 আপগ্রেড === */
.section-subtitle {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 600px;
    /* সেকশন টাইটেল (h1) এবং গ্রিড-এর মাঝে মার্জিন সেট করা */
    margin: -30px auto 40px auto; 
    text-align: center;
    opacity: 0.9;
}