/* ========================================
   BitLuse Website — Dark Premium Theme
   Modern, Bold, Glassmorphic & Responsive
   ======================================== */

/* CSS Variables */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #8b5cf6;
    --secondary-dark: #7c3aed;
    --accent: #f59e0b;

    --bg-deep: #050510;
    --bg-body: #0a0a1a;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-solid: #111827;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --white: #ffffff;

    --container-width: 1200px;
    --section-padding: 100px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;

    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }

/* Mobile tap highlight */
a, button { -webkit-tap-highlight-color: rgba(16, 185, 129, 0.2); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }

.lead { font-size: 1.15rem; color: var(--text-secondary); }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.hidden { display: none !important; }

section { padding: var(--section-padding) 0; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); }

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo { font-size: 1.75rem; font-weight: 900; }
.logo-bit { color: var(--text-primary); }
.logo-luse { color: var(--primary); }
.footer-logo .logo-bit { color: var(--text-primary); }

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}
.nav-menu a:not(.btn-nav):hover,
.nav-menu a.active:not(.btn-nav) { color: var(--primary); }

.nav-menu a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}
.nav-menu a:not(.btn-nav):hover::after,
.nav-menu a.active:not(.btn-nav)::after { width: 100%; }

.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white) !important;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
}
.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    width: 25px; height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 0.95rem;
    font-family: var(--font);
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: transparent;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-glass-hover);
}
.btn-outline:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-large { padding: 1.1rem 2.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 10, 26, 0.75), rgba(10, 10, 26, 0.85)),
                url('../images/Hero3.jpg') center/cover no-repeat;
    z-index: -2;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 20s infinite ease-in-out;
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 25s infinite ease-in-out reverse;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 550px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.45s both;
}
.stat h3 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}
.stat p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease-out 0.8s both;
}
.mouse {
    width: 26px; height: 42px;
    border: 2px solid rgba(16,185,129,0.5);
    border-radius: 20px;
    position: relative;
}
.mouse::before {
    content: '';
    width: 4px; height: 8px;
    background: var(--primary);
    border-radius: 4px;
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 2s infinite;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 15px); }
}
@keyframes scrollMouse {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(16,185,129,0.1); }
    50% { box-shadow: 0 0 40px rgba(16,185,129,0.2); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Services Grid
   ======================================== */
.services-preview { background: var(--bg-body); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 2.25rem;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16,185,129,0.05), rgba(139,92,246,0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}
.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}
.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}
.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}
.service-link:hover { color: var(--primary-light); gap: 0.75rem; }

/* ========================================
   Portfolio / Work Grid
   ======================================== */
.portfolio-section { background: var(--bg-deep); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.work-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
}
.work-item-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.work-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.work-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.work-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,16,0.95) 0%, rgba(5,5,16,0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.work-item:hover .work-item-overlay { opacity: 1; }
.work-item-content h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.work-item-content p { color: var(--text-secondary); margin: 0; font-size: 0.85rem; }

/* Card with title below thumbnail */
.work-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.work-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding: 0 0.15rem;
}

/* ========================================
   Modal & Carousel
   ======================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}
.modal.active { display: flex; }

.modal-content {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    max-width: 680px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    animation: fadeInUp 0.3s ease;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
.modal-body {
    padding: 2rem;
    padding-bottom: max(2rem, calc(1rem + env(safe-area-inset-bottom)));
}

/* Service modals — scrollable, thumbnail, price badge */
.modal-scrollable {
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}
.modal-thumbnail {
    flex-shrink: 0;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}
.modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-price-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 1rem;
}
.modal-body h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
}
.svc-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.svc-checklist li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.svc-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}
.modal-price-note {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.modal-actions {
    margin-top: 1rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}
.modal-actions .btn { margin-right: 0.75rem; margin-bottom: 0.5rem; }
.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    line-height: 1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 16px var(--primary-glow);
}

.carousel-container { position: relative; overflow: hidden; }
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }
.carousel-slide img { width: 100%; display: block; }

.carousel-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.carousel-nav:hover { background: var(--primary); }
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1rem 0;
}
.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}
.carousel-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ========================================
   Featured Work (index)
   ======================================== */
.featured-work { background: var(--bg-deep); }
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.work-image { position: relative; padding-top: 66.67%; overflow: hidden; }
.work-image img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.work-item:hover .work-image img { transform: scale(1.05); }
.work-overlay {
    position: absolute; inset: 0;
    background: rgba(16,185,129,0.85);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.work-item:hover .work-overlay { opacity: 1; }
.work-link {
    background: var(--white);
    color: var(--primary);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.work-info { padding: 1.25rem; }
.work-info h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.work-info p { color: var(--text-secondary); margin-bottom: 0.75rem; font-size: 0.9rem; }
.work-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.work-tags span {
    background: rgba(16,185,129,0.1);
    color: var(--primary);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========================================
   Blog Grid & Cards
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.blog-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.blog-image {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--bg-card-solid);
}
.blog-image img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-image img { transform: scale(1.05); }

.blog-category {
    position: absolute;
    top: 0.75rem; left: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-content {
    padding: 1.25rem 1.5rem 1.5rem;
}
.blog-content time {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.5rem;
}
.blog-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.45;
}
.blog-content h3 a { color: var(--text-primary); }
.blog-content h3 a:hover { color: var(--primary); }
.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}
.read-more:hover { color: var(--primary-light); gap: 0.65rem; }

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: var(--white);
    text-align: center;
}
.cta-content h2 { color: var(--white); margin-bottom: 1rem; }
.cta-content p { font-size: 1.15rem; margin-bottom: 2rem; opacity: 0.9; }

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-deep);
    color: var(--text-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-glass);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo { font-size: 1.75rem; margin-bottom: 1rem; }
.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.footer-col p { line-height: 1.8; font-size: 0.9rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); }

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.social-links a {
    width: 38px; height: 38px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }

/* ========================================
   Page Header
   ======================================== */
.page-header {
    padding: 150px 0 80px;
    background: radial-gradient(ellipse at 30% 50%, rgba(16,185,129,0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(139,92,246,0.06) 0%, transparent 50%),
                var(--bg-body);
    text-align: center;
}
.page-header h1 { margin-bottom: 1rem; }
.page-header p { font-size: 1.15rem; color: var(--text-secondary); }

/* ========================================
   Service Detail
   ======================================== */
.service-detail { padding: 80px 0; }
.service-detail.alt { background: var(--bg-deep); }

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.service-detail-content.reverse { direction: rtl; }
.service-detail-content.reverse > * { direction: ltr; }

.service-badge {
    display: inline-block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 1rem;
}
.service-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}
.service-list li {
    list-style: disc;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.tech-badge {
    background: rgba(16,185,129,0.1);
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(16,185,129,0.2);
}
.pricing-info {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}
.pricing-info h4 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}
.pricing-info p { color: var(--text-secondary); margin: 0; font-size: 0.9rem; }

.service-detail-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ========================================
   Process
   ======================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}
.process-step {
    text-align: center;
    padding: 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    transition: var(--transition);
}
.process-step:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
}
.step-number {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 700;
    margin: 0 auto 1.25rem;
}
.process-step h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.process-step p { color: var(--text-secondary); font-size: 0.9rem; }

/* ========================================
   Contact
   ======================================== */
.contact-section { padding: 80px 0; }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}
.contact-info h2 { margin-bottom: 1rem; }

.contact-details { margin: 2rem 0; }
.contact-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}
.contact-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.contact-item h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.contact-item p { color: var(--text-secondary); margin: 0; font-size: 0.9rem; }
.contact-item a { color: var(--primary); }
.contact-item a:hover { color: var(--primary-light); }

.social-links-contact { margin-top: 2.5rem; }
.social-links-contact h4 { margin-bottom: 0.75rem; }

/* ========================================
   Contact Form
   ======================================== */
.contact-form-wrapper {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 2.5rem;
    border-radius: var(--radius);
}
.contact-form h3 { margin-bottom: 1.5rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-glass-hover);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group select option {
    background: var(--bg-card-solid);
    color: var(--text-primary);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.75rem;
}

/* ========================================
   FAQ
   ======================================== */
.faq-section { background: var(--bg-deep); }
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.faq-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 1.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.faq-item:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-3px);
}
.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.faq-item p { color: var(--text-secondary); margin: 0; font-size: 0.9rem; }

/* ========================================
   Why Us
   ======================================== */
.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.benefits { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.benefit-item { display: flex; gap: 1rem; }
.benefit-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
}
.benefit-item h4 { margin-bottom: 0.25rem; }
.benefit-item p { color: var(--text-secondary); margin: 0; font-size: 0.9rem; }

.why-us-visual { position: relative; height: 500px; }
.floating-card {
    position: absolute;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 1.75rem;
    border-radius: var(--radius);
    text-align: center;
    backdrop-filter: blur(10px);
}
.floating-card h4 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}
.floating-card p { color: var(--text-secondary); margin: 0; font-size: 0.85rem; }
.card-1 { top: 20%; left: 10%; animation: heroFloat 6s infinite ease-in-out; }
.card-2 { top: 50%; right: 10%; animation: heroFloat 8s infinite ease-in-out; }
.card-3 { bottom: 10%; left: 30%; animation: heroFloat 7s infinite ease-in-out; }

/* ========================================
   Mobile Navigation Tabs
   ======================================== */
.mobile-nav-tabs {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    z-index: 999;
    justify-content: space-around;
    padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
}
.mobile-nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
    position: relative;
}
.mobile-nav-tab svg { width: 22px; height: 22px; }
.mobile-nav-tab.active {
    color: var(--primary);
}
.mobile-nav-tab.active::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ========================================
   Blog Toolbar
   ======================================== */
.blog-main { overflow-x: hidden; }
.blog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.blog-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-glass-hover);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.blog-search { position: relative; min-width: 250px; }
.blog-search .search-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.blog-search input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.75rem;
    border: 1px solid var(--border-glass-hover);
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-glass);
    color: var(--text-primary);
}
.blog-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.blog-search input::placeholder { color: var(--text-muted); }

/* ========================================
   Skeletons
   ======================================== */
.skeleton-card { pointer-events: none; }
.skeleton-image {
    width: 100%; padding-top: 56.25%;
    background: var(--bg-card-solid);
    border-radius: var(--radius) var(--radius) 0 0;
}
.skeleton-content {
    padding: 1.25rem;
    display: flex; flex-direction: column; gap: 10px;
}
.skeleton-line { border-radius: 6px; background: var(--bg-glass-hover); }
.skeleton-pulse { animation: skeletonPulse 1.5s ease-in-out infinite; }
@keyframes skeletonPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ========================================
   Blog Post Page
   ======================================== */
.blog-post-section { padding: 120px 0 80px; }

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--primary); font-weight: 500; }
.breadcrumbs a:hover { color: var(--primary-light); text-decoration: underline; }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current {
    color: var(--text-muted);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-article { max-width: 800px; margin: 0 auto; }
.article-header { margin-bottom: 2rem; }
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.article-meta time { color: var(--text-muted); font-size: 0.85rem; }
.article-meta-sep { color: var(--text-muted); }
.article-label {
    background: rgba(16,185,129,0.1);
    color: var(--primary);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}
.article-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}
.article-author { color: var(--text-muted); font-size: 0.9rem; }

.article-featured-image {
    margin-bottom: 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
}
.article-featured-image img {
    width: 100%;
    border-radius: var(--radius);
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}
.article-body h1, .article-body h2, .article-body h3,
.article-body h4, .article-body h5, .article-body h6 {
    margin-top: 2rem; margin-bottom: 1rem;
    color: var(--text-primary);
}
.article-body h2 { font-size: 1.75rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.25rem; }
.article-body p { margin-bottom: 1.5rem; }
.article-body img {
    max-width: 100%; height: auto;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
}
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--primary-light); }
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-glass);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}
.article-body code {
    background: var(--bg-glass-hover);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Courier New', monospace;
    color: var(--primary-light);
}
.article-body pre {
    background: var(--bg-deep);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 1.5rem 0;
}
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body table {
    width: 100%; border-collapse: collapse;
    margin: 1.5rem 0; border-radius: var(--radius-sm); overflow: hidden;
}
.article-body th, .article-body td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}
.article-body th { background: var(--bg-glass); font-weight: 600; color: var(--text-primary); }
.article-body hr { border: none; border-top: 1px solid var(--border-glass); margin: 2rem 0; }

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.article-tag {
    background: rgba(16,185,129,0.1);
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition-fast);
    border: 1px solid rgba(16,185,129,0.2);
}
.article-tag:hover { background: var(--primary); color: var(--white); }

.article-share { display: flex; align-items: center; gap: 0.5rem; }
.article-share span { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; }
.share-btn {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}
.share-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.copy-tooltip {
    position: fixed;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card-solid);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10000;
    animation: tooltipFade 2s ease forwards;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
@keyframes tooltipFade {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

.related-posts-section {
    background: var(--bg-deep);
    padding: 80px 0;
}

/* Empty/Error States */
.blog-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}
.blog-empty-state svg { margin-bottom: 1.5rem; opacity: 0.4; }
.blog-empty-state h3 { color: var(--text-primary); margin-bottom: 0.75rem; }
.blog-empty-state p { max-width: 400px; margin: 0 auto; }

.article-skeleton {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 968px) {
    .container { padding: 0 1.25rem; }

    .nav-menu {
        position: fixed;
        left: -100%; top: 0;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        width: 100%; height: 100vh;
        text-align: center;
        transition: left 0.4s ease;
        padding: 5rem 1.5rem 2rem;
        justify-content: center;
        gap: 1.5rem;
    }
    .nav-menu.active { left: 0; }
    .nav-menu a { font-size: 1.25rem; color: var(--text-primary); min-height: 44px; display: flex; align-items: center; justify-content: center; }

    .hamburger { display: flex; padding: 12px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-title { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 1.25rem; line-height: 1.25; }
    .hero-subtitle.lead { font-size: 1rem; margin-bottom: 2rem; line-height: 1.6; }
    .hero-cta { flex-direction: column; align-items: stretch; gap: 0.875rem; margin-bottom: 3rem; }
    .hero-cta .btn { min-height: 48px; padding: 0.9rem 1.5rem; font-size: 0.95rem; }
    .hero-stats { gap: 1rem; max-width: 100%; }
    .stat h3 { font-size: 1.75rem; }
    .stat p { font-size: 0.75rem; }

    .section-header { margin-bottom: 2.5rem; }
    .section-title { font-size: clamp(1.75rem, 4vw, 2.25rem); }
    .section-subtitle { font-size: 0.95rem; }

    .services-grid { gap: 1.25rem; }
    .service-card { padding: 1.5rem 1.25rem; }
    .service-icon { width: 52px; height: 52px; margin-bottom: 1.25rem; }
    .service-card h3 { font-size: 1.15rem; }
    .service-card p { font-size: 0.9rem; }

    .portfolio-grid { gap: 1.5rem; }
    .work-card { gap: 0.6rem; }
    .work-card-title { font-size: 0.98rem; }
    .work-item { min-height: 200px; }
    .work-item-content { padding: 1rem; }
    .work-item-content h3 { font-size: 1.05rem; }
    .work-item-content p { font-size: 0.8rem; }

    .modal {
        padding: 0.75rem;
        align-items: center;
        justify-content: center;
        padding-top: max(0.75rem, env(safe-area-inset-top));
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }
    .modal-content {
        max-height: calc(100vh - 1.5rem);
        margin: auto;
        border-radius: var(--radius);
    }
    .modal-body { padding: 1.25rem; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
    .modal-actions { padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
    .modal-thumbnail { height: 180px; }
    .modal-price-badge { font-size: 0.8rem; padding: 0.35rem 0.75rem; }
    .modal-content h2 { font-size: 1.35rem; margin-bottom: 0.75rem; }
    .modal-content p { font-size: 0.9rem; margin-bottom: 0.75rem; }
    .modal-close { top: 0.75rem; right: 0.75rem; width: 40px; height: 40px; font-size: 1.5rem; }
    .carousel-slide img { max-height: 50vh; object-fit: contain; }
    .modal-content .btn { min-height: 44px; padding: 0.75rem 1rem; font-size: 0.9rem; }

    .cta-section { padding: 60px 0 !important; }
    .cta-section h2 { font-size: 1.5rem !important; margin-bottom: 1rem !important; }
    .cta-section p { font-size: 1rem !important; margin-bottom: 1.5rem !important; }
    .cta-section .btn { min-height: 48px; padding: 0.9rem 1.5rem; }

    .why-us-content,
    .service-detail-content,
    .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .why-us-visual { height: 280px; }
    .svc-visual { height: 240px; }
    .svc-info h3 { font-size: 1.5rem; }
    .svc-info > p { font-size: 0.95rem; }
    .svc-checks li { font-size: 0.9rem; }
    .svc-price { font-size: 0.82rem; }
    .svc-info .btn { min-height: 44px; padding: 0.75rem 1.25rem; }

    .footer { padding: 3rem 0 1.5rem; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; padding-top: 1.5rem; }
    .footer-col h4 { margin-bottom: 1rem; font-size: 0.95rem; }
    .footer-col p, .footer-col a { font-size: 0.85rem; }
    .social-links a { width: 40px; height: 40px; min-width: 44px; min-height: 44px; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-group input, .form-group textarea, .form-group select { min-height: 44px; padding: 0.85rem 1rem; }
    .contact-form-wrapper { padding: 1.5rem; }
    .contact-item { margin-bottom: 1.5rem; }
    .contact-icon { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }

    .page-header { padding: 120px 0 60px; }
    .page-header h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); }
    .page-header p { font-size: 1rem; }

    .mobile-nav-tabs { display: flex; padding-bottom: max(0.5rem, env(safe-area-inset-bottom)); }
    body { padding-bottom: 80px; }

    .blog-toolbar { flex-direction: column; align-items: stretch; gap: 1rem; margin-bottom: 1.75rem; }
    .blog-search { min-width: unset; width: 100%; }
    .blog-search input { min-height: 44px; padding: 0.75rem 1rem 0.75rem 2.5rem; }
    .blog-filters { justify-content: flex-start; }
    .filter-btn { min-height: 40px; padding: 0.45rem 0.9rem; font-size: 0.8rem; }
    .blog-grid { gap: 1.25rem; }
    .blog-card .blog-content { padding: 1rem 1.25rem 1.25rem; }
    .blog-content h3 { font-size: 1.05rem; }
    .blog-content p { font-size: 0.85rem; }
    .blog-empty-state { padding: 3rem 1.5rem; }
    .blog-empty-state .btn { min-height: 44px; padding: 0.75rem 1.5rem; }
    .article-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .article-tag { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
}

@media (max-width: 640px) {
    :root { --section-padding: 60px; }
    .container { padding: 0 1rem; }
    .hero { padding: 90px 0 50px; }
    .hero-title { font-size: clamp(1.75rem, 5vw, 2.25rem); }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .stat h3 { font-size: 1.5rem; }
    .stat p { font-size: 0.7rem; }
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 1rem; }
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }

    .modal-body .btn { flex-direction: column; width: 100%; }
    .modal-body div[style*="flex"] { flex-direction: column !important; }
    .modal-body ul { margin-left: 1.25rem; }

    .blog-filters { flex-wrap: wrap; }
    .blog-post-section { padding: 90px 0 50px; }
    .article-body { font-size: 1rem; }
    .breadcrumbs { font-size: 0.8rem; }
    .breadcrumb-current { max-width: 150px; }
    .blog-hero { padding: 100px 0 40px; }
    .blog-hero h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); }
}

@media (max-width: 400px) {
    .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
    .stat h3 { font-size: 1.5rem; }
}
