:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #2980b9;
    --light: #ecf0f1;
    --dark: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica', 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.container {
    width: 90%;
    margin: 0 auto;
}

header {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Mobile-first navigation */
.menu-toggle {
    display: block;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    color: white;
}

.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.main-nav.show {
    max-height: 500px;
}

.main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
    list-style: none;
}

.main-nav ul li {
    margin: 0;
    text-align: center;
    padding: 0.8rem 0;
    width: 100%;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, background-color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
    color: var(--accent);
}

.lang-item {
    margin-left: 0;
    margin-top: 0.5rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.lang-switcher button {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-switcher button:hover,
.lang-switcher button:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-switcher button.active {
    background-color: var(--primary);
    border-color: var(--accent);
}

.hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://placehold.co/600x400') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    width: 90%;
    margin: 0 auto;
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover,
.btn:focus {
    background-color: #2980b9;
}

section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--accent);
    bottom: 0;
    left: 25%;
}

.services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-5px);
}

.service-img {
    height: 180px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 1.2rem;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.about {
    background-color: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-img {
    height: 250px;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: white;
    font-size: 1.3rem;
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.map {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
}

.map img {
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 8px;
}

/* Team profile styles */
.team-profile {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.team-profile-img {
    max-width: 100%;
}

.team-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-profile-content {
    padding: 1.5rem;
}

.team-profile-content h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.team-profile-content .title {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-profile-content .subtitle {
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.team-profile-content .contact-info {
    margin-bottom: 0.5rem;
    display: block;
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 0 1rem;
}

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

.footer-logo {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-links h3::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: var(--accent);
    bottom: 0;
    left: 0;
}

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

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover,
.footer-links ul li a:focus {
    color: white;
}

/* Institutions styles */
.institutions {
    margin-bottom: 1.5rem;
}

.institutions h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}

.institutions-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.institutions-list a {
    color: #EEE;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.institutions a:hover,
.institutions a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer button */
.footer-btn {
    margin-top: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 1.5rem;
    border-radius: 8px;
    width: 90%;
    animation: modalFade 0.3s;
    outline: none;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    float: right;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
}

/* Modal title */
.modal-title {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

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

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

/* Toast Notification */
.toast {
    visibility: hidden;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 80%;
    text-align: center;
}

.toast.show {
    visibility: visible;
    animation: fadeIn 0.5s, fadeOut 0.5s 2.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        bottom: 0;
    }

    to {
        opacity: 1;
        bottom: 20px;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        bottom: 20px;
    }

    to {
        opacity: 0;
        bottom: 0;
    }
}

/* Focus Outline for all interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Media Queries for larger screens */
@media (min-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .logo {
        font-size: 1.6rem;
    }

    .container {
        max-width: 720px;
    }

    .hero {
        height: 65vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .modal-content {
        width: 80%;
        max-width: 600px;
        margin: 10% auto;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-profile {
        flex-direction: row;
    }

    .team-profile-img {
        flex: 0 0 40%;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        max-height: none;
        background-color: transparent;
        box-shadow: none;
        width: auto;
    }

    .main-nav ul {
        display: flex;
        flex-direction: row;
        padding: 0;
    }

    .main-nav ul li {
        margin-left: 2rem;
        padding: 0;
        width: auto;
        text-align: left;
    }

    .lang-item {
        margin-left: 2rem;
        margin-top: 0;
    }

    .lang-switcher {
        margin-left: 2rem;
        margin-top: 0;
    }

    .hero {
        height: 70vh;
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://placehold.co/1200x800') center/cover no-repeat;
    }

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

    .services {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .team-profile-img {
        flex: 0 0 30%;
        max-width: 300px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}