/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap' );
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap' );
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css' );
/* --- CSS Variables (Root) --- */
:root {
    --primary-color: #4a47a3; /* A nice purple */
    --secondary-color: #706fd3;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white-color: #ffffff;
    --off-white-bg: #f0f2f5;
}
/* --- General Reset & Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden; /* AOS অ্যানিমেশনের জন্য এটি ভালো */
}

/* --- Reusable Components --- */
section {
    padding: 100px 10%;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn:hover {
    background: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transform: translateY(-3px);
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

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

nav a:hover {
    color: var(--primary-color);
}

/* --- Hero Section with Animated Blobs --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--off-white-bg);
    position: relative;
    overflow: hidden;
}

/* --- Hero Section - Text Styling Improvement --- */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 700px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: #555;
    max-width: 500px;
    margin-bottom: 40px;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

/* --- Animated Blobs --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    animation: move 25s infinite alternate;
}

.blob1 {
    width: 400px;
    height: 400px;
    background: rgba(74, 71, 163, 0.3); /* Purple */
    top: -150px;
    left: -150px;
}

.blob2 {
    width: 300px;
    height: 300px;
    background: rgba(112, 111, 211, 0.3); /* Light Purple */
    bottom: -100px;
    right: -100px;
    animation-delay: 3s;
    animation-direction: alternate-reverse;
}

.blob3 {
    width: 250px;
    height: 250px;
    background: rgba(52, 152, 219, 0.2); /* Blue */
    bottom: 50px;
    left: 100px;
    animation-delay: 6s;
}

@keyframes move {
    from {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    to {
        transform: translate(100px, 50px) rotate(180deg) scale(1.2);
    }
}

/* --- Work/Portfolio Section --- */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

/* --- About Section --- */
#about {
    background: var(--white-color);
}
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.about-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--white-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.about-text p {
    margin: 20px 0;
}

/* --- Services Section --- */
.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: 10px;
    max-width: 300px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.service-card h3 {
    margin-bottom: 10px;
}

/* --- Contact Section --- */
#contact {
    background: var(--dark-color);
    color: var(--white-color);
}

#contact h2, #contact p {
    color: var(--white-color);
}

#contact h2::after {
    background: var(--white-color);
}

#contact .btn {
    background: var(--white-color);
    color: var(--dark-color);
    margin-top: 20px;
    margin-bottom: 40px;
}

#contact .btn:hover {
    background: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.social-icons a {
    color: var(--white-color);
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

/* --- Footer --- */
footer {
    padding: 20px;
    text-align: center;
    background: #e0e0e0;
}

/* --- Blog Page Styles --- */
/* ব্লগের লিস্ট পেজের স্টাইল */
.blog-header {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
}
.blog-post-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
}
.post-item {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
}
.post-item:hover {
    transform: translateY(-5px);
}
.post-item h3 {
    margin-bottom: 10px;
}
.post-item h3 a {
    text-decoration: none;
    color: var(--dark-color);
}
.post-item p {
    color: #555;
    margin-bottom: 15px;
}
.post-item .read-more {
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
}

/* স্বতন্ত্র ব্লগ পোস্টের স্টাইল */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}
.blog-post-container h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}
.post-meta {
    color: #777;
    margin-bottom: 40px;
}
.post-content p, .post-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.post-content h4 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 10px;
}
.post-content ul {
    list-style-position: inside;
    padding-left: 20px;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    section { padding: 80px 5%; }
    .hero-content h1 { font-size: 2.8rem; }
    .about-container { flex-direction: column; }
    nav ul { display: none; } /* Simple hide for mobile, can be replaced with a burger menu */
}
