/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #8b7355;
    --accent-color: #d4af37;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #1a1a1a;
    --border-color: #e5e5e5;

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Cormorant Garamond', serif;

    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background:
        linear-gradient(135deg,
            rgba(248, 248, 248, 0.5) 0%,
            rgba(232, 232, 232, 0.4) 50%,
            rgba(248, 248, 248, 0.5) 100%),
        url('images/hero/FashionSewing.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(248, 248, 248, 0.4) 0%,
        rgba(232, 232, 232, 0.2) 30%,
        rgba(232, 232, 232, 0.2) 70%,
        rgba(248, 248, 248, 0.4) 100%
    );
    mix-blend-mode: soft-light;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 70% 50%,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 60%
    );
    pointer-events: none;
}

@keyframes subtle-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 40px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    width: 1px;
    height: 40px;
    background: var(--text-light);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%, 100% { transform: scaleY(0.5); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Section Styles ===== */
section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== About Section ===== */
.about {
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .lead {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-img-main {
    grid-column: 1 / -1;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
}

.about-img-secondary {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
}

/* ===== Services Section ===== */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 100%;
    height: 200px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 4px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-icon img {
    transform: scale(1.05);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Clients Section ===== */
.clients {
    background: var(--bg-white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1px;
    width: 100vw;
    margin: 0;
    padding: 0;
}

.client-card {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
}

.client-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.client-card:hover img {
    transform: scale(1.1);
}

.client-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 16px;
    font-weight: 500;
    transform: translateY(100%);
    transition: var(--transition);
}

.client-card:hover .client-name {
    transform: translateY(0);
}

/* ===== Products Section - Scroll-Controlled Slideshow ===== */
.products {
    background: var(--bg-light);
    padding: 120px 0;
    position: relative;
}

.products .container {
    position: relative;
}

.products-gallery {
    position: relative;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 40px;
    height: 550px;
}

.product-item {
    position: absolute;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    width: calc((100% - 75px) / 4);
    height: 100%;
    pointer-events: none;
}

.product-item.active {
    opacity: 1;
}

/* Override fade-in animation for product items - they have custom scroll-based animation */
.product-item.fade-in {
    transform: none;
}

.product-item.fade-in.visible {
    opacity: 0;
    transform: none;
}

.product-item.fade-in.visible.active {
    opacity: 1;
}

/* Position items in 4 columns (25px gap) */
/* Group 1 */
.product-item:nth-child(1) { left: 0; top: 0; }
.product-item:nth-child(2) { left: calc(25% + 6.25px); top: 0; }
.product-item:nth-child(3) { left: calc(50% + 12.5px); top: 0; }
.product-item:nth-child(4) { left: calc(75% + 18.75px); top: 0; }

/* Group 2 */
.product-item:nth-child(5) { left: 0; top: 0; }
.product-item:nth-child(6) { left: calc(25% + 6.25px); top: 0; }
.product-item:nth-child(7) { left: calc(50% + 12.5px); top: 0; }
.product-item:nth-child(8) { left: calc(75% + 18.75px); top: 0; }

/* Group 3 */
.product-item:nth-child(9) { left: 0; top: 0; }
.product-item:nth-child(10) { left: calc(25% + 6.25px); top: 0; }
.product-item:nth-child(11) { left: calc(50% + 12.5px); top: 0; }
.product-item:nth-child(12) { left: calc(75% + 18.75px); top: 0; }

/* Group 4 */
.product-item:nth-child(13) { left: 0; top: 0; }
.product-item:nth-child(14) { left: calc(25% + 6.25px); top: 0; }
.product-item:nth-child(15) { left: calc(50% + 12.5px); top: 0; }
.product-item:nth-child(16) { left: calc(75% + 18.75px); top: 0; }

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover {
    pointer-events: auto;
}

.product-item:hover img {
    transform: scale(1.05);
}

/* ===== Sustainability Section ===== */
.sustainability {
    background: var(--bg-white);
}

.sustainability-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.sustainability-text h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 30px;
}

.commitment-list {
    list-style: none;
}

.commitment-list li {
    padding: 16px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
    border-bottom: 1px solid var(--border-color);
}

.commitment-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.certifications h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 30px;
}

.cert-group-label {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    margin-top: 40px;
    color: var(--primary-color);
}

.cert-group-label:first-child {
    margin-top: 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}

.cert-grid img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    transition: var(--transition);
    cursor: pointer;
}

.cert-grid img:hover {
    transform: scale(1.5);
    z-index: 1;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form-container {
    background: white;
    padding: 60px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 16px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: var(--secondary-color);
}

.btn-submit {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 10px;
}

.form-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0 20px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.form-divider span {
    padding: 0 20px;
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.form-alternative {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

.form-alternative a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.form-alternative a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .nav-container {
        padding: 20px 30px;
    }

    .about-grid,
    .sustainability-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
    }

    .products-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        height: auto;
    }

    .product-item {
        position: relative;
        width: 100%;
        left: 0;
        opacity: 1 !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 15px 20px;
    }

    .hero {
        background-attachment: scroll;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 40px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
    }

    .products {
        min-height: auto;
        padding: 80px 0;
    }

    .products-gallery {
        position: relative;
        top: 0;
        grid-template-columns: 1fr;
        gap: 20px;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .product-item {
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .contact-form-container {
        padding: 40px 30px;
    }

    .cert-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
    }

    .products-gallery {
        grid-template-columns: 1fr;
    }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
