* {
    margin: 0;
    padding: 0;
    /* CRITICAL FIX: Ensures padding is included *inside* the element's defined width */
    box-sizing: border-box; 
}

:root {
    --primary-color: #ffffff; 
    --secondary-color: #c9c9c9; 
    --accent-color: #ffffff; 
    --background-color: #000000; 
    --project-line-color: rgba(255, 255, 255, 0.2);
    --original-accent: #4263d9; 
    --gap: 30px; /* Define the gap size */
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 0 60px;
    min-height: 100vh;
}

.section-title {
    font-size: 80px;
    font-weight: 200;
    letter-spacing: 5px;
    margin-bottom: 50px;
    padding-top: 100px;
    text-transform: uppercase;
    font-style: italic;
}

/* -------------------- Navigation -------------------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: flex-end; 
    gap: 40px;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--original-accent);
    transition: width 0.3s ease;
}

nav a.active::after {
    width: 100%;
}

nav a.active, nav a:hover {
    color: var(--original-accent);
}

/* -------------------- Hero Section (Slider) -------------------- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: absolute;
    bottom: 80px;
    left: 60px;
    z-index: 10;
    text-align: left;
    animation: fadeInUp 1s ease-out; 
}

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

.hero-content h2 {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.hero-content h1 {
    font-size: 100px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 40px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.indicator.active {
    background: rgba(255,255,255,0.5);
}

.indicator.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1f35f2; 
    animation: progress 3s linear;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

/* -------------------- Intro Section -------------------- */
.intro-section {
    min-height: auto; 
    padding: 100px 60px;
    background-color: var(--background-color);
}

.intro-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--project-line-color);
}

.intro-text {
    max-width: 50%;
    font-size: 14px;
    font-weight: 300;
    color: var(--secondary-color);
    line-height: 1.8;
}

.quote-content {
    max-width: 40%;
    text-align: right;
}

.quote-content .tagline {
    font-size: 32px;
    font-weight: 200;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 10px;
}

.quote-content .signature {
    font-size: 18px;
    font-weight: 300;
    color: var(--secondary-color);
    display: block;
}

/* Showcase Gallery Grid */
.showcase-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 40px;
    padding-bottom: 100px;
}

.showcase-gallery-grid .gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.showcase-gallery-grid .gallery-item:nth-child(2),
.showcase-gallery-grid .gallery-item:nth-child(5) { 
    grid-row: span 2; 
    aspect-ratio: 0.5 / 1; 
}

.showcase-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

/* -------------------- Projects Section -------------------- */

.projects-section {
    min-height: 100vh;
    padding-bottom: 100px;
}

.project-tabs {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--project-line-color);
}

.tab-link {
    font-size: 20px;
    font-weight: 300;
    padding-bottom: 10px;
    position: relative;
    transition: color 0.3s ease;
}

.tab-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.tab-link.active {
    font-weight: 500;
}

.tab-link.active::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Photography Carousel Styles */
.project-category {
    margin-bottom: 80px;
}

.project-name {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.project-carousel-container {
    position: relative;
    overflow: hidden; 
    width: 100%; 
    margin: 0;   
}

.project-slider {
    display: flex; 
    transition: transform 0.5s ease;
    /* This width allows 5 items with padding for a full scrolling effect */
    width: calc(500% / 3); /* 5 items * (100%/3) = 166.66% but we use 500/3 to be safe */
}

.project-item {
    /* CRITICAL FIX: Base width calculates exactly 1/3 of the container,
       THEN we subtract the gap (2/3 of 30px) so the total width remains 100%. 
       This ensures 3 images fit perfectly. */
    flex: 0 0 calc(33.333% - 20px); 
    aspect-ratio: 1.33 / 1; 
    overflow: hidden;
    cursor: pointer;
    margin-right: 30px; /* Use margin-right for the gap */
}

.project-item:last-child {
    margin-right: 0;
}

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

/* --- Arrow Navigation Styling (Shadow Only) --- */

.carousel-nav {
    position: absolute;
    top: 50%;
    /* Extend the nav area to cover the full width, including section padding */
    width: calc(100% + 120px); 
    left: -60px; 
    right: -60px; 
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    z-index: 10;
    /* Use padding to define where the arrows sit */
    padding: 0 60px; 
    pointer-events: none; 
}

.carousel-nav .prev-slide-btn {
    position: absolute;
    left: 60px; /* Aligns with section padding */
}

.carousel-nav .next-slide-btn {
    position: absolute;
    right: 60px; /* Aligns with section padding */
}


.prev-slide-btn, .next-slide-btn {
    background: transparent; 
    color: var(--primary-color);
    border: none;
    font-size: 32px; 
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    pointer-events: auto; 
    
    /* Shadow for visibility against images */
    text-shadow: 0 0 8px rgba(0, 0, 0, 1), 0 0 1px rgba(0, 0, 0, 0.8);
    
    z-index: 15;
}

.prev-slide-btn:hover, .next-slide-btn:hover {
    color: var(--original-accent);
    text-shadow: 0 0 10px var(--original-accent), 0 0 5px rgba(0, 0, 0, 1);
}

/* Event Tab Style */
.event-project {
    margin-bottom: 80px;
}

.event-name {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* --- NEW EVENT SECTION GRID AND IMAGE STYLES --- */

/* Apply two-column grid to the main event container */
.event-project {
    margin-bottom: 80px;
    display: grid;
    /* Divide space into 1 part for image, 1.5 parts for text/details */
    grid-template-columns: 1fr 1.5fr; 
    gap: 40px;
    align-items: start;
}

/* Ensure image stays within its column and is visible */
.event-image {
    grid-column: 1 / 2;
    overflow: hidden;
    aspect-ratio: 4/3; /* Set a standard landscape ratio for consistency */
    max-height: 300px; /* Cap vertical height */
}

.event-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop to fill the space */
    display: block;
}

/* Move existing content (title/text/buttons) into the second column */
.event-content {
    grid-column: 2 / 3;
}

/* Responsive adjustment for event section to stack on mobile */
@media (max-width: 768px) {
    .event-project {
        grid-template-columns: 1fr; /* Stack into a single column */
        gap: 30px;
    }
    .event-image, .event-content {
        grid-column: 1 / 2;
    }
}


.event-project p {
    max-width: 800px;
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.responsibility-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.responsibility-item {
    font-size: 16px;
    font-weight: 300;
    padding: 15px 30px;
    border: 1px solid var(--project-line-color);
    border-radius: 50px;
    text-align: left; 
    transition: background-color 0.3s ease;
}

.responsibility-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* -------------------- Contact Section -------------------- */


/* New CSS to control the actual image inside the placeholder */
.contact-image-placeholder .contact-photo-final {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    
    /* CRITICAL: Apply grayscale by default */
    filter: grayscale(100%); 
    /* CRITICAL: Smooth transition for the filter effect */
    transition: filter 0.5s ease-in-out; 
}

/* CRITICAL: Remove grayscale on hover */
.contact-image-placeholder:hover .contact-photo-final {
    filter: grayscale(0%);
}

/* -------------------- Contact Section -------------------- */

.contact-section {
    min-height: 100vh;
    padding-bottom: 100px;
}

.contact-grid {
    /* Layout: 1fr (Image) | 1fr (Content) */
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 60px;
    align-items: flex-start;
}





/* --- UPDATED CONTACT INFO STYLES (for Icons) --- */

/* 1. Modify contact-info to arrange icons horizontally */
.contact-info {
    grid-column: 2 / 3; 
    display: flex; /* CRITICAL: Makes icons align side-by-side */
    flex-direction: row; /* Ensure row direction */
    gap: 50px; /* Space between icons */
    margin-bottom: 20px;
    padding-top: 10px; /* Small space from the top of the grid cell */
}

/* 2. Modify info-bubble to act as a small icon wrapper */
.info-bubble {
    /* RESET PADDING AND BORDER-RADIUS for the icon aesthetic */
    padding: 0;
    border: none; 
    
    /* Ensure link takes minimal space */
    width: 50px; 
    height: 50px; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.contact-svg-icon {
    /* Define the size of the SVG image */
    width: 100%;
    height: 100%;
    /* OPTIONAL: If SVGs are monochrome, you can color them with fill or filter here */
}

/* Optional: Add hover animation for icons */
.info-bubble:hover {
    transform: translateY(-5px);
}








.contact-image-placeholder {
    /* Placed in the first column, spanning two rows */
    grid-column: 1 / 2;
    grid-row: 1 / 3; 
    background-color: var(--background-color); 
    height: 100%; 
    /* INCREASED HEIGHT: Allows image to grow taller, spanning more vertical space */
    max-height: 800px; 
    width: 100%; 
    overflow: hidden; 
}

/* New CSS to control the actual image inside the placeholder */
.contact-image-placeholder .contact-photo-final {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    
    /* Monochrome effect */
    filter: grayscale(100%); 
    transition: filter 0.5s ease-in-out; 
}

/* Hover effect */
.contact-image-placeholder:hover .contact-photo-final {
    filter: grayscale(0%);
}

.contact-bio {
    /* Placed in the second column */
    grid-column: 2 / 3;
}

.contact-bio h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 30px;
}

.contact-bio p {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* -------------------- Responsive Design (Contact Section Only) -------------------- */
@media (max-width: 1024px) {
    /* Ensure all items stack on smaller screens */
    .contact-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    .contact-info, .contact-image-placeholder, .contact-bio {
        grid-column: 1 / 2; 
        grid-row: auto; 
    }
    
    .contact-image-placeholder {
        order: -1; 
        max-height: 400px; 
        aspect-ratio: 16/9; 
    }
}
/* -------------------- Lightbox -------------------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: scaleIn 0.3s ease;
}

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

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--original-accent);
}


/* -------------------- Responsive Design -------------------- */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 60px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info, .contact-image-placeholder, .contact-bio {
        grid-column: 1 / 2;
        grid-row: auto;
    }

    .intro-content {
        flex-direction: column;
    }

    .intro-text, .quote-content {
        max-width: 100%;
        text-align: left;
    }

    .intro-text {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 0 30px;
    }

    nav {
        padding: 20px 30px;
        gap: 20px;
    }

    .hero-content {
        bottom: 40px;
        left: 30px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content h2 {
        font-size: 14px;
        letter-spacing: 4px;
    }

    .slider-indicators {
        right: 30px;
        bottom: 30px;
    }

    .intro-section {
        padding: 60px 30px;
    }

    .quote-content .tagline {
        font-size: 24px;
    }
    
    .showcase-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .showcase-gallery-grid .gallery-item:nth-child(2),
    .showcase-gallery-grid .gallery-item:nth-child(5) {
        grid-row: auto;
        aspect-ratio: 1 / 1;
    }

    /* Project carousel responsive adjustments */
    .project-carousel-container {
        width: 100%; 
        margin: 0;
    }
    .project-slider {
        width: 400%; 
    }
    .project-item {
        flex: 0 0 calc(50% - 15px); /* Show two items (1/2) minus the 30px gap / 2 */
        padding-right: 0;
        margin-right: 30px; /* Use margin for gap */
    }
    /* Arrow positioning adjustment */
    .carousel-nav {
        width: calc(100% + 60px);
        left: -30px;
        right: -30px;
        padding: 0 30px;
    }
    .carousel-nav .prev-slide-btn { left: 30px; }
    .carousel-nav .next-slide-btn { right: 30px; }
    
    .responsibility-item {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .showcase-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .project-slider {
        width: 500%; 
    }
    .project-item {
        flex: 0 0 100%; /* Show one item */
        margin-right: 0;
        padding-right: 0;
    }
    /* Arrow positioning adjustment */
    .carousel-nav {
        width: 100%;
        left: 0;
        right: 0;
        padding: 0;
    }
    .carousel-nav .prev-slide-btn { left: 10px; }
    .carousel-nav .next-slide-btn { right: 10px; }
}