/* Base Reset */
body{
    background-image: linear-gradient(to right, #FFFBD8, #FDD3EB, #DDD7E5, #E5F7FB, #F3FFFD, #FDE0D3, #D3FDE9, #EFD3FD, #FDD3D9);
}
section {
    background-size:50%;
    background-image: url(contents/bg1.jpg);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(to right, #FFFBD8, #FDD3EB, #DDD7E5, #E5F7FB, #F3FFFD, #FDE0D3, #D3FDE9, #EFD3FD, #FDD3D9);
    padding: 20px 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    font-weight: bold;
    font-size: 24px;
    color: #2c3e50;
}

.navbar .nav-links {
    display: flex;
    list-style: none;
}

.navbar .nav-links li {
    margin-left: 30px;
}

.navbar .nav-links a {
    text-decoration: none;
    color: #7f8c8d;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: #000000; 
}

/* Hamburger Icon Styling (Hidden by default) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content Hero */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f4f6f9;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.hero h2{
    color:#2c3e50;
}

.hero p {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero .cta-button {
    padding: 12px 30px;
    /* Make the gradient wide enough to slide */
    background-image: linear-gradient(to right, #FFFBD8, #FDD3EB, #DDD7E5, #E5F7FB, #F3FFFD, #FDE0D3, #D3FDE9, #EFD3FD, #FDD3D9);
    background-size: 200% auto; 
    background-position: left center;
    
    color: black;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-position 1.3s ease; 
}

.hero .cta-button:hover {
    /* Slide the gradient to the left on hover */
    background-position: right center;
}
/* ==========================================================
   Responsive Media Query (Screens smaller than 768px)
   ========================================================== */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 20px 24px; /* Slightly tighter padding for mobile screens */
    }

    .hamburger {
        display: flex; /* Show the hamburger button */
    }

    /* Transform hamburger into an 'X' when open */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* Transform the layout of the links into a vertical dropdown menu */
    .navbar .nav-links {
        position: absolute;
        top: 100%; /* Sits perfectly right under the navbar */
        left: -100%; /* Keeps it hidden off-screen to the left */
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transition: 0.4s ease;
    }

    /* Slides the menu out when active */
    .navbar .nav-links.active {
        left: 0;
    }

    .navbar .nav-links li {
        margin: 20px 0; /* Vertical spacing for mobile links */
    }
}