/* ==========================================================================
   MD ROCKY BISWAS - ZERO LAYOUT SHIFT (CLS = 0) DESIGN SYSTEM
   Fixed Footprint Animations & Stable Multi-Page Layout
   ========================================================================== */

:root {
    /* Royal Blue & Slate Theme */
    --bg-primary: #070a12;
    --bg-secondary: #0c1220;
    --bg-card: #111a2e;
    --bg-card-hover: #17233d;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Primary Accent: Electric Royal Blue & Sky Blue */
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-sky: #38bdf8;
    --accent-indigo: #6366f1;
    
    /* Borders & Lines */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.4);
    
    /* Typography: Modern Helvetica Sans-Serif */
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Spacing & Layout */
    --container-width: 1140px;
    --header-height: 72px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    /* GPU Accelerated Transitions */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-padding {
    padding: 70px 0;
}

@media (max-width: 768px) {
    .section-padding { padding: 45px 0; }
}

/* Minimal Header Typography */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-sky);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-title span.highlight {
    color: var(--accent-sky);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 36px auto;
    line-height: 1.5;
}

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

/* --------------------------------------------------------------------------
   STRICT SINGLE-LINE NAVIGATION HEADER
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    background: rgba(7, 10, 18, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
    background: rgba(7, 10, 18, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-badge {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--accent-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    flex-shrink: 0;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 4px 0;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-sky);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    border: none;
    background: none;
    flex-shrink: 0;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Mobile Drawer Overlay */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(7, 10, 18, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu .nav-link {
    font-size: 1.05rem;
    padding: 8px 0;
}

/* Subpage Banner */
.page-banner {
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 36px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.breadcrumb a { color: var(--accent-sky); }

.page-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-description {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* --------------------------------------------------------------------------
   STABLE HERO SECTION (ZERO LAYOUT SHIFT)
   -------------------------------------------------------------------------- */
.hero {
    min-height: 80vh;
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 50px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-badge-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent-sky);
    font-weight: 600;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-sky);
}

/* Strictly Lock Headline Height to Prevent Layout Shifting */
.hero-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    min-height: 2.4em; /* Lock footprint so typing text never moves the page! */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.typewriter-text {
    color: var(--accent-sky);
    border-right: 2px solid var(--accent-sky);
    display: inline;
}

.hero-description {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin-bottom: 26px;
    max-width: 560px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item h3 span { color: var(--accent-sky); }
.stat-item p { font-size: 0.78rem; color: var(--text-dim); }

/* Minimal Hero Image Frame */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.hero-image-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top center;
}

.static-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: rgba(7, 10, 18, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.static-badge h4 { font-size: 0.85rem; font-weight: 700; }
.static-badge p { font-size: 0.75rem; color: var(--text-muted); }

/* Minimal Niche Grid */
.niche-pills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.niche-pill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
}

.niche-pill-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.niche-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-sky);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.niche-pill-text h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.niche-pill-text p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: center;
}

.about-image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.about-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.about-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.tab-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.tab-btn.active, .tab-btn:hover {
    color: var(--accent-sky);
    background: rgba(59, 130, 246, 0.12);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.about-text p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.key-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.highlight-item i { color: var(--accent-sky); font-size: 0.85rem; }
.highlight-item span { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }

/* Minimal Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.service-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-sky);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 0.82rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li i { color: var(--accent-sky); font-size: 0.72rem; }

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--accent-sky);
    cursor: pointer;
}

/* Minimal Calculator */
.calculator-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.calc-inputs { display: flex; flex-direction: column; gap: 18px; }

.input-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.input-group label span.val { color: var(--accent-sky); font-family: var(--font-mono); }

.range-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    appearance: none;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    cursor: pointer;
}

.calc-results {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.calc-results-title { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.calc-amount { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; color: var(--accent-sky); margin-bottom: 10px; }
.calc-subtext { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 18px; }

/* Portfolio Grid */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    border-color: var(--border-hover);
}

.category-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-sky);
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 10px;
    display: inline-block;
}

.portfolio-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.portfolio-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.45;
}

.portfolio-metrics {
    display: flex;
    gap: 12px;
    background: rgba(7, 10, 18, 0.6);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-top: auto;
}

.metric-val { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--accent-sky); }
.metric-lbl { font-size: 0.7rem; color: var(--text-dim); }

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skills-category {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
}

.skills-category h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 16px; }
.skill-bars { display: flex; flex-direction: column; gap: 12px; }
.skill-info { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.skill-bar-bg { width: 100%; height: 5px; background: rgba(255, 255, 255, 0.06); border-radius: 3px; }
.skill-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-blue), var(--accent-sky)); width: 0%; transition: width 1s ease; }

.tech-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-badge {
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
}

.contact-info-card, .contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px;
}

.contact-img-wrapper {
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.contact-img { width: 100%; height: 180px; object-fit: cover; }
.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 10px; }
.contact-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(59, 130, 246, 0.12); color: var(--accent-sky); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.contact-text h4 { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; }
.contact-text a, .contact-text p { font-size: 0.9rem; font-weight: 600; }

.form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-group label { font-size: 0.82rem; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.88rem;
}

.form-control:focus { border-color: var(--accent-blue); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-checkboxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; }
.checkbox-label input[type="checkbox"] { accent-color: var(--accent-blue); }

/* Footer */
.footer {
    background: #05070e;
    border-top: 1px solid var(--border-light);
    padding: 40px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 10px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.82rem; }
.footer-links a:hover { color: var(--accent-sky); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.04); font-size: 0.8rem; color: var(--text-dim); }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 16px;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   GPU-ACCELERATED REVEAL (NO LAYOUT REFLOW OR JITTER)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.5s ease-out;
}

.reveal.active {
    opacity: 1;
}

/* Strict Single Line Header Breakpoints */
@media (max-width: 992px) {
    .nav-links { display: none !important; }
    .mobile-toggle { display: flex !important; }
    .hero-grid, .about-grid, .contact-grid, .calc-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-title { font-size: 2.1rem; min-height: auto; }
    .services-grid, .portfolio-grid, .niche-pills-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .services-grid, .portfolio-grid, .skills-grid, .niche-pills-grid { grid-template-columns: 1fr; }
    .form-checkboxes, .key-highlights { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; }
    .nav-logo span { font-size: 1.05rem; }
}
