* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background:#fdfdfd; color: #111; line-height: 1.6; }

/* Header & Nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: sticky;
    top: 0;
    background: #fdfdfd;
    z-index: 1000;
    /* border-bottom: 1px solid #eee;*/
}

.logo { 
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-decoration: none;
    color: #555; 
    z-index: 1001; /* Keeps logo above mobile menu */
    transition: 0.3s;
}

.logo:hover {
    color: #000; /* Darkens slightly on hover, just like your links */
}


/* Hide mobile toggle elements by default */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
    align-items: center; /* Ensures text aligns vertically */
}

/* 'span' will make Portfolio look like the links */
.nav-links a, 
.nav-links span { 
    text-decoration: none; 
    color: #555; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: 0.3s; 
    cursor: pointer;
}

/* 'span:hover' will make it react to mouse */
.nav-links a:hover,
.nav-links span:hover { 
    color: #000; 
}

/* Specifically for Portfolio: removes the 'hand' pointer to make it feel unclickable */
.dropdown span {
    cursor: default;
}

/* Dropdown Logic - Desktop */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    background: #fdfdfd;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    padding: 10px 0;
    top: 100%; 
    left: 0;
    border-radius: 8px;
    overflow: hidden;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 10px 20px; text-transform: none; transition: background-color 0.2s ease; /* Smooths the transition to black */}
.dropdown-content a:hover {
    background-color: #111;
    color: #fdfdfd;
    letter-spacing: 3px; 
}

.disabled-link {
    pointer-events: none; /* Makes it unclickable */
    cursor: default;     /* Prevents the 'hand' icon from appearing */
    opacity: 0.6;        /* Optional: Gives a visual cue that it's inactive */
}

/* Container for social icons */
.social-icon {
    display: flex;
    gap: 20px; /* Adjust this for the spacing between IG and YT */
    align-items: center;
}

/* Selector to target all images inside the social-icon div */
.social-icon img { 
    width: 20px; 
    opacity: 0.7; 
    transition: 0.3s; 
    filter: grayscale(30%); /* Makes the icons black/grey */
    display: block; 
}

.social-icon img:hover { 
    opacity: 1; 
    filter: grayscale(0%); /* Brings back the color on hover */
}


/* Desktop: Hide the hamburger */
.hamburger {
    display: none;
}

/* --- Media Responsiveness for header --- */
@media (max-width: 768px) {
    /* Hide the social icons completely on mobile */
    .social-icon {
        display: none;
    }

    

    header {
        display: flex;
        justify-content: space-between; /* This pushes Logo to left, Hamburger to right */
        align-items: center;
    }

    .nav-menu {
        /* Pull it out of the layout flow */
        position: fixed;

        /* Move it off-screen (Keep it "flex" so links align) */
        top: 0;
        right: -100%;

        /* Appearance */
        width: 100%;
        height: 100vh;
        background: #fdfdfd;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        /* Animation */
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1500;
    }

    /* When the menu is "Active" */
    .nav-menu.active {
        right: 0; /* Slide in to cover the screen */
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2000; /* Stays above the overlay */
        padding: 10px;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
        background: black;
        transition: 0.3s ease;
    }

    /* Hamburger animation to 'X' */
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
        font-size: 1.5rem;
        padding: 0;
    }
}


/* --- Gallery Container  --- */
.gallery-grid {
    column-count: 3; /* Number of columns on desktop */
    column-gap: 20px;
    padding: 40px;
    display: block;
}

/* --- Grid Item --- */
.grid-item {
    display: inline-block; /* Stops items from breaking across columns */
    width: 100%;
    margin-bottom: 20px; /* Space between vertical items */
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 8px; /* Adjust this number: 8px for subtle, 20px for very round */
    mask-image: -webkit-radial-gradient(#fdfdfd, black); /* Fixes a rare bug in Safari where corners "leak" during animations */

}

.grid-item.appear { 
    opacity: 1; 
    transform: translateY(0); 
}

.grid-item img {
    width: 100%;
    height: auto; /* Image shows its full original shape */
    object-fit: contain; /* Ensures nothing is cut off */
    display: block;
    cursor: zoom-in;
    
    /* Performance boosts */
    /* will-change: transform;*/
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    /* Rounded corners*/
    border-radius: 8px;

    /* Prevents the 'Save Image' drag-and-drop ghosting */
    -webkit-user-drag: none;
    user-drag: none;

    /* Prevents highlighting/selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Prevents the 'Save Image' menu on mobile long-press */
    -webkit-touch-callout: none; 

    /* Ensures the image is "tangible" for your right-click script */
    pointer-events: auto;
}

/* --- Hover Overlay & Caption  --- */
.grid-item a {
    text-decoration: none;
    display: block;
    outline: none;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.grid-item:hover .img-overlay {
    opacity: 1;
}

.grid-item a {
    /* Prevents the 'Save Image' drag-and-drop ghosting */
    -webkit-user-drag: none;
    user-drag: none;

    /* Prevents highlighting/selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Prevents the 'Save Image' menu on mobile long-press */
    -webkit-touch-callout: none; 
}

.overlay-title {
    color: white;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid white;
    padding-bottom: 5px;
}

/* Media responsiveness for gallery grid */
@media (max-width: 1000px) {
    .gallery-grid { column-count: 2; } /* 2 columns on tablets */
}

@media (max-width: 600px) {
    .gallery-grid { 
        column-count: 1; /* 1 column on phones */
        padding: 20px;
    } 
}

/* Copyright toast */

#copyright-toast {
    visibility: hidden;
    position: fixed !important; /* Keeps it relative to the screen */
    z-index: 2147483647 !important;
    min-width: 180px;
    background-color: #fdfdfd;
    color: #000000;
    text-align: center;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    
    /* Smooth fade */
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none; /* Ensures the toast doesn't block further clicks */
}

#copyright-toast.show {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hero image */
.hero-section {
    position: relative;
    width: 100%;
    /* Remove height: 80vh; here so the container can shrink on mobile */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: #111; /* Dark background in case image loads slow */
}

.hero-img {
    width: 100%;
    height: auto; /* Shows full image */
    display: block;
    z-index: 1;
     
    /* Allows the right-click script to work */
    pointer-events: auto; 

    /* Prevents the 'Save Image' drag-and-drop ghost image */
    -webkit-user-drag: none;
    user-drag: none;

    /* Prevents the 'Save Image' menu on mobile long-press */
    -webkit-touch-callout: none; 

    /* Prevents highlighting/selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hero-title {
    position: absolute; /* Floats over the img */
    z-index: 2;
    /* FLUID FONT SIZE: 
    Min: 2rem, Scalable: 4vw, Max: 5rem */
    font-size: clamp(2rem, 4vw, 5rem);
    max-width: 800px;

    font-weight: 300;
    color: white;
    text-align: center;
    text-shadow: 0 2px 14px rgba(0,0,0,0.5); /* Helps readability over artwork */
    pointer-events: none;
    letter-spacing: 1px;
    width: 90%; /* Keeps text from hitting the edges */
    opacity: 0.9;

    /* RELATIVE POSITIONING:
    Min: 10px from bottom,
    Scaling: 4% of the container height,
    Max: 30px from bottom */
    bottom: clamp(10px, 4%, 30px);
}

/* Media responsiveness for hero img */
@media (min-width: 768px) {
    .hero-img {
        height: 100%;
        object-fit: cover; /* Back to cover for large screens */
    }
}

/* --- About Section --- */
.about-section {
    padding: 80px 10%; 
    max-width: 1400px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    /* Default: Mobile stacks Top to Bottom (Text then Photo) */
    flex-direction: column; 
    gap: 40px;
    align-items: center; 
}

.about-content {
    flex: 1;
    max-width: 600px; 
    /* Ensures the button aligns with the text flow */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centered on mobile */
    text-align: center;  /* Centered on mobile */
}

.about-heading {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 300;
    font-size: 1.2rem; /* Smaller, more sophisticated */
    margin-bottom: 20px;
    color: #444; /* Slightly softer than pure black */
}

.about-statement {
    margin-bottom: 30px; /* Space between text and button */
    line-height: 1.6;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.bio-img {
    width: 100%;
    max-width: 600px; 
    height: auto;
    border-radius: 12px;
    display: block;

    /* No border */
    border: none;
    outline: none;
    background-clip: content-box;

    /* optional */
    image-rendering: auto;  /* Ensures smooth scaling */
    mix-blend-mode: multiply; /* If background is white, this 
                                will make the frayed edges blend perfectly */


    /* Prevents highlighting/selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;

    /* Prevents the 'Save Image' menu on iOS/Android */
    -webkit-touch-callout: none;

    /* Prevents the 'Save Image' drag-and-drop ghost image */
    -webkit-user-drag: none;
    user-drag: none;

    /* Allows the right-click script to work */
    pointer-events: auto; 
}

/* --- Call for action button --- */
.action-button {
    display: inline-block;
    padding: 12px 35px;
    background-color:transparent;
    color: #111;
    border: 1px solid #111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    transition: 0.4s ease;

    border-radius: 4px;
}

.action-button:hover {
    background-color: #111;
    color: #fdfdfd;
    letter-spacing: 3px;       
} 

/* --- Media responsiveness for About section --- */
@media (min-width: 768px) {
    .about-container {
        display: flex;
        flex-direction: row; /* Text Left, Photo Right */
        justify-content: center;
        gap: 80px;
        text-align: left;
        align-items: center;
    }

    .about-content, .about-image {
        flex: 1;                /* Forces both containers to be exactly the same width */
        width: 50%;             /* Explicitly defines the 50/50 split */
    }

    .about-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Aligns button to the left */
        text-align: left;        /* Aligns text to the left */
        padding-right: 20px;
    }

    .bio-img {
        width: 100%;            /* Fills its 50% container */
        max-width: 600px;       /* Prevents it from getting absurdly huge on ultra-wide screens */
        height: auto;
        aspect-ratio: 880 / 728; /* Forces the photo to maintain your specific ratio */
        object-fit: cover;       /* Ensures the image fills the space without stretching */
        object-position: 65% center;
    }

    .action-button {
        /* Overrides any auto-centering from mobile */
        align-self: flex-start; 
        margin-left: 0; 
    }

    /* Ensures image stays on right */
    .about-image {
        order: 2; 
    }

    /*
    .about-statement {
        line-height: 1.8;
        margin-bottom: 40px;
    }*/
}

@media (max-width: 768px) {
    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center; /* Keeps button centered on mobile */
        text-align: center;
    }
    
    .action-button {
        align-self: center;
    }
}

/* For scrolling of the hero and bio images 
.hero-img, .bio-img {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-img.appear, .bio-img.appear {
    opacity: 1;
    transform: translateY(0);
} */


/* Gallery Statement */
.gallery-intro {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.statement {
    font-size: 1.1rem;
    font-style: italic;
    color: #444;
    line-height: 1.8;
}

/* PhotoSwipe */
.pswp__custom-caption {
  background: rgba(0, 0, 0, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #fff;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 4px;
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  letter-spacing: 0.025em;
  /* text-transform: uppercase;*/
}

/* Spacing scales automatically for second smaller line */
.pswp__custom-caption small {
  font-size: 12px; 
 }

/* Hides the "1 / 11" counter in PhotoSwipe */
.pswp__counter {
    display: none !important;
}

/* Hides the zoom button in PhotoSwipe */
.pswp__button--zoom { display: none !important; }

/* Ensure the placeholder (the image before it loads) is also white */
.pswp__img--placeholder {
    background: #fdfdfd !important;
}

/* Makes the PhotoSwipe background a solid, opaque white */
.pswp__bg {
    background: #fdfdfd !important; /* Set to #000000 if you want a black background */
    /* opacity: 1;*/
}

/* Optional: If you see a slight flicker during the opening animation, 
   this ensures the main container is also white */
.pswp {
    --pswp-bg: #ffffff;
}

/* Prevents the layout from jumping when the scrollbar disappears */
/* Ensures the body doesn't shift when the lightbox is active */
.pswp-open body {
    overflow: hidden;
    /* This prevents the page underneath from moving at all */
    position: fixed; 
    width: 100%;
}

/* This class is added by PhotoSwipe when active. 
   Ensures the background page is "locked" so swipes only affect the gallery. */
.pswp-active {
    overflow: hidden;
}

/* Prevent transition interference during PhotoSwipe exit */
.pswp-active .grid-item {
    transition: none !important;
}

html {
    /* Prevents layout jump by always reserving space for the scrollbar */
    scrollbar-gutter: stable;
}

/* --- PhotoSwipe Large Image Protection --- */
.pswp__img {

    /* Prevents the 'Save Image' drag-and-drop ghosting */
    -webkit-user-drag: none;
    user-drag: none;

    /* Prevents highlighting/selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;

    /* Prevents the 'Save Image' menu on mobile long-press */
    -webkit-touch-callout: none;
    
    /* Ensure the right-click script can "see" the image */
    pointer-events: auto !important;
}

/* Prevent clicking through the container */
.pswp__container {
    /* Prevents the 'Save Image' drag-and-drop ghosting */
    -webkit-user-drag: none;
    user-drag: none;

    /* Prevents highlighting/selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;

    /* Prevents the 'Save Image' menu on mobile long-press */
    -webkit-touch-callout: none;
}

/* --- Contact Section --- */
.contact-section {
    background-color: #f7f7f7; /* Slightly darker than #fdfdfd to create a "section" feel */
    padding: 80px 10%;
    width: 100%;
    margin-bottom: 0;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Mobile Default: Stacked */
    gap: 40px;
    align-items: center;
    text-align: center;
}

/* Media responsiveness for contact section */
.contact-info {
    order: 1;
    max-width: 600px;
}

.contact-action {
    order: 2;
}

/* --- Desktop Logic (768px and up) --- */
@media (min-width: 768px) {
    .contact-container {
        flex-direction: row; /* Horizontal Row */
        justify-content: space-between;
        text-align: left;
    }

    /* Desktop ordering: Button (order 1) then Info text (order 2) */
    .contact-action {
        order: 1;
        flex: 1;
    }

    .contact-info {
        order: 2;
        flex: 1.5; /* Gives the text a bit more room than the button */
        padding-left: 50px;
    }

    .contact-info .about-heading {
        margin-bottom: 15px;
    }
}


/* --- Footer Styling --- */
.site-footer {
    width: 100%;
    background: #fdfdfd;
    border-top: 1px solid #eee; /* Matches header border */
    padding: 50px 5%; /* Matches header side-padding */
    /* margin-top: 60px; */ 
    margin-top: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}

.footer-copyright {
    font-size: 1rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-email {
    text-decoration: none;
    color: #999;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.footer-email:hover {
    border-bottom: 1px solid #999;
    color: #111; /* Darkens slightly when hovered so user knows it's a link */

}

/* Media responsiveness for footer */
@media (max-width: 768px) {
    /* Header CSS hides .social-icon on mobile. 
      They should show in the footer. */
    .site-footer .social-icon {
        display: flex !important; 
        justify-content: center;
    }
}

/* Desktop Layout: Horizontal Row */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center; /* This keeps email, copyright, and icons perfectly centered with each other */
    }
}