/* Language Toggle Styles */
.lang-ta { display: none; }
body.lang-ta-active .lang-en { display: none !important; }
body.lang-ta-active .lang-ta { display: inline-block !important; }
div.lang-ta, p.lang-ta, h1.lang-ta, h2.lang-ta, h3.lang-ta { display: none; }
body.lang-ta-active div.lang-ta, body.lang-ta-active p.lang-ta, body.lang-ta-active h1.lang-ta, body.lang-ta-active h2.lang-ta, body.lang-ta-active h3.lang-ta { display: block !important; }

/* Floating Language Toggle */
.language-toggle-wrapper {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1000;
}

.language-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5b0e2d 100%);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.language-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}
.language-btn i { font-size: 1.1em; }

/* Index specific CSS */
/* Compact Hero Redesign */
.hero-compact {
    padding-top: 100px;
    height: 75vh;
    min-height: 600px;
    background: transparent;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-compact::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(60px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-badge::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--primary-color);
}

.premium-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 700;
}

.premium-title .accent {
    color: var(--secondary-color);
    font-style: italic;
    font-family: var(--font-heading);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.premium-lead {
    font-size: 1.15rem;
    color: #444;
    max-width: 480px;
    margin-bottom: 45px;
    line-height: 1.8;
}

.hero-action-btns {
    display: flex;
    gap: 25px;
}

.btn-luxury {
    background: var(--primary-color);
    color: #fff;
    padding: 18px 45px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    box-shadow: 0 15px 35px rgba(91, 14, 45, 0.15);
    text-decoration: none;
    display: inline-block;
}

.btn-luxury:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn-minimal {
    padding: 16px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.btn-minimal::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.btn-minimal:hover::after {
    width: 100%;
}

.hero-slider-side {
    height: 100%;
    position: relative;
    padding-right: 5%;
}

.slider-frame {
    position: relative;
    height: 60vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    border: 8px solid #fff;
}

.slider-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 100px rgba(212, 175, 55, 0.1);
    pointer-events: none;
    z-index: 2;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
    filter: brightness(1.05) saturate(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-controls .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls .dot.active {
    background: #fff;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- Fine Handloom & Master's Touch Sections (Premium Replacements) --- */
.fine-handloom-section {
    background: linear-gradient(135deg, #fffdf8 0%, #f7f0e8 100%);
    position: relative;
    overflow: hidden;
    padding: 70px 0;
}

.master-touch-section {
    background: #0f0a0d;
    position: relative;
    overflow: hidden;
    padding: 70px 0;
}

.bg-dark-elegant::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.handloom-content {
    max-width: 600px;
}

.handloom-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-frame-1 {
    width: 85%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.image-frame-gold {
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-frame-1:hover .parallax-img {
    transform: scale(1.08);
}

.image-frame-floating {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 45%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    border: 10px solid #fff;
    box-shadow: 0 20px 40px rgba(91, 14, 45, 0.15);
    z-index: 2;
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.float-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-tag-floating {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: rgba(255,255,255,0.95);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    z-index: 3;
    border: 1px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
}

.visual-tag-floating i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.visual-tag-floating:hover {
    transform: scale(1.05) translateY(-5px);
    background: var(--primary-color);
    color: #fff;
}

/* Typography & Lists */
.section-subtitle-premium {
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 25px;
    font-weight: 600;
}

.text-block {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 35px;
    text-align: justify;
}

.text-light-mode .text-block {
    color: rgba(255,255,255,0.8);
}

.text-white {
    color: #fff !important;
}

.badge-gold {
    color: var(--secondary-color);
}
.badge-gold::after {
    background: var(--secondary-color);
}

.feature-list-premium {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
    padding: 12px 20px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.feature-item-premium i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.feature-item-premium:hover {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateX(10px);
}

.grid-mode {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-box-elegant {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 20px 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #f1e0a5;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.feature-box-elegant i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-box-elegant:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(10px);
    border-color: rgba(212, 175, 55, 0.4);
}

.feature-box-elegant p {
    margin: 0;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .image-frame-1 { width: 100%; height: 400px; }
    .image-frame-floating { width: 60%; height: 200px; }
    .visual-tag-floating { left: 20px; bottom: 20px; }
}

@media (max-width: 768px) {
    .image-frame-1 { height: 300px; }
    .feature-box-elegant { flex-direction: column; text-align: center; }
}

/* Silk Varieties Slider Section */
.silk-varieties-section {
    padding: 100px 0;
    background: #fff;
    overflow: hidden;
}

.silk-varieties-header {
    text-align: center;
    margin-bottom: 50px;
}

.silk-varieties-header .section-title {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 15px;
}

.silk-varieties-header .section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-style: italic;
}

.varieties-swiper {
    padding: 20px 0 60px !important;
}

.variety-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    height: 100%;
}

.variety-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(91, 14, 45, 0.15);
    border-color: var(--secondary-color);
}

.variety-img-wrap {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.variety-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.variety-card:hover .variety-img-wrap img {
    transform: scale(1.08);
}

.variety-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(91, 14, 45, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.variety-card:hover .variety-overlay {
    opacity: 1;
}

.variety-content {
    padding: 25px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.variety-card:hover .variety-content {
    transform: translateY(0);
    opacity: 1;
}

.variety-title {
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.variety-title-ta {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
}

.variety-static-title {
    padding: 20px;
    text-align: center;
    background: #fff;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.variety-static-title h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.variety-card:hover .variety-static-title {
    background: var(--primary-color);
}
.variety-card:hover .variety-static-title h3 {
    color: var(--secondary-color);
}
.variety-card:hover .variety-static-title .variety-title-ta {
    color: #fff;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}


/* Tamil Nadu Heritage Section */
.tamil-heritage {
    background: linear-gradient(135deg, #faf9f6 0%, #fff 50%, #f5f1e8 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.tamil-heritage::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25px, 25px); }
}

.heritage-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.heritage-header .section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #5b0e2d 0%, #8b1538 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow-text 3s ease-in-out infinite;
}

@keyframes glow-text {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6)); }
}

.heritage-header .section-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.heritage-content {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.heritage-intro {
    margin-bottom: 70px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.heritage-intro:hover {
    box-shadow: 0 20px 60px rgba(91, 14, 45, 0.1);
    transform: translateY(-5px);
    border-left-color: var(--primary-color);
}

.heritage-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
    transition: all 0.4s ease;
    text-align: justify;
}

.heritage-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
}

.heritage-card {
    perspective: 1200px;
    cursor: pointer;
}

.heritage-card-inner {
    background: linear-gradient(135deg, #fff 0%, #faf9f6 100%);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.heritage-card:hover .heritage-card-inner {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(91, 14, 45, 0.15);
    border-color: var(--secondary-color);
}

.heritage-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.heritage-card:hover .heritage-icon {
    transform: rotateY(360deg) scale(1.1);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
}

.heritage-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.heritage-card:hover .heritage-card-title {
    color: var(--secondary-color);
}

.heritage-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    
}

.heritage-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    margin: 60px 0;
}

.heritage-footer {
    text-align: center;
    position: relative;
    z-index: 1;
}

.heritage-footer-text {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

/* Map Section */
.map-section {
    padding: 80px 0 0;
    background: #fff;
}
.map-intro {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-inline: auto;
}
.map-intro .hero-badge {
    justify-content: center;
}
.map-intro .hero-badge::after { display: none; }
.map-intro p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 15px;
}
.map-address-box {
    background: var(--primary-color);
    color: #fff;
    padding: 20px 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    box-shadow: 0 20px 40px rgba(91, 14, 45, 0.2);
}
.map-address-box i {
    font-size: 2rem;
    color: var(--secondary-color);
}
.map-address-box h4 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}
.map-address-box p {
    margin: 0;
    color: #f1f1f1;
    font-size: 1rem;
}
.map-frame {
    width: 100%;
    height: 500px;
    margin-top: 50px;
}
.map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Visual Gallery Slider */
.visual-gallery-slider {
    background: #0f0a0d;
    position: relative;
    overflow: hidden;
}

.gallery-slide-img {
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 2px solid rgba(212, 175, 55, 0.15);
    position: relative;
}

.gallery-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide-img:hover img {
    transform: scale(1.1);
}

.swiper-gallery .swiper-wrapper {
    transition-timing-function: linear !important;
}

.swiper-gallery .swiper-slide {
    width: auto;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-compact { height: auto; padding-top: 100px; padding-bottom: 40px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-badge { justify-content: center; }
    .hero-badge::after { display: none; }
    .premium-lead { margin-inline: auto; }
    .hero-action-btns { justify-content: center; }
    .slider-frame { height: 450px; max-width: 600px; margin: 0 auto; }
    
    .dual-panel-grid { grid-template-columns: 1fr; }
    .artistry-panel { padding: 40px 30px; }
    
    .map-address-box { flex-direction: column; text-align: center; padding: 20px; }
}

@media (max-width: 768px) {
    .hero-action-btns { flex-direction: column; max-width: 300px; margin: 0 auto; }
    .btn-luxury, .btn-minimal { width: 100%; text-align: center; }
    
    .silk-varieties-header .section-title { font-size: 2.2rem; }
    
    .heritage-features { grid-template-columns: 1fr; }
    .heritage-intro { padding: 30px; }

    /* Language Button Mobile Shrink */
    .language-toggle-wrapper { top: 75px; right: 10px; }
    .language-btn { padding: 6px 14px; font-size: 0.9rem; }
    .language-btn .lang-text { display: none; } /* Hide full text on mobile */
    body:not(.lang-ta-active) .language-btn::after { content: 'EN'; font-weight: 700; }
    body.lang-ta-active .language-btn::after { content: 'TA'; font-weight: 700; }

    /* Tamil Mode Responsive Fixes */
    body.lang-ta-active .btn,
    body.lang-ta-active .btn-luxury,
    body.lang-ta-active .btn-primary,
    body.lang-ta-active .btn-minimal,
    body.lang-ta-active .filter-btn,
    body.lang-ta-active .cta-btn {
        font-size: 0.85rem !important;
        padding: 12px 16px !important;
        white-space: normal !important;
        word-break: keep-all;
        height: auto;
        line-height: 1.4;
    }

    body.lang-ta-active h1,
    body.lang-ta-active h2,
    body.lang-ta-active .premium-title,
    body.lang-ta-active .section-title {
        word-break: break-word;
        hyphens: auto;
        font-size: clamp(2rem, 5vw, 3rem) !important;
    }
}

@media (max-width: 480px) {
    .premium-title { font-size: 2.5rem; }
    .slider-frame { height: 300px; }
    .artistry-panel { padding: 30px 20px; }
    .panel-visual-card { height: 200px; }
}
