/* =========================================================
   WEBNOVA — Design System
   Premium dark-first, turquoise accent, fluid organic shapes
   Outfit (headings) + Inter (body)
   ========================================================= */

/* ---------- Custom Properties ---------- */
:root,
[data-theme="dark"] {
    --bg-primary: #0B0F14;
    --bg-secondary: #111820;
    --bg-card: #1A2030;
    --bg-card-hover: #1F2740;
    --text-primary: #E8ECF1;
    --text-secondary: #9BA4B5;
    --text-muted: #6B7280;
    --accent: #00D4AA;
    --accent-glow: rgba(0, 212, 170, 0.15);
    --accent-hover: #00E8BC;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --wave-fill: #111820;
}

[data-theme="light"] {
    --bg-primary: #F5F6F8;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F0F2F5;
    --text-primary: #1A1F2E;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --accent: #00B894;
    --accent-glow: rgba(0, 184, 148, 0.1);
    --accent-hover: #00D4AA;
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --wave-fill: #FFFFFF;
}

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

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 300ms ease, color 300ms ease;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 200ms;
}

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

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

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
}

/* ---------- Layout ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

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

.section-label {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 250ms ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #0B0F14;
    box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 24px var(--accent-glow);
    color: #0B0F14;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 300ms, box-shadow 300ms, padding 300ms;
}

.site-header.scrolled {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-star {
    color: var(--accent);
    font-size: 1.2rem;
}

.logo-img {
    height: 44px;
    width: auto;
}

.footer-logo-img {
    height: 80px;
    width: auto;
}

/* Theme-based logo switching */
.logo-light {
    display: none;
}

.logo-dark {
    display: block;
}

[data-theme="light"] .logo-light {
    display: block;
}

[data-theme="light"] .logo-dark {
    display: none;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 200ms;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--accent-glow);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms;
}

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

[data-theme="dark"] .icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: none;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 300ms;
}

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

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

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

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

.hero-sub {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

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

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    animation: blobFloat 8s ease-in-out infinite alternate;
}

.hero-blob-2 {
    width: 350px;
    height: 350px;
    background: #6366F1;
    bottom: -80px;
    left: 10%;
    animation: blobFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes blobFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, -20px) scale(1.05);
    }
}

/* ---------- Wave Dividers ---------- */
.wave-divider {
    line-height: 0;
    margin-top: -1px;
}

.wave-divider svg {
    width: 100%;
    height: 60px;
}

.wave-divider path {
    fill: var(--wave-fill);
}

.wave-divider-flip {
    transform: scaleY(-1);
    margin-top: 0;
    margin-bottom: -1px;
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 32px;
    transition: all 300ms ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

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

/* Services Split */
.services-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.service-card-large {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 36px;
    transition: all 300ms ease;
    cursor: pointer;
}

.service-card-large:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.service-card-large h3 {
    margin-bottom: 10px;
}

/* About Pillars */
.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.pillar-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid var(--border);
    transition: all 300ms ease;
}

.pillar-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.pillar-icon svg {
    width: 28px;
    height: 28px;
}

/* ---------- Process ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    text-align: center;
    padding: 32px 20px;
}

.process-number {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--accent-glow);
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.process-step h4 {
    margin-bottom: 8px;
}

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

.filter-btn {
    padding: 10px 24px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 300ms ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.portfolio-card.hidden {
    display: none;
}

.portfolio-thumb {
    height: 200px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    background: var(--accent);
    color: #0B0F14;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.portfolio-info p {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portfolio-tag {
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
}

.portfolio-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

.portfolio-metric .metric-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    display: block;
}

.portfolio-metric .metric-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ---------- Metrics ---------- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.metric-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
}

.metric-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ---------- KPI / Values ---------- */
.kpi-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.kpi-card,
.value-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border);
    display: flex;
    gap: 16px;
    transition: all 300ms;
}

.kpi-card:hover,
.value-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon svg {
    width: 22px;
    height: 22px;
}

.kpi-card h4,
.value-card h4 {
    margin-bottom: 6px;
}

.kpi-card p,
.value-card p {
    font-size: 0.88rem;
}

.value-card {
    flex-direction: column;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 200ms;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 300ms;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms ease, padding 400ms ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.9rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.cta-section p {
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    pointer-events: none;
}

.cta-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -50px;
}

.cta-blob-2 {
    width: 300px;
    height: 300px;
    background: #8B5CF6;
    bottom: -80px;
    left: -50px;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 22px;
    height: 22px;
}

.contact-item h4 {
    margin-bottom: 2px;
}

.contact-item a {
    font-size: 0.9rem;
}

.response-badge {
    margin-top: 24px;
    padding: 12px 20px;
    border-radius: 14px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: border-color 200ms;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239BA4B5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    color: #EF4444;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success.show {
    display: block;
}

.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin: 0 auto 16px;
}

.form-success h3 {
    margin-bottom: 8px;
}

/* ---------- Tech Stack ---------- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.tech-item {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 20px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 200ms;
}

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

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.reveal-stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0ms;
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: 100ms;
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: 200ms;
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: 300ms;
}

.reveal-stagger.visible>*:nth-child(5) {
    transition-delay: 400ms;
}

.reveal-stagger.visible>*:nth-child(6) {
    transition-delay: 500ms;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-secondary);
    padding-top: 0;
    padding-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-brand .logo-text {
    font-size: 1.3rem;
}

.footer-brand p {
    margin-top: 8px;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 200ms;
}

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

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

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

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-stagger>* {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 32px;
        gap: 4px;
        border-left: 1px solid var(--border);
        transition: right 300ms ease;
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .services-split,
    .about-pillars,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .kpi-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero {
        min-height: 85vh;
    }

    .hero-sub {
        padding: 120px 0 60px;
    }

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

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

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

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

    .btn-group {
        flex-direction: column;
    }

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