.home-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    background-size: cover; /* Cover the entire area */
    background-position: center; /* Center the background image */
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    text-align: center;
    color: #fff;
    /* Make sure this section starts below the fixed header */
    /* If you added padding-top to body, this will be correctly positioned */
}

.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1;
}

.home-content {
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
    max-width: 800px; /* Max width for desktop content */
    padding: 20px; /* Default padding for desktop */
}

.home-title-animate {
    font-size: 3.5em; /* Desktop font size */
    margin-bottom: 20px;
    font-family:'M PLUS Rounded 1c';
}

.home-subtitle-animate {
    font-size: 1.2em; /* Desktop font size */
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.8;
    font-family: 'Montserrat';
}

.primary-animate {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 550;
    font-family: 'Raleway';
}

.primary-animate:hover {
    background-color: #0056b3;
}


/* ========================================= */
/* --- Media Queries (Responsiveness) ---  */
/* ========================================= */

/* For screens smaller than 1024px (Tablets, Laptops, Mobile) */
@media screen and (max-width: 1023px) {
    /* Header Adjustments */
    body {
        padding-top: 4.5rem; /* Adjust padding-top for slightly smaller mobile header */
    }
    .header1 {
        padding: 0 15px; /* Adjust padding for smaller screens */
    }
    .main-logo {
        height: 2.8rem; /* Make logo slightly smaller */
        width: 2.8rem;
    }
    .brand-name {
        font-size: 1.2rem; /* Make brand name slightly smaller */
    }
    .hamburger-menu {
        display: block; /* Show hamburger icon */
    }
    /* Hide desktop navigation */
    .main {
        display: none; /* Already defined, but emphasize */
    }

    /* Home Section Adjustments */
    .home-title-animate {
        font-size: 2.5em; /* Reduce title size for tablets */
    }
    .home-subtitle-animate {
        font-size: 1.1em; /* Reduce subtitle size for tablets */
        line-height: 1.6;
    }
    .home-content {
        padding: 15px; /* Reduce padding for tablets */
    }
}

/* For Mobile Phones (Max-width: 480px) */
@media screen and (max-width: 480px) {
    body {
        padding-top: 4rem; /* Further adjust padding-top for smaller phones */
    }
    /* Home Section Adjustments */
    .home-title-animate {
        font-size: 1.8em; /* Further reduce title size for phones */
        margin-bottom: 15px;
    }
    .home-subtitle-animate {
        font-size: 0.9em; /* Further reduce subtitle size for phones */
        margin-bottom: 25px;
        line-height: 1.5;
    }
    .home-content {
        padding: 10px; /* Reduce padding for phones */
    }
    .primary-animate {
        padding: 10px 20px; /* Slightly smaller button for phones */
        font-size: 0.9em;
    }
}

/* For very small Mobile Phones (Max-width: 320px) */
@media screen and (max-width: 320px) {
    /* Home Section Adjustments */
    .home-title-animate {
        font-size: 1.5em; /* Even smaller title for very small phones */
    }
    .home-subtitle-animate {
        font-size: 0.8em; /* Even smaller subtitle for very small phones */
    }
}


/* ========================================= */
/* --- Desktop Specific Styles (min-width) --- */
/* ========================================= */
@media (min-width: 1024px) {
    /* Desktop Navigation */
    .main {
        display: flex; /* Show as flex row on desktop */
        align-items: center;
        width: auto; /* Allow content to dictate width */
        max-height: none; /* Remove max-height constraint */
        opacity: 1; /* Ensure full opacity */
        position: static; /* Remove absolute positioning */
        padding: 0; /* Remove padding for desktop */
        box-shadow: none; /* Remove shadow for desktop */
    }

    /* Hide hamburger menu on desktop */
    .hamburger-menu {
        display: none;
    }

    /* Desktop Navigation Links */
    .main-links {
        flex-direction: row; /* Row layout for desktop */
        flex-grow: 1;
        justify-content: right; /* Align links to the right */
        gap: 35px; /* Space between links on desktop */
        width: auto; /* Allow content to dictate width */
    }
}