/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --secondary-color: #06B6D4;
    --accent-color: #F59E0B;
    --dark-bg: #0F172A;
    --dark-card: #1E293B;
    --dark-hover: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --gradient-1: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    --gradient-2: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 20px;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    text-decoration: none;
}

.nav-brand .logo-img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-brand .brand-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.nav-brand a:hover .logo-img {
    transform: scale(1.05);
}

.nav-brand a:hover .brand-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.contact-btn {
    padding: 10px 24px;
    background: var(--gradient-1);
    border-radius: 8px;
    color: white !important;
}

.contact-btn::after {
    display: none;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(79, 70, 229, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

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

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

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* ===== About Section ===== */
.about {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--dark-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.about-card:hover::before {
    opacity: 0.05;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Demo Section ===== */
.demo-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.demo-viewport {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 40px;
    min-height: 600px;
    position: relative;
    border: 2px solid rgba(79, 70, 229, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scale-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.scale-view.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.scale-view svg {
    max-width: 400px;
    max-height: 400px;
    filter: drop-shadow(0 10px 30px rgba(79, 70, 229, 0.3));
}

.turbine-blade-fem {
    animation: none;
}

.fem-blade {
    animation: stressPulse 3s infinite ease-in-out;
}

.crystal-rve-3d {
    animation: subtleRotate 40s infinite ease-in-out;
}

.rve-cube-detailed {
    transform-origin: center;
}

.voxel-grid {
    filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.4));
}

.grain-pixel {
    transition: all 0.15s ease;
}

.grain-pixel:hover {
    opacity: 0.85;
    filter: brightness(1.1);
}

.grain-boundary {
    transition: all 0.2s ease;
}

.grain-boundary:hover {
    stroke-width: 2;
    opacity: 1;
}

.dislocation-view, .atomic-view {
    animation: none;
}

.zoom-indicator {
    animation: pulse 2s infinite ease-in-out;
}

.scale-label {
    text-align: center;
    margin-top: 30px;
    animation: fadeInUp 0.8s ease;
}

.scale-label h3 {
    font-size: 1.8rem;
    font-family: var(--font-display);
    margin-bottom: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scale-label p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.scale-size {
    display: inline-block;
    background: rgba(79, 70, 229, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* Dislocation line animation */
.dislocation-line {
    animation: dislocationMove 3s infinite ease-in-out;
}

/* Precipitate animation */
.precipitate {
    animation: precipitatePulse 2s infinite ease-in-out;
}

.precipitate:nth-child(2) {
    animation-delay: 0.5s;
}

.precipitate:nth-child(3) {
    animation-delay: 1s;
}

/* AI Overlay */
.ai-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scale-view.active .ai-overlay {
    opacity: 1;
    animation: fadeIn 0.5s ease 0.5s backwards;
}

.ai-processing {
    background: rgba(79, 70, 229, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.ai-icon {
    font-size: 1.2rem;
    animation: spin 2s linear infinite;
}

/* Demo Controls */
.demo-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.scale-btn {
    background: var(--dark-card);
    border: 2px solid rgba(79, 70, 229, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
}

.scale-btn:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.scale-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
}

.auto-play-btn {
    background: var(--secondary-color);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
}

.auto-play-btn:hover {
    background: #0891B2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

.auto-play-btn.playing {
    background: var(--accent-color);
}

.demo-info {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.demo-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Technology Section ===== */
.technology {
    padding: var(--section-padding);
    background: var(--dark-card);
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tech-feature {
    position: relative;
    padding-left: 80px;
}

.feature-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.tech-feature h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tech-feature p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.tech-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.simulation-box {
    width: 400px;
    height: 400px;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.particle-system {
    position: relative;
    width: 300px;
    height: 300px;
}

.particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    animation: float 4s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
}

.particle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; left: 70%; animation-delay: 0.5s; }
.particle:nth-child(3) { top: 60%; left: 30%; animation-delay: 1s; }
.particle:nth-child(4) { top: 70%; left: 80%; animation-delay: 1.5s; }
.particle:nth-child(5) { top: 40%; left: 50%; animation-delay: 2s; }
.particle:nth-child(6) { top: 80%; left: 50%; animation-delay: 2.5s; }
.particle:nth-child(7) { top: 50%; left: 10%; animation-delay: 3s; }
.particle:nth-child(8) { top: 10%; left: 60%; animation-delay: 3.5s; }

.simulation-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(79, 70, 229, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid var(--primary-color);
}

/* ===== Team Section ===== */
.team {
    padding: var(--section-padding);
}

.institutions {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.institution {
    text-align: center;
}

.institution-logo {
    width: 120px;
    height: 120px;
    background: var(--dark-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-display);
    margin: 0 auto 20px;
    background: var(--gradient-1);
    color: white;
    transition: all 0.3s ease;
}

.institution:hover .institution-logo {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.institution p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 200px;
}

.team-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.team-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===== Contact Section ===== */
.contact {
    padding: var(--section-padding);
    background: var(--dark-card);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--dark-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

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

.contact-form-wrapper {
    background: var(--dark-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-card);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.contact-form button {
    width: 100%;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 20px 30px;
    background: var(--dark-bg);
    border-top: 1px solid rgba(79, 70, 229, 0.2);
}

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

.footer-logo {
    height: 140px;
    width: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.02);
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
    text-align: center;
    color: var(--text-muted);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes stressPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

@keyframes slipMove {
    0%, 100% {
        stroke-dashoffset: 0;
        opacity: 0.4;
    }
    50% {
        stroke-dashoffset: 10;
        opacity: 0.7;
    }
}

@keyframes subtleRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

@keyframes voxelPulse {
    0%, 100% {
        opacity: 0.95;
    }
    50% {
        opacity: 1;
    }
}

@keyframes rotateGentle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.stress-indicator {
    animation: stressWarning 2s infinite ease-in-out;
}

@keyframes stressWarning {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.stress-legend text {
    font-family: var(--font-primary);
    font-weight: 600;
}

@keyframes dislocationMove {
    0%, 100% {
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dashoffset: 20;
    }
}

@keyframes precipitatePulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes atomVibrate {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(1px, -1px);
    }
    50% {
        transform: translate(-1px, 1px);
    }
    75% {
        transform: translate(1px, 1px);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .tech-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .simulation-box {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .demo-viewport {
        padding: 20px;
        min-height: 500px;
    }
    
    .scale-view svg {
        max-width: 300px;
        max-height: 300px;
    }
    
    .demo-controls {
        gap: 10px;
    }
    
    .scale-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .auto-play-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .ai-overlay {
        top: 10px;
        right: 10px;
    }
    
    .ai-processing {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .institutions {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

