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

body {
    background-color: #002147;
}

p {
    margin-bottom: 0;
    font-family: "Noto Sans Mono", monospace;
}

/* FONTS */

.playfair-display-regular {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.noto-sans-mono-regular {
    font-family: "Noto Sans Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}


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

@keyframes blurAndFadeIn {
    from { 
        opacity: 0;
        filter: blur(10px);
    }
    to { 
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-2px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes blurIn {
    0% {
        filter: blur(10px);
    }
    100% {
        filter: blur(0);
    }
}

/* SCROLL REVEAL ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInBlur {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Scroll Reveal Base Class */
.scroll-reveal {
    opacity: 0;
    transition: none;
}

.scroll-reveal.revealed {
    animation-fill-mode: forwards;
}

/* Scroll Reveal Variants */
.scroll-reveal-up.revealed {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scroll-reveal-left.revealed {
    animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scroll-reveal-right.revealed {
    animation: fadeInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scroll-reveal-scale.revealed {
    animation: scaleIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scroll-reveal-blur.revealed {
    animation: slideInBlur 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* NAV BAR */
.navbar {
    background-color: #002147;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-brand {
    font-family: "Playfair Display", serif;
    font-size: clamp(24px, 5vw, 36px);
    color: #EFEBE6;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navbar-brand:hover {
    color: #D2B48C;
}

/* Hamburger Menu */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #EFEBE6;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Links */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto; /* Aligns nav-menu to the right */
}

.nav-menu a {
    font-family: "Noto Sans Mono", monospace;
    font-weight: 200;
    color: #EFEBE6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #D2B48C;
}

/* HERO/REEL */
.hero {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    max-width: 1728px;
    margin: 0 auto;
    background-color: #EFEBE6;
}

.hero-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    margin-left: 5vh;
    background-color: #EFEBE6;
}

.hero-img {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.hero-img .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.open-message {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    filter: blur(10px);
    animation: blurAndFadeIn 1s ease forwards;
    animation-delay: 0.5s;
    font-weight: 300;
    max-width: 600px;
    text-align: left;
    
}

.message-line {
    font-family: "Noto Sans Mono", monospace;
    font-size: 1.5rem;
    color: #002147;
}

.message-line-roles {

    font-family: "Playfair Display", serif;
    font-size: 1rem;
    color: #83512e;
    margin-top: 1rem;
}

.hero button, .work .btn{
    margin-top: 2rem;
    width: 20vw;
    min-width: 150px;
    max-width: 300px;
    height: auto;
    background-color: #002147;
    color: #EFEBE6;
    border: none;
    border-radius: 4px;
    font-family: "Playfair Display", serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 1rem;
}

.hero button:hover {
    background-color: #EFEBE6;
    color: #002147;
    border: 2px solid #002147;
}

.media-buttons {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 2rem;
}

.media-buttons a {
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.media-buttons a:hover {
    transform: scale(1.1);
}

.media-buttons a img,
.media-buttons a svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ABOUT SECTION */
.about {
    display: flex;
    padding: 5rem;
    margin-bottom: 15vh;
    align-items: flex-start;
    font-family: "Playfair Display", serif;
    background-color: #002147;
}

.headshot-title-wrapper {
    margin: 0 5vh 0 3vh;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    flex-shrink: 0;
}

.about .name {
    font-size: clamp(32px, 4vw, 48px);
    color: #EFEBE6;
    margin-bottom: 1rem;
}

.about .headshot {
    width: 100%;
    height: auto;
    max-width: 400px;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
}

.about-header {
    padding: 15vh 0 10px;
    display: flex;
    flex-direction: column;
}

.about section header {
    font-family: "Playfair Display", serif;
    font-weight: 550;
    font-size: clamp(24px, 4vw, 32px);
    color: #D2B48C;
    margin: 0;
}

.about section p {
    font-family: "Noto Sans Mono", monospace;
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.6;
    margin-top: 10px;
    text-align: justify;
    color: #EFEBE6;
}

/* MY WORK TITLE */

.work {
    background-color: #EFEBE6;
    padding: 5vh;
}

.my-work-title {
    font-family: "Playfair Display", serif;
    font-weight: 550;
    font-size: clamp(32px, 4vw, 48px);
    color: #D2B48C;
    text-align: center;
}

/* GALLERY */
.gallery-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 30px 20px;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.image-card {
    flex-shrink: 0;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #D2B48C;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-align: start;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.image-card img {
    display: block;
    width: 600px;
    height: 400px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card img.loaded {
    opacity: 1;
}

.image-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    pointer-events: none;
}

.image-card img.loaded + .image-loader {
    display: none;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    margin: 0 2rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    color: #EFEBE6;
    background: #002147;
}

.scroll-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-btn-left {
    left: -25px;
}

.scroll-btn-right {
    right: -25px;
}

.scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.8);
}



/* MY WORK TEXT */
.projects, .recently {
    display: flex;
    align-items: center;
    background-color: #EFEBE6;
}

.projects section header, .whats-next h3, .recently h3 {
    font-family: "Abril Fatface", serif;
    color: #002147;
    font-weight: 750;
    font-size: clamp(24px, 4vw, 32px);
    margin: 0;
}

.work .btn {
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    box-shadow:  0 4px 15px rgba(0, 0, 0, 0.2);
}

.projects section p, .recently section p {
    font-family: "Noto Sans Mono", monospace;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    margin: 10px 0 15px;
    text-align: justify;
}

.recently{
    padding: 5vh;
}

.projects .btn {
    justify-content: center;
    margin: auto;
}

.projects a {
    font-family: "Abril Fatface", serif;
    font-size: clamp(14px, 2vw, 16px);
    padding: 10px 20px;
    background-color: #002147;
    border: #002147;
    color: #EFEBE6;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.projects a:hover {
    background-color: transparent;
    color: #002147;
    border: 2px solid #002147;
}

.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    background-color: transparent;
    color: #83512e;
    border: 2px solid #83512e;
}

/* WHATS NEXT */
.whats-next {
    display: flex;
    padding: 5vh;
    align-items: flex-start;
    text-align: justify;
}

.projects header {
    text-align: center;
}

.recently section {
    margin-left: 5vh;
}

/* FOOTER */
footer {
    background-color: #002147;
    color: #EFEBE6;
    text-align: center;
    padding-top: 20px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
}

footer h3 {
    font-size: clamp(48px, 10vw, 96px);
    font-family: "Abril Fatface", serif;
}

#socials-links {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 20px 0;
}

ul {
    padding: 0;
    margin-bottom: 0;
}

#socials-links li {
    list-style: none;
    color: #EFEBE6;
    position: relative;
}

#socials-links li a {
    color: #EFEBE6;
    font-size: clamp(16px, 2vw, 18px);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-family: "Noto Sans Mono", monospace;
}

#socials-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #EFEBE6;
    transform: scaleX(0);
    transition: transform 300ms ease;
}

#socials-links li a:hover {
    color: #EFEBE6;
}

#socials-links li a:hover::after {
    transform: scaleX(1);
}

/* MEDIA QUERIES */

/* Tablet breakpoint */
@media (max-width: 991px) {
    .hero {
        height: auto;
        min-height: 80vh;
    }
    
    .hero-content {
        width: 55%;
        margin-left: 2vh;
    }
    
    .hero-img {
        width: 45%;
    }
    
    .about {
        padding: 3rem;
    }
    
    .headshot-title-wrapper {
        margin: 0 3vh 0 1vh;
        min-width: 250px;
    }
}

/* Mobile breakpoint - major changes */
@media (max-width: 768px) {
    /* Hero section - centered content, hidden image */
    .hero {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        justify-content: center;
    }

    .hero-content {
        width: 100%;
        padding: 3rem 1.5rem;
        margin-left: 0;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-img {
        display: none; /* Hide hero image on mobile for cleaner look */
    }

    .open-message {
        text-align: center;
        max-width: 100%;
    }

    .message-line {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        margin-left: 0;
        margin-right: 0;
    }

    .hero-content button {
        width: 60vw;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Navigation */
    .navbar {
        padding: 1rem;
        flex-wrap: nowrap;
    }

    .navbar-brand {
        font-size: clamp(20px, 4vw, 28px);
        position: relative;
        left: auto;
        transform: none;
        margin: 0 auto;
        order: 2;
    }

    .nav-toggle {
        display: flex;
        order: 1;
    }

    .nav-socials {
        order: 3;
        gap: 0.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #83512e;
        flex-direction: column;
        padding: 80px 2rem 2rem;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 18px;
    }

    /* About section - stack vertically */
    .about {
        display: flex;
        flex-direction: column;
        padding: 3rem 1.5rem;
        align-items: center;
    }

    .headshot-title-wrapper {
        margin: 0 0 2rem 0;
        width: 100%;
        max-width: 400px;
        align-items: center;
    }

    .about .name {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .about .headshot {
        width: 100%;
        max-width: 350px;
        aspect-ratio: 3/4;
        object-fit: cover;
        object-position: center 20%; /* Focuses on top portion of image */
    }

    .about-header {
        padding-top: 2rem;
    }

    .about section {
        width: 100%;
        max-width: 600px;
    }

    /* Projects section */
    .projects {
        display: flex;
        flex-direction: column;
        padding: 3rem 1.5rem;
    }

    .recently, .whats-next {
        padding: 2rem 0;
    }

    .recently section {
        padding-left: 0;
        margin-left: 0;
    }

    /* Gallery adjustments */
    .scroll-container {
        gap: 15px;
        padding: 20px 15px;
    }

    .image-card img {
        width: 320px;
        height: 213px;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
    }

    .scroll-btn-left {
        left: 5px;
        margin: 0;
    }

    .scroll-btn-right {
        right: 5px;
        margin: 0;
    }

    /* Footer */
    footer h3 {
        font-size: clamp(48px, 12vw, 72px);
    }

    #socials-links {
        gap: 32px;
    }

    .media-buttons {
        gap: 2rem;
        justify-content: center;
    }

    .media-buttons a {
        width: 50px;
        height: 50px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-content {
        padding: 2rem 1rem;
    }

    .message-line {
        font-size: 1.1rem;
    }

    .gallery-title {
        font-size: 1.5rem;
    }

    .scroll-container {
        gap: 10px;
        padding: 15px 10px;
    }

    .image-card img {
        width: 280px;
        height: 187px;
    }

    .about {
        padding: 2rem 1rem;
    }

    .projects {
        padding: 2rem 1rem;
    }

    .recently, .whats-next {
        padding: 1.5rem 0;
    }

    #socials-links {
        gap: 24px;
    }
}

/* Larger tablets */
@media (min-width: 769px) and (max-width: 991px) {
    .navbar-brand {
        font-size: 30px;
    }
}

/* Desktop navigation refinements */
@media (max-width: 950px) {
    .nav-menu {
        gap: 1.5rem;
        font-size: 14px;
    }

    .nav-socials img {
        width: 20px;
        height: 20px;
    }
}

/* Ensure readability on very small screens */
@media (max-width: 360px) {
    .hero-content {
        padding: 1.5rem 0.75rem;
    }
    
    .message-line {
        font-size: 1rem;
    }
    
    .about, .projects {
        padding: 1.5rem 0.75rem;
    }
}