/* Coded and Documented by John Does Code*/
/* Main Formatting */
:root {
    --primary: #0078d7;
    --primary-dark: #005a9e;
    --text: #222222;
    --accent: #e2e8f0;
    --heading-font: "Poppins", sans-serif;
    --body-font: "Inter", sans-serif;
}

body {
    font-family: vary(--body-font);
    margin: 0;
    padding: 40px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    color: var(--text);
    line-height: 1.6;
    background: url("../assets/bgs/bgimage1a.jpg") no-repeat center center / cover;
}

.container {
    max-width: 100%;
    margin: auto;
    padding: 1rem;
    background: #e6ebff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 1);
}

.hero-container {
    width: 100%;
    height: 100%;
    margin: auto;
    border-radius: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text {
    font-size: 20px;
    padding-left: 20px;
    padding-top: 5%;
    float: left;
}

.site-header {
    width: 100%;
    background-color: none;
    display: flex;
    align-items: center;
    align-content: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: #151817;
    transition: color 0.3s;
}

nav a:hover {
    color: #43769d;
}

.hero {
    padding: 2rem 0;
}

accent {
    color: cadetblue;
}

.projects .filters {
    margin-bottom: 1rem;
}

.filters button {
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.8rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.filters button:hover {
    color: #fff;
}

/* Formatting for project cards & content */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.project-card {
    background: #e6ebff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 100%;
    border-radius: 1px;
    object-fit: contain;
    cursor: pointer;
}

/* Formatting for services card section/content */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.service-card {
    background: #e6ebff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Formatting for skillset card section/content */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.skills-card {
    background: #e6ebff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Formatting for lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.lightbox.hidden {
    display: none;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    user-select: none;
}

.prev {
    left: 10px;
}
.next {
    right: 10px;
}

.caption {
    text-align: center;
    color: #ddd;
    font-size: 1rem;
    margin-top: 8px;
    font-style: italic;
}

/* Formatting for section */
.section {
    width: 1100px;
    height: 350px;
    margin: auto;
    border-radius: 1px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    position: relative;
    backdrop-filter: brightness(1);
    transition:
        transform 1s ease,
        opacity 1s ease;
    padding-bottom: 2px;
}

.section-title {
    flex: 0 0 auto;
    width: 100%;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.6s ease;
    z-index: 2;
    position: relative;
}

.section-title:hover {
    color: #43769d;
}

.section-content {
    flex: 1;
    opacity: 0;
    transform: translateX(100%);
    transition:
        transform 0.6s ease,
        opacity 0.6s ease;
    padding: 20px;
}

/* Animation format for when section is activated (displayed) */
.section.active .section-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    width: 60px;
    border-radius: 8px;
    background: #6275848e;
    color: #fff;
}

.section.active .section-content {
    opacity: 1;
    transform: translateX(0);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background-color: none;
    color: #fff;
    cursor: pointer;
}

/* === Mobile responsive menu === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .container {
        display: none;
    }
}

.nav-links {
    position: absolute;
    width: fit-content;
    top: 100%;
    left: 0;
    right: 0;
    background: #c6d5e1;
    display: none;
    flex-direction: column;
    text-align-last: left;
    padding: 1rem 1rem;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: #151817;
    transition: color 0.3s;
}

.nav-links.active {
    display: flex;
    animation: slideDown 0.3 ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links ul {
    flex-direction: column;
    width: 100%;
}

.nav-links li {
    margin: 0.5rem 0;
}

.section {
    width: 100%;
    height: 100px;
    margin: 0;
    text-align: left;
    border-radius: 1px;
    overflow: hidden;
    display: flex;
    position: relative;
    backdrop-filter: brightness(1);
    transition:
        transform 1s ease,
        opacity 1s ease;
}

.section.active {
    width: 100%;
    height: 100%;
    margin: 0;
    text-align: left;
    border-radius: 1px;
    overflow: hidden;
    display: flex;
    position: relative;
    backdrop-filter: brightness(1);
    transition:
        transform 1s ease,
        opacity 1s ease;
}
