@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: 'Loubag-Bold';
    /* If you use the OTF file */
    src: url('asset/OTF/Loubag-Bold.otf') format('opentype'); 
    /* OR if you use the Webfont (better for performance) */
    /* src: url('asset/Webfont/Loubag-Regular.woff2') format('woff2'); */
    font-weight: 700;
    font-style: bold;
}
@font-face {
    font-family: 'Comfortaa';
    src: url('asset/OTF/Comfortaa-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


:root {
    --bg-color: #f7f3ed; /* The creamy off-white background */
    --text-color: #7a7a7a;
    --heading-color: #555;
    --accent-blue: #9eb8c7;
    --brand-blue: #608291; /* The blue from footer/washing */
    --nav-blue: #7ba7bc;   /* The specific muted blue from the nav text image */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Navbar - Matched to new design */
header {
    background-color: var(--bg-color); /* Kept off-white as per the logo image */
    width: 100%;
    margin: 0;
    padding: 30px 0; /* Vertical spacing for the nav bar */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; /* Wide layout to match screenshot proportions */
    margin: 0 auto;
    padding: 0 5%;
}

.logo img {
    height: 50px; /* Adjusted to match visual weight of the text */
}

.nav-links {
    font-family: 'Comfortaa', sans-serif;
    display: flex;
    list-style: none;
    gap: 3.5rem; /* Wide gap between links as seen in image */
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-blue); /* Specific muted blue from image */
    font-size: 0.85rem;
    letter-spacing: 1.5px; /* Significant letter spacing for high-end look */
    font-weight: 400;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brand-blue);
}

/* Facility Grid Section */
.container {
    max-width: 1310px;
    margin: 0 auto;
    padding: 2rem;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.card {
    text-align: center;
}

.image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

/* .location-tag {
    font-family: 'Comfortaa', sans-serif;
    display: inline-block;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
} */


.location-tag {
    font-family: 'Comfortaa', sans-serif;
    display: inline-flex; /* Changed to inline-flex to keep the tag tight around content */
    align-items: center;  /* This centers the icon and text vertically */
    justify-content: center;
    gap: 6px;             /* Adjusts the space between icon and text */
    
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 6px 16px;    /* Slightly increased padding for a better pill shape */
    border-radius: 50px;  /* Large radius ensures a perfect "pill" shape */
    
    font-size: 0.75rem;
    font-weight: 700;     /* Bold as per your screenshot */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ensure the icon scales properly inside the tag */
.location-tag img, 
.location-tag svg {
    width: 16px;          /* Adjust size to match your font height */
    height: auto;
    display: block;
}

/* Stats Section */
.stats-section {
    margin-top: 2rem;
    text-transform: uppercase;
    line-height: 1.8;
    letter-spacing: 0.5px;
    text-align: left;
}

.stats-section p {
    font-family: 'Comfortaa', sans-serif;
    margin: 0;
    font-size: 28px;
}

/* Production Stages (Global) */
.production-stages {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}

.stage-header h1 {
    font-family: 'Loubag-Bold', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 50px;
    font-weight: 500;
}

/* .step-number {
    font-family: 'Loubag-Bold', sans-serif;
    font-size: 1.5rem;
    margin-top: 10px;
} */

.step-number {
    font-family: 'Loubag-Bold', sans-serif;
    font-size: 1.5rem;
    margin-top: 15px;      /* Removed top margin */
    margin-bottom: -5px; /* Added negative margin to pull the header closer */
}

/* .stage-header h2 {
    font-family: 'Loubag-Bold', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
} */


.stage-header h2 {
    font-family: 'Loubag-Bold', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    margin-top: 0;      /* Ensure no top margin on the H2 */
    margin-bottom: 10px;
}

.stage-header h3 {
    font-family: 'Loubag-Bold', sans-serif;

}
.tagline {
    font-size: 1.8rem;
    font-weight: 500;
}

.blue-text {
    color: var(--nav-blue);
}

.stage-description {
    font-family: 'Comfortaa', sans-serif;
    max-width: 600px;
    margin: 30px auto;
    line-height: 1.6;
    font-size: 0.95rem;
}

.image-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.image-gallery img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

/* Cutting Section Specifics */
.cutting-stage {
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.machinery-list {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
}

.machinery-list strong {
    display: block;
    margin-bottom: 5px;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-image img {
    max-width: 800px;
    width: 100%;
    height: auto;
}

.icon-wrapper img {
    width: 122px;
    height: 57px;
    margin-bottom: 10px;
}

/* Sewing Section Specifics */
.sewing-stage .stage-description {
    max-width: 800px; 
    margin: 30px auto;
}

.section-divider-image {
    width: 100%;
    max-width: 1000px;
    margin: 80px auto 15px auto;
    padding: 0 20px;
}

.section-divider-image img {
    width: 100%;
    height: auto;
}

/* Washing Section Specifics */
.washing-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
}

.washing-icons-grid img {
    width: 100%;
    height: auto;
}

/* Packing Stage Specifics */
.packing-stage .stage-description p {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.5px;
}

/* Footer Section */
.footer-section {
    background-color: var(--brand-blue);
    padding: 60px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
}

.footer-svg {
    width: 100%;
    height: auto;
    display: block;
}

.social-links {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-10%);
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: block;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }
    .image-gallery img {
        width: 90%;
    }
}



/* --- Animation Styles --- */

/* Initial state: Hidden and slightly shifted down */
.image-container img, 
.image-gallery img, 
.single-image img, 
.section-divider-image img {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

/* Visible state: Triggered by JavaScript */
.image-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Keep your existing hover effect, but ensure it doesn't conflict */
.card:hover .image-visible {
    transform: scale(1.05) !important;
}



.video-wrap {
    width: 595px;
    height: 309px;
    border-radius: 10px;
    overflow: hidden; /* This is the "cookie cutter" */
    position: relative;
    /* Optional: Fix for Safari rounding bugs */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.production-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* This handles the "cookie cutter" effect for all video wrappers */
.video-wrap {
    border-radius: 12px; /* Matches your image gallery rounding */
    overflow: hidden;
    position: relative;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* If this video is part of a flex/grid gallery, let it fill the space */
.image-gallery .video-wrap {
    width: 595px;  /* Matches your .image-gallery img width */
    height: 309px; /* Matches your .image-gallery img height */
}

.production-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.image-gallery .video-wrap {
    width: 595px;  /* Matches your gallery image width */
    height: 309px; /* Matches your gallery image height */
    border-radius: 12px;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.production-video {
    width: 595px;
    height: 309px;
    object-fit: cover;
}


/* Ensures the video wrapper in the single-image section expands to full width and applies rounding */
.single-image .video-wrap {
    width: 674px;
    height: 309px;
    margin: 0 auto;
    
    /* Apply border radius and force it to clip the video */
    border-radius: 12px; 
    overflow: hidden; 
    position: relative;
    
    /* Safari Fix to ensure corners stay rounded during playback */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Ensure the video inside fills the 674x309 area perfectly */
.single-image .production-video {
    width: 674px;
    height: 309px;
    object-fit: cover;
    display: block;
}