* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* For all elements on the page */
::selection {
  background-color: #000000; /* Change the background color (e.g., red) */
  color: #ffffff;            /* Change the text color (e.g., white) */
}

/* For Firefox compatibility */
::-moz-selection {
  background-color: #000000;
  color: #ffffff;
}



body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.5;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

p {
    font-weight: 300;
}


ul {
    list-style: none;
}

a {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    margin-bottom: 1rem;
    font-weight: 500;
}

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

button:hover,
button:focus {
    outline: none;
}

/* Body */



/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: auto 0;
}

.navbar-logo a {
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    font-size: 1.1rem;
    font-weight: 300;
    flex-wrap: wrap;
}


/* Main */

header, main {
    max-width: 1600px;
    width: 80%;
    margin: 0 auto;
}

main {
    margin: 4rem auto;
    flex: 1;
}

.subtitle {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 4rem;
}

.columns {
    display: flex;
    gap: 5rem;
}

.col1 {
    flex: 2;
}

.col2 {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: start;
    padding: 2rem;
}

.bio-text {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 2;
    margin: 0 0;
    text-align: left;
}

.bio-text p {
    margin: 1.5rem 0;
}

.bio-image {
    width: 80%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.footer-content {
    max-width: 1600px;
    width: 80%;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #000;
    text-decoration: underline;
}

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Career */

.career ul {
    margin: 1rem 0;
    font-weight: 300;
}

.career li {
    margin: 0rem 0 0.75rem 0;
}


.career li::before {
  content: "–  ";
  position: relative;
  left: -0.1rem;
}

.career section {
    margin: 2rem 0;
}

.career h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.career .job-company {
    font-size: 1rem;
    font-weight: 500;
}

.career .job-meta {
    gap: 1rem;
}

.career .job-title {
    font-weight: 300;
    display: inline-block;
    margin-right: 1rem;
}

.career .job-duration {
    font-weight: 300;
    display: inline-block;
    margin-left: 1rem;
}

.career .job-duration::before {
    content: " | ";
    position: relative;
    left: -1rem;
}

/* Photography */

.photography .section-header {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 4rem 0;
}

.photo-gallery {
    column-count: 3;
    column-gap: 2rem;
}

@media (max-width: 1200px) {
    .photo-gallery {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .photo-gallery {
        column-count: 1;
    }
}

.photo-gallery > div {
    break-inside: avoid;
    margin-bottom: 2rem;
}

.photo {
    position: relative;
    cursor: pointer;
}

.photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.photo:hover img {
    transform: scale(1.02);
}

.photo-caption {
    position: relative;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}


/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

/* Modal Content */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    height: 80%;
    object-fit: contain;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
}

/* Add Animation */
.modal-content, #caption {
    /* -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.5s;
    animation-name: zoom;
    animation-duration: 0.5s; */
    
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
    
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }

}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0.75)}
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0.75)}
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ======================================== */

/* Tablet and smaller (max-width: 1024px) */
@media (max-width: 1024px) {
    header, main {
        width: 85%;
    }

    .columns {
        gap: 3rem;
    }

    .navbar-menu {
        gap: 1.5rem;
    }
}

/* Tablet portrait and smaller (max-width: 768px) */
@media (max-width: 768px) {
    header, main {
        width: 90%;
    }

    /* Navbar */
    .navbar {
        padding: 1rem 0;
    }

    .navbar-logo {
        font-size: 1.5rem;
    }

    .navbar-menu {
        gap: 1.2rem;
        font-size: 1rem;
    }

    /* Main content */
    main {
        margin: 2rem auto;
    }

    .subtitle {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Columns - stack vertically on tablet */
    .columns {
        flex-direction: column;
        gap: 2rem;
    }

    .col2 {
        padding: 0;
        order: -1; /* Move image above text */
    }

    .bio-image {
        width: 60%;
        max-width: 300px;
    }

    .bio-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    /* Footer */
    .footer-links {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    /* Career page */
    .career ul {
        margin: 0.5rem 0;
    }

    .career li {
        margin: 0 0 0.5rem 0;
    }

    .career section {
        margin: 1.5rem 0;
    }

    .career h3 {
        font-size: 1.1rem;
    }

    .career .job-company {
        font-size: 0.95rem;
    }

    .career .job-meta {
        flex-wrap: wrap;
    }

    .career .job-duration::before {
        content: "";
        left: 0;
    }

    .career .job-duration {
        margin-left: 0;
        display: block;
    }

    /* Photography */
    .photography .section-header {
        font-size: 1.3rem;
        margin: 3rem 0 2rem 0;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        height: auto;
        max-height: 90vh;
    }

    .close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}

/* Mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    header, main {
        width: 90%;
    }

    /* Navbar */
    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .navbar-logo {
        font-size: 1.4rem;
    }

    .navbar-menu {
        width: 100%;
        justify-content: center;
        gap: 1rem;
        font-size: 0.95rem;
    }

    /* Main content */
    main {
        margin: 1.5rem auto;
    }

    .subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .bio-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .bio-text p {
        margin: 1rem 0;
    }

    .bio-image {
        width: 70%;
        max-width: 200px;
    }

    /* Footer */
    .footer-links {
        flex-direction: row;
        gap: 1.2rem;
        font-size: 0.9rem;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    footer {
        padding: 1.5rem;
        margin-top: auto;
    }

    /* Career page */
    .career h3 {
        font-size: 1rem;
    }

    .career .job-company {
        font-size: 0.9rem;
    }

    .career .job-title {
        margin-right: 0;
        display: block;
    }

    .career li {
        font-size: 0.9rem;
    }

    /* Photography */
    .photography .section-header {
        font-size: 1.2rem;
        margin: 2rem 0 1.5rem 0;
    }

    /* Photo gallery - 1 column on mobile */
    .photo-gallery {
        column-count: 1;
    }

    .photo-gallery > div {
        margin-bottom: 1.5rem;
    }

    /* Modal */
    .modal-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .close {
        top: 5px;
        right: 15px;
        font-size: 30px;
    }
}

/* Small mobile devices (max-width: 360px) */
@media (max-width: 360px) {
    header, main {
        width: 95%;
    }

    .navbar-logo {
        font-size: 1.3rem;
    }

    .navbar-menu {
        font-size: 0.9rem;
        gap: 0.8rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .bio-text {
        font-size: 0.9rem;
    }
}
