/* Reset some defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #2C3E50;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header & Navigation */
header {
    background-color: #2C3E50;
    padding: 20px 0;
    color: #fff;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Section Styling */
section {
    padding: 60px 20px;
}


/* OLD */
/*
.container {
    width: 80%;
    margin: 0 auto;
}
*/

/* Global Container */
.container {
    width: 90%; /* Make the container take up 90% of the screen width */
    max-width: 1200px; /* Set a max-width to ensure it doesn't stretch too far on large screens */
    margin: 0 auto; /* Center the container */
}


h1, h2 {
    margin-bottom: 20px;
}

h3 {
    margin-bottom: 10px;
}

/* Portfolio Grid */
/* OLD */
/*
.portfolio-grid {
    display: flex;
    flex-direction: column; /* Stack the items vertically in rows */
/*    gap: 20px; /* Space between the items */
}
*/

/* Portfolio Grid */
.portfolio-grid {
	display: flex;
    flex-direction: column; /* let's try it... */
    /*display: grid;
    grid-template-columns: 1fr; /* Makes all items take full width on smaller screens */
    gap: 40px; /* Space between the items */
    padding: 10px; /* Optional padding around the grid */
}

/* Portfolio Item Layout */
.portfolio-item {
    display: flex;
    align-items: flex-start; /* Aligns image and text at the top */
    gap: 20px; /* Space between image and text */
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Image on the Left */
.portfolio-item img {
    max-width: 200px; /* Adjust size as needed */
    height: auto;
    border-radius: 8px; /* Optional: Rounds corners */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Optional: Adds a slight shadow */
    flex-shrink: 0; /* Prevents image from resizing */
}

/* Text Content Wrapper */
.portfolio-item .text-content {
    display: flex;
    flex-direction: column; /* Stacks heading above paragraph */
    justify-content: center; /* Align text vertically */
}

/* Portfolio Item Heading */
.portfolio-item h3 {
    margin-bottom: 10px;
}

/* Portfolio Item Paragraph */
.portfolio-item p {
    font-size: 16px;
    margin-bottom: 5px;
}

/* Portfolio Item Link */
.portfolio-item a {
    color: #3498db;
    text-decoration: none;
}

.portfolio-item a:hover {
    text-decoration: underline;
}

/* 📌 Mobile Optimization */
@media (max-width: 768px) {
    .portfolio-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .portfolio-item img {
        max-width: 100%; /* Full width on small screens */
    }

    .portfolio-item .text-content {
        align-items: center; /* Center text on mobile */
    }
}


/* Contact Section */
#contact p {
    font-size: 16px;
    line-height: 1.5;
}

#contact a {
    color: #3498db;
}

/* Footer */
footer {
    background-color: #2C3E50;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    section {
        padding: 40px 20px;
    }

    .container {
        width: 90%;
    }

    .portfolio-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    nav ul {
        margin: 10px 0;
		flex-direction: column;
        align-items: center; /* Centers nav buttons horizontally */
        text-align: center;
        padding: 0; /* Remove default padding */
    }
	
	nav ul li {
		width: 100%; /* Make list items take full width */
        text-align: center; /* Center the text inside */
	}
	
	nav ul li a {
        display: block; /* Ensures clickable area takes up the full width */
        padding: 10px 0; /* Adds spacing */
    }

    h1, h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

