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

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Body Layout */
body {
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    height: 80px;
    background: linear-gradient(135deg, /*#667eea*/#7542f5 0%, /*#764ba2*/#f59e42 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 100%;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
}

/* Menu Bar Styles */
.menu-bar {
    background-color: #2c3e50;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-bar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    height: 50px;
    margin: 0;
    padding: 0;
}

.hamburger {
    display: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: white;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-bar.open {
    max-height: 400px;
}

.menu-bar.open .menu-bar ul {
    display: flex;
}

.menu-bar li {
    flex: 1;
    display: flex;
    align-items: center;
}

.menu-bar a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 1.5rem;
    color: #ecf0f1;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.menu-bar a:hover {
    background-color: #34495e;
}

.menu-bar a:active {
    background-color: #667eea;
}

/* Main Content Area */
main {
    flex: 1;
    margin-top: 130px;
    margin-bottom: 60px;
    overflow-y: auto;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.content-left h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 24px;
}

.content-left p {
    margin-bottom: 1rem;
    color: #555;
}

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

.contact-hero-image {
    width: min(100%, 420px);
    height: auto;
    display: block;
}


.references {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem 2rem;
    display: grid;
    gap: 1.5rem;
}

.reference-item {
    background: #ffffff;
    border: 1px solid #e8eaf2;
    border-left: 4px solid #667eea;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.reference-item p {
    margin-bottom: 0.75rem;
    color: #555;
    line-height: 1.7;
}

.reference-author {
    margin-top: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.reference-author a {
    color: #667eea;
    text-decoration: none;
}

.reference-author a:hover {
    text-decoration: underline;
}

.reference-job {
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* Contact list with icons */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.contact-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 18px;
}

.contact-text p {
    margin: 0;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-icon {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }
}

/* Hero banner */
.hero-banner {
    position: relative;
    margin: 1.5rem 0;
    min-height: 620px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../images/meeting_sm.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.about-hero-banner {
    position: relative;
    margin: 1.5rem 0;
    min-height: 620px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../images/laboratory_sm.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.hero-banner::before, .about-hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-copy, .about-hero-copy {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    max-width: 1000px;
    text-align: left;
    color: #ffffff;
    font-weight: 300;
}

.hero-copy h3, .about-hero-copy h3 {
    font-size: clamp(2.5rem, 3.2vw, 4rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    text-shadow: 0 6px 36px rgba(0,0,0,0.45);
}

.hero-copy h2, .about-hero-copy h2 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 24px;
}

.hero-copy p, .about-hero-copy p {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 820px;
    margin: 0 auto;
    font-weight: 300;
    text-shadow: 0 3px 18px rgba(0,0,0,0.35);
}

.hero-copy h2,
.hero-copy h3,
.hero-copy p,
.about-hero-copy h2,
.about-hero-copy h3,
.about-hero-copy p {
    color: #ffffff;
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 420px;
    }
    .hero-copy {
        padding: 2rem 1.25rem;
    }
    .hero-copy h3 {
        font-size: 2.25rem;
    }
    .hero-copy p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        min-height: 280px;
    }
    .hero-copy {
        padding: 1.5rem 1rem;
    }
    .hero-copy h3 {
        font-size: 1.6rem;
    }
    .hero-copy p {
        font-size: 0.98rem;
    }
}

/* Footer Styles */
footer {
    height: 60px;
    background-color: #2c3e50;
    color: #ecf0f1;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.page-image {
    width: 100%;
    max-width: 360px;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

@media (max-width: 768px) {
    .page-image {
        max-width: 100%;
    }
}

footer p {
    margin: 0;
    font-size: 28px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        height: 70px;
    }

    .header-content {
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .header-logo {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    header h1 {
        font-size: 22px;
    }

    .hamburger {
        display: block;
    }

    .menu-bar {
        top: 70px;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu-bar ul {
        flex-direction: column;
        height: auto;
    }

    .menu-bar li {
        flex: 1 1 100%;
    }

    .menu-bar a {
        padding: 0.75rem 1rem;
        font-size: 14px;
        justify-content: flex-start;
    }

    main {
        margin-top: 120px;
    }

    .content {
        padding: 1.5rem;
    }

    .content h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    header {
        height: 60px;
    }

    .header-logo {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    header h1 {
        font-size: 18px;
    }

    .menu-bar {
        top: 60px;
        height: auto;
    }

    .menu-bar ul {
        flex-wrap: wrap;
    }

    .menu-bar li {
        flex: 1 1 50%;
    }

    .menu-bar a {
        padding: 0.75rem 0.75rem;
        font-size: 13px;
    }

    main {
        margin-top: 100px;
    }

    .content {
        padding: 1rem;
    }

    .content h2 {
        font-size: 18px;
    }

    footer {
        height: 50px;
    }

    footer p {
        font-size: 12px;
    }
}
