html {
    overflow: auto;
    overflow-x: hidden;
    box-sizing: border-box; /* Added for better layout control */
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: #f7f3f0;
    padding-top: 90px; 
}

/* Glass Navbar */
.glass-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 2rem;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

/* Scrolled: solid white, no glass effect */
.glass-navbar.scrolled {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    backdrop-filter: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #a0522d;
    letter-spacing: 2px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.glass-navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    padding-right: 4rem;
}

.glass-navbar a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.glass-navbar a:hover {
    color: #a0522d;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.glass-navbar a.active {
    color: #fff;
    background: #a0522d;
    border-radius: 8px;
    padding: 0.3rem 1rem;
    box-shadow: 0 2px 8px rgba(160, 82, 45, 0.15);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #a0522d;
    cursor: pointer;
    order: 2;
    z-index: 10;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

/* Hero Section */
.hero {
    padding: 2rem 1rem;
}

.hero .container {
    width: 90%;
    max-width: 1070px;
    margin: 40px auto 50px auto;
    border-radius: 24px;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    padding: 3rem;
}

.hero-img {
    max-width: 380px;
    width: 100%;
    height: 420px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: none;
    display: block;
    margin-left: 0;
    margin-right: auto;
    animation: upDownHeroImg 2.2s ease-in-out infinite;
}

@keyframes upDownHeroImg {
    0% { transform: translateY(0); }
    50% { transform: translateY(-24px); }
    100% { transform: translateY(0); }
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}


@keyframes blink-caret {
    0%, 100% { border-color: #a0522d; }
    50% { border-color: transparent; }
}

.hero-desc {
    font-size: 1.2rem;
    color: #4b2e13;
    line-height: 1.8;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: bold;
    text-align: justify;
}

/* Fade & slide in effect */
@keyframes fadeSlideIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-on-load {
    opacity: 0;
    animation: fadeSlideIn 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }
.delay-6 { animation-delay: 1.2s; }

/* About Us & History Section */
.about-section, .history-section, .testimonies-section, .contact-section {
    width: 90%;
    margin: 40px auto;
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.about-container, .history-container, .testimonies-container, .contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.about-title, .history-title, .testimonies-title, .contact-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #a0522d;
    margin-bottom: 1rem;
    font-family: 'Segoe UI', Arial, sans-serif;
    position: relative;
    display: inline-block;
}

.about-title::after, .history-title::after, .contact-title::after {
    content: '';
    display: block;
    width: 70%;
    height: 4px;
    background: #a0522d;
    border-radius: 2px;
    margin: 0.5rem auto 0 auto;
}

.about-content, .history-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    margin-top: 2rem;
}

.about-img, .history-img {
    width: 40%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.about-text, .history-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b2e13;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
    width: 60%;
}

/* Testimonies Section */
.testimonial-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
    box-sizing: border-box;
    text-align: left;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #a0522d;
}

.testimonial-author {
    font-weight: bold;
    color: #a0522d;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.9rem;
    color: #8b4513;
    margin: 0;
}

.testimonial-text {
    font-style: italic;
    color: #4b2e13;
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-details {
    text-align: left;
    width: 100%;
}

.contact-details h3 {
    font-size: 1.5rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4b2e13;
    line-height: 1.8;
}

.contact-details .bx {
    font-size: 1.5rem;
    color: #a0522d;
}

.contact-form {
    width: 100%;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4b2e13;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a0522d;
}

.submit-btn {
    background-color: #a0522d;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background-color: #8b4513;
    transform: translateY(-2px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}


/* Responsive adjustments for screens up to 900px */
@media (max-width: 900px) {
    .glass-navbar {
        padding: 1rem 1.5rem;
        column-gap: 1rem;
    }
    .glass-navbar ul {
        gap: 1rem;
        padding-right: 1rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .testimonial-card {
        flex: 1 1 calc(100% - 15px);
        max-width: 100%;
    }
}

/* Responsive adjustments for screens up to 768px */
/* Responsive adjustments for screens up to 768px */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .glass-navbar {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 1rem;
        position: relative; /* Set position for children to be absolute to it */
        z-index: 1000; /* Ensure navbar is on top of other content */
    }
    .logo {
        margin-right: auto;
    }
    .glass-navbar ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        z-index: 999; /* Ensure menu appears on top of content */
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 24px rgba(160, 82, 45, 0.08);
        border-radius: 0 0 16px 16px;
        padding: 1rem 0.5rem 1rem 1rem;
        text-align: center;
    }
    .glass-navbar ul.show {
        display: flex;
    }
    .glass-navbar li {
        width: 100%;
    }
    .glass-navbar a, .glass-navbar a.active {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.7rem 0.8rem;
        border-radius: 8px;
    }
    .hero .container {
        flex-direction: column;
        height: auto;
        padding: 2rem;
    }
    .hero-content {
        padding: 0;
        text-align: center;
    }
    .hero-img {
        height: auto;
    }
    .about-content, .history-content, .contact-content {
        flex-direction: column;
    }
    .about-img, .history-img {
        width: 100%;
    }
    .about-text, .history-text {
        width: 100%;
    }
    .contact-details, .contact-form {
        width: 100%;
    }
    .contact-details p {
        justify-content: center;
    }
}

/* Responsive adjustments for screens up to 450px */
@media (max-width: 450px) {
    .glass-navbar {
        padding: 0.5rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .glass-navbar ul {
        padding: 0.5rem 0.5rem 1rem 0.5rem;
    }
    .hero .container {
        padding: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    .typewriter {
        font-size: 1.8rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .about-section, .history-section, .testimonies-section, .contact-section {
        padding: 2rem 0.5rem;
    }
    .about-container, .history-container, .testimonies-container, .contact-container {
        padding: 1.5rem;
    }
    .about-title, .history-title, .testimonies-title, .contact-title {
        font-size: 2rem;
    }
    .testimonial-card {
        padding: 1rem;
    }
    .contact-details p {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-details p b {
        white-space: nowrap;
    }
}