
/* ==========================================
   1. GLOBAL VARIABLES & RESET
   ========================================== */
 
:root {
    --background: #f2f2f2;
    --text-color: #222222;
	--hover-accent: #79a7f7;
    --white: #f2f2f2;
	--black: #222222;
	--gray: #c2c2c2;
}

@font-face {
    font-family: 'MyFutura';
    src: url('FONTS/FuturaLT-Book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'MyFutura', sans-serif;
    scroll-behavior: smooth;
    background: var(--background);
}

p{
	color:var(--text-color);
}

/* ==========================================
   2. SHARED COMPONENTS (Header, Nav, Footer)
 ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* Default state for subpages: Solid white background, black text */
    background: var(--background); 
    --header-text: var(--black);
    --header-toggle-bar: var(--black);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- Index Page Specific Override (Initial Transparent State) --- */
.home-page header {
    background: rgba(0, 0, 0, 0); 
    --header-text: var(--white);
    --header-toggle-bar: var(--white);
    box-shadow: none;	
    backdrop-filter: blur(2px);
}

/* --- Index Page Scrolled State (Flips back to dark text on scroll) --- */
.home-page header.scrolled {
    background: rgba(242, 242, 242, 1); 
    --header-text: var(--text-color);       
    --header-toggle-bar: var(--text-color); 
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 2.1rem;
    color: var(--header-text); /* Linked to variable */
    font-weight: 500;
    transition: color 0.4s ease;
}

header h1 a {
    color: var(--header-text); /* Linked to variable */       
    text-decoration: none;       
    display: inline-block;   
    transition: color 0.4s ease;
}

/* Subtle fade when hovering over the logo link */
header h1 a:hover {
     color: var(--hover-accent); 
}

/* Collapsible Menu Drawer (Slides in from the right) */
.nav-links {
    position: fixed;
    right: -100%; /* Completely hidden off-screen to the right by default */
    top: 0;
    height: 100vh;
    width: 400px; /* Elegant, fixed drawer width */
    background: var(--background);
    box-shadow: -10px 0 30px rgba(34,34, 34, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Left-aligns links inside the drawer */
    padding: 0 5%;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth, high-end animation */
    z-index: 999;
}

/* Slide the drawer into the viewport when active */
.nav-links.active {
    right: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--hover-accent);
    padding-left: 5px; /* Subtle architectural shift forward on hover */
}

/* Menu Toggle Trigger (Hamburger Button) */
.menu-toggle {
    display: flex;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--header-toggle-bar); /* Linked to variable */
    transition: all 0.3s ease-in-out;
}

.menu-toggle:hover .bar {
    background-color: var(--hover-accent);
}

.menu-toggle.is-active:hover .bar {
    background-color: var(--hover-accent);
}

/* Morphing Hamburger into an 'X' close button when panel is active */
.is-active .bar:nth-child(2) { 
    opacity: 0; 
}
.is-active .bar:nth-child(1) { 
    transform: translateY(8px) rotate(45deg); 
	background-color: var(--header-toggle-bar);
}
.is-active .bar:nth-child(3) { 
    transform: translateY(-8px) rotate(-45deg); 
	background-color: var(--header-toggle-bar);
}	background-color: var(--text-color);

/* Minimalist Heading Style */
.minimalist-heading {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 40px 0;
    text-align: left;
}

/* Footer */
.main-footer {
    background-color: var(--background);
    color: var(--text-color);
    width: 100%;
}

.footer-container {
    max-width: 1920px;
	width: 90%;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
	border-top: 1px solid  rgba(34, 34, 34, 0.2);
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-right {
    text-align: right;
}

.footer-right address {
    font-style: normal;
    line-height: 1.8;
    opacity: 0.8;
}


/* ==========================================
   3. INDEX PAGE SPECIFIC STYLES
   ========================================== */
.hero-wrapper {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Creates a protective dark gradient mask at the top of the hero section */
.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Background Layers Container */
.hero-bg-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    /* Uses --mobile-focus if defined on mobile, otherwise defaults to center */
    background-position: var(--mobile-focus, center); 
    background-attachment: scroll;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Hero Content Area (Positioned Below Slides in HTML) */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    background-color: var(--background);
}

/* Hero Controls Positioning */
.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Arrow Button Styling */
.hero-arrow-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.hero-arrow-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Slide Indicator Dots Container */
.hero-dots {
    display: flex;
    gap: 12px;
}

/* Individual Indicator Dots */
.hero-dot {
    width: 8px;
    height: 8px;
    background-color: var(--white);
    border-radius: 50%;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-dot.active {
    opacity: 1;
    transform: scale(1.2);
}

.hero-dot:hover {
    opacity: 0.8;
}


.project-intro {
    color: var(--text-color);
    padding: 3rem;
    max-width: 1400px;
    margin: 0 20px;
    text-align: left;
    line-height: 1.8;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border: none;
}


/* Action Section */
.action-section {
    background-color: var(--background); 
    padding: 40px 0;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 5%;
}

.project-grid {
    display: grid;
    /* This defines 4 columns with a explicit 1px line between each */
    grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
    width: 100%;
    align-items: stretch;
}

.project-grid > div.grid-divider {
    background-color: rgba(34, 34, 34, 0.2);
    width: 1px;
    height: 100%;
}

/* Individual Card Blocks */
.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--white);
    background: none;
    transition: transform 0.3s ease;
    padding: 0 20px;
    position: relative; /* Crucial: sets the anchor point for our vertical line */
}

/* Rigid frame to keep images perfectly proportional */
.card-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* Matches the clean horizontal frame layout */
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Subtle frame elevation on hover */
.project-card:hover .card-image {
    transform: scale(1.04);
}

/* Card Content Typography Typography */
.card-meta {
    font-size: 1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.project-card:hover .card-meta {
    color: var(--hover-accent);
}


/* ==========================================
   4. GALLERY PAGES SPECIFIC STYLES
   ========================================== */

.subpage-padding {
    padding-top: 80px; /* Pushes content down safely below the fixed transparent header */
    background-color: var(--background);
    min-height: 100vh;
}

.feature-section-wrapper {
    position: relative;
    display: block;
    /* Optional: Add spacing between your big project blocks */
    margin-bottom: 30px; 
}

.project-text-section {
    padding: 30px 0 0 0;
}

.project-text-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align:left;
    color: var(--text-color);
}

.gallery-title.sticky-header {
    position: -webkit-sticky;
    position: sticky;    
    /* Pushes it below your top global header (adjust if your main nav is taller than 80px) */
    top: 80px; 
    background-color: var(--background); 
    z-index: 90; 
    padding: 20px 0 0 0;
    margin: 0;	
	max-width: 1200px;
    margin: 0 auto; 
}

.gallery-title.sticky-header + .project-text-section {
    padding-top: 0px; /* Reduced from 30px to close the gap to the paragraph */
}

.project-text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.85;
    letter-spacing: 0.3px;
}

.project-text-content h2.minimalist-heading {
	letter-spacing:0.4px;
    margin-bottom: 5px; /* Shrinks the gap below the main heading to a tight 5px */
	text-transform:uppercase;
}

.project-text-content h4 {
    margin-top: 0; /* Prevents the sub-header from pushing upwards */
    margin-bottom: 25px; /* Maintains the spacing between the sub-header and paragraph text below */
}

/* Master Gallery Structural Block */
.galleries-section {
    position: relative;
    z-index: 1; /* Sits beneath the sticky text layer stacking context */
    padding: 20px 0;
}

.gallery-block {
    max-width: 1000px;
    margin: 0 auto 15px auto;
}

.gallery-block:last-child {
    margin-bottom: 0;
}

.gallery-title {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: visible; /* Allows the relative captions below to be seen */
    background-color: var(--background-color);
}

.carousel-track {
    position: relative;
    width: 100%;
    /* Calculates 16:9 aspect ratio height based on its container width, plus room for text */
    padding-bottom: calc(56.25% + 80px); 
    height: 0;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
    
    /* Forces image frame and caption text below to stack vertically */
    display: flex;
    flex-direction: column;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Rigid architectural frame configuration */
.carousel-slide {
    width: 100%;
    aspect-ratio: 16 / 9; /* Moves the wide aspect ratio directly onto the image frame */
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Minimalist Context Control Buttons */
.carousel-arrow {
    position: absolute;
    bottom: 5%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    padding: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dark-controls .carousel-arrow {
    color: var(--black); /* Forces the arrow icon to render as pure black */
}

.carousel-arrow:hover {
    opacity: 1;
	color: var(--hover-accent)
}

.carousel-arrow.prev {
    left: 42%;
}

.carousel-arrow.next {
    right: 42%;
}



/* Clean, modern caption block sitting safely beneath the frame */
.carousel-caption {
    width: 100%;
    color: var(--text-color);
    padding: 10px 0 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

/* Fades the text in alongside the image cross-fade */
.carousel-item.active .carousel-caption {
    opacity: 1;
}

/* ==========================================
   5. CONTACT PAGE STYLES
   ========================================== */
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 10%; /* Creates a generous architectural gap between columns */
    padding-top: 60px;
    padding-bottom: 120px;
}

/* Left Column Styling */
.contact-info {
    flex: 1;
    max-width: 550px;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.85;
}

.partner-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partner-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.partner-link:hover {
    color: var(--hover-accent);
    padding-left: 5px; /* Subtle forward-shift animation on hover */
}

/* Right Column Form Styling */
.contact-form-wrapper {
    flex: 1;
    max-width: 650px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0; /* Clean border-only design style */
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(34, 34, 34, 0.3); /* Subtle bottom divider line */
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease;
}

/* Give input placeholders a muted look */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
    font-size: 0.95rem;
}

/* Light up the line when the user clicks inside an input box */
.form-group input:focus,
.form-group textarea:focus {
    border-bottom: 1px solid var(--text-color);
}

/* Minimalist Button Styling */
.submit-btn {
    align-self: flex-start; /* Keeps the button from expanding full-width */
    background-color: var(--text-color);
    color: var(--background);
    border: 1px solid var(--text-color);
    padding: 14px 36px;
    font-family: inherit;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: transparent;
    color: var(--text-color);
}

/* Responsive adjustment for tablets and mobile devices */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        gap: 60px;
    }
    .contact-info, 
    .contact-form-wrapper {
        max-width: 100%;
    }
}

.contact-address {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(34, 34, 34, 0.15); /* Soft matching rule separator */
    font-style: normal;
    line-height: 2; /* Relaxed architectural line height */
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.contact-address strong {
    font-weight: 500;
    letter-spacing: 1px;
}

.contact-address a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-address a:hover {
    color: var(--hover-accent);
}


/* ==========================================
   6. SITE PAGE DOCUMENT LINK STYLES
   ========================================== */
.document-link-section {
    padding: 0 0 120px 0; 
    background-color: var(--background);
}
.document-link-content {
    max-width: 1200px;
    margin: 0 auto;
}

.pdf-link-wrapper {
    display: block;
    text-decoration: none;
    width: 100%;
}

.pdf-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9; /* 2. Optional but recommended architectural adjustment */
    overflow: hidden;
    background-color: var(--white); 
}

.pdf-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* Slightly darkens the image naturally against the black background */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

/* Flexbox positioning context for text items directly inside the container frame */
.pdf-overlay-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}


.pdf-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

/* Interactive structural frame transformation upon hover states */
.pdf-link-wrapper:hover .pdf-bg-image {
    transform: scale(1.02);
    opacity: 0.3; /* Heightens image contrast when hovered */
}

.pdf-link-wrapper:hover .pdf-title {
    color: var(--hover-accent);
}


/* ==========================================
   7. MOBILE & RESPONSIVE LAYOUT OPTIMIZATIONS
   ========================================== */
@media screen and (min-width: 769px) {
    .hero-slide {
        background-position: center !important;
    }
}

@media screen and (max-width: 768px) {
    
    /* 1. Header & Mobile Menu Reset */
    .header-container {
        padding: 15px 20px; /* Snug spacing for smaller displays */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo h1 {
        font-size: 1.1rem; /* Scale down the main branding font size */
        letter-spacing: 1px;
    }

    /* Transform navigation row into a minimalist clean overlay drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen by default */
        height: 100vh;
        width: 75%; /* Slide-out takes up partial screen width */
        background-color: var(--background); /* High contrast backdrop */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 999;
    }

    /* Make mobile navigation links slide into view when menu is active */
    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--text-color); /* White typography against dark menu overlay */
        font-size: 1.1rem;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--text-color);
    }

    /* Ensure hamburger lines remain highly visible over light content backgrounds */
    .menu-toggle {
        display: flex; /* Show mobile menu trigger */
        z-index: 1000; /* Ensure button stays on top of navigation drawer */
    }
    
    header.scrolled .bar {
        background-color: var(--text-color);
    }
    
    .is-active .bar {
        background-color: var(--text-color) !important; /* Force menu 'X' to turn white on overlay */
    }
	
	.nav-links a:hover {
    color: var(--text-color)!important;
	}

    /* 2. Portfolio Project Card Grids Optimization */
    /* Reshapes multi-column sections to a clean single column list */
    .project-grid, .grid-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .project-card {
        width: 100% !important; /* Force cards to span the complete screen width */
        margin-bottom: 10px;
    }

    /* Hide horizontal desktop divider lines to let vertical space create the minimalist layout */
    .grid-divider {
        display: none; 
    }

    /* 3. Typography & Subpage Content Frameworks */
    .subpage-padding {
        padding-top: 30px; /* Prevents sticky header from obscuring top lines of text */
    }

    .project-text-content {
        padding: 10px;
    }
	
	.gallery-title.sticky-header {
        position: static;          /* Disables sticky/fixed positioning entirely */
        top: auto;                 /* Removes the 80px offset constraint */
        padding: 15px 20px 0 20px; /* Adds matching side padding so text doesn't touch the screen edge */
    }

    .minimalist-heading {
        font-size: 1.6rem; /* Keeps titles balanced on mobile viewports */
        letter-spacing: 2px;
        line-height: 1.3;
    }

    /* 4. Independent Galleries & Controls */
    .gallery-block {
        height: 40vh; /* Drops block height dynamically so viewport doesn't overflow */
        margin: 10px 0;
    }
	
	.carousel-arrow.prev {
    left: 20%;
}

.carousel-arrow.next {
    right: 20%;
}

    .carousel-caption {
        font-size: 0.8rem;
        letter-spacing: 1px;
        bottom: 15px;
        left: 15px;
        padding: 6px 12px;
    }

    /* 5. Contact Section Structuring */
    .contact-container {
        flex-direction: column; /* Stack contact statement and form vertically */
        gap: 50px;
        padding: 20px;
    }

    .contact-info, .contact-form-wrapper {
        width: 100%; /* Forms consume entire device width */
    }
	
	
	.pdf-image-container {
        aspect-ratio: 16 / 9; /* Loosens aspect constraint for mobile scaling */
    }
    .pdf-overlay-content {
        bottom: 24px;
        left: 24px;
    }
    .pdf-title {
        font-size: 1.2rem;
    }
}