/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
}


/* =========================================
   NAVIGATION - DESKTOP
========================================= */

nav {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 70px;

    background: #003366;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 9999;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}


/* =========================================
   LOGO
========================================= */

.logo img {
    height: 55px;

    width: auto;
}


/* =========================================
   DESKTOP MENU
========================================= */

.nav-links {
    display: flex;

    list-style: none;

    align-items: center;

    gap: 45px;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;

    color: white;

    font-size: 18px;

    font-weight: 600;

    transition: 0.3s ease;
}


/* ACTIVE PAGE */

.nav-links a.active {
    color: #6DB7FF;
}


/* HOVER */

.nav-links a:hover {
    color: #6DB7FF;
}


/* =========================================
   HAMBURGER BUTTON
   HIDDEN ON DESKTOP
========================================= */

.menu-toggle {
    display: none !important;

    background: transparent;

    border: none;

    outline: none;

    color: white;

    font-size: 28px;

    cursor: pointer;

    padding: 5px;

    z-index: 10001;
}


/* =========================================
   GALLERY SECTION
========================================= */

.gallery-section {
    width: 100%;

    padding: 130px 40px 60px;

    text-align: center;
}


/* =========================================
   GALLERY TITLE
========================================= */

.gallery-section h1 {
    font-size: 40px;

    margin-bottom: 35px;

    color: #003366;
}


/* =========================================
   GALLERY GRID
========================================= */

.gallery {
    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


/* =========================================
   GALLERY IMAGES
========================================= */

.gallery img {
    width: 100%;

    height: 280px;

    object-fit: cover;

    display: block;

    cursor: pointer;

    border-radius: 8px;

    transition: 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);

    opacity: 0.9;
}


/* =========================================
   FULL SCREEN IMAGE VIEWER
========================================= */

.image-viewer {
    display: none;

    position: fixed;

    z-index: 99999;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.95);

    justify-content: center;

    align-items: center;

    padding: 20px;
}


/* =========================================
   FULL IMAGE
========================================= */

.image-viewer img {
    max-width: 90%;

    max-height: 90%;

    width: auto;

    height: auto;

    object-fit: contain;

    border-radius: 5px;
}


/* =========================================
   CLOSE BUTTON
========================================= */

.close {
    position: absolute;

    top: 20px;

    right: 35px;

    color: white;

    font-size: 50px;

    font-weight: bold;

    cursor: pointer;

    z-index: 100000;

    line-height: 1;
}

.close:hover {
    color: red;
}


/* =========================================
   TABLET
   992px AND BELOW
========================================= */

@media screen and (max-width: 992px) {

    /* NAV */

    nav {
        padding: 15px 35px;
    }

    .logo img {
        height: 50px;
    }

    .nav-links {
        gap: 25px;
    }

    .nav-links a {
        font-size: 16px;
    }


    /* GALLERY */

    .gallery-section {
        padding: 120px 25px 50px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);

        gap: 18px;
    }

    .gallery img {
        height: 260px;
    }

}


/* =========================================
   MOBILE
   768px AND BELOW
========================================= */

@media screen and (max-width: 768px) {

    /* -------------------------------------
       NAVIGATION
    ------------------------------------- */

    nav {
        height: 70px;

        padding: 12px 20px;
    }


    /* LOGO */

    .logo img {
        height: 45px;
    }


    /* SHOW HAMBURGER */

    .menu-toggle {
        display: block !important;
    }


    /* -------------------------------------
       MOBILE MENU
    ------------------------------------- */

    .nav-links {
        display: none;

        position: absolute;

        top: 70px;

        right: 15px;

        width: 210px;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px 0;

        background: rgba(0, 0, 0, 0.95);

        border-radius: 8px;

        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    }


    /* OPEN MENU */

    .nav-links.active {
        display: flex;
    }


    .nav-links li {
        display: block;

        width: 100%;
    }


    .nav-links a {
        display: block;

        width: 100%;

        padding: 15px 20px;

        font-size: 16px;
    }


    .nav-links a:hover {
        padding: 15px 20px;
    }


    /* -------------------------------------
       GALLERY
    ------------------------------------- */

    .gallery-section {
        padding: 100px 20px 40px;
    }


    .gallery-section h1 {
        font-size: 32px;

        margin-bottom: 25px;
    }


    .gallery {
        grid-template-columns: 1fr;

        gap: 18px;

        width: 100%;
    }


    .gallery img {
        width: 100%;

        height: 250px;

        border-radius: 8px;
    }


    /* -------------------------------------
       IMAGE VIEWER
    ------------------------------------- */

    .image-viewer {
        padding: 15px;
    }

    .image-viewer img {
        max-width: 95%;

        max-height: 85%;
    }


    .close {
        top: 10px;

        right: 20px;

        font-size: 40px;
    }

}


/* =========================================
   SMALL PHONES
   480px AND BELOW
========================================= */

@media screen and (max-width: 480px) {

    /* NAV */

    nav {
        height: 65px;

        padding: 10px 15px;
    }


    /* LOGO */

    .logo img {
        height: 40px;
    }


    /* HAMBURGER */

    .menu-toggle {
        font-size: 25px;
    }


    /* MOBILE MENU */

    .nav-links {
        top: 65px;

        right: 10px;

        width: 200px;
    }


    /* GALLERY */

    .gallery-section {
        padding: 90px 15px 35px;
    }


    .gallery-section h1 {
        font-size: 28px;

        margin-bottom: 22px;
    }


    .gallery {
        gap: 15px;
    }


    .gallery img {
        height: 220px;
    }


    /* IMAGE VIEWER */

    .image-viewer img {
        max-width: 95%;

        max-height: 80%;
    }


    .close {
        top: 8px;

        right: 15px;

        font-size: 38px;
    }

}