/* ============================================
   ChildLab UJ v3 - Academic Clean Design
   Inspiration: Sinclair Lab (Rice University)
   ============================================ */

/* CSS Variables - Clean Academic Style */
:root {
    /* Colors - Clean academic palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-dark: #1a1a2e;
    
    /* UJ Academic Colors - Navy/Crimson */
    --accent-primary: #1e3a5f;      /* Navy blue */
    --accent-secondary: #8b2942;    /* Crimson/burgundy */
    --accent-light: #c9d6e3;        /* Light blue-gray */
    
    --text-primary: #1a1a2e;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    
    /* Typography - Clean academic fonts */
    --font-heading: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 6rem;
    --container-max: 1100px;
    
    /* Transitions */
    --transition: 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

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

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

ul {
    list-style: none;
}

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

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   NAVIGATION - Clean Minimal
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--bg-tertiary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

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

.logo-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Nunito', 'Comic Neue', var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.logo-accent {
    color: #5B9BA8;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
}

/* Hero z dużym logo */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg-logo {
    position: absolute;
    top: 65%;
    right: -5%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.hero-bg-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-with-logo {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 1100px) {
    .hero-bg-logo {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 900px) {
    .hero-with-logo {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-bg-logo {
        width: 300px;
        height: 300px;
        opacity: 0.12;
        top: 70%;
    }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-secondary);
    transition: var(--transition);
}

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

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

.nav-cta {
    background: var(--accent-primary);
    color: var(--text-light) !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 4px;
    font-weight: 500;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--accent-secondary);
}

/* Language Switcher */
.lang-switcher {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--bg-tertiary);
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 4px;
    transition: var(--transition);
}

.lang-link:hover {
    background: var(--accent-primary);
    color: var(--text-light);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

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

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

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

/* ============================================
   HERO SECTION - Clean Academic
   ============================================ */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10rem 0 6rem;
    background: var(--bg-primary);
}

.hero-content {
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero h1 {
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-text {
    padding: 0.5rem 0;
    color: var(--accent-primary);
    font-weight: 500;
    background: none;
    border: none;
}

.btn-text:hover {
    color: var(--accent-secondary);
}

/* Gallery w sekcji O nas */
.about-gallery {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-photo-large,
.about-photo-small {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(30, 58, 95, 0.12);
}

.about-photo-large img,
.about-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.about-photo-large {
    aspect-ratio: 16/9;
}

.about-photo-small {
    aspect-ratio: 4/3;
}

.about-photo-large:hover img,
.about-photo-small:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .about-gallery {
        grid-template-columns: 1fr;
    }
    .about-photo-large,
    .about-photo-small {
        aspect-ratio: 16/9;
    }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-padding) 0;
}

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

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section-header {
    margin-bottom: 3rem;
}

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

.section-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section h2 {
    font-family: var(--font-body);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-dark h2 {
    color: var(--text-light);
}

.section-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* ============================================
   RESEARCH AREAS - Key Feature
   ============================================ */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.research-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--bg-tertiary);
    transition: var(--transition);
}

.research-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.research-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: var(--text-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.research-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.research-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-tertiary);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

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

/* ============================================
   PUBLICATIONS
   ============================================ */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.publication-item:first-child {
    padding-top: 0;
}

.publication-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.publication-year {
    color: var(--accent-secondary);
    font-weight: 600;
}

.publication-journal {
    color: var(--text-muted);
}

.publication-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.publication-title a {
    color: inherit;
}

.publication-title a:hover {
    color: var(--accent-primary);
}

.publication-authors {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--bg-tertiary);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .team-photo img {
    transform: scale(1.05);
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.team-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   JOIN US / CTA
   ============================================ */
.cta-section {
    padding: 5rem 0;
    background: var(--accent-primary);
    color: var(--text-light);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-section .btn-secondary {
    border-color: rgba(255,255,255,0.3);
    color: var(--text-light);
}

.cta-section .btn-secondary:hover {
    background: var(--text-light);
    color: var(--accent-primary);
    border-color: var(--text-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.footer-logo-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-text {
    font-family: 'Nunito', var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
}

.footer-description {
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    opacity: 0.9;
    font-weight: 600;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    font-size: 0.95rem;
    opacity: 0.7;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    opacity: 0.7;
    font-size: 1.1rem;
}

.footer-social a:hover {
    opacity: 1;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    padding: 10rem 0 4rem;
    background: var(--bg-secondary);
}

.page-header-content {
    max-width: 700px;
}

.page-header h1 {
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Logo w tle na podstronach */
body > .hero-bg-logo {
    position: fixed;
    top: 60%;
    right: -2%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 900px) {
    body > .hero-bg-logo {
        width: 300px;
        height: 300px;
        opacity: 0.12;
        top: 70%;
    }
}

.page-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CONTENT PAGES
   ============================================ */
.content-section {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
}

.content-main {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.content-main h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.content-main p {
    margin-bottom: 1.25rem;
}

.content-sidebar {
    position: sticky;
    top: 8rem;
    height: fit-content;
}

.sidebar-box {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sidebar-box h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* ============================================
   FEATURE LIST
   ============================================ */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    color: var(--text-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-primary);
    color: var(--text-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-details p,
.contact-details a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-details a:hover {
    color: var(--accent-primary);
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

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

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

/* ============================================
   RESEARCH PAGE SPECIFIC
   ============================================ */
.project-card {
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-status {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.375rem 0.75rem;
    background: var(--accent-secondary);
    color: var(--text-light);
    border-radius: 4px;
    font-weight: 500;
}

.project-status.ongoing {
    background: #22c55e;
}

.project-status.recruiting {
    background: var(--accent-secondary);
}

.project-status.completed {
    background: var(--text-muted);
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   INSTAGRAM SECTION
   ============================================ */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 95, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.instagram-overlay i {
    color: white;
    font-size: 1.5rem;
}

.instagram-item:hover img {
    transform: scale(1.05);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

@media (max-width: 1024px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 4rem;
    }
    
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-grid,
    .contact-grid,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .content-sidebar {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 1.5rem;
        gap: 0.5rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: 0.875rem 0;
        border-bottom: 1px solid var(--bg-tertiary);
    }
    
    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 0.5rem;
    }
    
    .lang-link {
        width: 100%;
        height: 40px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .research-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .project-header {
        flex-direction: column;
        gap: 0.75rem;
    }
}
