/* =========================================================
   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 LEFT OF GRID
   ========================================================= */
.content-row {
    display: flex;
    align-items: flex-start;
    gap: 115px;
    margin-top: 0;
    padding-top: 0;
}

.side-image-wrapper {
    width: 300px;
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 0;
}

/* Top image aligned to nav */
.top-image-wrapper {
    margin-top: -85px;
    margin-left: 10%;
}

.top-img {
    width: 250px;
    display: block;
}

/* Profile image */
.side-image {
    width: 100%;
    border-radius: 50% / 70%;
    border: 3px solid var(--slate);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    margin-top: 25px;
}

.side-name {
    margin-top: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: solid;
    background-color: #fff;
    color: var(--navy);
}

.side-name a {
    text-decoration: none;
    color: black;
}

.side-name:hover a {
    color: var(--accent-blue);
}

/* =========================================================
   PORTFOLIO GRID
   ========================================================= */
.images {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 25px;
    justify-content: center;
}

.type {
    width: 260px;
    height: 330px;
    background: white;
    border-radius: 10px;
    padding: 12px;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);

    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.25s ease;
}

.type:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(76, 141, 255, 0.35);
}

.type p {
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 10px;
}

.images img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 6px;
}

.elephant-img {
    width: 350px;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,26,47,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
    z-index: 999;
}

.lightbox:target {
    visibility: visible;
    opacity: 1;
}

.lightbox-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    text-align: center;
}

.lightbox-box img {
    width: 100%;
    max-width: 80vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightboxtext p {
    margin-top: 15px;
    font-size: 18px;
    color: var(--navy);
}

.close {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 650px) {

    .content-row {
        flex-direction: column;
        align-items: center;
    }

    .side-image-wrapper {
        width: 80%;
    }

    .side-image {
        width: 100%;
        margin-top: 25px;
    }

    .images {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .type {
        width: 90%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .type {
        width: 90%;
        height: auto;
    }
}
