:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #f2f2f2;
    --secondary-bg: #111111;
    --font-main: 'Google Sans Flex', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background: transparent;
    pointer-events: none;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin-bottom: -80px;
}

.header-desc {
    font-size: 1.4rem;
    font-weight: 400;
    color: #fff;
    margin-top: 15px;
    letter-spacing: 2px;
    text-indent: 2px;
    /* Offset letter-spacing */
    opacity: 0.7;
    mix-blend-mode: difference;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.slogan-text {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 10px;
    text-indent: 10px;
    /* Offset the right-side letter-spacing for perfect centering */
    color: #fff;
    text-transform: uppercase;
    opacity: 0.9;
    text-shadow: none;
    /* Shadow interferes with blend mode */
    mix-blend-mode: difference;
    pointer-events: none;
    text-align: center;
}

.header-desc2 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #fff;
    margin-top: 15px;
    letter-spacing: 2px;
    text-indent: 2px;
    opacity: 0.7;
}

/* Loader - Machine GIF Theme */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.machine-loader {
    max-width: 100px;
    height: auto;
    /* If the gif has a white background, this will make it transparent on our dark bg */
    mix-blend-mode: screen;
    filter: contrast(1.2) brightness(1.2);
    margin-bottom: 20px;
}

#loader-text {
    font-family: var(--font-main);
    color: #aeaeae;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Weaving Thread Animation */
.animate-thread {
    display: inline-flex;
    position: relative;
    padding: 0 10px;
}

.animate-thread span {
    position: relative;
    z-index: 10;
}

.weaving-thread {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 60px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
    display: none;
}

.thread-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    opacity: 0.8;
}

.loader__sand-drop {
    animation-name: sand-drop;
}

.loader__sand-fill {
    animation-name: sand-fill;
}

.loader__sand-grain-left {
    animation-name: sand-grain-left;
}

.loader__sand-grain-right {
    animation-name: sand-grain-right;
}

.loader__sand-line-left {
    animation-name: sand-line-left;
}

.loader__sand-line-right {
    animation-name: sand-line-right;
}

.loader__sand-mound-top {
    animation-name: sand-mound-top;
}

.loader__sand-mound-bottom {
    animation-name: sand-mound-bottom;
    transform-origin: 12.25px 31.5px;
}

@keyframes loader-flip {
    from {
        transform: translate(13.75px, 9.25px) rotate(-180deg);
    }

    24%,
    to {
        transform: translate(13.75px, 9.25px) rotate(0);
    }
}

@keyframes glare-top {
    from {
        stroke: rgba(255, 255, 255, 0);
    }

    24%,
    to {
        stroke: white;
    }
}

@keyframes glare-bottom {
    from {
        stroke: white;
    }

    24%,
    to {
        stroke: rgba(255, 255, 255, 0);
    }
}

@keyframes motion-thick {
    from {
        animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
        stroke: rgba(255, 255, 255, 0);
        stroke-dashoffset: 153.94;
        transform: rotate(0.67turn);
    }

    20% {
        animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
        stroke: rgb(32, 32, 32);
        stroke-dashoffset: 141.11;
        transform: rotate(1turn);
    }

    40%,
    to {
        stroke: rgba(255, 255, 255, 0);
        stroke-dashoffset: 153.94;
        transform: rotate(1.33turn);
    }
}

@keyframes motion-medium {

    from,
    8% {
        animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
        stroke: rgba(255, 255, 255, 0);
        stroke-dashoffset: 153.94;
        transform: rotate(0.5turn);
    }

    20% {
        animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
        stroke: white;
        stroke-dashoffset: 147.53;
        transform: rotate(0.83turn);
    }

    32%,
    to {
        stroke: rgba(255, 255, 255, 0);
        stroke-dashoffset: 153.94;
        transform: rotate(1.17turn);
    }
}

@keyframes motion-thin {

    from,
    4% {
        animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
        stroke: rgba(255, 255, 255, 0);
        stroke-dashoffset: 153.94;
        transform: rotate(0.33turn);
    }

    24% {
        animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
        stroke: rgb(53, 53, 53);
        stroke-dashoffset: 134.7;
        transform: rotate(0.67turn);
    }

    44%,
    to {
        stroke: rgba(255, 255, 255, 0);
        stroke-dashoffset: 153.94;
        transform: rotate(1turn);
    }
}

@keyframes sand-drop {

    from,
    10% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        stroke-dashoffset: 1;
    }

    70%,
    to {
        stroke-dashoffset: -107;
    }
}

@keyframes sand-fill {

    from,
    10% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        stroke-dashoffset: 55;
    }

    70%,
    to {
        stroke-dashoffset: -54;
    }
}

@keyframes sand-grain-left {

    from,
    10% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        stroke-dashoffset: 29;
    }

    70%,
    to {
        stroke-dashoffset: -22;
    }
}

@keyframes sand-grain-right {

    from,
    10% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        stroke-dashoffset: 27;
    }

    70%,
    to {
        stroke-dashoffset: -24;
    }
}

@keyframes sand-line-left {

    from,
    10% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        stroke-dashoffset: 53;
    }

    70%,
    to {
        stroke-dashoffset: -55;
    }
}

@keyframes sand-line-right {

    from,
    10% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        stroke-dashoffset: 14;
    }

    70%,
    to {
        stroke-dashoffset: -24.5;
    }
}

@keyframes sand-mound-top {

    from,
    10% {
        animation-timing-function: linear;
        transform: translate(0, 0);
    }

    15% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        transform: translate(0, 1.5px);
    }

    51%,
    to {
        transform: translate(0, 13px);
    }
}

@keyframes sand-mound-bottom {

    from,
    31% {
        animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
        transform: scale(1, 0);
    }

    56%,
    to {
        transform: scale(1, 1);
    }
}

/* Scroll Smoothing Styles for Locomotive Scroll */
html.has-scroll-smooth {
    overflow: hidden;
}

html.has-scroll-dragging {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.has-scroll-smooth body {
    overflow: hidden;
}

.has-scroll-smooth [data-scroll-container] {
    min-height: 100vh;
}

/* Header */
#header {
    position: absolute;
    /* Scrolls away after hero section */
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

.logo-container #logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure white text logo if it's black */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 4px;
    opacity: 0.8;
    transition: var(--transition);
}

nav ul li a:hover {
    opacity: 1;
}

.contact-info {
    font-weight: 700;
    letter-spacing: 1px;
}

/* Panels */
.panel {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Hero Section with Canvas */
#hero {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.canvas-wrapper {
    width: 100%;
    height: calc(100vh - 100px);
    margin-top: 100px;
    /* Adjust for 100px header */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

#hero-canvas {
    width: 100vw;
    height: calc(100vh - 80px);
    object-fit: cover;
}

.gradient-reveal-container {
    position: absolute;
    top: -100%;
    /* Initially above the screen */
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    background: transparent;
}

/* THREAD Rolling Animation */
.animate-thread {
    display: inline-flex;
    position: relative;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    perspective: 500px;
    /* Enable 3D depth */
}

.animate-thread span {
    display: inline-block;
}

/* STITCH Sequential Pressing Animation */
.animate-stitch {
    display: inline-flex;
    position: relative;
    color: #fff;
}

.animate-stitch span {
    display: inline-block;
}

/* Brand Story Factory Background */
#brand-story {
    position: relative;
    background: #fff;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.factory-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/img/factory.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    /* Subtle as requested for reference background */
    filter: saturate(0.5) blur(2px);
    z-index: 0;
}

#brand-story .container {
    position: relative;
    z-index: 1;
    max-width: none;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-content {
    width: 100%;
    text-align: left;
}

.story-content h2 {
    font-size: 8vw;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #000;
    white-space: nowrap;
    /* Keep it bold as per design */
}

/* Prevent text cut-off */
@media (max-width: 1200px) {
    .story-content h2 {
        font-size: 10vw;
        white-space: normal;
    }
}

.gradient-box {
    width: 100%;
    height: 100%;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
    text-align: center;

    /* Option C: Precision Design Grid (Technical & Sharp) */
    background-color: #ffffff;
    background-image:
        linear-gradient(#f0f0f0 1.5px, transparent 1.5px),
        linear-gradient(90deg, #f0f0f0 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: center center;
    background-repeat: repeat;
    background-attachment: fixed;

    /* Layout for new content */
    flex-direction: column;
    justify-content: flex-start;
    padding: 25vh 5% 10vh;
    /* Increased top padding to move workflow down */
}

/* Vertical Flow Layout - No Absolute Positioning */
.content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 40px;
    /* Space between text and cards */
}

.intro-text {
    position: relative;
    /* Changed from absolute */
    text-align: center;
    width: 100%;
    max-width: 900px;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 20px;
}

.intro-text h2 {
    color: #000;
    /* Reverted to black for light section */
    font-size: 5vw;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.intro-sub {
    color: #555;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    max-width: 600px;
    margin: 0 auto;
}

.cards-container {
    display: flex;
    gap: 20px;
    margin-top: 0;
    /* Removing top margin as gap handles it */
    width: 100%;
    justify-content: center;
    align-items: stretch;
    /* Stretch cards to equal height */
    perspective: 1000px;
}

.service-card {
    background: #fbfcfd;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 35px 30px;
    width: 300px;
    min-height: 320px;
    /* Taller for more text */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align top */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Subtle shadow on white background */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative;
    /* Needed for absolute icon positioning */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: #fff;
}

.card-icon {
    height: 60px;
    /* Slightly smaller for corner fit */
    width: auto;
    object-fit: contain;
    position: absolute;
    top: 20px;
    right: 20px;
    margin-bottom: 0;
    display: block;
    /* mix-blend-mode removed to ensure full visibility */
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
    /* Increased space before text since icon is removed from flow */
    letter-spacing: 1px;
    margin-top: 10px;
    /* Align with icon visually */
    max-width: 70%;
    /* Prevent overlap with icon */
}



.service-card p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .cards-container {
        flex-wrap: wrap;
        gap: 20px;
    }

    .service-card {
        width: 100%;
        /* Full width for mobile/tablet */
        min-height: auto;
    }
}

@keyframes moveRed {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30vw, 30vh) scale(1.1);
    }
}

@keyframes moveBlue {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30vw, -30vh) scale(1.2);
    }
}

.hero-content {
    position: absolute;
    top: calc(50% + 50px);
    /* Adjust for 100px header offset */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

/* Removed center hero content */
.hero-content {
    display: none;
}

/* White Theme Section */
.white-theme {
    background-color: #ffffff !important;
    color: #000000 !important;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
}

/* Fabric Transition Stage */
.fabric-stage-wrapper {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    overflow: hidden;
}

.fabric-stage {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.fabric-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform, width, left;
}

.fabric-layer.red {
    background-image: url('./assets/bg/red.jpg');
    z-index: 1;
}

.fabric-layer.green {
    background-image: url('./assets/bg/green.jpg');
    transform: translateX(100%);
    z-index: 2;
}

.fabric-layer.blue {
    background-image: url('./assets/bg/blue.jpg');
    transform: translateX(100%);
    z-index: 3;
}

/* Text Overlay */
.fabric-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
    opacity: 1;
}

.fabric-title {
    font-size: 6vw;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    margin: 0;
}

/* Factory Container inside Hero */
.factory-container {
    position: absolute;
    top: 0;
    left: 100%;
    /* Start off-screen right */
    width: 100%;
    height: 100%;
    z-index: 6;
    /* Above gradient reveal */
}



/* About Intro Section (Removed/Merged) */
#about-intro {
    display: none;
}

.factory-grid-panel {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Light Grid Pattern - Matching Section 2 */
    background-color: #ffffff;
    background-image:
        linear-gradient(#f0f0f0 1.5px, transparent 1.5px),
        linear-gradient(90deg, #f0f0f0 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: center center;
    background-attachment: fixed;
    padding: 10vh 5%;
}

.factory-content-split {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    z-index: 2;
}

.factory-text {
    flex: 1;
    text-align: left;
}

.factory-text h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.factory-text p {
    font-size: 1.15rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 400;
}

.factory-text strong {
    color: #000;
    font-weight: 700;
}

.factory-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tri-flow-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.tri-flow-img:hover {
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .factory-content-split {
        flex-direction: column-reverse;
        /* Text on top usually better, or img on top? "column-reverse" puts text on bottom if source order is text first. If src is text first, column-reverse makes img top. */
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .factory-text {
        text-align: center;
    }
}

.industrial-counter {
    margin-top: 40px;
    display: flex;
    gap: 40px;
}

.counter-item {
    display: flex;
    flex-direction: column;
}

.counter-item .count {
    font-size: 3.5rem;
    font-weight: 900;
    color: #000;
    line-height: 1;
}

@media (max-width: 768px) {
    .industrial-counter {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .counter-item .count {
        font-size: 2.5rem;
    }
}

.counter-item .label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #666;
    margin-top: 5px;
}

/* Content Sections */
.content-section {
    background-color: var(--bg-color);
    z-index: 10;
    padding-bottom: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 50px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--secondary-bg);
    padding: 60px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.product-card:hover {
    transform: translateY(-10px);
    background: #252525;
    border-color: rgba(255, 255, 255, 0.2);
}

.product-card h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.no-jeans-disclaimer {
    display: none;
}

/* Specialized Collections */
#specialized-collections {
    background: var(--secondary-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#specialized-collections .product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#specialized-collections .product-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Products Section */
#products .product-cutouts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cutout {
    position: absolute;
    width: 140px;
    height: auto;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    will-change: transform, opacity;
}

.product-card h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

/* About Section */
.about-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.about-text p {
    font-size: 1.2rem;
    opacity: 0.7;
    max-width: 600px;
}

/* Footer */
footer {
    padding: 60px 5%;
    /* Reduced from 100px to fix extra height */
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

.footer-social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.footer-social-icons a {
    color: #aeaeae;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-icons a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.footer-col h3 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
}

.footer-col ul li a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #fff;
    opacity: 1;
    padding-left: 5px;
}

.footer-col ul {
    list-style: none;
}

.copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.4;
}

/* Fabric Section */
.fabric-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-top: 80px;
}

.fabric-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.fabric-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Blog Section & Dedicated Page */
.blog-header {
    text-align: center;
    margin-bottom: 80px;
}

.blog-teaser-section {
    padding: 60px 5%;
    min-height: auto;
}

.teaser-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teaser-content .section-title {
    margin-bottom: 20px;
}

.teaser-text {
    font-size: 1.1rem;
    color: #aeaeae;
    margin-bottom: 30px;
    line-height: 1.6;
}

.teaser-content .cta-submit {
    text-decoration: none;
}

.blog-full-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.blog-empty-state {
    padding: 80px 60px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.blog-empty-state h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 3px;
    color: #fff;
}

.blog-empty-state p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.blog-list-item {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-list-item:last-child {
    border-bottom: none;
}

.blog-top-row {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* Alternating Layout */
.blog-list-item.layout-right .blog-top-row {
    flex-direction: row;
}

.blog-list-item.layout-left .blog-top-row {
    flex-direction: row-reverse;
}

.blog-img-wrapper {
    flex: 0 0 350px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-list-item:hover .blog-img-wrapper img {
    transform: scale(1.03);
}

.blog-content-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blog-content-side .blog-question {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 20px;
}

.blog-content-side .blog-answer-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #aeaeae;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-list-item.expanded .blog-answer-text {
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.read-more-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
}

.read-more-btn:hover {
    background: #fff;
    color: #000;
}

/* Static Blog Nav */
.blog-static-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9999;
}

.blog-static-nav .back-home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: var(--transition);
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
}

.blog-static-nav .back-home:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateX(-5px);
}

/* Attachment Thumbnails */
.blog-attachments {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.attachment-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.attachment-thumb:hover {
    border-color: #fff;
    transform: scale(1.05);
}

.attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-icon-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
}

.file-icon-thumb svg {
    width: 20px;
    height: 20px;
}

/* Image Modal */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
}

.modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .blog-top-row {
        flex-direction: column !important;
        gap: 30px;
    }

    .blog-img-wrapper {
        width: 100%;
        flex: none;
        height: 220px;
    }

    .blog-content-side .blog-question {
        font-size: 1.4rem;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    z-index: 1000;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Contact Us Section */
.contact-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #aeaeae;
    margin-top: 10px;
}

.contact-grid-wrapper {
    display: flex;
    gap: 80px;
}

.contact-sidebar {
    flex: 1;
}

.contact-info-card {
    background: #111;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-block .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aeaeae;
}

.detail-block .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.detail-block a.value:hover {
    color: #aeaeae;
}

.contact-main {
    flex: 2;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: flex;
    gap: 30px;
}

.form-row .form-group {
    flex: 1;
}

.premium-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.premium-form label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aeaeae;
}

.premium-form input,
.premium-form textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 28px;
    color: #fff;
    border-radius: 14px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 0 1px transparent;
    width: 100%;
}

.premium-form input:hover,
.premium-form textarea:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

.premium-form input:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.social-links-grid {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.social-icons-grid {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons-grid a {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-icons-grid a:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.social-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-social-icons .social-logo-img {
    width: 20px;
    height: 20px;
}

.social-icons-grid a:hover .social-logo-img {
    filter: brightness(0);
}

.footer-social-icons a {
    background: none !important;
    border: none !important;
    padding: 0;
    width: auto;
    height: auto;
    display: inline-flex;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-social-icons a:hover {
    opacity: 1;
    transform: translateY(-3px);
    background: none !important;
}

.footer-social-icons a:hover .social-logo-img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.cta-submit {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    color: #000;
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
}

.cta-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.cta-submit svg {
    transition: transform 0.3s ease;
}

.cta-submit:hover svg {
    transform: translateX(5px);
}

.error-msg {
    color: #ff3b30;
    font-size: 0.75rem;
    min-height: 1.2em;
}

@media (max-width: 1000px) {
    .contact-grid-wrapper {
        flex-direction: column;
    }

    .contact-sidebar {
        order: 2;
    }

    .contact-main {
        order: 1;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

.fabric-image-box {
    flex: 1;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
}

.fabric-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.fabric-item:hover .fabric-img {
    transform: scale(1.05);
}

.fabric-info {
    flex: 1;
    text-align: left;
}

.fabric-info h3 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.fabric-info p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #aeaeae;
    max-width: 550px;
}

.fabric-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.fabric-categories span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.fabric-item:hover .fabric-categories span {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    .fabric-categories {
        justify-content: center;
    }
}

@media (max-width: 900px) {

    .fabric-item,
    .fabric-item:nth-child(even) {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .fabric-info {
        text-align: center;
    }

    .fabric-image-box {
        width: 100%;
        height: 350px;
    }
}

/* Mobile Adjustments */
/* Floating Nav Island */
#nav-island {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.nav-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    mix-blend-mode: difference;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-circle svg {
    width: 24px;
    height: 24px;
    color: #fff;
    transition: transform 0.3s ease;
}

.nav-circle svg path,
.nav-circle svg polyline,
.nav-circle svg circle {
    stroke: #fff;
}

.nav-circle:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1) translateY(-5px);
}

.nav-circle:hover svg {
    transform: scale(1.2);
}

.nav-tooltip {
    position: absolute;
    right: 80px;
    background: #fff;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translateX(10px);
    white-space: nowrap;
}

.nav-circle:hover .nav-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Stitch Cursor */
#stitch-cursor {
    width: 40px;
    height: 40px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease-out;
    mix-blend-mode: difference;
}

#stitch-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

@media (max-width: 768px) {
    #nav-island {
        bottom: 20px;
        right: 20px;
        flex-direction: row;
        gap: 10px;
    }

    .nav-circle {
        width: 50px;
        height: 50px;
    }

    .nav-circle svg {
        width: 20px;
        height: 20px;
    }

    .nav-tooltip {
        display: none;
    }

    #stitch-cursor,
    #stitch-dot {
        display: none;
    }
}

@media (max-width: 768px) {
    #header {
        padding-top: 30px !important;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }

    .slogan-text {
        font-size: 1.8rem !important;
        letter-spacing: 5px !important;
        text-indent: 5px !important;
    }

    .section-title {
        font-size: 2.2rem !important;
        margin-bottom: 30px;
    }

    .about-text h2 {
        font-size: 1.8rem !important;
    }

    .fabric-title {
        font-size: 10vw !important;
    }
}

/* Blog Page Adjustments */
.blog-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 120px;
}

/* Page Fade-in Effect - Removed base opacity:0 to prevent black screen on load failure */
.page-fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}