/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face { /* this loads the font from google itself */
    font-family: "Inter";
    src: url("https://fonts.gstatic.com/s/inter/v3/1cX3aA2DNXlZ5zE7G1l.woff2") format("woff2");
}

body { /* the times new roman and sans serif are the fallback fonts */
    font-family: "Inter", "Times New Roman", Arial, Helvetica, sans-serif;
    background-color: white;
    color: black;
}

html, body {
    overflow-x: hidden; /* prevents horizontal scrolling */
    max-width: 100vw; /* ensures no element exceeds the screen width */
}

/* Light Mode (Default) */
:root {
    --background-color: white;
    --text-color: black;
    --border-color: black;
}

/* Dark Mode */
.dark-mode {
    --background-color: black;
    --text-color: white;
    --border-color: white;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

/*below are things for the dark mode light mode toggle*/

.theme-toggle {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}

.dark-mode .theme-toggle {
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between NT and the toggle */
}

.logo {
    font-weight: bold;
}

.theme-checkbox {
    display: none;
}

.theme-label {
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.3s ease-in-out;
}

.theme-checkbox:checked ~ .theme-label::before {
    content: "🌙"; /* Moon icon for dark mode */
}

.theme-checkbox:not(:checked) ~ .theme-label::before {
    content: "🌞"; /* Sun icon for light mode */
}

.noscript-warning {
    background-color: red;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}


/* NAVIGATION BAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 185px;
    border-bottom: 2px solid var(--border-color); /* black line below navbar */
    padding-bottom: 15px; /* space between line and text */
}

nav .logo { /* styling NT only */
    color: var(--text-color);
    font-weight: bold;
}

nav a { /* navbar links */
    font-size: 15px;
    text-decoration: none;
    color: var(--text-color);
}

nav ul { /* styling navbar ul links only, we have to do this bc there's ul in the proj blurb */
    list-style-type: none;
    display: flex;
    gap: 30px;

}

/* this makes the left and right divs be side by side */
.allcontainer {
    display: flex;
    justify-content: space-between;
    align-items: top; /* makes all the stuff align to the top */
    max-width: 1200px; /* horizontal space the full container takes up */
    margin: 50px auto; /* margin 50px is the top margin spacing, the auto horizontally centers the container, just play around with these values*/
    padding: 50px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    gap: 100px; /*this is gap btwn divs */
}

.leftside, .rightside {
    flex: 1; /* makes sure that the left and right divs are equal in size */
    min-width: 0; /* ensures no overflow occurs */
    
}

.aboutme {
    margin-bottom: 50px; /*this is the spacing that is below the about me section*/
}

.about-content {
    display: flex; /* helps the image and the text be side by side*/
    align-items: center; /* aligns them to the center */
    gap: 30px; /* space btwn img and text */
}


.about-content img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.about-content p {
    flex: 1; /* this makes the text take up the remaining space */
    max-width: 100%; 
    text-align: left;
}

/*delete this selector later*/
.aboutme:has(img) {
    border: 0px solid var(--border-color); /*this is the inner border that is around aboutme*/
    border-radius: 10px;
}

.careergoals{
    margin-bottom:50px;
}

.archery{
    margin-bottom: 50px;
}

.FAQ{
    margin-bottom: 50px
}

.wow{
    margin-bottom: 50px;
}




/* hamburger menu stuff below */
.menu-checkbox {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    right: 30px;
    top: 15px;
    z-index: 100;
}

.menu-icon span {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
    display: block;
}
.menu {
    list-style-type: none;
    display: flex;
    gap: 30px;
}

/* below is the media query stuff for optimizing on mobile devices*/
@media (max-width: 768px) {
    .allcontainer {
        flex-direction: column; /* stacking the left and right divs , left will go first*/
        gap: 50px; /* the spacing between sections */
    }

    .leftside, .rightside {
        width: 100%; /* bth sctions will take up the full width*/
    }

    .about-content {
        flex-direction: column; /* image and text will be stacked vertically */
        align-items: center; /* align items in center*/
        text-align: center; /* text centered */
    }

    .about-content img {
        width: 120px; /* slightly smaller image for mobile */
        height: 120px;
    }
}


/* the mobile styles for hamburger menu is below*/
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: var(--background-color);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .menu li {
        margin: 10px 0;
    }

    .menu-icon {
        display: flex;
    }

    /* menu is shown when checked*/
    .menu-checkbox:checked ~ .menu {
        display: flex;
    }
}
