/* Fonts: Inter for body, Poppins for headings and buttons */

:root {
    --bg-color: #d4edda;
    --primary-text: #124E48;
    --secondary-text: #4A7A74;
    --accent-color: #28A745;
    --accent-hover: #218838;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}



nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-text);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.dropdown-icon {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.dropdown-icon img {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

nav ul li a:hover .dropdown-icon {
    transform: translateY(2px);
}

.btn-contact {
    font-family: 'Poppins', sans-serif;
    background-color: var(--accent-color);
    font-size: 16px;
    color: var(--white);
    padding: 0 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    height: 40px; 
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hamburger & Sidebar */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: opacity 0.3s ease;
}

nav#sidebar.active ~ .header-actions .hamburger {
    opacity: 0;
    pointer-events: none;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-text);
    border-radius: 10px;
    transition: var(--transition);
}

.menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--primary-text);
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.btn-sidebar {
    display: none;
}

.btn-contact:hover {
    background-color: var(--white);
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

/* Main Content */
main {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
    background-color: var(--bg-color);
}

.hero-section {
    width: 100%;
    max-width: 1400px;
}

h1 {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 0rem;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

h1 .top-text {
    font-size: 36px;
    font-weight: 500;
    color: #14565D;
}

h1 .main-text {
    font-size:36px;
    font-weight: 700;

}

.subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--secondary-text);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.2s forwards;
}

.illustration-container {
    width: 100%;
    max-width: 1500px;
    margin-top: 2rem;
    opacity: 0;
    transform: scale(0.9);
    animation: zoomIn 1s 0.4s forwards;
}

.illustration-container img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 900px) {
    h1 .top-text, h1 .main-text {
        font-size: 28px;
    }
    .illustration-container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 5%;
    }
    
    .hamburger {
        display: flex;
    }

    nav#sidebar {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100%;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1001;
        transition: 0.4s ease-in-out;
        padding: 80px 40px;
        display: block; /* Overriding desktop flex if needed */
    }

    nav#sidebar.active {
        right: 0;
    }

    nav#sidebar ul {
        flex-direction: column;
        gap: 2rem;
    }

    nav#sidebar ul li a {
        font-size: 1.2rem;
    }

    .menu-close {
        display: block;
    }

    nav#sidebar .btn-sidebar {
        display: inline-flex;
        margin-top: 2rem;
        width: 100%;
        justify-content: center;
    }

    .btn-header {
        display: none;
    }

    .btn-contact {
        padding: 0 1rem;
        font-size: 14px;
        height: 36px;
    }
    h1 .top-text, h1 .main-text {
        font-size: 24px;
    }
    .subtitle {
        font-size: 14px;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    .illustration-container {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 .top-text, h1 .main-text {
        font-size: 20px;
    }
    main {
        padding-top: 100px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-banner {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 2px solid #c2d1cd;
    gap: 0.5rem;
}

.modal-banner img {
    height: 40px;
    width: auto;
}

.modal-banner h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-text);
    margin: 0;
    font-size: 20px;
    text-align: center;
}

.modal-body {
    padding: 2.5rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 500;
    cursor: pointer;
    color: var(--primary-text);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-hover);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #c2d1cd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: var(--white);
    color: var(--primary-text);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: #9cb1ab;
    font-style: italic;
    font-weight: 300;
}

.form-group select:invalid {
    color: #9cb1ab;
    font-style: italic;
    font-weight: 300;
}

.form-group select option {
    color: var(--primary-text);
    font-style: normal;
    font-weight: 400;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-color);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
