/* =========================================================
   COLOR THEME VARIABLES
   ========================================================= */
:root {
    --navy: #0A1A2F;
    --slate: #394552;
    --ice: #c7dff6;
    --accent-blue: #4C8DFF;
    --accent-teal: #7ED6D1;
}

/* =========================================================
   GLOBAL RESET
   ========================================================= */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--ice);
    color: var(--navy);
    margin: 0;
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

/* =========================================================
   HEADER
   ========================================================= */
#name {
    font-size: 18px;
    border: 2px solid var(--navy);
    display: inline-block;
    padding: 8px 14px;
    background: white;
    margin-top: 15px;
}

#name a {
    color: var(--navy);
    text-decoration: none;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
    margin-top: 15px;
    text-align: center;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.nav-links li {
    border: 2px solid var(--navy);
    padding: 5px 10px;
    background: white;
    font-size: 12px;
    min-width: 120px;
    text-align: center;
}

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Hamburger toggle */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
}

/* =========================================================
   MOBILE NAV
   ========================================================= */
@media (max-width: 768px) {

    .hamburger {
        display: block;
        cursor: pointer;
        padding: 10px;
        position: absolute;
        right: 10px;
        top: -5px;
        z-index: 1000;
    }

    .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background: var(--navy);
        margin: 5px 0;
        border-radius: 2px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        padding: 20px;
        border: 2px solid var(--navy);
        position: absolute;
        right: 0;
        top: 45px;
        width: 220px;
        z-index: 999;
        gap: 15px;
    }

    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }
}

/* =========================================================
   IMAGE GRID
   ========================================================= */
.graphic-design-grid {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.graphic-design-grid li {
    padding: 0;
    margin: 0;
}

.graphic-design-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    background: #ddd;
    cursor: pointer;
    transition: 0.25s ease;
}

.graphic-design-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.35s ease;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Close button */
.close-btn {
    position: fixed;
    top: 25px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: 0.2s ease;
    z-index: 3000;
}

.close-btn:hover {
    color: var(--accent-blue);
}

/* =========================================================
   LIGHTBOX ARROWS
   ========================================================= */
.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 70px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 15px;
    z-index: 2500;
    transition: 0.2s ease;
}

.lightbox-arrow:hover {
    color: var(--accent-blue);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow.left {
    left: 45px;
}

.lightbox-arrow.right {
    right: 45px;
}

/* =========================================================
   ANIMATION
   ========================================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 650px) {

    /* Hamburger enable */
    .hamburger {
        display: flex;
        position: absolute;
        right: 15px;
        top: -5px;
    }

    /* Slide-out mobile nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100%;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 20px;
        transition: 0.35s ease;
        box-shadow: -4px 0 25px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    /* Hamburger animation */
    .menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile grid adjustment */
    .graphic-design-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .graphic-design-grid img {
        height: 250px;
    }

    /* Smaller arrows */
    .lightbox-arrow {
        font-size: 55px;
        padding: 10px;
    }

    .lightbox-arrow.left { left: 20px; }
    .lightbox-arrow.right { right: 20px; }
}

/* Extra small screens */
@media (max-width: 480px) {

    .graphic-design-grid img {
        height: 220px;
    }

    .lightbox-arrow {
        font-size: 45px;
        padding: 8px;
    }

    .lightbox-arrow.left { left: 12px; }
    .lightbox-arrow.right { right: 12px; }
}
