* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0rem; /* Make sure this padding matches your header's height */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header {
    background: #000000;
    color: #ffffff;
    padding: 1rem 0; /* Adjusted padding for better vertical centering */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.header1 {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens if needed */
    align-items: center; /* Vertically centers items in the header */
    justify-content: space-between; /* ITO ANG NAGTU-TULAK SA MGA ITEMS SA MAGKABILANG GILID */
    max-width: 1200px;
    margin: auto; /* Centers the header content */
    padding: 0 20px;
    /* font-family: 'Glacial indiffirence'; */
}

.navbar-brand {
    display: flex;
    align-items: center; /* Vertically centers logo and text group */
    text-decoration: none;
    flex-direction: row;
}

.brand-text-group {
    display: flex;
    flex-direction: column; /* Stacks brand name and service description */
    justify-content: center;
    line-height: 1.1; /* Adjust spacing between lines */
}

.main-logo {
    height: 3.1rem;
    width: 3.1rem;
    border-radius: 9999px;
    margin-right: 1rem;
    object-fit: cover;
}

.brand-name {
    color: #e7ba51;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
    white-space: nowrap;
    font-family: 'Roboto Slab';
}

.service-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8em;
    white-space: nowrap;
    margin-top: 0;
    padding-top: 2px;
    font-family: 'Arial';
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: 1px;
    user-select: none;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

.main {
    /* Ito ay para sa desktop navigation. Dapat mag-hide sa mobile. */
    display: flex; /* Default for desktop */
    align-items: center;
    width: auto;
    flex-grow: 1; /* Allows it to take available space */
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: none;
    opacity: 1;
    position: static;
    padding: 0;
    box-shadow: none;
}

.main.js-menu-open {
    display: flex;
    flex-direction: column; /* Keep this as it stacks the links vertically */
    max-height: 400px;
    opacity: 1;
    background-color: #ffffff; /* This is the white background */
    position: absolute;
    top: 100%;
    /* Remove left: 0; and right: 0; */
    right: 0; /* Keep only right: 0; to anchor it to the right */
    width: auto; /* Allow content to dictate width */
    min-width: 150px; /* Optional: Set a minimum width for the menu */
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
    /* Add padding-right to the menu itself for overall right spacing */
    padding-right: 1.5rem; /* Adjust as needed for spacing from the right edge */
    padding-left: 1rem; /* Add some padding on the left side too */
}

/* Update the .main-links block inside the media query for mobile */
@media (max-width: 768px) {
    .main-links {
        /* Remove flex-direction: column; if it's already on .main.js-menu-open */
        /* justify-content: flex-end; */ /* Not needed if text-align on nav-link is used */
        width: 100%; 
    }

    .nav-link {
        width: 100%; /* Ensure links take full width of their container */
        padding: 0.75rem 0; /* Adjust padding as needed, remove horizontal padding */
        text-align: right; /* Align text within each link to the right */
    }
}

.main-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row; /* For desktop links */
    flex-grow: 1;
    justify-content: right; /* Aligns links to the right */
    gap: 35px;
    width: auto;
    font-family: 'Lora';
}

.nav-link {
    color: #BF932A;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: block;
    text-decoration: none;
}

.nav-link:hover {
    color: #e0ca96;
    background-color: rgba(255, 255, 255, 0.1);
}

.home-section {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-family: 'Montserrat';
}

.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.home-title-animate {
    font-size: 3em;
    margin-bottom: 0px;
    font-family:'M PLUS Rounded 1c'; 
    color: #d0caaa; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); 
}

.home-subtitle-animate {
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #ffffff; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Subtle shadow */
}

.primary-animate {
    display: inline-block;
    /* Semi-transparent background, adjusting alpha for desired transparency */
    background-color: rgba(0, 0, 0, 0.2); /* Mas transparent para makita ang background */
    color: #fff; /* White text color for contrast */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Add border-color to transition */
    font-weight: 550;
    font-family: 'Raleway';

    /* Gold border */
    border: 1px solid #FFD700; /* Solid gold border, adjust thickness as needed */
}

.primary-animate:hover {
    background-color: rgba(37, 36, 31, 0.4); /* Make it slightly less transparent on hover */
    border-color: #FFA500; /* Change border color on hover if desired (e.g., to orange-gold) */
    color: #FFF; /* Ensure text remains white or preferred color on hover */
}

/* NEW SLIDER CSS FOR HOME SECTION */
.home-section {
    position: relative;
    height: 100vh;
    overflow: hidden; /* Important for hiding overflowing images */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-family: 'Montserrat';
    /* REMOVE background-image: url('indexbackground (1)-Picsart-AiImageEnhancer.jpg'); FROM HERE */
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
}

.slide.active {
    opacity: 1; /* Show active slide */
}

.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust overlay darkness */
    z-index: 1;
}

.home-title-animate {
    font-size: 3em;
    margin-bottom: 0px;
    font-family:'M PLUS Rounded 1c'; 
    color: #d0caaa; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); 
}

.home-subtitle-animate {
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); 
}

.primary-animate {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.2); 
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease; 
    font-weight: 550;
    font-family: 'Raleway';
    border: 1px solid #FFD700;
}

.primary-animate:hover {
    background-color: rgba(37, 36, 31, 0.4);
    border-color: #FFA500;
    color: #FFF;
}

/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */

@media screen and (max-width: 1023px) {
    body {
        padding-top: 4.5rem;
    }
    .header1 {
        padding: 0 15px;
    }
    .main-logo {
        height: 2.8rem;
        width: 2.8rem;
    }
    .brand-name {
        font-size: 1.2rem;
    }
    .hamburger-menu {
        display: block; /* Show hamburger menu on tablets/mobiles */
    }
    .main { /* Hide desktop navigation on tablets/mobiles */
        display: none;
        flex-direction: column; /* When js-menu-open, it will be column */
        width: 100%;
        max-height: 0;
        opacity: 0;
    }
    .main-links {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }
    .nav-link {
        padding: 0.75rem 1rem;
    }
    .home-title-animate {
        font-size: 2.5em;
    }
    .home-subtitle-animate {
        font-size: 1.1em;
        line-height: 1.6;
    }
    .home-content {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-top: 4rem;
    }
    .home-title-animate {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .home-subtitle-animate {
        font-size: 0.9em;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    .home-content {
        padding: 10px;
    }
    .primary-animate {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .service-description { /* Hide service description on very small mobile screens */
        display: none;
    }
}

@media screen and (max-width: 320px) {
    .home-title-animate {
        font-size: 1.5em;
    }
    .home-subtitle-animate {
        font-size: 0.8em;
    }
}

@media (min-width: 1024px) {
    .main { /* Show desktop navigation on large screens */
        display: flex;
        align-items: center;
        width: auto;
        max-height: none;
        opacity: 1;
        position: static;
        padding: 0;
        box-shadow: none;
    }
    .hamburger-menu { /* Hide hamburger menu on large screens */
        display: none;
    }
    .main-links {
        flex-direction: row;
        flex-grow: 1;
        justify-content: right;
        gap: 35px;
        width: auto;
    }
}