/* =========================================================
   COLOR THEME VARIABLES
========================================================= */
:root {
    --navy: #0A1A2F;
    --slate: #394552;
    --ice: #c7dff6;
    --accent-blue: #4C8DFF;
}

/* =========================================================
   GLOBAL RESET
========================================================= */
* { box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background: var(--ice);
    color: var(--navy);
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

/* =========================================================
   HEADER
========================================================= */
#name {
    font-size: 18px;
    border: 2px solid var(--navy);
    padding: 8px 14px;
    background: white;
    display: inline-block;
    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;
    }
}

/* =========================================================
   HAMBURGER MENU
========================================================= */
.menu-toggle { 
    display: none; 
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--navy);
    border-radius: 3px;
    transition: 0.3s;
}

/* =========================================================
   WORK IMAGES
========================================================= */
.work {
    text-align: center;
}

.work img {
    width: 75%;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease;
}

.work img:hover {
    transform: scale(1.03);
}

/* =========================================================
   LIGHTBOX (UPDATED STYLE)
========================================================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;  
    padding: 50px 0;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.lightbox-content img,
#lb-img1,
#lb-img2,
#lb-img3 {
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    background: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

#lb-img3 {
    display: none;
}

/* =========================================================
   CLOSE BUTTON
========================================================= */
.close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10000;
    transition: 0.2s ease;
}

.close-btn:hover {
    color: var(--accent-blue);
}

/* Fade Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 650px) {

    .hamburger {
        display: flex;
        position: absolute;
        right: 15px;
        top: -5px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100%;
        background: white;
        flex-direction: column;
        padding-top: 80px;
        gap: 20px;
        box-shadow: -4px 0 25px rgba(0,0,0,0.2);
        transition: 0.35s ease;
        z-index: 1500;
    }

    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    .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);
    }

    .lightbox-content img {
        width: 95%;
        max-width: 95%;
    }
}
