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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

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

/* Scroll to the top */
#scrollTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color:  #218872;
    color: white;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 8px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

#scrollTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollTop:hover {
    color:black;
    border: 2px solid rgba(0, 0, 0, 0.5);
}

#scrollTop i {
    font-size: 30px;
}

/* Common Styles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #218872;
    font-weight: 600;
    animation: fadeInUp 0.8s ease forwards;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease forwards;
}

/* Social Links bar */
.top-bar {
    background-color: #218872;
    color: white;
    padding: 0.5rem 2rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info-top {
    display: flex;
    gap: 2rem;
}

.contact-info-top a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}



/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo img {
    max-width: 120px;
    transition: all 0.3s ease;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #218872;
    margin: 5px 0;
    transition: all 0.3s ease;
}


nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: #218872;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #218872;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active::after {
    width: 100%;  
}

/* Footer section */
.footer {
    background-color: #218872;
    color: white;
    padding:2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: white;
}

.footer-column p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

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

.social-links svg {
    transition: transform 0.3s ease;
}

.social-links a:hover svg {
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer .social-links a {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-info-top {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    nav {
        display: none;
    }
    
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        padding: 80px 20px 20px;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        transition: right 0.3s ease;
        z-index: 99;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .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);
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 98;
    }

    .nav-overlay.active {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .top-bar {
        padding: 0.5rem 1rem;
    }
    
    .social-links {
        gap: 1rem;
    }

    .nav-menu {
        width: 90%;
    }
    
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-content {
        padding: 1rem 0;
    }
    
    .footer-column h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .footer .social-links a {
        width: 35px;
        height: 35px;
    }
    
    #scrollTop {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    #scrollTop i {
        font-size: 24px;
    }
}

/* New breakpoint for 320px */
@media (max-width: 320px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .logo img {
        max-width: 100px;
    }
    
    .top-bar {
        padding: 0.5rem;
    }
    
    .contact-info-top {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }

    .hamburger {
        width: 25px;
    }

    .hamburger span {
        height: 2px;
        margin: 4px 0;
    }
    
    .footer {
        padding: 1rem 0.5rem;
    }
    
    .footer-column h3 {
        font-size: 1.1rem;
    }
    
    .footer-column p {
        font-size: 0.9rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .footer .social-links a {
        width: 30px;
        height: 30px;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    #scrollTop {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
    }
    
    #scrollTop i {
        font-size: 20px;
    }
}