@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@700&display=swap');

:root {
    --primary-color: #1a8b8b;
    --primary-dark: #156969;
    --primary-light: #2aa5a5;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --gray-light: #f7fafc;
    --gray-medium: #e2e8f0;
    --error-color: #e53e3e;
    --success-color: #38a169;
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: introFadeOut 0.8s ease-in-out 3.5s forwards;
}

.intro-content {
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-container {
    margin-bottom: 80px;
    animation: logoAppear 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-logo {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 40px rgba(26, 139, 139, 0.15));
}

.intro-space {
    width: 20px;
}

.intro-loader {
    position: relative;
    width: 300px;
    height: 3px;
    background-color: #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    opacity: 0;
    animation: loaderFadeIn 0.4s ease-out 0.8s forwards;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    animation: loaderProgress 2s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 5px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    cursor: pointer;
}

.nav-logo a {
    display: inline-block;
    line-height: 0;
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-link {
    padding: 8px 20px;
    border-radius: 25px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.language-selector {
    position: relative;
    margin-left: 20px;
}

.language-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.language-btn .flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 18px;
}

.language-btn .flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.language-btn:hover {
    background-color: var(--primary-dark);
}

.language-btn .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-btn.active .arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow-hover);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    margin: 0;
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.language-dropdown .flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 16px;
}

.language-dropdown .flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.language-dropdown a:hover {
    background-color: var(--gray-light);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(1.15) contrast(1.2) saturate(1.3) sharpness(1.1);
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 20px;
    transition: opacity 0.3s ease-out;
    will-change: opacity;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-path {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 150px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(26, 139, 139, 0.3) 50%, 
        rgba(26, 139, 139, 0.5) 100%);
    border-radius: 50%;
    filter: blur(20px);
    animation: pulse 3s ease-in-out infinite;
}

.features,
.join-section {
    padding: 80px 0;
    background-color: var(--white);
}

.join-section {
    background-color: #e8f4f4;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background-color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.feature-icon svg,
.feature-icon img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.team-section {
    padding: 80px 0;
    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.team-member {
    grid-column: span 2;
    text-align: center;
}

.team-grid .team-member:nth-child(6) {
    grid-column: 4 / 6;
}

.team-grid .team-member:nth-child(7) {
    grid-column: 6 / 8;
}

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    background-color: var(--gray-medium);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.team-member:hover .team-photo {
    transform: scale(1.05);
    border-color: var(--primary-dark);
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.team-description {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: #e8f4f4;
    border-radius: var(--border-radius);
}

.team-image {
    flex: 1;
    min-width: 250px;
}

.team-image img {
    border-radius: 30px;
    box-shadow: var(--box-shadow);
    width: 100%;
    height: auto;
    background-color: var(--gray-medium);
    border: 4px solid var(--primary-color);
}

.team-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.team-text p {
    margin-bottom: 10px;
}

.team-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.contact-section {
    padding: 80px 0 100px 0;
    background-color: #e8f4f4;
}

.contact-section .section-title {
    color: var(--text-dark);
    margin-bottom: 50px;
}

.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    background-color: var(--primary-color);
    padding: 35px 45px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 22px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-control.error {
    border: 2px solid var(--error-color);
    animation: shake 0.3s ease-in-out;
}

textarea.form-control {
    resize: vertical;
    min-height: 70px;
    border-radius: 20px;
}

.error-message {
    display: block;
    color: #fed7d7;
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 16px;
}

.btn-submit {
    width: auto;
    padding: 10px 35px;
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    margin: 18px auto 0;
}

.btn-submit:hover {
    background-color: var(--gray-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit:active {
    transform: translateY(0);
}

.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 25px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    width: fit-content;
}

.footer-logo img {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.footer-info p,
.footer-links li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.footer-info p strong {
    font-weight: 700;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0%;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    transition: var(--transition);
    color: var(--white);
}

.footer-links a:hover {
    color: var(--gray-light);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
    overflow: hidden;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-icon.facebook img,
.social-icon.instagram img {
    width: 110%;
    height: 110%;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.facebook:hover,
.social-icon.instagram:hover,
.social-icon.twitter:hover {
    opacity: 0.85;
}

.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.fade-section {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-section.visible {
    opacity: 1;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes loaderFadeIn {
    to { opacity: 1; }
}

@keyframes loaderProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes introFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .intro-logo {
        width: 160px;
    }
    
    .intro-loader {
        width: 250px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 15px;
    }
    
    .nav-menu li {
        margin: 8px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .language-selector {
        margin-left: 0;
        margin-top: 10px;
    }

    .language-btn {
        width: 100%;
        justify-content: center;
    }

    .language-dropdown {
        right: auto;
        left: 0;
        width: 100%;
    }

    .hero {
        height: 80vh;
        min-height: 500px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .team-member {
        grid-column: span 1;
    }
    
    .team-grid .team-member:nth-child(6),
    .team-grid .team-member:nth-child(7) {
        grid-column: span 1;
    }
    
    .team-grid .team-member:nth-child(7) {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .team-photo {
        width: 100px;
        height: 100px;
    }

    .team-description {
        flex-direction: column;
        padding: 30px 20px;
    }

    .team-image {
        min-width: 100%;
    }

    .contact-form {
        padding: 30px 20px;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .social-icons {
        justify-content: center;
    }
    
    .intro-logo {
        width: 160px;
    }
    
    .intro-text {
        font-size: 1.5rem;
        letter-spacing: 6px;
        gap: 4px;
    }
    
    .intro-loader {
        width: 250px;
    }
    
    .intro-space {
        width: 12px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .feature-icon svg {
        width: 45px;
        height: 45px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .team-member {
        opacity: 0;
        animation: fadeIn 0.6s ease-out forwards;
    }

    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
}