/*
 * ╔══════════════════════════════════════════════════╗
 * ║            STATOTECH SYSTEMS                     ║
 * ║  CEO & Chief Developer: StaticB1                 ║
 * ║  https://github.com/StaticB1/statotech           ║
 * ╚══════════════════════════════════════════════════╝
 *
 * Global stylesheet — mobile-first layout, typography,
 * components, and theme variables. Scales up via
 * min-width breakpoints at 768px and 1024px.
 */

/* ================================
   Reset & Variables
   ================================ */

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

:root {
    --primary: #0066CC;
    --secondary: #00A3E0;
    --dark: #1E293B;
    --gray-900: #0F172A;
    --gray-700: #334155;
    --gray-500: #64748B;
    --gray-300: #CBD5E1;
    --gray-100: #F1F5F9;
    --white: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #0F172A;
}

[data-theme="dark"] {
    --primary: #3B9EFF;
    --secondary: #00C4FF;
    --dark: #E2E8F0;
    --gray-900: #0B1120;
    --gray-700: #94A3B8;
    --gray-500: #94A3B8;
    --gray-300: #334155;
    --gray-100: #1E293B;
    --white: #0F172A;
    --nav-bg: rgba(15, 23, 42, 0.95);
    --footer-bg: #0B1120;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ================================
   Navigation (mobile base)
   ================================ */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-300);
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    display: none;
    list-style: none;
    align-items: center;
}

.nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
}

.nav-links.open a {
    font-size: 1.25rem;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.nav-cta {
    padding: 0.75rem 1.75rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #0052A3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--dark);
    position: relative;
}

.theme-toggle::after {
    content: 'Toggle light/dark mode';
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.theme-toggle:hover::after {
    opacity: 1;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .particle {
    background: rgba(59, 158, 255, 0.15);
}

/* ================================
   Hero Keyframes
   ================================ */

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes blink {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: transparent; }
}

/* ================================
   Hero (mobile base)
   ================================ */

.hero {
    margin-top: 70px;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 102, 204, 0.03));
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero-graphic {
    display: none;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-graphic img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.15);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--gray-100);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-300);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    min-height: 1.1em;
}

.typing-cursor {
    border-right: 3px solid var(--primary);
    animation: blink 0.7s step-end infinite;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 2.8s;
}

/* ================================
   Hero Particles
   ================================ */

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.08);
    animation: float ease-in-out infinite;
}

.particle:nth-child(1) { width: 8px; height: 8px; top: 15%; left: 10%; animation-duration: 6s; animation-delay: 0s; }
.particle:nth-child(2) { width: 12px; height: 12px; top: 25%; left: 80%; animation-duration: 8s; animation-delay: 1s; }
.particle:nth-child(3) { width: 6px; height: 6px; top: 60%; left: 25%; animation-duration: 7s; animation-delay: 2s; }
.particle:nth-child(4) { width: 10px; height: 10px; top: 70%; left: 70%; animation-duration: 9s; animation-delay: 0.5s; }
.particle:nth-child(5) { width: 7px; height: 7px; top: 40%; left: 50%; animation-duration: 6.5s; animation-delay: 1.5s; }
.particle:nth-child(6) { width: 14px; height: 14px; top: 10%; left: 60%; animation-duration: 10s; animation-delay: 3s; }
.particle:nth-child(7) { width: 5px; height: 5px; top: 80%; left: 40%; animation-duration: 7.5s; animation-delay: 0.8s; }
.particle:nth-child(8) { width: 9px; height: 9px; top: 50%; left: 90%; animation-duration: 8.5s; animation-delay: 2.5s; }
.particle:nth-child(9) { width: 11px; height: 11px; top: 30%; left: 35%; animation-duration: 9.5s; animation-delay: 1.2s; }
.particle:nth-child(10) { width: 6px; height: 6px; top: 85%; left: 15%; animation-duration: 6s; animation-delay: 3.5s; }
.particle:nth-child(11) { width: 8px; height: 8px; top: 20%; left: 45%; animation-duration: 7s; animation-delay: 0.3s; }
.particle:nth-child(12) { width: 13px; height: 13px; top: 55%; left: 5%; animation-duration: 11s; animation-delay: 2s; }
.particle:nth-child(13) { width: 7px; height: 7px; top: 45%; left: 75%; animation-duration: 8s; animation-delay: 1.8s; }
.particle:nth-child(14) { width: 10px; height: 10px; top: 75%; left: 55%; animation-duration: 9s; animation-delay: 4s; }
.particle:nth-child(15) { width: 5px; height: 5px; top: 35%; left: 95%; animation-duration: 6.5s; animation-delay: 0.6s; }

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 3.2s;
}

.btn {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.btn-primary:hover {
    background: #0052A3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* ================================
   Section Styles (mobile base)
   ================================ */

section {
    padding: 4rem 2rem;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.15rem;
    color: var(--gray-700);
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   Services (mobile base: 1 col)
   ================================ */

.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.1);
    transform: translateY(-4px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.375rem 0.875rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ================================
   Process (mobile base: 1 col)
   ================================ */

.process {
    background: var(--gray-100);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.process-step h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.process-step p {
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* ================================
   Portfolio (mobile base: 1 col)
   ================================ */

.portfolio {
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.portfolio-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.15);
    transform: translateY(-4px);
}

.portfolio-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #E0F2FE, #DBEAFE);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-tag {
    padding: 0.375rem 0.875rem;
    background: var(--gray-100);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.portfolio-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.portfolio-content p {
    color: var(--gray-700);
    line-height: 1.7;
}

.portfolio-card.featured {
    border-color: var(--primary);
    border-width: 2px;
}

.portfolio-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: opacity 0.2s ease;
}

.portfolio-link:hover {
    opacity: 0.7;
}

/* ================================
   Team (mobile base: 1 col)
   ================================ */

.team {
    background: var(--gray-100);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--white);
    object-fit: cover;
    background: linear-gradient(135deg, var(--gray-300), var(--gray-100));
}

.team-member h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.375rem;
}

.member-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================================
   Pricing (mobile base: 1 col)
   ================================ */

.pricing {
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.15);
}

.pricing-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.pricing-amount {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: var(--gray-700);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    color: var(--gray-700);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-300);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ================================
   Blog (mobile base: 1 col)
   ================================ */

.blog {
    background: var(--gray-100);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
}

.blog-content {
    padding: 1.75rem;
}

.blog-date {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.blog-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-content p {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================================
   Contact (mobile base: 1 col)
   ================================ */

.contact {
    background: var(--white);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    width: 100%;
    padding: 1.125rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #0052A3;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

/* ================================
   Footer (mobile base: 1 col)
   ================================ */

footer {
    background: var(--footer-bg);
    color: #E2E8F0;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--gray-300);
    line-height: 1.7;
}

.footer-section h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    color: var(--gray-300);
    font-size: 0.9rem;
}

/* ================================
   Tablet — min-width: 768px
   ================================ */

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex;
        gap: 2.5rem;
    }

    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }

    .hero { padding: 6rem 2rem 5rem; }
    section { padding: 5rem 2rem; }

    .hero-container {
        display: flex;
        align-items: center;
        gap: 3rem;
    }

    .hero-content {
        flex: 1;
    }

    .hero-graphic {
        display: block;
        flex: 0 0 40%;
    }

    .cta-group {
        flex-direction: row;
    }

    .btn {
        width: auto;
        text-align: left;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================
   Desktop — min-width: 1024px
   ================================ */

@media (min-width: 1024px) {
    h1 { font-size: 4.5rem; }
    h2 { font-size: 3rem; }

    .hero { padding: 8rem 2rem 6rem; }
    section { padding: 6rem 2rem; }

    .hero-graphic {
        flex: 0 0 45%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ── Blog Article Pages ────────────────────────── */

.blog-article {
    padding-top: 100px;
    padding-bottom: 4rem;
}

.article-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-back {
    display: inline-block;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 2rem;
    transition: opacity 0.2s ease;
}

.article-back:hover {
    opacity: 0.7;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-meta time {
    font-weight: 500;
}

.article-author {
    color: var(--primary);
    font-weight: 600;
}

.blog-article h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-hero {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.article-body {
    color: var(--dark);
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-body a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
}

.article-body a:hover {
    opacity: 0.8;
}

.article-body pre {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-300);
}

.article-body code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.article-body p code {
    background: var(--gray-100);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-body em:last-child {
    display: block;
    color: var(--gray-700);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-300);
}

.blog-card .read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    transition: opacity 0.2s ease;
}

.blog-card .read-more:hover {
    opacity: 0.7;
}

@media (min-width: 768px) {
    .blog-article h1 {
        font-size: 2.5rem;
    }

    .article-hero {
        height: 380px;
    }

    .article-body h2 {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .blog-article h1 {
        font-size: 3rem;
    }

    .article-hero {
        height: 420px;
    }
}

/* ── Scroll Progress Bar ───────────────────────── */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    z-index: 1100;
    transition: width 0.1s linear;
}

/* ── Back to Top Button ────────────────────────── */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* ── Scroll Animations ─────────────────────────── */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ── Stat Counter ──────────────────────────────── */

.stat-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 3rem 1.5rem;
    background: var(--gray-100);
}

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

.stat-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-top: 0.25rem;
}
