/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
}

/* Top Header Section */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.4rem;
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
}
.logo img {
    width: 100px;
}
.contact-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-size: 14px;
}

.contact-item a {
    white-space: nowrap; /* Prevents line breaks in phone number */
}

.phone-number {
    white-space: nowrap; /* Ensures phone number stays on one line */
}

.contact-item img {
    width: 32px;
    height: 32px;
}
.visit-now {
    padding: 0.5rem 1.5rem;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.visit-now:hover {
    background-color: #e65c00;
}

/* Navbar Section */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background-color: #1a1a2e;
    position: sticky;
    top: -0.05px;
    z-index: 1000;
}
.nav-links {
    display: flex;
}
.nav-links a {
    color: #fff;
    margin: 0 1rem;
    text-decoration: none;
    font-size: 16px;
}
.nav-links a:hover {
    color: #ff6600;
}

/* Menu Icon with Label */
.menu-icon-container {
    display: none;
    align-items: center;
    cursor: pointer;
}
.menu-icon {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    filter: invert(1);
}
.menu-label {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background-color: #1a1a2e;
        width: 100%;
        padding: 1rem;
    }
    .nav-links a {
        margin: 0.5rem 0;
    }
    .menu-icon-container {
        display: flex;
    }
    .nav-links.active {
        display: flex;
    }
}

/* Extra Small Screen (320px or smaller) */
@media (max-width: 320px) {
    .top-header {
        align-items: flex-start;
        gap: 1rem;
    }
    .contact-info {
        flex-direction: column;
        gap: 0.5rem; /* Reduce spacing */
    }
    .contact-item {
        justify-content: flex-start;
    }
    .visit-now {
        align-self: stretch; /* Button takes full width */
        text-align: center;
    }
}


/* Dropdown container */
.dropdown {
    position: relative;
}

/* Dropdown toggle link */
.dropdown-toggle {
    color: #fff;
    margin: 0 1rem;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

/* Dropdown menu hidden by default */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a2e;
    padding: 0.5rem 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 120px;
}

/* Dropdown menu links */
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

/* Hover effect for dropdown links */
.dropdown-menu a:hover {
    background-color: #ff6600;
    color: #fff;
}

/* Submenu Icon Styling */
.submenu-icon {
    width: 16px; /* Adjust size as needed */
    height: 16px;
    margin-left: 8px; /* Space between text and icon */
    transition: transform 0.5s ease; /* Smooth rotation animation */
    transform-origin: center; /* Rotate from the center */
    filter: invert(1);
}

/* Rotate icon when dropdown is active */
.dropdown.active .submenu-icon {
    transform: rotate(-90deg);
}

/* Show dropdown menu on hover for desktop */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .submenu-icon {
        display: none;
    }
}

/* Show dropdown menu on click for mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .submenu-icon {
        width: 12px; /* Slightly larger icon for better visibility on small screens */
        height: 12px;
    }
}


/* Hero Section Styles */
/* Hero Section Styles */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Ensures the hero section covers the full viewport height */
    overflow: hidden; /* Prevents content from overflowing the section */
}

/* Parallax Container */
.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: translateY(0); /* Initial position for parallax */
    transition: transform 0.1s ease-out;
}

/* Hero Images Container */
.hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Ensure images don’t overflow */
}

/* Hero Images */
.hero-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    object-fit: cover;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth fade effect */
}

/* Active Image */
.hero-images img.active {
    opacity: 1; /* Make the active image visible */
}


/* Black Transparent Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Black with 50% transparency */
    z-index: 1; /* Ensure the overlay is above the image but below the text */
    animation: fadeIn 0.5s ease-in-out;
    opacity: 0; /* Hidden before animation starts */
    animation-fill-mode: forwards;
}

/* Hero Text Section */
.hero-text {
    position: relative;
    top: 40%; /* Centers the text vertically */
    left: 50%; /* Centers the text horizontally */
    transform: translate(-50%, -50%); /* Adjusts for the center alignment */
    color: white;
    text-align: center;
    max-width: 90%; /* Prevents text from being too wide on smaller screens */
    padding: 1rem;
    z-index: 2; /* Ensures the text is above the overlay */
}

/* Hero Text: Heading Animation */
.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0; /* Start invisible */
    transform: translateY(-50px); /* Start above its final position */
    animation: fadeInFromTop 1.5s ease-out forwards; /* Trigger animation */
}

/* Hero Text: Paragraph Animation */
.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0; /* Start invisible */
    transform: translateY(50px); /* Start below its final position */
    animation: fadeInFromBottom 1.5s ease-out 0.5s forwards; /* Delayed animation */
}

/* Hero Text: Button Styles & Animation */
.hero-text button {
    padding: 0.7rem 2rem;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0; /* Start invisible */
    transform: translateY(50px); /* Start below its final position */
    animation: fadeInFromBottom 1.5s ease-out 1s forwards; /* Delayed animation */
}
.hero-text button:hover {
    background-color: #e65c00;
}

/* Letter animation styles */
.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInLetter 0.5s ease forwards;
}

@keyframes fadeInLetter {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Highlighted word styles */
/* General styles for the highlighted word */
#hero-highlight span {
    display: inline-block;
    opacity: 0;
    color: #ffb98b;
    transition: opacity 0.1s ease-in-out;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem; /* Reduce heading size for medium screens */
    }
    .hero-text p {
        font-size: 1rem; /* Adjust text size */
    }
    .hero-text button {
        font-size: 0.9rem; /* Adjust button size */
        padding: 0.5rem 1.5rem; /* Adjust button padding */
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh; /* Adjust the height for smaller screens */
    }
    .hero img {
        object-position: center; /* Ensures the most important part of the image is visible */
    }
    .hero-text {
        top: 50%; /* Re-center the text for the new height */
    }
    .hero-text h1 {
        font-size: 1.8rem; /* Reduce heading size further */
    }
    .hero-text p {
        font-size: 1rem; /* Adjust text size */
    }
    .hero-text button {
        font-size: 0.9rem; /* Adjust button size */
        padding: 0.5rem 1rem; /* Adjust button padding */
    }
}

/* Keyframes for Fade-in Effect */
@keyframes fadeIn {
    0% {
        opacity: 0; /* Fully transparent at the start */
    }
    100% {
        opacity: 1; /* Fully visible at the end */
    }
}

/* Keyframes for Fade-in from Top */
@keyframes fadeInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px); /* Above its final position */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Settle into position */
    }
}

/* Keyframes for Fade-in from Bottom */
@keyframes fadeInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px); /* Below its final position */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Settle into position */
    }
}
