/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.7;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
    background-color: #4a4a4b;
    color: #ffffff;
    padding: 0px 0;
    text-align: center;
    width: 100%;
}
header h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 0px; }
header p { font-size: 1.2rem; color: #bdc3c7; max-width: 600px; margin: 0 auto; }

/* Main Content & Project List */
main { padding: 40px 0; }
.project-list { width: 100%; }
.project-item {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #e0e0e0;
}
.project-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.project-item h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 15px; }
.project-item p { font-size: 1.1rem; color: #555; margin-bottom: 25px; }

/* === GALLERY STYLES === */
.media-gallery {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.gallery-items .gallery-item {
    display: none;
    width: 100%;
    vertical-align: middle;
    animation: fadeIn 0.5s ease-in-out;
}

.gallery-items .gallery-item.active {
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(10, 10, 10, 0.5);
    color: white;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, opacity 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.media-gallery:hover .gallery-nav {
    opacity: 1;
    visibility: visible;
}

.gallery-nav:hover {
    background-color: rgba(10, 10, 10, 0.8);
}

.gallery-nav.prev { left: 15px; }
.gallery-nav.next { right: 15px; }

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Footer */
footer {
    background-color: #000000; /* Same color as the header */
    color: #bdc3c7; /* Light text color for contrast */
    text-align: center;
    padding: 10px 0;
    margin-top: 40px; /* Keeps space between last project and footer */
    width: 100%;
}

footer a {
    color: #ffffff; /* Make the link white and bold to stand out */
    font-weight: bold;
}