* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Marzo W00 Regular";
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

nav {
    font-family: "Lucida Console", "Courier New", monospace;
    background: linear-gradient(to bottom, #236275, #000000);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00a86b;
}

header {
    background-image: url('./images/EldenRing_ShadowBG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
}

header h1 {
    background-color: #252525;
    background: transparent linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    border: #000000 2px solid;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 1rem 2rem;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.projects {
    margin-top: 2rem;
}

.project {
    margin-bottom: 4rem;
}

.project h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00a86b;
}

.project-description {
    font-family: "Lucida Console", "Courier New", monospace;
    color: #cccccc;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.project-gallery {
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

.project-gallery img:hover {
    background-color: #2a2a2a;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
}

.lightbox-image-container {
    flex: 2;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
}

.lightbox-image-container img {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
}

.lightbox-details {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.lightbox-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #00a86b;
}

.lightbox-details p {
    font-family: 'Arial', sans-serif;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.visit-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #00a86b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.visit-btn:hover {
    background-color: #008f59;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #00a86b;
}

footer {
    background: linear-gradient(to top, #236275, #000000);
    text-align: center;
    padding: 2rem 0;
}

footer .logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

footer p {
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 0.9rem;
    color: #cccccc;
}

@import url(https://db.onlinewebfonts.com/c/1e6ec96c95301fa73aa1d026f161a269?family=Marzo+W00+Regular); 

@font-face {
    font-family: "Marzo W00 Regular";
    src: url("https://db.onlinewebfonts.com/t/1e6ec96c95301fa73aa1d026f161a269.eot");
    src: url("https://db.onlinewebfonts.com/t/1e6ec96c95301fa73aa1d026f161a269.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/1e6ec96c95301fa73aa1d026f161a269.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/1e6ec96c95301fa73aa1d026f161a269.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/1e6ec96c95301fa73aa1d026f161a269.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/1e6ec96c95301fa73aa1d026f161a269.svg#Marzo W00 Regular")format("svg");
}

/* Mobile adjustments */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem 0;
    }

    nav ul {
        gap: 0.5rem;
        padding: 0 0.5rem;
        max-width: 100%;
    }

    nav ul li a {
        font-size: 0.75rem;
    }

    header {
        height: 125px;
        margin-top: 40px; 
    }

    header h1 {
        font-size: 1rem; 
        padding: 0.75rem 1.5rem;
    }

    main {
        padding: 1.5rem;
        max-width: 100%;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project h2 {
        text-align: center;
        font-size: 1.5rem;
    }

    .project-description {
        text-align: center;
        font-size: 0.9rem;
    }

    .lightbox {
        padding: 1rem; 
        align-items: flex-start; 
    }

    .lightbox-content {
        flex-direction: column;
        max-height: 90vh; 
        overflow-y: auto; 
    }

    .lightbox-image-container {
        flex: none;
        max-height: 40vh; 
        padding: 0.5rem;
    }

    .lightbox-details {
        flex: none;
        padding: 1rem;
        overflow: visible;
    }

    .visit-btn {
        position: sticky;
        bottom: 1rem;
        margin-top: 1rem;
        z-index: 1;
    }

    .close-btn {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    footer {
        padding: 1.5rem 0;
    }

    footer p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .project-gallery {
        grid-template-columns: 1fr; 
        gap: 0.25rem;
        margin: 0 -0.25rem;
    }

    .project-gallery img {
        height: 200px; 
    }
}