/* General Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}


:root {
    --base: #031515;
    --yellow: #D79600;
    --white: #fff;
    --blue: #1a3685;
    --font-primary: 'Outfit', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-primary);
    background-color: #f5f5f5;
    color: var(--base);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--base);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo_container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 78px;
    margin-right: 0.5rem;
}

.logo_text {
    color: var(--yellow);
    font-weight: bold;
    font-size: 1.25rem;
}

.nav_bar {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.menu a:hover {
    color: var(--yellow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.3rem;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--yellow);
    transition: transform 0.3s ease-in-out;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .logo_text {
        display: none;
    }

    .logo {
        display: flex;
        width: 100px;
    }

    .menu {
        display: none;
        
    }

    .menu[data-visible="true"] {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 1rem;
        background-color: var(--base);
        border: 1px solid var(--yellow);
        border-radius: 10px;
        width: 250px; /* Adjust as needed */
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
        align-items: stretch; /* Ensures buttons are the same width */
        z-index: 1000;
        padding: 0.5rem;
    }

    .menu[data-visible="true"] a {
        padding: 0.5rem 1rem;
        text-align: center;
        border-radius: 0;
        width: 100%;
        display: block;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .menu[data-visible="true"] a:hover {
        background-color: var(--yellow);
        color: var(--base);
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 1024px) {
    .menu {
        display: none;
    }

    .menu[data-visible="true"] {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 1rem;
        background-color: var(--base);
        border: 1px solid var(--yellow);
        border-radius: 10px;
        width: 250px; /* Adjust as needed */
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        padding: 0.5rem 0;
    }

    .menu[data-visible="true"] a {
        padding: 0.75rem 1rem;
        text-align: center;
        border-radius: 0; /* No border radius for full-width effect */
        width: 100%;
        display: block; /* Ensures the link takes the full width */
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .menu[data-visible="true"] a:hover {
        background-color: var(--yellow);
        color: var(--base);
    }

    .hamburger {
        display: flex;
    }
}

main {
    position: relative;
    background-image: url('assests/pexels-hikaique-65437.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.7); /* Adjusted to match the main color theme */
    z-index: 1;
}


main > * {
    position: relative;
    z-index: 2;
}


/* Services Section */
#services {
    color: var(--white);
    text-align: center;
}

#services h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--yellow);
}

/* Service Grid */
.service-grid {
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Service Card */
.service-card {
    /* background-color: var(--yellow); */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card img {
    width: 100%;
    height: auto;
    max-height: 150px; /* Adjust the height as needed */
    object-fit: cover;
    background-color: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px; /* Optional: To add rounded corners */
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card h3 {
    font-size: 1rem;
    margin-top: 1rem;
    color: var(--white);
}

/* Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Footer Section */
.footer {
    background: linear-gradient(180deg, #031515, #222020);
    color: var(--yellow);
    padding: 2rem 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--yellow);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: #ffcc00;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
    transform: scale(1.2);
}

.footer-copy {
    font-size: 0.9rem;
    color: #bbb;
    margin-top: 1rem;
}

.footer-copy strong {
    color: #ffcc00;
}

/* Page Transition Styles */
#page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black; /* Matches the theme */
    z-index: 9999;
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Prevent interference */
    transition: opacity 0.5s ease-in-out;
}

#page-transition.active {
    opacity: 1; /* Make it visible */
    pointer-events: all;
}
