/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fcf9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal scroll during animations */
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header & Navigation --- */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-container h1 {
    font-size: 1.4rem;
    color: #2e8b57;
    line-height: 1.2;
}

.logo-container h1 span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #e0f2f1;
    color: #2e8b57;
}

.nav-btn.active {
    background-color: #2e8b57;
    color: #ffffff;
}

/* --- Main Layout & Page Toggling --- */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 70vh;
}

.page-section {
    display: none;
    animation: fadeInPage 0.6s ease-in-out;
}

.page-section.active {
    display: block;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- PAGE 1: Home & Contact --- */

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #2e8b57 0%, #1e5c3e 100%);
    padding: 60px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    text-align: center;
    color: #ffffff;
}

.welcome-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.welcome-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* About Centre */
.about-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    text-align: center;
}

.about-section h2 {
    color: #2e8b57;
    margin-bottom: 20px;
    font-size: 2rem;
}

.about-section p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Founder Section */
.founder-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.founder-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: center;
}

.founder-image-container {
    width: 100%;
}

.founder-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.founder-info h3 {
    color: #2e8b57;
    margin-bottom: 10px;
    font-size: 2rem;
}

.founder-name {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.founder-bio {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.7;
}

.founder-quote {
    font-style: italic;
    color: #777;
    border-left: 4px solid #2e8b57;
    padding-left: 15px;
    font-size: 1.1rem;
}

/* Quick Connect Section */
.quick-connect-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    text-align: center;
}

.quick-connect-section h2 {
    color: #2e8b57;
    margin-bottom: 20px;
    font-size: 2rem;
}

.quick-connect-section p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.connect-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.2s;
}

.connect-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.connect-btn i { font-size: 1.3rem; }

.call-btn { background-color: #3b5998; }
.call-btn:hover { background-color: #2d4373; }

.whatsapp-btn { background-color: #25D366; }
.whatsapp-btn:hover { background-color: #1ebe57; }

.email-btn { background-color: #DB4437; }
.email-btn:hover { background-color: #c53929; }

/* Address & Map Section */
.address-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.address-section h2 {
    text-align: center;
    color: #2e8b57;
    margin-bottom: 30px;
    font-size: 2rem;
}

.address-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.map-left { width: 100%; }

.map-click-wrapper {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.map-click-wrapper:hover {
    transform: translateY(-5px);
}

.map-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(46, 139, 87, 0.85);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.map-click-wrapper:hover .map-overlay {
    opacity: 1;
}

.map-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.map-click-wrapper iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
    pointer-events: none;
}

.address-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f1f8f4;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.contact-item i {
    font-size: 2.5rem;
    color: #2e8b57;
    margin-top: 5px;
}

.contact-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.contact-info p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Social Links */
.social-links {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.social-links h3 {
    width: 100%;
    margin-bottom: 10px;
    color: #555;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    transition: opacity 0.3s, transform 0.2s;
}

.social-icon:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.facebook { background-color: #1877F2; }
.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.youtube { background-color: #FF0000; } 

/* --- PAGE 2: Services --- */
.services-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-header h2 {
    color: #2e8b57;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.services-header p {
    color: #666;
    font-size: 1.1rem;
}

.category-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2e8b57;
    display: inline-block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h4 {
    color: #2e8b57;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    color: #555;
    font-size: 0.95rem;
}

/* --- Footer --- */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* =========================================
   SCROLL ANIMATION CLASSES
   ========================================= */

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

/* Animation Types */
.slide-up {
    transform: translateY(60px);
}

.zoom-in {
    transform: scale(0.9);
}

/* Triggered State */
.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Delays for Grid Elements */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        flex-direction: column;
    }
    
    nav {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .welcome-section {
        padding: 40px 20px;
    }

    .welcome-section h2 {
        font-size: 2rem;
    }

    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-image-container {
        max-width: 300px;
        margin: 0 auto;
    }

    .founder-info h3, .founder-name, .founder-bio {
        text-align: center;
    }

    .founder-quote {
        border-left: none;
        border-top: 2px solid #2e8b57;
        padding-left: 0;
        padding-top: 15px;
    }

    .connect-links {
        flex-direction: column;
        align-items: stretch;
    }

    .address-layout {
        grid-template-columns: 1fr;
    }

    /* Remove animation delays on mobile to prevent empty screens */
    .delay-1, .delay-2, .delay-3 {
        transition-delay: 0s;
    }
}