body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    /* background-color: #28a745; */
    background-color: #f0f0f0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.logo {
    color: black;
    font-size: 50px;
    font-weight: bold;
    /* margin-right: 850px; */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.logo-img {
    height: 120px;
    width: auto; 
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    /* flex-wrap: nowrap; */
}

.nav-links li {
    margin-left: 25px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0);
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;

}

.nav-links li a:hover {
    color: #ff8c00;
}

/* Responsive Menu Toggle */
.menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Media query for intermediate screens (900px to 769) */
@media (max-width: 900px) {
    .logo {
        font-size: 40px;
    }
    .logo-img {
        height: 80px;
    }
    .nav-links li {
        margin-left: 16px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    nav {
        padding: 10px 20px;
        justify-content: space-between;
    }
    .logo {
        margin-right: 0;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        /* left: 0;
        right: 0; */
        background: rgba(0, 0, 0, 0.9);
        padding: 60px 20px 20px;
        transition: right 0.3s ease;
    }
    .nav-links.active {
        display: flex;
        right: 0;
    }
    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }
}

/* Scroll Behavior (New Addition) */
nav.scrolled {
    background-color: rgba(87, 68, 68, 0.9); /* Matches mobile menu background for consistency */
}
nav.scrolled ul li a {
    color: #ffffff; /* White for visibility against dark background */
}
nav.scrolled ul li a:hover {
    color: #ff8c00;
}
nav.scrolled .menu-toggle {
    color: #ffffff; /* Ensure toggle remains visible */
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    z-index: 1;
}

/* Pseudo-element for transparent background image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/output2.jpg') no-repeat center center/cover;
    opacity: 0.8; 
    z-index: 0; 
    animation: dance 15s ease-in-out infinite;
}

/* Animation for dancing effect */
@keyframes dance {
    0% { background-position-y: 40%; } /* Start slightly above center */
    50% { background-position-y: 60%; } /* Move down */
    100% { background-position-y: 40%; } /* Back to start */
}

.hero-content {
    color: white;
    /* background: none; */
    background: rgba(0, 0, 0, 0.2);
    padding: 40px;
    border-radius: 20px;
    position: relative; /* Ensure content stays above ::before */
    z-index: 1; /* Above the transparent image */
    text-align: center;
    margin-top: 250px;
}

.hero-content h1 {
    font-size: 3rem;
    color: #ff8c00;
    margin: 0 0 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 0 auto 30px;
    max-width: 600px;
    text-align: center;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    white-space: nowrap;
}

.btn.primary {
    background: #ff8c00;
    color: white;
}

.btn.secondary {
    background: #ff8c00;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

.chat {
    font-size: 0.9rem;
    color: #28a745;
}

.chat a {
    color: #28a745;
    text-decoration: none;
}

.chat a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}