/* ========================================= */
/* GLOBAL STYLES                             */
/* ========================================= */
/* Forces the browser to calculate padding properly so nothing breaks the screen width */
* {
    box-sizing: border-box;
    word-wrap: break-word; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================= */
/* NAVIGATION & HEADERS                      */
/* ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #eeeeee;
    background-color: #ffffff;
}

h1 {
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

nav a:hover {
    text-decoration: underline;
}

section {
    margin-bottom: 80px;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* ========================================= */
/* ABOUT PAGE LAYOUT                         */
/* ========================================= */
.about-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}

.edu-item { margin-bottom: 40px; }
.edu-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.edu-school { font-size: 1.3rem; font-weight: bold; margin: 0; }
.edu-dates { font-style: italic; color: #666; }
.edu-degree { font-weight: 600; font-size: 1.1rem; margin: 0 0 10px 0; }
.edu-details { padding-left: 20px; margin: 0; }
.edu-details li { margin-bottom: 8px; }

/* ========================================= */
/* UPDATES PAGE LAYOUT                       */
/* ========================================= */
.filter-container {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    margin-right: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: #888;
}

.custom-select-wrapper {
    position: relative;
    display: inline-block;
}

.custom-select-wrapper select {
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #000;
    border-radius: 0;
    padding: 5px 30px 5px 0;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.custom-select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #000;
}

.custom-select-wrapper select:focus { border-bottom-color: #aaa; }
.custom-select-wrapper select:hover { border-bottom-color: #666; }

.milestone {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eeeeee;
}

.milestone:last-child { border-bottom: none; }
.milestone-text { flex: 3; }
.milestone-visual { flex: 1; display: flex; flex-direction: column; align-items: center; }
.milestone-visual img { width: 100%; border-radius: 4px; object-fit: cover; margin-bottom: 10px; }
.caption { font-size: 0.85rem; color: #666; text-align: center; margin: 0; font-style: italic; line-height: 1.4; }

/* ========================================= */
/* PHOTOGRAPHY PAGE LAYOUT                   */
/* ========================================= */
.filter-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 15px;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 600;
    color: #cccccc; 
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover { color: #888888; }
.filter-btn.active { color: #000000; }

.masonry-grid {
    column-count: 4; 
    column-gap: 20px;
}

.photo-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative; 
    overflow: hidden; 
    border-radius: 2px;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease; 
}

.caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0; 
    transition: opacity 0.4s ease;
    pointer-events: none; 
}

.photo-item:hover .caption-overlay { opacity: 1; }
.photo-item:hover img { transform: scale(1.03); }

/* ========================================= */
/* CONTACT PAGE LAYOUT                       */
/* ========================================= */
.contact-hero {
    margin-bottom: 60px;
    border-bottom: 2px solid #000;
    padding-bottom: 40px;
}

.oversized-text {
    /* Lowered the minimum size from 4.5rem to 3rem to fit longer words on phones */
    font-size: clamp(3rem, 14vw, 10rem); 
    font-weight: 800;
    /* Slightly reduced letter spacing so 'CONNECT' doesn't stretch too wide */
    letter-spacing: -2px; 
    line-height: 1;
    margin: 0 0 15px 0;
    border-bottom: none;
    padding-bottom: 0;
    /* Safety net: Forces the word to shrink instead of stretching the screen */
    word-break: break-word; 
    max-width: 100%;
}

.location-text {
    font-size: 1.2rem;
    color: #555;
    margin: 0;
}

.contact-grid {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.contact-links, .micro-blog {
    flex: 1;
    max-width: 100%; /* Prevents the columns from ever exceeding screen width */
    overflow: hidden; /* Clips any invisible overflow */
}

.contact-subtitle {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-list li {
    margin-bottom: 20px;
    line-height: 1.5;
}

.clean-list a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.clean-list a:hover {
    color: #666;
}

.response-time {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */
footer {
    padding: 40px;
    border-top: 1px solid #000000;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 60px;
}

/* ========================================= */
/* MOBILE RESPONSIVENESS (CONSOLIDATED)      */
/* ========================================= */
@media (max-width: 1000px) {
    .masonry-grid { column-count: 3; }
}

@media (max-width: 768px) {
    /* Top Banner */
    header { flex-direction: column; gap: 15px; text-align: center; padding: 20px 15px; }
    nav { flex-wrap: wrap; justify-content: center; gap: 15px; }
    
    /* About Page */
    .about-grid { flex-direction: column; }
    .edu-header { flex-direction: column; align-items: flex-start; gap: 5px; }
    
    /* Updates Page */
    .milestone { flex-direction: column; gap: 20px; }
    .milestone-visual { width: 80%; margin: 0 auto; }
    
    /* Photography Page */
    .masonry-grid { column-count: 2; }
    .filter-nav { 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        justify-content: flex-start;
        padding-bottom: 5px;
        gap: 20px;
        scrollbar-width: none; 
        
    /* Contact Page */
  /* Contact Page */
    .contact-grid { 
        flex-direction: column; 
        gap: 40px; 
        width: 100%; 
        box-sizing: border-box; /* Ensures padding doesn't push the column off screen */
    }
    .location-text { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    nav a { font-size: 0.95rem; }
    .masonry-grid { column-count: 1; }
}
