@import url('reset.css');

/* CSS Variables */
:root {
    --primary-color: #8BC2B3;
    --secondary-color: #F5AC43;
    --text-color: #333;
    --sec-text-color: #fff;
    --background-color: #f4f4f4;


     /* New Section Background Colors */
     --section-bg1: #ffffff; /* white */
     --section-bg2: #FDF5D3; /* light gray */
}

h1, h2, h3, p, nav, a {font-family: Outfit, sans-serif;}

/* Base Styles */
body {

    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Fixed Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary-color);
    color: var(--sec-text-color);
    padding: 1rem;
    text-align: center;
    z-index: 1000;
}

/* Main Wrapper - Add Padding to Avoid Header Overlap */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1rem 1rem; /* Adjust padding-top to accommodate header height */
}

/* Alternating Section Background Colors */
section:nth-child(odd) {
    background-color: var(--section-bg1);
}

section:nth-child(even) {
    background-color: var(--section-bg2);
}

/* Individual Section Margins to Accommodate Header */
#portfolio, #weekly-tasks {
    margin-top: 2rem; /* Adjust as needed */
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

nav a {
    color: var(--sec-text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover and Active States */
nav a:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

nav a:active {
    background-color: var(--sec-text-color);
    color: var(--primary-color);
}


/* Full-Screen Sections */
section {
    min-height: 100vh;
    padding: 8rem 2rem 2rem 2rem;
    margin-bottom: 2rem;
    background-color: var(--background-color);
    border-bottom: solid 1px gray;
}

#welcome h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#welcome h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#welcome img {
    width: auto;
    height: auto;
    margin: 1rem 0;
}

/* Portfolio Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center; /* Center-aligns the text under the images */
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures the text is centered relative to the image */
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    margin-top: 0.5rem; /* Adds spacing between the image and text */
}

.gallery a:hover {
    color: #255F5F;
    text-decoration: underline;
}


/* Weekly Tasks List */
.tasks-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.task {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.task img {
    width: 100px;
    height: auto;
}

.task a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
}

.task a:hover{
color: #255F5F;
text-decoration: underline;
}

footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 1rem;
}


/* Responsive Styles */

/* Mobile Phones - Single Column Layout */
@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .tasks-list {
        flex-direction: column;
    }
}

/* Tablets - Two Column Layout for Portfolio */
@media (min-width: 601px) and (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .tasks-list {
        flex-direction: column;
    }
}