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

:root {
    --bg: #edf4ff;
    --surface: #ffffff;
    --surface-alt: #f5f9ff;
    --text: #0f172a;
    --muted: #5b6b84;
    --primary: #3b82f6;
    --primary-strong: #1d4ed8;
    --accent: #60a5fa;
    --border: #d9e6fb;
    --shadow-sm: 0 10px 26px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 32px 68px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 20px rgba(96, 165, 250, 0.4);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI Variable', 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--text);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.5px;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 92px 0;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 44px;
}

.section-head h2 {
    font-size: clamp(1.95rem, 3vw, 2.7rem);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.25));
    color: var(--primary-strong);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: perspective(500px) translateZ(0);
    transition: all 0.4s var(--bounce);
}

.badge:hover {
    transform: perspective(500px) translateZ(20px) scale(1.05);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.35));
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.btn {
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.4s var(--bounce);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.4), var(--shadow-glow);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    color: var(--primary-strong);
    background: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.24);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    background: #eff6ff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.btn-block {
    width: 100%;
}

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-shell {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.logo img {
    height: 48px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    position: relative;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    padding: 10px 18px;
    border-radius: 999px;
    transition: all 0.3s var(--bounce);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    transition: all 0.4s var(--bounce);
    border-radius: 50%;
    opacity: 0;
}

.nav-links a:hover::after {
    width: 24px;
    border-radius: 4px;
    opacity: 1;
}

.nav-links a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-strong);
    transform: translateY(-2px);
}

.nav-links a.nav-current {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.1));
    color: var(--primary-strong);
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.nav-links a.nav-current::after {
    width: 24px;
    border-radius: 4px;
    opacity: 1;
}

.nav-cta {
    padding: 10px 16px;
    font-size: 0.92rem;
}

.mobile-menu {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--primary-strong);
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 142px 0 88px;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: -5%;
    z-index: -1;
    background:
        linear-gradient(120deg, rgba(6, 12, 28, 0.83), rgba(15, 66, 167, 0.48)),
        url('../index.jpg') center/cover no-repeat;
    animation: bgZoomIn 20s ease-out forwards;
}

@keyframes bgZoomIn {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 18% 20%, rgba(147, 197, 253, 0.28) 0%, rgba(147, 197, 253, 0) 38%);
}

.hero-panel {
    position: relative;
    z-index: 1;
    color: #ffffff;
    max-width: 780px;
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(9, 16, 33, 0.65), rgba(15, 66, 167, 0.45));
    box-shadow: 0 30px 80px rgba(10, 18, 36, 0.6), inset 0 0 0 1px rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: heroFadeUp 1s var(--bounce) forwards;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-panel h1, .hero-panel p, .hero-actions, .hero-metrics {
    opacity: 0;
    animation: heroFadeUp 0.8s var(--bounce) forwards;
}

.hero-panel h1 { 
    color: #ffffff;
    animation-delay: 0.2s; 
}
.hero-panel p { animation-delay: 0.35s; }
.hero-actions { animation-delay: 0.5s; }
.hero-metrics { animation-delay: 0.65s; }

.hero-panel h1 {
    font-size: clamp(2.3rem, 5.2vw, 4rem);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.hero-panel p {
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-metric {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-metric strong {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-metric span {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.84);
}

.page-hero {
    padding: 136px 0 72px;
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), rgba(96, 165, 250, 0) 44%), linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
    position: relative;
    overflow: hidden;
    animation: heroFadeUp 0.8s var(--bounce) forwards;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.15), rgba(147, 197, 253, 0) 70%);
    border-radius: 50%;
    animation: floatBlob 10s ease-in-out infinite alternate;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 50px) scale(1.1); }
}

.page-hero h1, .page-hero p, .page-hero .badge {
    opacity: 0;
    position: relative;
    z-index: 1;
    animation: heroFadeUp 0.8s var(--bounce) forwards;
}

.page-hero .badge { animation-delay: 0.1s; }
.page-hero h1 { animation-delay: 0.25s; }
.page-hero p { animation-delay: 0.4s; }

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.18;
    letter-spacing: -0.7px;
    margin-bottom: 14px;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(245,249,255,0.9) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08);
    padding: 32px 28px;
    transition: all 0.5s var(--bounce);
}

.card::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    top: -40%;
    right: -20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.25), rgba(96, 165, 250, 0) 70%);
    transition: all 0.6s var(--bounce);
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 24px 48px rgba(59, 130, 246, 0.15), var(--shadow-glow);
}

.card:hover::before {
    transform: scale(1.5) translate(-15%, 15%);
    background: radial-gradient(circle, rgba(96, 165, 250, 0.35), rgba(96, 165, 250, 0) 70%);
}

.card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(90deg, var(--text), var(--primary-strong));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.25));
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: all 0.5s var(--bounce);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.card:hover .icon-badge {
    transform: scale(1.2) rotate(12deg) translateY(-5px);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric-box {
    text-align: center;
    padding: 32px 20px;
    background: #ffffff;
    border-radius: var(--radius);
    border: 2px solid rgba(148, 163, 184, 0.15);
    transition: all 0.4s var(--bounce);
    position: relative;
    overflow: hidden;
}

.metric-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s var(--bounce);
}

.metric-box:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.1);
}

.metric-box:hover::after {
    transform: scaleX(1);
}

.metric-box h3 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-strong), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s var(--bounce);
}

.metric-box:hover h3 {
    transform: scale(1.1);
}

.stack {
    display: grid;
    gap: 16px;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: start;
    padding: 24px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius);
    background: #ffffff;
    transition: all 0.4s var(--bounce);
    position: relative;
    overflow: hidden;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--bounce);
}

.timeline-item:hover {
    transform: translateX(10px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.timeline-item:hover::before {
    transform: scaleY(1);
}

.timeline-item strong {
    color: var(--primary-strong);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-cover {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}

.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--bounce);
}

.project-item:hover .project-cover img {
    transform: scale(1.1) rotate(2deg);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chip {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-strong);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s var(--bounce);
    border: 1px solid transparent;
}

.chip:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.3);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 22px;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #ffffff;
    border-radius: var(--radius);
    border: 2px solid rgba(148, 163, 184, 0.2);
    transition: all 0.4s var(--bounce);
}

.contact-item:hover {
    transform: translateX(12px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.25));
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.4s var(--bounce);
}

.contact-item:hover i {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
}

.contact-item p {
    color: var(--muted);
}

.contact-form {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 26px;
}

.contact-form form {
    display: grid;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s var(--bounce);
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.contact-form button {
    margin-top: 4px;
}

.site-footer {
    position: relative;
    margin-top: 48px;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.15) 0%, #080f1e 80%);
    color: #ffffff;
    padding: 64px 0 24px;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 20px var(--primary);
}

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

.footer-brand p {
    color: rgba(226, 232, 240, 0.82);
    margin-top: 12px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 24px;
    font-weight: 700;
}

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

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s var(--bounce);
}

.footer-list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.social-row {
    display: flex;
    gap: 10px;
}

.social-row a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.26);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-row a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    padding-top: 16px;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.92rem;
    text-align: center;
}

.footer-wordmark {
    font-size: clamp(1.4rem, 4.8vw, 3.2rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 4px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 14px;
}

.footer-wordmark-cn {
    font-size: 1em;
    font-weight: 800;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer-wordmark-en {
    font-size: 1em;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.legal-links {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.88rem;
}

.legal-links a:hover {
    color: #93c5fd;
}

.beian-links {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.beian-links a {
    color: rgba(226, 232, 240, 0.78);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.beian-links a:hover {
    color: #93c5fd;
}

.beian-public img {
    width: 16px;
    height: 16px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

::selection {
    background: rgba(59, 130, 246, 0.25);
    color: var(--primary-strong);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-strong);
}

@media (max-width: 1080px) {
    .project-grid, .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu {
        display: inline-flex;
    }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: 78px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 18px 0 22px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 20px 46px rgba(15, 23, 42, 0.14);
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    }

    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3,
    .metric-row,
    .contact-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-2,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(1180px, calc(100% - 28px));
    }

    .home-hero {
        min-height: auto;
        padding: 118px 0 62px;
    }

    .hero-panel {
        padding: 30px 20px;
    }

    .hero-metrics,
    .grid-3,
    .grid-4,
    .metric-row,
    .project-grid,
    .contact-list {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 74px 0;
    }

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