/* ===================================
   PIYUSH AHUJA - PORTFOLIO & SEO SITE
   Optimized for Performance & SEO
   =================================== */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --bg: #0f172a;
    --bg-light: #1e293b;
    --bg-card: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-bright: #f8fafc;
    --border: #334155;
    --success: #22c55e;
    --gradient: linear-gradient(135deg, #6366f1, #06b6d4);
    --gradient-text: linear-gradient(135deg, #818cf8, #22d3ee);
    --shadow: 0 4px 6px -1px rgba(0,0,0,.3), 0 2px 4px -2px rgba(0,0,0,.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.4), 0 4px 6px -4px rgba(0,0,0,.3);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--accent);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Headings */
h1, h2, h3, h4 {
    color: var(--text-bright);
    line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }

/* Section styling */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, .15);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, .3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, .4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-bright);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(99, 102, 241, .05);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, .85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, .5);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, .95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-bright);
}

.nav-logo:hover { color: var(--text-bright); }

.logo-icon {
    font-size: 1.5rem;
}

.accent {
    color: var(--primary-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--text-bright);
    background: rgba(255,255,255,.05);
}

.nav-link.cta-btn {
    background: var(--gradient);
    color: white;
    margin-left: 8px;
}

.nav-link.cta-btn:hover {
    color: white;
    transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-bright);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-bright);
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ========== HERO ========== */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, .08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, .06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(34, 197, 94, .1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, .2);
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.hero h1 {
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 36px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-bright);
}

.stat-label {
    font-size: .85rem;
    color: var(--text-muted);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Code Window */
.hero-visual {
    position: relative;
}

.code-window {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0,0,0,.2);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.code-title {
    margin-left: auto;
    font-size: .8rem;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-body {
    padding: 20px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: .85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-body code {
    font-family: inherit;
}

.code-keyword { color: #c084fc; }
.code-string { color: #34d399; }
.code-func { color: #60a5fa; }
.code-tag { color: #f472b6; }
.code-attr { color: #fbbf24; }

/* Floating Badges */
.floating-badge {
    position: absolute;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-bright);
    box-shadow: var(--shadow);
    animation: float 4s ease-in-out infinite;
}

.badge-1 { top: -10px; right: 20px; animation-delay: 0s; }
.badge-2 { bottom: -10px; left: -10px; animation-delay: 1.3s; }
.badge-3 { bottom: 40px; right: -15px; animation-delay: 2.6s; }

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

/* ========== WORLDWIDE TRUST BAR ========== */
.worldwide-bar {
    background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(6,182,212,.15));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
}

.worldwide-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 16px;
    letter-spacing: .5px;
}

.country-flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 16px;
}

.country-flag {
    font-size: .95rem;
    color: var(--text);
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    white-space: nowrap;
}

.country-flag:hover {
    border-color: var(--primary);
    background: rgba(99,102,241,.1);
    transform: translateY(-2px);
}

.worldwide-subtitle {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========== SERVICES ========== */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
}

.service-card.featured {
    border-color: rgba(99, 102, 241, .3);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: .95rem;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    padding: 6px 0;
    font-size: .9rem;
    color: var(--text);
}

/* ========== TECH STACK ========== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.tech-logo {
    font-size: 2rem;
}

/* ========== PORTFOLIO/RESULTS ========== */
.portfolio {
    background: var(--bg-light);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.result-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    transition: all var(--transition);
}

.result-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.result-metric {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.result-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.result-card p {
    color: var(--text-muted);
    font-size: .9rem;
}

/* ========== ABOUT ========== */
.about-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-highlights {
    display: flex;
    gap: 32px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.highlight {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight strong {
    color: var(--text-bright);
    font-size: 1.25rem;
}

.highlight span {
    color: var(--text-muted);
    font-size: .85rem;
}

.about-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.about-avatar {
    font-size: 4rem;
    margin-bottom: 16px;
}

.about-card h3 {
    margin-bottom: 4px;
}

.about-role {
    color: var(--primary-light);
    font-size: .9rem;
    margin-bottom: 20px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    padding: 5px 14px;
    background: rgba(99, 102, 241, .1);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 500;
}

/* ========== PROCESS ========== */
.process {
    background: var(--bg-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    transition: all var(--transition);
}

.step:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(99, 102, 241, .2);
    margin-bottom: 12px;
}

.step h3 {
    margin-bottom: 10px;
}

.step p {
    color: var(--text-muted);
    font-size: .9rem;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

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

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.testimonial-card p {
    color: var(--text);
    font-style: italic;
    margin-bottom: 20px;
    font-size: .95rem;
}

.testimonial-author strong {
    display: block;
    color: var(--text-bright);
    font-size: .9rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: .8rem;
}

/* ========== FAQ ========== */
.faq {
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-light);
    font-weight: 300;
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary h3 {
    font-size: 1rem;
    font-weight: 600;
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: .95rem;
}

/* ========== BLOG PREVIEW ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.blog-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, .1);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.blog-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.blog-card h3 a {
    color: var(--text-bright);
}

.blog-card h3 a:hover {
    color: var(--primary-light);
}

.blog-card p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 16px;
}

.blog-meta {
    color: var(--text-muted);
    font-size: .8rem;
}

.blog-cta {
    text-align: center;
    margin-top: 40px;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--bg-light);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, .1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-top: 12px;
    max-width: 280px;
}

.footer-links h4 {
    color: var(--text-bright);
    font-size: .95rem;
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: .9rem;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: .85rem;
}

/* ========== BLOG PAGE STYLES ========== */
.blog-hero {
    padding-top: 120px;
    padding-bottom: 40px;
    text-align: center;
}

.blog-hero h1 {
    margin-bottom: 12px;
}

.blog-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.blog-listing {
    padding: 40px 0 80px;
}

.blog-listing .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Article Page */
.article-hero {
    padding-top: 120px;
    padding-bottom: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.article-hero .section-tag {
    margin-bottom: 20px;
}

.article-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: .9rem;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.article-content h2 {
    margin-top: 48px;
    margin-bottom: 16px;
    font-size: 1.6rem;
}

.article-content h3 {
    margin-top: 36px;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.article-content p {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}

.article-content strong {
    color: var(--text-bright);
}

.article-content code {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .9em;
    color: var(--primary-light);
}

.article-content pre {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.article-content pre code {
    background: none;
    padding: 0;
    font-size: .9rem;
    line-height: 1.7;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(99, 102, 241, .05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content blockquote p {
    color: var(--text);
    font-style: italic;
}

.article-cta {
    background: var(--bg-light);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin: 48px 0;
}

.article-cta h3 {
    margin-bottom: 12px;
}

.article-cta p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* 404 Page */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-404 h1 {
    font-size: 8rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-404 h2 {
    margin-bottom: 16px;
}

.page-404 p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        max-width: 500px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
    }

    .nav-link.cta-btn {
        margin-left: 0;
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        text-align: center;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        flex-direction: column;
        gap: 16px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .hero-stats {
        flex-wrap: wrap;
    }

    .btn {
        padding: 12px 22px;
        font-size: .9rem;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: .95rem;
    }
}

/* ========== ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .result-card,
    .step,
    .testimonial-card,
    .blog-card,
    .tech-item {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity .6s ease, transform .6s ease;
    }

    .service-card.visible,
    .result-card.visible,
    .step.visible,
    .testimonial-card.visible,
    .blog-card.visible,
    .tech-item.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles for SEO crawlers */
@media print {
    .navbar, .hero-visual, .floating-badge {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
