* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background-color: #EAF4F4;
    color: var(--surface);

    font-family: Arial, Helvetica, sans-serif;
}

/* Color pallets */
:root {
    --primary: #071B2D;
    --secondary: #123B52;
    --accent: #00B8A9;
    --background: #EAF4F4;
    --surface: #FFFFFF;
    --text: #193548;

}

/* Nav bar design */

.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: sticky;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
    z-index: 100;
    background-color: var(--primary);
    top: 0;

}

.navcontainer {
    width: min(1100px, 92%);
    margin: auto;
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

}

.brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: clamp(1rem, 3vw, 1.35rem);
    white-space: nowrap;
}

.brand img {
    height: auto;
    width: clamp(2rem, 4vw, 3rem);
    object-fit: cover;
    border-radius: 50%;
}

.dropdown {
    position: relative;

}

.dropdown summary {
    display: flex;
    justify-content: space-around;
    align-items: center;

    font-family: arial;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.107);
    border: #ffffffa1 solid 0.5px;
    padding: 10px 17px;
    border-radius: 12px;
    margin-right: 12px;
    transition: background 0.3s;
}

.dropdown summary:hover {
    background-color: var(--accent);
}

.dropdown summary::-webkit-details-marker {
    display: none;
}

.arrow {
    transition: 0.3s;
}

.dropdown[open] .arrow {
    transform: rotate(180deg);
}

.dropdwncontents {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;

    background-color: white;
    min-width: 200px;

    padding: 5px 10px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

    animation: dropdownFade 0.2s ease-in;

}

.dropdwncontents a {
    text-decoration: none;
    color: var(--text);
    padding: 12px 10px;
    border-radius: 7px;

    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;

}

.dropdwncontents a:hover,
.dropdown a.active {
    background-color: rgba(181, 177, 177, 0.211);
    color: var(--accent);

}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
        transform: scale(0.65);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        transform: scale(1.0);
    }
}

@media (max-width: 480px) {
    .brand {
        gap: 8px;
        font-size: 1rem;
    }
}



/* HERO SECTION */

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: var(--primary);
    color: white;

    padding: clamp(65px, 12vw, 120px) 8%;
    position: relative;

    text-align: center;
}

.eyebrow {
    color: var(--accent);
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 0.75rem;

}

.about h1 {
    color: var(--surface);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: clamp(2.2rem 12vw 7rem);

    max-width: 570px;
    margin: 25px auto;

    line-height: 1.2;
    font-weight: normal;

    text-align: center;
    overflow-wrap: break-word;

}

.about h1 span {
    color: var(--accent);
    font-style: italic;
}

.about .about-desc {
    color: #c6ced9;
    font: 1rem;
    line-height: 1.8;
    font-family: Arial, Helvetica, sans-serif;


}

.about a {
    text-decoration: none;
    color: var(--surface);
    background-color: var(--accent);
    font-size: 0.9rem;

    padding: 13px 25px;
    border-radius: 12px;
    margin: 30px auto;

    transition: transform 0.3s, background 0.3s;


}

.about a:hover {
    transform: translateY(-5px);
    background-color: #068c81;
}

/* gallery section */

.gallery-section {
    width: min(1100px, 95%);
    margin: auto;
    background-color: var(--background);
    color: var(--text);
    padding: 55px 5px 85px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    text-align: left;

    flex-wrap: wrap;
    gap: 15px;

    margin-bottom: 25px;

}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin: 8px 0 0;
}

.section-heading .section-sub {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    color: #777C83;
}



/* #Images Section */

.masonry {
  column-count: 5;
  column-gap: 16px;
  padding: 16px;
}

.item {
  break-inside: avoid; 
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
}

.item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform 0.3s ease-in-out;
}


/* Responsive */
@media (max-width: 1200px) { .masonry { column-count: 4; } }
@media (max-width: 900px)  { .masonry { column-count: 3; } }
@media (max-width: 600px)  { .masonry { column-count: 2; } }


.item img:hover {
    transform: scale(1.05);
}





/* #FOOTER */
.footer {
    margin-top: auto;

    background: #131e30;
    color: white;

    padding: 45px 8% 20px;
}

.footer-content {
    max-width: 1100px;
    margin: auto;
}

.footer-content h3 {
    font-family: Georgia, serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.footer-content p {
    color: #b9c1cd;
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-note {
    max-width: 550px;
}

.github-link {
    display: inline-block;
    margin-top: 10px;

    color: #d5a18b;
    text-decoration: none;

    font-size: 0.9rem;
}

.github-link:hover {
    text-decoration: underline;
}

.copyright {
    max-width: 1100px;
    margin: 35px auto 0;
    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    color: #8995a5;
    font-size: 0.8rem;
}

.email a {
    border-bottom: 1px dotted #d5a18b;
    color: #d5a18b;
    text-decoration: none;
    font-weight: lighter;
    font-size: 0.9rem;
    font-family: 'Courier New', Courier, monospace;
}


/* =========================
   MOBILE RESPONSIVENESS
========================= */

@media (max-width: 600px) {

    .navcontainer {
        min-height: 65px;
    }

    .brand {
        font-size: 0.95rem;
        gap: 8px;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .dropdown summary {
        padding: 9px 12px;
        font-size: 0.85rem;
    }

    .about {
        padding: 65px 7%;
    }

    .gallery-section {
        padding: 45px 0 60px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .footer {
        padding: 35px 7% 18px;
    }
}


/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}




/* PRIVACY & IMAGE COMPLAINTS */

.privacy-section {
    background: #123B52;
    color: white;
    padding: 65px 8%;
    text-align: center;
}

.privacy-content {
    max-width: 700px;
    margin: auto;
}

.privacy-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: normal;
    margin: 15px 0;
}

.privacy-content > p:not(.eyebrow) {
    color: #c6ced9;
    font-size: 0.95rem;
    line-height: 1.8;
}

.complaint-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 25px auto 10px;
    padding: 14px 22px;
    border-radius: 10px;

    background: #00B8A9;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;

    transition: 0.3s ease;
}

.complaint-btn:hover {
    background: #068c81;
    transform: translateY(-4px);
}

.privacy-note {
    font-size: 0.8rem !important;
    color: #aabac5 !important;
}
