* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", sans-serif;
    background: #fff;
    color: #222;
    scroll-behavior: smooth;
}

.lang-switch a {
    color: #2c7a7b;
    text-decoration: none;
}

.lang-switch a:hover {
    color: #1e4e4f;
}

.lang-switch a.active-lang {
    font-weight: 900;
    cursor: default;
    color: #2c7a7b !important;
}

.form-badge {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    color: #fff;
    z-index: 1000;
}

.form-badge.error {
    background: #e53e3e;
}

.form-badge.success {
    background: #38a169;
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
}

.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 999;
    border-bottom: 1px solid #eee;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #2c7a7b;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c7a7b;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #1e4e4f;
}

.lang-switch {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-weight: 600;
    color: #2c7a7b;
    white-space: nowrap;
    cursor: pointer;
}

#education h4 {
    margin-bottom: 10px;
}

#education .card p:last-child {
    text-align: center;
    padding: 30px 0 0;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: center;
        display: none;
        margin-top: 1rem;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .lang-switch {
        position: static;
        margin-top: 1rem;
    }

    .profile-img {
        width: 80% !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        justify-content: flex-start;
        width: auto;
    }
}

@media (min-width: 1025px) {
    .nav-links {
        justify-content: center;
        width: 100%;
    }
}

header {
    height: 100vh;
    background: linear-gradient(
            to bottom right,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.3)
        ),
        url("bg.jpg") center/cover no-repeat;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.5rem;
    max-width: 600px;
    margin-top: 1rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

header a.button {
    margin-top: 4rem;
    background: #2c7a7b;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

header a.button:hover {
    background: #1e4e4f;
}

section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: auto;
}

.alt-section {
    background: #f0f4f5;
}

h2 {
    font-size: 2.5rem;
    color: #2c7a7b;
    margin-bottom: 20px;
    text-align: center;
}

.subtitle {
    text-align: center;
}

.intro {
    text-align: center;
    margin: 0 auto 40px auto;
}

.intro p {
    margin-bottom: 1em;
}

.intro p:last-child {
    margin-bottom: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 24px;
    transition: transform 0.3s ease;
}

.card img {
    transition: opacity 0.3s ease;
    opacity: 0.9;
}

.card:hover {
    transform: translateY(-6px);
}

.card:hover img {
    opacity: 1;
}

.profile-img {
    width: 420px;
    border-radius: 12px;
    display: block;
    margin: 0 auto 30px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-img {
    width: 100%;
    border-radius: 12px;
    display: block;
    margin: 20px 0 0 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

form input,
form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
}

form textarea {
    resize: vertical;
}

form button {
    background: #2c7a7b;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #1e4e4f;
}

footer {
    background: #2c7a7b;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

#thankYouPopup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c7a7b;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 9999;
    font-size: 1rem;
    opacity: 1;
    transition: opacity 0.5s ease, top 0.5s ease;
}

#thankYouPopup.hide {
    opacity: 0;
    top: 0px;
}

#contact .subtitle {
    margin-bottom: 1.5em;
}

#contact .subtitle a {
    text-decoration: none;
    color: #222;
    font-size: 1.2em;
}

#contact .subtitle img {
    vertical-align: middle;
    margin-right: 10px;
}
