/* Custom Styles for Photographer Portfolio - Modern Minimalist (Multi-Page) */

/* General Body & Typography */
body {
    font-family: 'Montserrat', sans-serif; /* Default body font */
    background-color: #ffffff; /* Seamless background - white */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif; /* Headings font */
}

/* Logo specific fonts */
.logo-main-name {
    font-family: 'Playfair Display', serif; /* Elegant serif for the main name */
    font-weight: 700;
}

.logo-tagline {
    font-family: 'Montserrat', sans-serif; /* Clean sans-serif for the tagline */
    font-weight: 500; /* Medium weight for tagline */
    letter-spacing: 0.05em; /* Slightly wider spacing for tagline */
}

/* Page transition effect */
body {
    animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styling - Consistent across all pages */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
    z-index: 50; /* Ensure header is above other content */
    width: 100%;
    margin: 0;
}

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important; /* Ensure background is opaque */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important; /* Add a subtle shadow */
}

/* General active link style (border color will be set by specific rules) */
#main-header .nav-link.active {
    border-bottom-width: 2px;
    border-bottom-style: solid;
    font-weight: 600;
}

/* Initial header style for index page (transparent background) */
body.index-page #main-header:not(.header-scrolled) {
    background: transparent;
    border-bottom: none;
}

/* Initial header style for non-index pages (light background) */
body:not(.index-page) #main-header:not(.header-scrolled) {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e5e7eb;
}

/* Scrolled header background (applies to all pages) */
/* This is effectively handled by .header-scrolled, but ensure no conflicts */
#main-header.header-scrolled {
    /* Styles are applied by .header-scrolled class */
}

/* --- Text and Icon Color Logic --- */

/* STATE 1: Index page, initial (header is transparent, hero background is darkish due to overlay) */
/* Text and icons should be WHITE for contrast against hero image. */
body.index-page #main-header:not(.header-scrolled) #logo-link div,
body.index-page #main-header:not(.header-scrolled) .nav-link {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7); /* Shadow for readability on varied backgrounds */
}
body.index-page #main-header:not(.header-scrolled) #mobile-menu-button { /* SVG inherits color */
    color: white;
}
body.index-page #main-header:not(.header-scrolled) .nav-link.active {
    border-bottom-color: white;
}

/* STATE 2: Non-index pages (initial light header) OR ANY page when header is scrolled (light background) */
/* Text and icons should be DARK. */
body:not(.index-page) #main-header:not(.header-scrolled) #logo-link div,
body:not(.index-page) #main-header:not(.header-scrolled) .nav-link,
#main-header.header-scrolled #logo-link div, /* Covers all pages when scrolled */
#main-header.header-scrolled .nav-link {     /* Covers all pages when scrolled */
    color: #1f2937; /* Dark text */
    text-shadow: none; /* No shadow needed on light background */
}

body:not(.index-page) #main-header:not(.header-scrolled) #mobile-menu-button,
#main-header.header-scrolled #mobile-menu-button { /* Covers all pages when scrolled */
    color: #1f2937; /* Dark icon */
}

body:not(.index-page) #main-header:not(.header-scrolled) .nav-link.active,
#main-header.header-scrolled .nav-link.active { /* Covers all pages when scrolled */
    border-bottom-color: #1f2937; /* Dark border */
}

/* --- End of Text and Icon Color Logic --- */

/* Make letters fully opaque with shadow for readability */
/* This rule is too general and conflicts with the new state-based logic. Commenting out. */
/*
#main-header #logo-link,
#main-header .nav-link {
    color: white;
    opacity: 1.0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
*/

/* Header on light pages - Covered by body:not(.index-page) #main-header:not(.header-scrolled) */
/*
body:not(.index-page) #main-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e5e7eb;
}
*/

/* Header on dark/hero pages - Covered by body.index-page #main-header:not(.header-scrolled) */
/*
body.index-page #main-header, 
body.gallery-page #main-header { // Assuming gallery-page might also have a dark hero
    background: transparent;
}
*/

/* Scrolled state - all pages - Covered by .header-scrolled and #main-header.header-scrolled color rules */
/*
#main-header.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #1f2937; // This color rule is too general for the container
}
*/

/* Scrolled link styles for non-index pages - Covered by new STATE 2 logic */
/*
body:not(.index-page) #main-header.header-scrolled #logo-link,
body:not(.index-page) #main-header.header-scrolled .nav-link {
    text-shadow: none;
    color: #1f2937;
}
*/

/* Keep index page links white even when scrolled - This is incorrect for a light scrolled background. Covered by new STATE 2 logic. */
/*
body.index-page #main-header.header-scrolled #logo-link,
body.index-page #main-header.header-scrolled .nav-link {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
*/

/* Remove general color override that was causing issues */
/* #main-header #logo-link, */
/* #main-header .nav-link { */
/* color: white; */
/* opacity: 1.0; */
/* text-shadow: 0 1px 3px rgba(0,0,0,0.7); */
/* } */

/* Make letters fully opaque with shadow for readability */
/* #main-header #logo-link, */
/* #main-header .nav-link { */
/*    color: white; */ /* This was too general */
/*    opacity: 1.0; */
/*    text-shadow: 0 1px 3px rgba(0,0,0,0.7); */ /* This was too general */
/* } */

/* Header on light pages */
body:not(.index-page) #main-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e5e7eb;
}

/* Header on dark/hero pages */
body.index-page #main-header, 
body.gallery-page #main-header {
    background: transparent;
}

/* Scrolled state - all pages */
#main-header.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* color: #1f2937; */ /* This was removed as color is handled by more specific rules now */
}

/* Scrolled link styles for non-index pages */
body:not(.index-page) #main-header.header-scrolled #logo-link div, /* Target the div inside logo-link */
body:not(.index-page) #main-header.header-scrolled .nav-link {
    text-shadow: none;
    color: #1f2937; /* Ensure text is dark on scrolled light header */
}

/* Keep index page links dark when scrolled (as background is light) */
body.index-page #main-header.header-scrolled #logo-link div, /* Target the div inside logo-link */
body.index-page #main-header.header-scrolled .nav-link {
    color: #1f2937; /* Dark text on scrolled light header */
    text-shadow: none; /* No shadow needed */
}
body.index-page #main-header.header-scrolled .nav-link.active {
    border-bottom-color: #1f2937; /* Dark border for active link */
}

/* Simple fade-in animation for page sections (if needed) */
.fade-in { animation: fadeIn 0.6s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Hero Section (index.html) */
#hero-section {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    box-sizing: border-box;
}

/* Hero Image */
.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    background-color: transparent;
    border: none;
    outline: none;
}

/* Fix for mobile devices with dynamic viewport height (e.g., iOS Safari) */
@supports (-webkit-touch-callout: none) {
    #hero-section {
        height: -webkit-fill-available; /* Use available height on iOS */
    }
}

/* Ensure the hero section always fills the viewport on all devices */
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

/* Text Overlay Styling */
#hero-section .absolute.inset-0 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0rem; /* Changed from 1.5rem */
}

#hero-section h1 {
    font-family: 'Playfair Display', serif;
}

#hero-section p {
    font-family: 'Inter', sans-serif;
}

/* Animations for text */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

/* Better mobile viewport height handling */
#hero-section, #gallery-hero {
    height: 100vh;
    height: -webkit-fill-available;
    min-height: 500px;
}

/* Fix for mobile address bar resizing */
@supports (-webkit-touch-callout: none) {
    .h-screen {
        height: -webkit-fill-available;
    }
}

/* Pixieset-like Gallery Layout (gallery.html) */
.pixieset-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    animation: galleryFadeIn 0.8s ease-out forwards;
}

@keyframes galleryFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pixieset-gallery .gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.pixieset-gallery img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 3px;
    transition: transform 0.4s, filter 0.4s;
}

.pixieset-gallery .img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    color: #fff;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1rem;
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    transition: opacity 0.3s;
    pointer-events: none;
}

.pixieset-gallery .gallery-img-wrapper:hover .img-overlay,
.pixieset-gallery .gallery-img-wrapper:focus-within .img-overlay {
    opacity: 1;
}

.pixieset-gallery .gallery-img-wrapper:hover img {
    transform: scale(1.04) brightness(0.85);
}

/* Improved image lazy loading */
.pixieset-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    animation: imageReveal 0.5s ease forwards;
    will-change: opacity, transform;
}

@keyframes imageReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Add loading animation */
.pixieset-gallery img.loading {
    background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

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

/* Gallery Item Styling (portfolio.html, index.html) */
.gallery-item .pt-4 { text-align: left; }

/* New Portfolio Item Styling for index.html */
.portfolio-item {
    position: relative;
    overflow: hidden; /* Ensures the image corners are rounded if img has rounded corners */
}

.portfolio-item img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* Ensure aspect ratio for portfolio items if not using Tailwind aspect ratio plugin */
/* Fallback for browsers not supporting aspect-ratio or if Tailwind plugin isn't used */
.portfolio-item::before {
    content: "";
    display: block;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.portfolio-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

/* Recent Work Showcase (index.html) */

#recent-work-showcase::-webkit-scrollbar {
    height: 6px;
}

#recent-work-showcase::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

#recent-work-showcase::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

.recent-work-item {
    width: 200px; /* Default width for items */
    height: 260px; /* Default height for items */
    border-radius: 0.375rem; /* Tailwind's rounded-md */
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); /* Tailwind's shadow-lg */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.4s ease-in-out,
                filter 0.4s ease-in-out;
    opacity: 0.6;
    filter: blur(2px) grayscale(50%);
    flex-shrink: 0;
    margin: 0 0.5rem; /* Add some horizontal margin */
    cursor: pointer;
    position: relative;
}

.recent-work-item.showcase-featured {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.recent-work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.recent-work-item:hover {
    opacity: 0.8;
    filter: blur(1px) grayscale(20%);
}

.recent-work-item.showcase-featured {
    width: 280px; /* Larger width for the featured item */
    height: 370px; /* Larger height for the featured item */
    transform: scale(1.1); /* Pop out effect, removed translateZ for broader compatibility */
    opacity: 1;
    filter: blur(0) grayscale(0%);
    z-index: 10;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* Tailwind's shadow-xl */
}

/* Responsive adjustments for the showcase */
@media (max-width: 1024px) { /* Adjust for tablets and smaller desktops */
    .recent-work-item {
        width: 180px;
        height: 230px;
    }
    .recent-work-item.showcase-featured {
        width: 250px;
        height: 320px;
    }
}

@media (max-width: 768px) { /* Adjust for smaller tablets */
    #recent-work-showcase {
        /* gap: 0.5rem; */ /* Tailwind handles this */
        /* min-height: 280px; */ /* Adjusted */
        /* padding-left: 1rem; */ /* Tailwind handles this */
        /* padding-right: 1rem; */ /* Tailwind handles this */
    }
    .recent-work-item {
        width: 150px;
        height: 200px;
        margin: 0 0.25rem;
    }
    .recent-work-item.showcase-featured {
        width: 200px;
        height: 270px;
    }
}

@media (max-width: 480px) { /* Adjust for mobile phones */
    .recent-work-item {
        width: 130px;
        height: 170px;
    }
    .recent-work-item.showcase-featured {
        width: 180px;
        height: 230px;
    }
    #showcase-prev, #showcase-next {
        padding: 0.35rem; /* Smaller buttons on mobile */
    }
    #showcase-prev svg, #showcase-next svg {
        height: 1.25rem; /* Smaller icons */
        width: 1.25rem;
    }
}

/* Hero Section (index.html) */
#hero-section {
    position: relative;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.slide-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Slider dots */
.slider-dot.bg-opacity-100 {
    transform: scale(1.25);
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

/* Gallery Page */
.gallery-img-wrapper {
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-img-wrapper:hover {
    transform: translateY(-5px);
}

/* Gallery lightbox */
#lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Styles */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(0, 0, 0, 0.85); 
    justify-content: center; 
    align-items: center; 
    padding: 20px; 
    box-sizing: border-box; 
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    opacity: 1;
}
.modal-content { 
    margin: auto; 
    display: block; 
    width: auto; 
    height: auto; 
    max-width: 90%; 
    max-height: 90vh; 
    border-radius: 3px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal.show .modal-content {
    transform: scale(1);
}

/* Enhanced modal close button for touch */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    padding: 15px;
    cursor: pointer;
    z-index: 1001;
}

/* For mobile devices, make the touch target bigger */
@media (max-width: 767px) {
    .modal-close {
        padding: 20px;
        top: 10px;
        right: 10px;
    }
}

/* Form status messages */
#form-status { 
    min-height: 1.5em; 
    transition: all 0.4s ease;
    transform-origin: center; 
    opacity: 0;
    transform: scaleY(0);
}
#form-status.active {
    opacity: 1;
    transform: scaleY(1);
}
.form-success { 
    color: #059669; 
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: rgba(5, 150, 105, 0.1);
}
.form-error { 
    color: #dc2626; 
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: rgba(220, 38, 38, 0.1);
}

/* Bigger touch targets for slider dots on mobile */
#sliderDots button {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    padding: 0;
    border-radius: 50%;
}

/* Make slider dots more touchable on mobile */
@media (max-width: 767px) {
    #sliderDots button {
        width: 16px;
        height: 16px;
        margin: 0 8px;
    }
    
    /* Increase spacing for touch targets */
    .absolute.bottom-8.left-1\/2.transform.-translate-x-1\/2.z-30 {
        bottom: 2.5rem;
    }
}

/* Mobile navigation bar styles */
#mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95); /* Fallback or intended style if not using Tailwind classes in HTML */
    z-index: 50;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    /* @apply bg-gray-900 bg-opacity-95; - Removed, ensure classes are in HTML if this was Tailwind */
}

#mobile-menu.hidden {
    transform: translateX(100%);
}
#mobile-menu.mobile-menu-active {
    transform: translateX(0);
}

/* #mobile-menu a.active { */
    /* @apply text-pink-400 font-bold; - Removed, ensure classes are in HTML */
    /* Example: color: #F472B6; font-weight: bold; */
/* } */

#mobile-menu a {
    color: white;
    font-size: 1.25rem;
    margin: 1rem 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

#mobile-menu a:hover {
    color: #fbbf24;
}

#mobile-menu-button {
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 60;
}

#mobile-menu-button svg {
    width: 2rem;
    height: 2rem;
    /* color: white; */ /* Color is now handled by state-specific rules above */
}

/* Show mobile menu when active */
#mobile-menu.active {
    display: flex;
}

/* Update mobile menu styles */
#mobile-menu {
    display: none;
}

#mobile-menu.mobile-menu-active {
    display: flex;
}

/* Main navigation bar styles */
#main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    position: relative;
    z-index: 50;
    transition: all 0.3s ease;
}

/* Align navigation links to the right */
.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important; /* Hide nav links on mobile */
    }
}

/* Remove logo-link color overrides */
#main-header #logo-link,
#main-header .nav-link {
    color: white;
    opacity: 1.0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* Center the logo */

/* Make hero section and slideshow fill viewport */
#hero-section,
#hero-slideshow {
    height: 100vh !important;
    min-height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden;
    position: relative;
    padding: 0;
    margin: 0;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    #main-nav {
        justify-content: space-between;
    }

    #logo-link {
        position: static;
        transform: none;
    }

    .nav-links {
        display: none; /* Hide links on mobile */
    }

    #mobile-menu-button {
        display: flex; /* Show mobile menu button */
    }

    #mobile-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        justify-content: center;
        align-items: center;
        z-index: 100;
    }

    #mobile-menu a {
        color: white;
        font-size: 1.25rem;
        margin: 1rem 0;
        text-decoration: none;
    }
}

/* Make header transparent on index page */
body.index-page #main-header {
    background: transparent;
}

/* Full viewport hero section with proper text overlay */
body.index-page {
    overflow-x: hidden;
}

/* Stronger gradient overlay for better text visibility */
#hero-section .absolute.inset-0.bg-gradient-to-t {
    background: linear-gradient(to top, 
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.5) 40%, 
        rgba(0,0,0,0.3) 70%, 
        rgba(0,0,0,0.4) 100%);
    z-index: 5;
}

/* Hero Content - Place on top of slideshow */
#hero-section .z-20 {
    z-index: 10;
    position: relative;
}

/* Make text more readable */
#heroTitle {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Footer */
footer a:hover .fa-instagram { color: #DB2777; /* text-pink-600 */ }
footer a:hover .fa-facebook-f { color: #2563EB; /* text-blue-600 */ }
footer a:hover .fa-pinterest { color: #DC2626; /* text-red-600 */ }

/* Portfolio Page */
/* .filter-btn { */
    /* @apply px-4 py-2 text-sm font-medium text-gray-700 bg-gray-200 rounded-md hover:bg-gray-300 transition-colors duration-200; - Removed, ensure classes are in HTML */
/* } */

/* .filter-btn.active { */
    /* @apply bg-gray-800 text-white; - Removed, ensure classes are in HTML */
/* } */

.gallery-item { /* This rule might be styled by Tailwind classes in HTML */
    /* @apply relative overflow-hidden rounded-lg shadow-md; - Removed, ensure classes are in HTML */
    position: relative; /* Keep if essential and not covered by HTML classes */
    overflow: hidden; /* Keep if essential */
    border-radius: 0.5rem; /* Example if rounded-lg was intended */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); /* Example if shadow-md was intended */
}

/* .gallery-item-overlay { */
    /* @apply absolute inset-0 bg-black bg-opacity-0 group-hover:bg-opacity-60 transition-all duration-300 flex flex-col justify-end p-4 text-white opacity-0 group-hover:opacity-100; - Removed, ensure classes are in HTML */
/* } */

/* .gallery-item-overlay.opacity-100 { */
    /* @apply opacity-100 bg-opacity-60; - Removed, ensure classes are in HTML */
/* } */

.gallery-item-info-icon {
    /* @apply absolute top-3 right-3 bg-black bg-opacity-40 text-white p-2 rounded-full cursor-pointer transition-opacity duration-300; - Removed, ensure classes are in HTML */
    opacity: 0; /* This was part of the original CSS, kept as it's not an @apply */
}

/* Lightbox Modal */
#lightbox-modal {
    z-index: 1000;
}

#lightbox-modal img {
    max-height: 80vh;
    object-fit: contain;
}

/* #lightbox-prev, #lightbox-next { */
    /* @apply text-2xl; - Removed, ensure classes are in HTML */
/* } */

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure prose styles on about page don't override link colors too aggressively */
.prose a {
    color: #DB2777; /* text-pink-600 */
}
.prose a:hover {
    color: #BE185D; /* text-pink-700 */
}
.prose ul > li::before {
    background-color: #EC4899; /* bg-pink-500 */
}

/* General Modal Styling (used by imageModal on index and gallery, can be base for lightbox) */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

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

/* Text color for scrolled header on non-index pages */
body:not(.index-page) #main-header.header-scrolled #logo-link div, /* Added div selector */
body:not(.index-page) #main-header.header-scrolled .nav-link {
    color: #1f2937;
    text-shadow: none;
}

/* Text color for scrolled header on index page (remains white) */
body.index-page #main-header.header-scrolled #logo-link,
body.index_page #main-header.header-scrolled .nav-link {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* Scrolled link styles for non-index pages */
body:not(.index-page) #main-header.header-scrolled #logo-link span,
body:not(.index-page) #main-header.header-scrolled .nav-link {
    text-shadow: none;
    color: #1f2937;
}

/* Keep index page links white even when scrolled */
body.index-page #main-header.header-scrolled #logo-link span,
body.index_page #main-header.header-scrolled .nav-link {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* Ensure mobile menu button color changes on scroll for non-index pages */
body:not(.index-page) #main-header.header-scrolled #mobile-menu-button {
    color: #1f2937;
}

body.index-page #main-header.header-scrolled #mobile-menu-button {
    color: white;
}

/* Update hero section background to show entire image and add zoomed-in effect */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../Images/hero-slide-1.webp');
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Images/hero-slide-1.webp');
    background-size: 150%;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
}

/* Make text in front of the image more visible */
.hero-section .hero-title {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Portfolio Page Specific Styles */
#image-gallery-section .gallery-item img {
    /* Removed fixed height, rely on aspect ratio and width */
    width: 100%;
    /* aspect-ratio: 3 / 2; /* Or your preferred aspect ratio, e.g., 4/3, 16/9 */
    /* Consider adding a min-height or specific height for very small screens if aspect-ratio alone isn't enough */
    object-fit: cover; /* Ensures image covers the area, might crop */
}

/* Style for the new filter dropdown */
#filter-dropdown {
    /* Tailwind classes are mostly handling this in the HTML */
    /* Add any additional custom styles here if needed */
    min-width: 200px; /* Example: ensure dropdown is not too small */
}

/* Hide old filter buttons if they were styled here and not just in HTML */
/* #filter-buttons { display: none; } */

/* --- Recent Work Carousel --- */

#carousel-main-focus {
    position: relative;
    background-color: rgba(243, 244, 246, 0.8); /* Light gray background */
    overflow: hidden;
    min-height: 500px; /* Ensure minimum height even if content is loading */
}

#carousel-image-stage {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: block; /* Ensure the container is displayed */
}

/* REMOVED DUPLICATE CAROUSEL STYLING - See consolidated styles below */

/* Adjustments for navigation arrows if needed */
#carousel-prev,
#carousel-next {
    /* Tailwind classes handle most styling. Add specific overrides here if necessary. */
    /* Example: Ensure they are above thumbnails if overlap occurs */
    z-index: 20; 
    background-color: rgba(0, 0, 0, 0.2) !important;
}

/* Hide original showcase and its nav buttons if they were not removed from HTML */
#recent-work-showcase,
#showcase-prev,
#showcase-next {
    display: none; 
}

/* Recent Work Carousel (index.html) - FIXED */
.carousel-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: auto;
    max-height: 95%;
    object-fit: contain;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0; /* Start invisible */
    transition: all 0.5s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1; /* Default z-index */
    pointer-events: none; /* Only active image should be clickable */
}

/* Active image appears fully opaque */
.carousel-image.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 10;
    pointer-events: auto; /* Allow clicking the active image */
}

/* Previous image position */
.carousel-image.prev {
    opacity: 0.7;
    transform: translate(-50%, -50%) translateX(-40%) scale(0.8);
    z-index: 5;
    pointer-events: auto; /* Allow clicking */
}

/* Next image position */
.carousel-image.next {
    opacity: 0.7;
    transform: translate(-50%, -50%) translateX(40%) scale(0.8);
    z-index: 5;
    pointer-events: auto; /* Allow clicking */
}

/* Further away images */
.carousel-image.prev-far {
    opacity: 0.4;
    transform: translate(-50%, -50%) translateX(-80%) scale(0.6);
    z-index: 1;
}

.carousel-image.next-far {
    opacity: 0.4;
    transform: translate(-50%, -50%) translateX(80%) scale(0.6);
    z-index: 1;
}
