/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #101010;
    color: #f5f5f5;
    overflow-y: scroll; /* Allows vertical scrolling */
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth; /* Enables smooth scrolling */
}

/* Reset margin and padding for html and body */
html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Ensure body takes full height */
}

header {
    background-color: #1c1c1c;
    padding: 10px;
}

nav {
    position: absolute; /* Absolute positioning for nav */
    top: 30px; /* Adjusted to lower the buttons */
    right: 20px; /* Space from the right */
}

nav ul {
    display: flex; /* Ensures buttons are side by side */
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 15px; /* Increased space between buttons */
}

.button-tech {
    text-decoration: none;
    color: orange;
    border: 2px solid orange;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button-tech:hover {
    background-color: orange;
    color: white;
}

/* Section Styling */
section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Ensure each section takes full viewport height */
    background-size: cover; /* Make the background image cover the entire section */
    background-repeat: no-repeat;
    background-position: center;
    padding: 20px; /* Padding for content */
}

/* Background images for home and services pages */
#home {
    background-image: url('./static/images/home-image.png'); /* Adjust path if necessary */
}

#services {
    background-image: url('./static/images/services-image.png'); /* Adjust path if necessary */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        overflow-x: auto; /* Allow horizontal scrolling */
    }

    /* Make sections horizontal */
    section {
        min-width: 100vw; /* Each section takes full width */
        height: 100vh; /* Ensure full height */
        flex-direction: column; /* Stack content vertically within each section */
    }

    nav {
        position: absolute; /* Ensure the nav is at the top right on mobile */
        top: 30px; /* Adjusted to lower the buttons */
        right: 20px; /* Set to desired right space */
    }

    nav ul {
        flex-direction: row; /* Keep buttons side by side */
        align-items: center; /* Center align buttons vertically */
    }

    nav ul li {
        margin: 0 10px; /* Space between buttons */
    }

    .button-tech {
        padding: 8px 16px; /* Adjust button padding for smaller screens */
        font-size: 14px; /* Adjust font size for smaller screens */
    }

    /* Ensure the background images cover the full viewport */
    #home, #services {
        background-size: cover; /* Ensure the image covers the section */
        background-position: center; /* Center the image */
    }

    /* Portrait Orientation Adjustments */
    @media screen and (orientation: portrait) {
        #home, #services {
            background-size: contain; /* Show entire image in portrait mode */
            background-position: center; /* Center the image */
            background-repeat: no-repeat; /* Prevent image repetition */
        }
    }
}
