/*
=================================================================
  TABLE OF CONTENTS
=================================================================

1.  :root -> CSS Variables & Global Styles
2.  Header & Navigation
3.  Gallery Section
4.  About Section
5.  Contact Section
6.  Footer
7.  Media Queries (Responsive Design)

=================================================================
*/

/*
=================================================================
1. VARIABLES & GLOBAL STYLES
=================================================================
*/

@font-face {
    font-family: 'Antique Olive';
    src: url('../fonts/Antique-Olive-Std-Roman_3869.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Antique Olive';
    src: url('../fonts/Antique-Olive-Std-Bold_3863.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Antique Olive';
    src: url('../fonts/Antique-Olive-Std-Italic_3865.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

:root {
    --bg-primary: #d7d2cb;
    --bg-secondary: #bfb5aa;
    --text-primary: #222;
    --text-secondary: #111;
    --text-light: #fff;
    --font-primary: 'Antique Olive', sans-serif;
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
    --transition-slow: 0.5s;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
}

/*
=================================================================
2. HEADER & NAVIGATION
=================================================================
*/
.centered-header {
    text-align: center;
    margin: 40px 20px 20px 20px;
}

.centered-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.subtitle-small {
    font-size: 1.6rem;
    font-weight: 400;
    display: block;
    margin-top: 8px;
}

.centered-header h2 {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 8px;
    letter-spacing: 2px;
}

.centered-header h2 a,
.centered-header h2 span {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.centered-header h2 a {
    font-weight: 400;
}

.centered-header h2 span { /* Represents the "active" or current page link */
    font-weight: 600;
    border-bottom-color: var(--text-primary);
}

.centered-header h2 a:hover {
    border-bottom-color: var(--text-primary);
}

/*
=================================================================
3. GALLERY SECTION
=================================================================
*/
.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px 20px;
    column-count: 3;
    column-gap: 10px;
}

.work {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}

.work img,
.work video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #eee;
    transition: transform var(--transition-medium);
}

.work:hover img,
.work:hover video {
    transform: scale(1.1);
}

/* Gallery Item Overlay */
.layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Always full height for smooth transitions */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.work:hover .layer {
    opacity: 1;
    visibility: visible;
}

.layer h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-light);
    margin: 0;
    text-align: left;
}

.layer h3 .role {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-top: 8px;
    opacity: 0.9;
}

.layer a {
    color: var(--text-light);
    font-size: 20px;
    text-decoration: none;
    transition: all var(--transition-medium);
}

.layer a[href="#"] {
    display: none;
}

.layer a:hover {
    color: var(--bg-secondary);
}

/*
=================================================================
4. ABOUT SECTION
=================================================================
*/
.about-section {
    padding: 60px 0;
    margin-top: 40px;
}

.about-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section .row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.about-left {
    flex-basis: 35%;
}

.claire-photo {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    object-fit: cover;
}

.about-right {
    flex-basis: 60%;
}

.about-right .sub-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-right p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/*
=================================================================
5. CONTACT SECTION
=================================================================
*/
#contact {
    padding: 60px 0 0 0;
    margin-top: 40px;
}

#contact .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-center {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.contact-center .sub-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.contact-center p {
    margin-top: 24px;
    font-size: 1.1rem;
}

.contact-center p i {
    margin-right: 12px;
    font-size: 22px;
}

.social-icons {
    text-align: center;
    margin-top: 10px;
}

.social-icons a {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0 8px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.social-icons a:hover {
    color: var(--text-secondary);
}

.linkedin-text {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
}

.linkedin-text:hover {
    text-decoration: underline;
}

/*
=================================================================
6. FOOTER
=================================================================
*/
.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: var(--bg-secondary);
    font-weight: 300;
    margin-top: 32px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.copyright i {
    color: var(--text-secondary);
    margin-left: 6px;
}

/*
=================================================================
7. MEDIA QUERIES (RESPONSIVE DESIGN)
=================================================================
*/

/* Tablet - 900px */
@media (max-width: 900px) {
    .about-section .row {
        flex-direction: column;
        gap: 40px;
    }

    .about-left {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-right {
        text-align: left;
    }

    .contact-center {
        padding: 28px 20px;
    }
}

/* Mobile - 600px */
@media (max-width: 600px) {
    .centered-header h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .subtitle-small {
        font-size: 1rem;
        margin-top: 6px;
    }

    .centered-header h2 {
        font-size: 0.9rem;
        gap: 12px;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 6px;
        padding: 10px 12px 30px 12px;
    }

    .work {
        margin-bottom: 6px;
    }

    .work img,
    .work video {
        object-fit: cover;
    }

    .layer {
        padding: 12px;
    }
    
    .work:hover .layer,
    .work.active .layer { /* Added .active for touch devices */
        opacity: 1;
        visibility: visible;
    }

    .layer h3 {
        font-size: 12px;
        margin: 0;
    }

    .layer a {
        font-size: 14px;
    }

    .social-icons a {
        font-size: 1.1rem;
    }

    .contact-center {
        padding: 20px;
    }

    .copyright {
        font-size: 0.9rem;
        padding: 18px 0;
    }
}

/* Small Mobile - 375px */
@media (max-width: 375px) {
    .centered-header h1 {
        font-size: 1.8rem;
    }

    .subtitle-small {
        font-size: 0.9rem;
        margin-top: 4px;
    }

    .centered-header h2 {
        font-size: 0.8rem;
        gap: 8px;
    }

    .gallery-grid {
        column-gap: 4px;
        padding: 8px 12px 24px 12px;
    }

    .work {
        margin-bottom: 4px;
    }

    .layer {
        padding: 8px;
    }
    
    .work:hover .layer,
    .work.active .layer {
        opacity: 1;
        visibility: visible;
    }

    .layer h3 {
        font-size: 10px;
        margin: 0;
    }

    .layer a {
        font-size: 12px;
    }

    .about-section {
        padding: 30px 0;
    }

    .about-right .sub-title {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .about-right p {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }


}