/* Reset some default styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main background styling */
body {
    font-family: Arial, sans-serif;
    background-color: #000000;
    color: #FFFFFF;
}

/* Header section styling */
header {
    width: 1024px;
    height: 768px;
    background: url('https://i.ibb.co/y6t1S6X/Header1.png') no-repeat center center/cover;
    background-size: contain; /* Keep background covering the area */
        background-position: center; /* Align image to the top to avoid empty space */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 70px;
    color: #fff;
}

header h1 {
    font-size: 3em;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Navigation styling */
nav {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1em;
    justify-content: center;
    text-align: center; 
    position: fixed;
    display: flex;
    width: 100%;
    top: 0;
    z-index: 10;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    font-weight: bold;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main content styling */
main {
    padding: 2em;
    justify-content: center;
    text-align: left;
    max-width: 800px;
    margin: 0 auto; /* Center content */
}

section {
    margin: 2em 0;
}

h2 {
    font-size: 2em;
    color: #FFF;
    margin-bottom: 0.5em;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Tablet and below */
@media (max-width: 768px) {
    header {
        height: 50vh; /* Shorter header height on mobile */
    }

    header h1 {
        font-size: 2em; /* Smaller header text size */
    }

    nav a {
        padding: 0.5em; /* Reduce padding for links */
        font-size: 0.9em; /* Slightly smaller font for navigation */
    }

    main {
        padding: 1em; /* Less padding for main content */
    }

    h2 {
        font-size: 1.5em; /* Smaller section headers */
    }

    p {
        font-size: 1em; /* Adjust paragraph font size */
    }
}

/* Tablet and below */
@media (max-width: 768px) {
    header {
        width: 350px;
        height: 50vh; /* Reduce header height for tablets */
        background-size: contain; /* Keep background covering the area */
        background-position: center top; /* Align image to top on smaller screens */
    }

    header h1 {
        font-size: 2em; /* Smaller header text size */
    }

    nav a {
        padding: 0.5em; /* Reduce padding for links */
        font-size: 0.9em; /* Slightly smaller font for navigation */
    }

    main {
        padding: .5em; /* Less padding for main content */
    }

    h2 {
        font-size: 1.5em; /* Smaller section headers */
    }

    p {
        font-size: 1em; /* Adjust paragraph font size */
    }
}

/* Mobile (smaller screens) */
@media screen and (max-width: 767px) {
    header {
        height: 40vh; /* Shorter header height on mobile */
        background-size: contain; /* Keep background covering the area */
        background-position: center top; /* Align image to the top to avoid empty space */
    }

    header h1 {
        font-size: 1.2em; /* Smaller header font */
    }

    nav {
        padding: .5em;
        flex-direction: row; /* Stack navigation links horizontally */
        align-items: center;
        position: fixed; 
        display: inline-flex;
    }

    nav a {
        display: block; /* Ensure links stack on top of each other */
        padding: .5em; /* Adjust padding */
        font-size: 0.9em;
        float: top;
    }

    /* Main content for smaller screens */
    main {
        padding: 0.5em; /* Less padding for main content */
        max-width: 90%; /* Use 90% of the viewport width */
    }

    h2 {
        font-size: 1.2em; /* Smaller section headers */
    }

    p {
        font-size: 0.9em; /* Smaller font for paragraphs */
        line-height: 1.4; /* Reduced line height for smaller screens */
    }

    section {
        margin: 1em 0; /* Less margin between sections */
    }
}