/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Font stacks (Bangla/Bengali friendly) */
    --font-sans: "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Hind Siliguri", "Nirmala UI", "SolaimanLipi", "Siyam Rupali", sans-serif;
    --font-serif: "Noto Serif Bengali", Georgia, "Times New Roman", Times, serif;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: #fff;
}

/* Better Bangla readability when page is marked lang="bn" */
html[lang="bn"] body,
body:lang(bn) {
    line-height: 1.75;
    word-spacing: 0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Legal/Policy pages */
.legal-page {
    padding: 3rem 0;
}

.wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wrapper h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.updated {
    display: inline-block;
    margin-bottom: 1.75rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 9999px;
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 0.95rem;
}

.wrapper h2 {
    font-size: 1.5rem;
    margin: 1.75rem 0 0.75rem;
    color: var(--gray-900);
}

.wrapper p {
    margin-bottom: 1rem;
    color: var(--gray-700);
    line-height: 1.85;
    font-size: 1.05rem;
}

.wrapper a {
    color: var(--primary-700);
    text-decoration: underline;
    font-weight: 600;
}

.wrapper a:hover {
    color: var(--primary-800);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.nav {
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--primary-700);
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.5rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-50) 0%, #fff 50%, var(--primary-50) 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-200);
    top: 5rem;
    left: 2.5rem;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #e9d5ff;
    top: 10rem;
    right: 2.5rem;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #fbcfe8;
    bottom: -4rem;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, 50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-600) 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.hero-description {
    max-width: 820px;
    margin: -1rem auto 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.hero-description strong {
    color: var(--gray-900);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-600);
    color: white;
    box-shadow: 0 4px 6px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(2, 132, 199, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}

.scroll-indicator {
    margin-top: 4rem;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
    animation: bounce 1.5s infinite;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0;
    }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gray-900);
}

.recent-posts {
    padding: 5rem 0;
    background: white;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, var(--primary-600) 0%, #9333ea 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.blog-header-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-header-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Listing */
.blog-listing {
    padding: 4rem 0;
    background: var(--gray-50);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-600);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: var(--primary-600);
}

.blog-card-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.blog-card-read-more {
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.875rem;
}

.blog-card:hover .blog-card-read-more {
    text-decoration: underline;
}

/* Blog Post Styles */
.post-header {
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
    padding: 3rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.post-header .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.post-category {
    display: inline-block;
    background: var(--primary-600);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
    line-height: 1.2;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--gray-600);
    font-size: 1rem;
}

/* Screenshots Grid */
.screenshots-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    background: var(--gray-50);
}

.screenshot-main {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.screenshot-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.screenshot-main img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
}

.screenshots-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .screenshots-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .screenshots-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.screenshot-item {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
}

.post-content {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-description {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
    text-align: center;
}

.post-excerpt {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray-700);
    font-weight: 400;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.post-body {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    max-width: 800px;
    margin: 0 auto;
}

.post-body h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem;
    color: var(--gray-900);
    font-family: 'Inter', sans-serif;
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--gray-800);
    font-family: 'Inter', sans-serif;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--gray-800);
    font-family: 'Inter', sans-serif;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body a {
    color: var(--primary-600);
    text-decoration: underline;
}

.post-body a:hover {
    color: var(--primary-700);
}

.post-body blockquote {
    border-left: 4px solid var(--primary-500);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--gray-600);
}

.post-body code {
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--gray-800);
}

.post-body pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.post-body img {
    width: 100%;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

/* Share Section */
.share-section {
    padding: 3rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.share-buttons h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.share-buttons-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn-twitter {
    background: #1da1f2;
    color: white;
}

.share-btn-twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
}

.share-btn-facebook {
    background: #1877f2;
    color: white;
}

.share-btn-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.share-btn-linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn-linkedin:hover {
    background: #095195;
    transform: translateY(-2px);
}

/* AdSense Section */
.ads-section {
    padding: 2rem 0;
    text-align: center;
}

.ad-container {
    margin: 2rem 0;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-top {
    margin-top: 0;
    margin-bottom: 3rem;
}

.ad-in-content {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.ad-bottom {
    margin-top: 3rem;
    margin-bottom: 0;
}

.ad-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    z-index: 10;
    display: none;
}

@media (min-width: 1400px) {
    .ad-sidebar {
        display: block;
    }
}

.ad-sidebar-sticky {
    position: sticky;
    top: 100px;
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ensure ads don't break layout */
.adsbygoogle {
    display: block;
    text-align: center;
}

/* AdSense responsive adjustments */
@media (max-width: 768px) {
    .ad-container {
        margin: 1.5rem 0;
    }
    
    .ad-sidebar {
        display: none !important;
    }
}

/* Download Section */
.download-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-200);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    justify-content: center;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.download-btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
}

.download-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
}

.download-btn-playstore {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
}

.download-btn-playstore:hover {
    background: linear-gradient(135deg, #333 0%, #555 100%);
}

.download-btn svg {
    flex-shrink: 0;
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--gray-50);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 1.25rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-subtitle {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

.footer-copyright {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .screenshot-main {
        margin-bottom: 1rem;
    }
    
    .post-excerpt {
        font-size: 1.125rem;
    }
    
    .download-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-btn {
        width: 100%;
    }
    
    .share-buttons-group {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 404 Page */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-title {
    font-size: 6rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.error-text {
    color: var(--gray-600);
    margin-bottom: 2rem;
}
