/* home.css - Styles specifically for the homepage */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--header-total));
    min-height: calc(100dvh - var(--header-total));
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(12, 8, 7, 0.98) 0%, rgba(26, 13, 13, 0.86) 42%, rgba(26, 13, 13, 0.34) 100%),
        url('../assets/images/blue-saree.jpg') center right / cover no-repeat,
        #140d0d;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    transform: scale(1.04);
}

.swiper-slide-active .hero-slide {
    animation: heroKenBurns 7s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(12, 8, 7, 0.98) 0%, rgba(26, 13, 13, 0.88) 38%, rgba(26, 13, 13, 0.38) 70%, rgba(26, 13, 13, 0.2) 100%),
        linear-gradient(0deg, rgba(12, 8, 7, 0.58) 0%, rgba(12, 8, 7, 0.08) 34%, rgba(12, 8, 7, 0.22) 100%);
    z-index: 2;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 26px;
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(212, 175, 55, 0.22);
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    width: 100%;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(12, 8, 7, 0.72), transparent);
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 760px;
    color: var(--light-color);
    padding: clamp(44px, 7vh, 74px) 0 clamp(64px, 8vh, 90px);
    opacity: 1 !important;
    transform: none !important;
}

.hero-content::before {
    content: "Authentic Kanchipuram Silks";
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(212, 175, 55, 0.36);
    border-radius: 999px;
    color: var(--accent-color);
    background: rgba(255, 253, 248, 0.09);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.hero-content h1 {
    color: #f8dc75;
    text-shadow: 0 18px 40px rgba(0,0,0,0.45);
    margin-bottom: 14px;
    font-size: clamp(3.25rem, 6vw, 6.25rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
    font-family: var(--font-heading);
    margin-bottom: 18px;
    display: block;
    color: #fff9eb;
}

.hero-desc {
    max-width: 660px;
    font-size: 1.06rem;
    margin-bottom: 30px;
    color: rgba(255, 253, 248, 0.82);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.hero-buttons .btn {
    border-radius: 7px;
    min-height: 48px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    white-space: normal;
}

.hero-buttons .btn-secondary {
    color: #20130d;
    font-weight: 700;
}

.hero-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    padding: 9px 12px;
    border: 1px solid rgba(245, 230, 200, 0.22);
    border-radius: 7px;
    background: rgba(255, 253, 248, 0.08);
    backdrop-filter: blur(10px);
}

.hero-feature-item i {
    color: var(--secondary-color);
}

/* Floating Elements */
.floating-element {
    display: none;
}

.floating-element img {
    width: 100px;
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.5));
}

.hero-preview-rail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 8px 14px 8px 8px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 7px;
    background: rgba(255, 253, 248, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px);
}

.hero-preview-rail img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212, 175, 55, 0.75);
    margin-left: -20px;
}

.hero-preview-rail img:first-child {
    margin-left: 0;
}

.hero-preview-rail span {
    color: var(--accent-color);
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-bubbles {
    display: none;
}

.hero-bubbles span {
    position: absolute;
    left: var(--left);
    bottom: -60px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    border: 1px solid rgba(245, 230, 200, 0.46);
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.85), rgba(212,175,55,0.18) 48%, rgba(255,255,255,0.04) 72%);
    animation: heroBubbleRise var(--time) linear infinite;
    animation-delay: var(--delay);
}

.hero-slider .swiper-pagination-bullet {
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    opacity: 1;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--secondary-color);
}

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    top: auto;
    bottom: 42px;
    z-index: 5;
    width: 52px;
    height: 52px;
    border-radius: 7px;
    color: var(--secondary-color) !important;
    background: rgba(20, 13, 13, 0.56);
    border: 1px solid rgba(212, 175, 55, 0.42);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-slider .swiper-button-prev {
    left: auto;
    right: 94px;
}

.hero-slider .swiper-button-next {
    right: 30px;
}

.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
    transform: translateY(-3px);
    background: rgba(123, 17, 19, 0.72);
    border-color: rgba(212, 175, 55, 0.72);
}

.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
    font-size: 0.95rem;
    font-weight: 800;
}

.hero-slider .swiper-pagination {
    bottom: 60px !important;
    left: 30px !important;
    right: auto !important;
    width: auto !important;
    z-index: 5;
}

/* Why Choose Us (Section 1) */
.feature-card {
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-light);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 2px solid transparent;
    transition: 0.5s;
    box-sizing: border-box;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    animation: borderDraw 1s forwards;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
}

/* Collections Grid */
.collection-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-light);
    background: #eee;
    isolation: isolate;
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.collection-card:hover img {
    transform: scale(1.1);
}

.collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(28,28,28,0.9), transparent);
    color: var(--light-color);
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.collection-info .btn {
    width: fit-content;
    max-width: 100%;
}

.collection-card:hover .collection-info {
    transform: translateY(0);
}

.collection-info h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Bridal Showcase */
.bridal-showcase {
    background-color: #faf6ef;
    position: relative;
}

.bridal-img-wrapper {
    position: relative;
}

.bridal-img-wrapper img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-luxury);
}

.gold-line {
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 20px 0;
    transition: width 1s ease;
}

.bridal-showcase:hover .gold-line {
    width: 100px;
}

/* Stats Counter */
.stats-section {
    background-image: linear-gradient(rgba(123, 17, 19, 0.9), rgba(123, 17, 19, 0.9)), url('../assets/images/handloom.avif');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    padding: 80px 0;
}

.stat-item {
    text-align: center;
}

.stat-item .counter-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

/* Testimonials */
.testimonial-card {
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
}

/* Instagram Gallery Masonry */
.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(123, 17, 19, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-overlay i {
    color: var(--light-color);
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.5s;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

@media (max-width: 768px) {
    .masonry-gallery { column-count: 2; }
    .hero-content h1 {
        font-size: clamp(2.55rem, 13vw, 4rem);
    }
    .hero-section {
        height: auto;
        min-height: calc(100dvh - var(--header-total));
        padding: 56px 0 50px 0;
    }

    .hero-section::before {
        inset: 14px;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(12, 8, 7, 0.96) 0%, rgba(26, 13, 13, 0.82) 58%, rgba(26, 13, 13, 0.54) 100%),
            linear-gradient(90deg, rgba(12, 8, 7, 0.78), rgba(12, 8, 7, 0.18));
    }

    .hero-content {
        padding: 0 0 46px;
        max-width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-feature-item {
        width: 100%;
        justify-content: center;
    }

    .hero-preview-rail {
        width: 100%;
        justify-content: center;
        margin-top: 22px;
        flex-wrap: wrap;
    }

    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next {
        display: none;
    }
}

@media (max-height: 800px) and (min-width: 769px) {
    .hero-preview-rail {
        display: none;
    }
}

@media (max-width: 480px) {
    .masonry-gallery { column-count: 1; }

    .hero-content::before {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .hero-desc {
        font-size: 0.96rem;
    }

    .hero-feature-item {
        font-size: 0.82rem;
        padding: 8px 10px;
    }

    .hero-preview-rail span {
        display: none;
    }

    .collection-card {
        height: 330px;
    }
}
