/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

/* Form elements fade-in */
.form-group {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 1s; }
.form-group:nth-child(2) { animation-delay: 1.1s; }
.form-row:nth-child(1) .form-group:nth-child(1) { animation-delay: 1s; }
.form-row:nth-child(1) .form-group:nth-child(2) { animation-delay: 1.1s; }
.form-row:nth-child(2) .form-group:nth-child(1) { animation-delay: 1.2s; }
.form-row:nth-child(2) .form-group:nth-child(2) { animation-delay: 1.3s; }
.form-submit-btn {
    opacity: 0;
    animation: fadeIn 0.6s ease-out 1.5s forwards;
}

/* Navigation */
.navbar {
    background-color: #065f46;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1002;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: top 0.3s;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}
.logo-img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.logo-text {
    font-family: 'Sansita Swashed', cursive;
    font-weight: 800; /* Extrabold */
    font-size: 2rem;
    color: white;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 800; /* Extrabold */
    color: white; /* Xanh chủ đạo */
    text-transform: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    text-decoration: none !important;
}

.nav-link:hover {
    color: #a7f3d0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    margin-top: 1rem;
    padding-bottom: 1rem;
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    font-weight: 500;
    text-decoration: none !important;
}

.mobile-nav-link:hover {
    color: #a7f3d0;
}

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 16rem;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-section {
    background-color: #ecfdf5;
    padding: 4rem 0;
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #a7f3d0;
}

.contact-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: #059669;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #a7f3d0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 6rem;
}

.form-submit-btn {
    width: 100%;
    background-color: #065f46;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-submit-btn:hover {
    background-color: #064e3b;
}

.form-disclaimer {
    font-size: 0.875rem;
    color: #059669;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #065f46;
    color: white;
    padding: 3rem 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-left {
    text-align: left;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

.footer-title {
    font-family: 'Sansita Swashed', cursive;
    font-size: 1.5rem;
    font-weight: bold;
    font-style: 2rem;
}

.footer-subtitle {
    font-size: 1.25rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item i {
    width: 1.25rem;
}

.footer-right {
    text-align: right;
}

.social-title {
    font-family: 'Sansita Swashed', cursive;
    font-size: 1.25rem;
    font-weight: 600;
    font-style: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: color 0.2s, transform 0.2s;
}

.social-link:hover {
    color: #a7f3d0;
    transform: translateY(-2px);
}

.footer-copyright {
    border-top: 1px solid #047857;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-copyright p {
    color: #a7f3d0;
}

/* Toast notification */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: #065f46;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #065f46;
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.2s;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.scroll-to-top:hover {
    background-color: #064e3b;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.show {
        display: block;
    }

    .hero-image {
        height: 20rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-image {
        order: 2;
    }

    .contact-form-container {
        order: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-left {
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-brand {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .footer-left, .footer-right {
        text-align: left !important;
        padding: 0;
        min-width: unset;
    }
    .footer-brand { justify-content: flex-start; }
    .footer-title { font-size: 1.3rem; }
    .social-links { justify-content: flex-start; }
}

@media (min-width: 768px) {
    .hero-image {
        height: 20rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.fade-in-element.visible {
    opacity: 1;
    transform: none;
}

.header, .navbar {
    transition: top 0.3s;
    position: sticky;
    top: 0;
    z-index: 1002;
}
.header.hide, .navbar.hide {
    top: -100px;
}
