@font-face {
    font-family: 'Loubag';
    /* If you use the OTF file */
    src: url('asset/OTF/Loubag-Regular.otf') format('opentype'); 
    /* OR if you use the Webfont (better for performance) */
    /* src: url('asset/Webfont/Loubag-Regular.woff2') format('woff2'); */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Comfortaa';
    src: url('asset/Comfortaa-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --luxury-serif: 'Times New Roman', Times, serif;
    --sustain-bg: #F4F1ED; 
    --text-on-light: #6a869a;
    --brand-blue: #5d8197; /* Defined for easy reuse */
    --grey: #6A6A6A;
}

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

body {
    background-color: var(--brand-blue); /* Changed from black to blue */
    font-family: var(--luxury-serif);
    overflow-x: hidden;
}

/* --- SECTION 1: HERO --- */
.hero-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: var(--brand-blue); /* Changed from black to blue */
}

/* .hero-image {
    position: absolute;
    width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2000&q=80');
    background-size: cover; background-position: center;
    transform: scale(0.3); clip-path: inset(15%); opacity: 0;
    transition: transform 5s cubic-bezier(0.15, 0, 0.15, 1), clip-path 5s cubic-bezier(0.15, 0, 0.15, 1), opacity 2s;
} */


.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    
    /* This replaces background-size: cover */
    object-fit: cover; 
    
    /* Your original animation properties */
    transform: scale(0.3); 
    clip-path: inset(15%); 
    opacity: 0;
    
    /* Smooth transition */
    transition: transform 1.5s cubic-bezier(0.15, 0, 0.15, 1), 
                clip-path 1.5s cubic-bezier(0.15, 0, 0.15, 1), 
                opacity 1s;
}

/* Add a class via JavaScript (or use a hover/load trigger) to start the animation */
.hero-image.active {
    transform: scale(1);
    clip-path: inset(0%);
    opacity: 1;
}

body.is-loaded .hero-image { transform: scale(1); clip-path: inset(0%); opacity: 1; }

.main-title {
    font-family: 'Loubag', sans-serif;
    text-transform: uppercase;
    letter-spacing: -2%;
    font-weight: 400;
    font-size: 5rem;
    color: white;
    width: 700px;
}

/* --- SECTION 2: EDITORIAL DESIGN --- */

body {
    margin: 0;
    /* Starts as Blue while scrolling from the top */
    background-color: var(--brand-blue); 
    transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: white; /* Default text color for the blue background */
}

/* This class is added by JavaScript when the user lands on the sustain section */
body.sustain-view-active {
    background-color: var(--sustain-bg) !important;
}

.sustain-section {
    font-family:  'Loubag', sans-serif;;
    width: 100vw;
    height: 100vh;
    /* IMPORTANT: Must be transparent to let the body's color show through */
    background-color: transparent !important; 
    color: var(--text-on-light); /* Uses your blue-grey text color for the cream bg */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

/* Ensure reveal text uses the blue-grey color on the cream background */
.reveal-text {
    color: var(--text-on-light);
    display: block;
}
/* .sustain-section {
    font-family: 'Loubag', sans-serif;
    width: 100vw;
    height: 100vh;
    background-color: var(--sustain-bg);
    color: var(--text-on-light);
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
} */

.section-nav-title {
    position: absolute;
    top: 40px;
    left: 60px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    border-bottom: 1px solid currentColor;
    padding-bottom: 5px;
    opacity: 0.7;
}

.sustain-layout {
    width: 85%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center; /* Changed to center for single image alignment */
}

.sustain-content { 
    margin-left: -50px;
}

.sustain-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.1; 
    font-weight: 300; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    text-align: center;
    margin-left: -15px;
}

.sustain-description {
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    line-height: 1.8;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
}

.reveal-text { display: block; opacity: 0; transform: translateY(30px); }

.sustain-image-container {
    position: relative;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-img {
    position: relative; /* Changed from absolute for single image layout */
    max-width: 100%;
    height: auto;
    width: 620px; /* Default size for the single image */
    border-radius: 10px;
    opacity: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transform: translateY(150px);
    will-change: transform, opacity;
}

/* --- UPDATED NAVIGATION --- */

nav { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 40px 60px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 100; 
    
    /* Initial state: Hidden */
    opacity: 0; 
    visibility: hidden;
    pointer-events: none;
    
    /* Smooth transition for showing/hiding */
    transition: opacity 0.8s ease, visibility 0.8s ease, background-color 0.5s ease;
}

/* This class will be toggled by the JavaScript below */
nav.nav-active { 
    opacity: 1; 
    visibility: visible;
    pointer-events: all;
}

/* Rest of your styling remains the same */
.nav-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 45px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.25em;
    font-weight: 300;
    font-family: Arial, sans-serif; 
    transition: color 0.5s ease, opacity 0.4s;
}

body.on-light .nav-links a { color: var(--text-on-light); }
body.on-light .nav-logo img { 
    filter: brightness(0) saturate(100%) invert(56%) sepia(13%) saturate(1039%) hue-rotate(162deg) brightness(91%) contrast(88%);
}

.nav-links a:hover { opacity: 0.6; }

/* */

.bottom-logo { position: fixed; bottom: 40px; right: 40px; font-size: 20px; opacity: 0.5; z-index: 100; transition: 0.5s; color: white;}
body.on-light .bottom-logo { color: var(--text-on-light); }

/* --- SECTION 3: CORE VALUES --- */
.values-section {
    font-family: 'Comfortaa', sans-serif;
    width: 100vw;
    height: 100vh;
    background-color: #5d8197 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    position: relative;
}

.values-grid {
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
}

.value-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1); 
}

.value-text {
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 24px;
    line-height: 1.6;
    font-weight: 300;
}

/* --- BANNER SECTION --- */
.parallax-banner {
    width: 100vw;
    height: 60vh;
    overflow: hidden;
    position: relative;
    background-color: var(--sustain-bg);
}

.parallax-banner img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: grayscale(100%) contrast(110%);
}

/* --- SECTION 4: STORY & STRENGTH --- */

.story-container h2 {
    font-family: 'Loubag', serif;
    color: var(--grey);
}

.story-container p {
    font-family: 'Comfortaa', sans-serif;
    color: var(--grey);
}
.story-section {
    width: 100vw;
    height: 100vh;
    background-color: var(--sustain-bg);
    color: var(--grey);
    display: flex;
    align-items: center;    /* Center vertically */
    justify-content: center; /* Center horizontally */
    position: relative;
    overflow: hidden;
}

.story-wrapper {
    position: relative;
    width: 100%;
    max-width: 850px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-spacer {
    /* background-color: var(--sustain-bg) !important; */
    border: none !important;
    padding: 0 !important;
}

.story-container {
    position: absolute;
    /* Force absolute centering */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    
    width: 90%;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    
    /* Clean up any accidental padding/margin inherited from previous styles */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-container h2 {
    font-family: 'Loubag', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 30px;
    margin-top: 0; /* Remove top space */
    /* color: var(--text-on-light); */
}

.story-container p {
    font-family: 'Comfortaa', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.3rem);
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto; /* Center the paragraph box */
    /* color: var(--text-on-light); */
}


/* Default style (Targets Chrome, Safari, and Edge) */
#strength {
    position: absolute; /* Ensure position is set for 'top' to work */
    top: 50%;
    /* Add your other existing styles here */
}

/* Specific override for Firefox */
@-moz-document url-prefix() {
    #strength {
        top: 30%;
    }
}

/* --- SECTION 5: GALLERY GRID --- */
.gallery-section {
    width: 100vw;
    padding: 10vh 0;
    background-color: var(--sustain-bg);
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 10;
    margin-top: -1px; /* Overlaps the previous section by 1px to hide the gap */
    background-color: var(--sustain-bg); /* Match the colors */
    border: none !important;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 90%;
    max-width: 1000px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(50px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.15, 0, 0.15, 1);
}

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

/* --- SECTION: OUR SPIRIT --- */
.spirit-container h2 {
    font-family: 'Loubag', serif;
    color: var(--grey);
}
.spirit-container p {
    font-family: 'Comfortaa', sans-serif;
    color: var(--grey);
}
.spirit-section {
    width: 100vw;
    height: 100vh; /* Must be 100vh for a clean pin */
    background-color: var(--sustain-bg) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.spirit-container {
    max-width: 850px;
    width: 90%;
    opacity: 0; /* Starts hidden for the GSAP reveal */
    transform: translateY(30px);
    will-change: opacity, transform;
}

.spirit-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--grey);
}

.spirit-section p {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.8;
    opacity: 0.8;
    font-family: Arial, sans-serif;
    color: var(--grey)
}

.spirit-icon-box {
    margin-top: 50px;
    display: inline-block;
}

.spirit-icon-box img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 15px; }
}

/* --- SECTION: INDUSTRIAL BANNER --- */
/* .industrial-banner {
    width: 100vw;
    height: 80vh; 
    overflow: hidden;
    position: relative;
    background-color: var(--sustain-bg);
} */

.industrial-banner {
    width: 100vw;
    height: 100vh; /* Changed to 100vh for a perfect fullscreen pin */
    overflow: hidden;
    position: relative;
    background-color: var(--sustain-bg); /* Matches Spirit section color */
}

/* Changed from .industrial-banner img to target the video */
/* .industrial-banner video {
    width: 100%;
    height: 130%; 
    object-fit: cover;
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translate(-50%, -50%); 
    filter: saturate(0.8) contrast(1.1);
    z-index: 1;
} */

.industrial-banner video {
    width: 100%;
    height: 140%; /* Oversized for the parallax effect */
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0); 
    filter: saturate(0.8) contrast(1.1);
    z-index: 1;
    opacity: 0; /* Start hidden for fade effect */
}

.banner-overlay {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 10; /* Ensures text stays above the video */
    color: white;
}

.banner-overlay span {
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-size: 0.8rem;
    font-weight: 300;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
}

/* --- SECTION: LOGO GRIDS --- */
.logo-section {
    width: 100vw;
    padding: 15vh 0;
    background-color: var(--sustain-bg); 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12vh;
}

.logo-group {
    width: 90%;
    max-width: 1100px;
    text-align: center;
}

.logo-title {
    font-family: 'Loubag', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 300;
    color: #888; 
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

.logo-grid {
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 40px 20px;
}

.logo-grid.accreditations {
    grid-template-columns: repeat(5, 1fr);
}

.logo-grid.partners {
    grid-template-columns: repeat(3, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.logo-item {
    width: 100%;
    max-width: 80px;
    opacity: 0;
    transform: translateY(20px);
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

.logo-item img {
    width: 100%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.4s, filter 0.4s;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 900px) {
    .logo-grid.accreditations { grid-template-columns: repeat(3, 1fr); }
    .logo-grid.partners { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .logo-grid.accreditations { grid-template-columns: repeat(2, 1fr); }
}

.footer-contact-section {
    width: 100%; /* Changed from 100vw to 100% to avoid horizontal scroll bugs */
    padding: 100px 0;
    background-color: #6a869a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-container {
    width: 85%;
    max-width: 1400px; /* Increased max-width to give the SVG room to breathe */
    
    /* Animation Initial State */
    opacity: 1; /* Set to 1 for now so you can see it; change to 0 if using GSAP */
    transform: translateY(0); /* Set to 0 for now; change to 30px if using GSAP */
    
    display: flex;
    justify-content: center;
}

.contact-svg-content {
    width: 100%;
    height: auto;
    display: block;
    /* Optional: prevents the white text in the SVG from looking too "thin" */
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.1)); 
}

/* Ensure the container shows up if you are using an "is-loaded" or scroll trigger */
body.is-loaded .contact-container {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease-out;
}

/* */
.footer-banner {
    margin-bottom: -5px; 
}

