/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --primary-dark: #432323; */
    --primary-dark: #212121;
    
    --primary-teal: #e6f2f1;
    --secondary-teal: #5A9690;
    --light-bg: #e6f2f1;
    --white: #ffffff;
    --dark: #432323;
    --gray: #6B6B6B;
    --footer-color: #2F5755;
    --bg-light: #E0D9D9;
    --text-light: #8B8B8B;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}


/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--secondary-teal);
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(90, 150, 144, 0.5);
}


/* ============================================
   COLLECTION HERO
   ============================================ */

.satisfy-regular {
    font-family: "Satisfy", cursive;
    font-weight: 400;
    font-style: normal;
}


.ubuntu-regular {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.collection-hero {
    position: relative;
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
    background: var(--light-bg);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/image1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 1rem 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: -0.5rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
}


/* ============================================
   COLLECTION CATEGORIES
   ============================================ */

.collection-categories {
    padding: 6rem 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.category-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(47, 87, 85, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
}

.category-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(47, 87, 85, 0.3);
}

.category-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.category-card:hover .category-img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 87, 85, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.category-card:hover .category-overlay {
    opacity: 1;
    transform: translateY(0);
}

.btn-whatsapp-card {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: #25D366;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.category-card:hover .btn-whatsapp-card {
    transform: translateY(0);
}

.btn-whatsapp-card:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.btn-whatsapp-card i {
    font-size: 1.3rem;
}

.category-info {
    padding: 2rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.category-card:hover .category-title {
    color: var(--primary-teal);
}

.category-description {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.category-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-teal);
    font-weight: 500;
}

.feature-tag i {
    font-size: 0.8rem;
    color: var(--secondary-teal);
}


/* ============================================
   FABRIC & QUALITY SECTION
   ============================================ */

.fabric-quality {
    padding: 6rem 0;
    background: var(--light-bg);
}

.fabric-quality h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.fabric-quality h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-teal);
    border-radius: 2px;
}

.fabric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.fabric-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.fabric-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fabric-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(47, 87, 85, 0.2);
}

.fabric-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.fabric-item:hover .fabric-icon {
    transform: scale(1.2) rotate(5deg);
}

.fabric-icon i {
    font-size: 2.5rem;
    color: var(--primary-teal);
}

.fabric-item h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.fabric-item p {
    color: var(--gray);
    line-height: 1.7;
}


/* ============================================
   COLLECTION CTA
   ============================================ */

.collection-cta {
    padding: 6rem 0;
    background: var(--primary-teal);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    opacity: 0;
    transform: translateY(30px);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.cta-title.visible,
.cta-text.visible,
.cta-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-teal);
    border: 2px solid var(--white);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--secondary-teal);
    color: var(--white);
    border-color: var(--secondary-teal);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(90, 150, 144, 0.4);
}

.btn i {
    font-size: 1.2rem;
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--footer-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}


.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-info {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer .social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
}

.footer .social-icon i {
    font-size: 1.5rem;
}

.footer .social-icon:hover {
    /* background: var(--secondary-teal); */
    background: white;
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}


/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }

    70% {
        transform: scale(0.9) translateY(5px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    }

    50% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6), 0 0 20px rgba(37, 211, 102, 0.4);
    }
}

.fade-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.bounce-in {
    animation: bounceIn 0.8s ease forwards;
    opacity: 0;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .collection-hero {
        margin-top: 60px;
        min-height: 20vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .collection-categories,
    .fabric-quality,
    .collection-cta {
        padding: 4rem 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fabric-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1.1rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .fabric-quality h2 {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .category-info {
        padding: 1.5rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .category-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* gallery css code  */


/* === FIXED GALLERY CSS (limited ONLY to gallery section) === */

.gallery-main li,
.gallery-main figure {
    max-height: 580px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    margin: 0;
}

.gallery-main ul {
    width: 100%;
    max-width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.1rem;
    /* gap between images */
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns by default */
}

.hero-subtitle {
    font-size: 1.4rem;
    /* default for desktops */
    line-height: 1.6;
    max-width: 60rem;
    margin: 1rem auto;
    text-align: center;
    padding: 0 1rem;
    /* keeps text readable on small screens */
    color: #333;
}


/* Tablets */

@media (max-width: 900px) {
    .hero-subtitle {
        font-size: 1.25rem;
        max-width: 45rem;
    }
}


/* Mobile devices */

@media (max-width: 600px) {
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        max-width: 100%;
    }
}


/* Mobile devices: max-width ~600px */

@media (max-width: 600px) {
    .gallery-main ul {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 0.1rem;
    }
}


/* Tablets and above (600px and up) */

@media (min-width: 600px) {
    .gallery-main ul {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Mobile only */

@media (max-width: 599px) {
    .gallery-main ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

.image-show {
    object-position: 20% 15%;
    object-fit: cover;
}


/* Limit image styling only for gallery */

.gallery-main img {
    width: 100%;
    display: block;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 1000ms;
}

.gallery-main figure {
    margin: 0;
    position: relative;
    overflow: hidden;
}

.gallery-main figure::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: rgba(0, 0, 0, 0.5);
    transform-origin: center;
    opacity: 0;
    transform: scale(2);
    transition: opacity 300ms;
}

.gallery-main figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    place-items: center;
    text-align: center;
    padding: 1rem;
    color: white;
    font-size: 1.2rem;
    z-index: 1;
    opacity: 0;
    transition: opacity 600ms, transform 600ms;
}

.load-more-container {
    text-align: center;
    margin: 2rem 0 4rem;
}

#loadMoreBtn {
    padding: 12px 25px;
    background: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

#loadMoreBtn:hover {
    background: var(--secondary-teal);
}


/* Hover effects */

.gallery-main a:is(:hover,
    :focus) figure::after {
    opacity: 1;
}

.gallery-main a:is(:hover,
    :focus) figcaption {
    opacity: 1;
    transition: opacity 600ms;
}


/* Motion preferences */

@media (prefers-reduced-motion: no-preference) {
    .gallery-main figcaption {
        transform: translate3d(0, 2rem, 0);
    }

    .gallery-main figure::after {
        border-radius: 50%;
        opacity: 1;
        transform: scale(0);
        transition: transform 900ms;
    }

    .gallery-main a:is(:hover,
        :focus) figure::after {
        transform: scale(2.5);
    }

    .gallery-main a:is(:hover,
        :focus) figcaption {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transition: opacity 600ms 400ms, transform 600ms 400ms;
    }

    .gallery-main a:is(:hover,
        :focus) img {
        transform: scale(1.2);
    }
}