/* Floating Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    color: white;
    z-index: 2; /* Ensure it stays above other content */
    padding: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.top-nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.top-nav ul li {
    margin: 0 20px;
}

@media screen and (max-width: 768px) {
    .top-nav ul {
      display: flex !important;
      flex-direction: row !important; /* ✅ keep horizontal */
      justify-content: center;
      align-items: center;
      position: static;
      background: transparent;
      padding: 10px 0;
    }
  
    .top-nav ul li a:hover {
        color: #FFD700; /* ✅ Gold on hover (same style) */
      }
  
    .menu-toggle {
      display: none !important; /* ✅ Hide hamburger forever */
    }
  }

    .top-nav ul.show {
        display: flex; /* Show when menu is toggled */
    }

    .top-nav ul li {
        margin: 10px 0;
    }

    .top-nav ul li a {
        color: white !important; /* ✅ Links stay white */
        font-size: 16px; /* ✅ Slightly smaller for mobile */
        padding: 8px 10px; /* ✅ padding around text */
        font-weight: bold;
        text-decoration: none;
        transition: color 0.3s ease;


    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: white;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 3;
    }
}


/* Smooth Fade-in for Navigation Links */
.top-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
    opacity: 0; /* Initially invisible */
    animation: fadeInNav 1.5s ease-out forwards; /* Fade-in animation */
    animation-delay: 0.5s; /* Delay to make it appear after page load */
}

/* Fade-in Keyframe for Navigation Links */
@keyframes fadeInNav {
    0% {
        opacity: 0; /* Start invisible */
    }
    100% {
        opacity: 1; /* End fully visible */
    }
}

.top-nav ul li a:hover {
    color: #FFD700; /* Highlight color on hover */
}

/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: scroll; /* Horizontal scrolling */
    overflow-y: hidden; /* Disable vertical scrolling */
    white-space: nowrap; /* Prevent wrapping */
    scroll-behavior: smooth;
    animation: fadeInBody 1.5s ease-out forwards; /* Fade-in animation for the whole body */
}

/* Fade-in Keyframe for Body Text */
@keyframes fadeInBody {
    0% {
        opacity: 0; /* Start invisible */
    }
    100% {
        opacity: 1; /* End fully visible */
    }
}

.scroll-container {
    display: flex;
    height: 100vh; /* Full screen height for each section */
}

.section {
    position: relative;
    min-width: 100vw;
    height: 100vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1;
    opacity: 0; /* Initially invisible */
    animation: fadeIn 1.5s ease-out forwards; /* Fade in animation */
}

/* Fade-in Keyframe */
@keyframes fadeIn {
    0% {
        opacity: 0; /* Start invisible */
    }
    100% {
        opacity: 1; /* End fully visible */
    }
}

/* Background PNG with Hue Animation */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background_OP.png') center/cover no-repeat;
    z-index: -1;
    animation: hueShift 12s infinite alternate;
}

/* Hue Animation for Background */
@keyframes hueShift {
    0% {
        filter: hue-rotate(0deg);
    }
    25% {
        filter: hue-rotate(90deg);
    }
    50% {
        filter: hue-rotate(180deg);
    }
    75% {
        filter: hue-rotate(270deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Floating Clouds */
.cloud {
    position: absolute;
    width: 100px;
    height:75px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    opacity: 0.5;
    animation: floatUpDown 6s infinite ease-in-out;
}

#cloud1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}




/* Cloud Floating Animation */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(10px);
    }
}


/* === SERVICES SECTION - DESKTOP === */
#services {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 1rem 3rem 1rem;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    color: #333;
    position: relative;
    z-index: 1;
}

.services-container {
    width: 96vw;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin: 0 auto;
    padding: 0;
}

.services-schedule,
.services-gallery {
    display: none;
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    overflow: hidden;
}

.services-schedule.active,
.services-gallery.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.services-schedule h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.8rem;
    text-align: center;
    color: #444;
}

.schedule-list {
    list-style: none;
    padding: 0;
    text-align: center;
    margin: 0;
}

.schedule-list li {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    font-size: clamp(1rem, 1vw, 1rem);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.schedule-list strong {
    margin-right: 8px;
    white-space: nowrap;
    color: #ff5733;
}

.services-schedule p {
    margin-top: 1rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #666;
    text-align: center;
}



/* === SERVICES SECTION - MOBILE FINAL CORRECTED === */
@media screen and (max-width: 768px) {
    #services {
        padding: 5rem 0.5rem 2rem 0.5rem;
    }

    .services-container {
        flex-direction: row; /* ✅ Keep row */
        width: 100%;
        max-width: 650px; /* ✅ Expand for breathing room */
        padding: 0;
        margin: 0 auto;
        box-sizing: border-box;
        justify-content: space-between;
        align-items: flex-start;
    }

    .services-schedule,
    .services-gallery {
        flex: 1;
        min-width: 47%; /* ✅ Leave breathing room between boxes */
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        font-size: clamp(0.8rem, 2.8vw, 1rem); /* ✅ Slightly smaller font */
        text-align: left;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        box-sizing: border-box;
    }

    .services-schedule h2 {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        margin-bottom: 0.6rem;
        text-align: center;
    }

    .schedule-list li {
        font-size: clamp(0.9rem, 2.8vw, 1rem);
        margin-bottom: 0.5rem;
        line-height: 1.2; /* ✅ Comfortable */
    }

    .services-schedule p {
        margin-top: 1rem;
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        color: #666;
        text-align: center;
    }
}



/* Gallery center */
.services-gallery .gallery-container {
    margin: auto;
    position: relative;
    width: 240px;
    height: 240px;
}

.polaroid {
    position: absolute;
    width: 180px;
    height: 180px;
    background-size: cover;
    background-position: center;
    border: 4px solid white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.polaroid:hover {
    transform: scale(1.1) rotate(-5deg);
}

/* Messy positions */
#photo1 { background-image: url('./gallery/1.jpg'); transform: rotate(-15deg) translate(10px, -20px); }
#photo2 { background-image: url('./gallery/2.jpg'); transform: rotate(10deg) translate(-30px, 5px); }
#photo3 { background-image: url('./gallery/3.jpg'); transform: rotate(-5deg) translate(5px, 30px); }
#photo4 { background-image: url('./gallery/4.jpg'); transform: rotate(20deg) translate(-20px, -5px); }
#photo5 { background-image: url('./gallery/5.jpg'); transform: rotate(-25deg) translate(25px, 15px); }

/* Toggle Buttons */
.services-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.services-toggle button {
    padding: 10px 20px;
    background-color: #ff5733;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.services-toggle button:hover {
    background-color: #e04e2e;
}

/* MOBILE */
@media screen and (max-width: 768px) {
    .services-container {
        flex-direction: column;
        gap: 2rem;
    }

    .services-schedule,
    .services-gallery {
        width: 100%;
    }

    .services-gallery .gallery-container {
        width: 200px;
        height: 200px;
    }

    .polaroid {
        width: 160px;
        height: 160px;
    }
}
.polaroid {
    opacity: 1;
    transition: opacity 0.3s ease;
}   

/*  polaroid and services container */

/*about*/
#about {
    text-align: center;
    padding: 1rem;
    margin: 0 auto;
    color: #444;
    max-width: 40%; /* Limit width to avoid too much stretching */
    padding-top: 2vh; /* Move about section text higher by adjusting the top padding */
    background-color: rgba(0, 0, 0, 0.7);
    overflow-wrap: break-word; /* Break words that are too long */
    word-wrap: break-word; /* For backward compatibility */
    word-break: break-word; /* Break long words at arbitrary points */
    white-space: normal; /* Allow wrapping of text */
}
.about-container {
    display: flex;
    width: 50%;
    max-height: fit-content;
    gap: 8rem;
    flex: 1;
    max-width: 50%; /* Control width */
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8); /* Transparent white */
    border-radius: 6px;
    box-shadow: 1 4px 6px rgba(0, 0, 0, 0.1);
}



#about p {
    margin: 10px 0; /* Reduces space between paragraphs */
    line-height: 1; /* Ensures line spacing is more compact */
    font-size: 1rem; /* Slightly smaller font size for better readability */
    text-shadow: 0.2px 0.2px 0.2px rgba(0, 0, 0, 0.8); /* Text shadow for consistency */
    word-wrap: break-word; /* For backward compatibility */
    word-break: break-word; /* Break long words at arbitrary points */
    white-space: normal; /* Allow wrapping of text */
}

#about h2 {
    margin-bottom: 20px; /* Reduces space below the heading */
    font-size: 1rem;
    text-shadow: 0.2px 0.2px 0.2px rgba(0, 0, 0, 0.9); /* Text shadow for heading */
    word-wrap: break-word; /* For backward compatibility */
    word-break: break-word; /* Break long words at arbitrary points */
    white-space: normal; /* Allow wrapping of text */
}

#about h3 {
    margin-bottom: 10px; /* Reduces space below subheadings */
    font-size: 1rem;
    text-shadow: 0.2px 0.2px 0.2px rgba(0, 0, 0, 0.8); /* Text shadow for subheadings */
    word-wrap: break-word; /* For backward compatibility */
    word-break: break-word; /* Break long words at arbitrary points */
    white-space: normal; /* Allow wrapping of text */
}

/* General Text Adjustments for About Section */
#about .content {
    margin-bottom: 25px; /* Decreases the space below the content */
    word-wrap: break-word; /* For backward compatibility */
    word-break: break-word; /* Break long words at arbitrary points */
    white-space: normal; /* Allow wrapping of text */
}

#about .content p {
    margin-bottom: 5px; /* Decreases the space between paragraphs */
    line-height: 1.5; /* Adjusts line height to avoid too much space between lines */
    word-wrap: break-word; /* For backward compatibility */
    word-break: break-word; /* Break long words at arbitrary points */
    white-space: normal; /* Allow wrapping of text */
}

/* Fixed Image at the Bottom Right Corner */
.fixed-image {
    position: fixed;
    bottom: 20px; /* Distance from the bottom */
    left: 20px;  /* Distance from the right */
    width: 200px; /* Adjust size */
    height: auto;
    z-index: 3; /* Ensure the image stays above other elements */
    opacity: 0.7; /* Control transparency (0 is fully transparent, 1 is fully opaque) */
 
}

/* Language Toggle Button Styles - Desktop (default) */
.language-toggle {
    position: fixed;
    bottom: 5%;
    right: 1%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
}

.language-toggle button {
    color: white;
    background-color: transparent;
    border: 1px solid white;
    padding: 5px 10px;
    margin: 1px 5px; /* 🛠️ Fix typo: '1' to '1px' */
    cursor: pointer;
    font-size: 16px;
}

.language-toggle button:hover {
    background-color: white;
    color: black;
}

/* 📱 Mobile Only Adjustments */
@media screen and (max-width: 768px) {
    .language-toggle {
        bottom: 15%; /* 🛠️ Move the toggle higher on mobile */
        right: 2%;
        padding: 8px;
    }

    .language-toggle button {
        font-size: 14px; /* 🛠️ Slightly smaller buttons on mobile */
        padding: 5px 8px;
    }
}

/* Text Shadows for General Text */
.text {
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8); /* Add text shadow to general text */
}

.text.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Desktop Pop-up Box */
.popup-box {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 80%;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    opacity: 0;
    animation: slideUp 2s ease-out 1s forwards;
}

/* Mobile Pop-up Adjustments */
@media screen and (max-width: 768px) {
    .popup-box {
        bottom: 45%;
        width: 90%;
        padding: 8px;
    }
}
/* Large Text in Pop-up */
.popup-text {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 5px 0;
}

.large-text {
    font-size: 26px;
    font-weight: bold;
    color: #ff5733; /* Highlighted text */
}

/* Pop-up Animation */
@keyframes slideUp {
    from {
        bottom: -20%; /* Move closer to screen */
        opacity: 0;
    }
    to {
        bottom: 22%; /* Raise higher */
        opacity: 1;
    }
}

/* === HOME SECTION === */
#home {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding-top: 25vh;
    overflow: hidden; /* Prevent glitches during animation */
}

#home h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    transition: opacity 1s ease, transform 1s ease; /* Smooth entry */
}

#home p {
    font-size: 1rem;
    font-weight: normal;
    margin-top: 1%;
    transition: opacity 1s ease, transform 1s ease; /* Smooth entry */
}

/* === POP-UP BOX === */
.popup-box {
    position: absolute;
    bottom:25%;
    left: 50%;
    transform: translate(-50%, 30px); /* Start a bit lower */
    width: 80%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    opacity: 0;
    animation: floatUpDesktop 1.8s ease-out 1s forwards;
}

/* Text Inside Pop-up */
.popup-text {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 5px 0;
}

.large-text {
    font-size: 26px;
    font-weight: bold;
    color: #ff5733;
}

/* Animation for Desktop */
@keyframes floatUpDesktop {
    0% {
        opacity: 0;
        transform: translate(-50%, 40px); /* Lower start */
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0px); /* Perfect center */
    }
}

/* === FIXED CORNER IMAGE === */
.fixed-image-container {
    position: fixed;
    bottom: 30%;
    left: 20px;
    width: 150px;
    height: auto;
    z-index: 3;
}

.fixed-image {
    width: 15%;
    height: auto;
    border-radius: 10px;
    opacity: 1;
    transition: opacity 1.5s ease-in-out, transform 1s ease-in-out;
}

/* === MOBILE ADJUSTMENTS === */
@media screen and (max-width: 768px) {
    #home {
        padding-top: 20vh;
    }

    .popup-box {
        bottom: 42%; /* Higher for mobile */
        width: 90%;
        padding: 8px;
        animation: floatUpMobile 2.3s ease-out 1.2s forwards; /* Mobile smooth float */
    }

    .fixed-image-container {
        bottom: 10px;
        left: 10px;
        width: 25%;
    }

    .fixed-image {
        border-radius: 5px;
        opacity: 0.9;
    }
}

/* Mobile Animation */
@keyframes floatUpMobile {
    0% {
        opacity: 0;
        transform: translate(-50%, 50px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0px);
    }
}

/* Language Button */
@media screen and (max-width: 768px) {
    .language-toggle {
        bottom: 5% !important;
        top: auto !important;
        position: fixed !important;
    }
}

/* Fade-out (General) */
.fade-out {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

#contact {
    display: flex;
    justify-content: center;
    padding: 4rem 1rem;
    background: transparent;
    position: relative; /* for the floating cloud */
}

.contact-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.contact-text-container {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.contact-text-container h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.contact-text-container p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
}

/* Image container */
.contact-images-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-image {
    width: 40%;
    max-width: 280px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 📱 Mobile */
@media screen and (max-width: 768px) {
    .contact-box {
        padding: 1.5rem;
    }

    .contact-text-container {
        max-width: 80%;
    }

    .contact-images-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-image {
        width: 75%;
    }
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-icon {
    width: 20px;
    height: 20px;
}

/* Hover / Tap effect */
.location-link:hover,
.location-link:active {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(255, 87, 51, 0.6); /* Nice glow */
}