/* Brand Colors */
.text_brown {color: #812529 !important;}
.border_bottom_white {border-bottom: 1px solid #fff;}
.bg_brown {background-color: #812529 !important;}

/* Header Navigation */
.topbar-toolbar a { color: #fff !important; }
.nav-link { color: #fff !important; }

/* Hero Section */
.journey-hero {
    position: relative;
    min-height: 100vh;
    background-color: #812529;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hridaya_pattern {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    width: 100%;
    position: relative;
}

/* Logo Container */
.logo-container {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0px 0px 5px rgba(212, 175, 55, 0.3)) 
                drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
    }
    100% {
        filter: drop-shadow(0px 0px 15px rgba(212, 175, 55, 0.7)) 
                drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
    }
}

/* Loader Content */
.loader-content {
    text-align: center;
    width: 90%;
    max-width: 500px;
    position: relative;
    margin: 0 auto;
}

.thari {
    position: relative;
    width: 100%;
    height: 120px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="120" viewBox="0 0 400 120"><rect x="50" y="15" width="300" height="8" fill="%23D4AF37" rx="2"/><rect x="50" y="97" width="300" height="8" fill="%23D4AF37" rx="2"/><line x1="50" y1="23" x2="50" y2="97" stroke="%23ffffff" stroke-width="2.5"/><line x1="350" y1="23" x2="350" y2="97" stroke="%23ffffff" stroke-width="2.5"/><line x1="60" y1="35" x2="340" y2="35" stroke="%23ffffff55" stroke-width="1" stroke-dasharray="2,3"/><line x1="60" y1="55" x2="340" y2="55" stroke="%23ffffff55" stroke-width="1" stroke-dasharray="2,3"/><line x1="60" y1="75" x2="340" y2="75" stroke="%23ffffff55" stroke-width="1" stroke-dasharray="2,3"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 30px auto;
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.3));
}

.naadaa {
    position: absolute;
    width: 35px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="35" height="18" viewBox="0 0 35 18"><rect x="0" y="4" width="35" height="10" rx="5" fill="%23D4AF37"/><rect x="13" y="0" width="9" height="18" fill="%23D4AF37"/></svg>');
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.3));
    z-index: 10;
}

.loading-text {
    color: #ffffff;
    font-family: 'Marcellus', serif;
    font-size: 22px;
    margin-top: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    text-shadow: 0px 1px 2px rgba(0,0,0,0.3);
}

.loading-text:after {
    content: '';
    position: absolute;
    width: 45px;
    height: 2px;
    background: #D4AF37;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.tagline {
    color: #FFFFFF;
    font-family: 'Petit Formal Script', cursive;
    font-size: 20px;
    margin-top: 20px;
    line-height: 1.4;
    text-shadow: 0px 1px 1px rgba(0,0,0,0.3);
}

.loading-dots {
    display: inline-block;
    margin-top: 15px;
}

.loading-dots span {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D4AF37;
    margin: 0 3px;
    opacity: 0;
    animation: pulse 1.5s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.3s; }
.loading-dots span:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-family: 'Marcellus', serif;
    font-size: 14px;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    margin: 10px auto 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-20px);}
    60% {transform: translateX(-50%) translateY(-10px);}
}

/* Woven Timeline Container */
.woven-timeline-container {
    background: linear-gradient(135deg, #fdfaf7 0%, #fff9f5 100%);
    position: relative;
    overflow: hidden;
}

.woven-timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.02) 0px, rgba(212, 175, 55, 0.02) 20px, transparent 20px, transparent 40px);
    pointer-events: none;
}

/* Section Header with Saree Divider */
.saree-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.saree-pallu-left, .saree-pallu-right {
    width: 80px;
    height: 30px;
    background: linear-gradient(145deg, #D4AF37, #F4D03F);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
    opacity: 0.6;
}

.section-title {
    font-size: 42px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.section-subtitle {
    font-size: 18px;
    margin-top: -10px;
}

/* Timeline Row */
.timeline-row {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    position: relative;
}

.timeline-row.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Year Badge */
.year-badge {
    position: relative;
    display: inline-block;
    padding: 20px 30px;
}

.year-badge.left-side {
    text-align: right;
}

.year-badge.right-side {
    text-align: left;
}

.year-number {
    font-family: 'Marcellus', serif;
    font-size: 72px;
    font-weight: 700;
    color: #812529;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 10px rgba(212, 175, 55, 0.2);
}

.year-badge.present .year-number {
    color: #D4AF37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.thread-decoration {
    position: absolute;
    top: 50%;
    right: -30px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, transparent);
}

.right-side .thread-decoration {
    left: -30px;
    right: auto;
    background: linear-gradient(90deg, transparent, #D4AF37);
}

/* Timeline Loom Centerpiece */
.timeline-loom {
    position: relative;
    height: 100px;
    width: 4px;
    background: linear-gradient(180deg, transparent, #812529, #D4AF37, #812529, transparent);
    margin: 0 auto;
}

.loom-thread-vertical {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, #812529, #D4AF37, #812529, transparent);
}

.shuttle-marker {
    position: absolute;
    width: 30px;
    height: 15px;
    background: #812529;
    border-radius: 20% 20% 20% 20% / 50% 50% 50% 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px #D4AF37;
    animation: shuttlePulse 2s infinite;
}

.shuttle-marker::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -5px;
    width: 10px;
    height: 20px;
    background: #D4AF37;
    border-radius: 30%;
    transform: rotate(5deg);
}

.shuttle-gold::after {
    background: #F4D03F;
}

.shuttle-present {
    background: #D4AF37;
    box-shadow: 0 0 30px #D4AF37;
}

.shuttle-present::after {
    background: #812529;
}

@keyframes shuttlePulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Timeline Content Cards */
.timeline-content-card {
    position: relative;
    padding: 35px;
    background: white;
    border-radius: 30px 30px 30px 0;
    box-shadow: 0 20px 40px -15px rgba(129, 37, 41, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.timeline-content-card.left-side {
    border-radius: 30px 30px 0 30px;
}

.timeline-content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px -15px rgba(212, 175, 55, 0.3);
}

.saree-corner {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, transparent 50%, #D4AF37 50%);
    opacity: 0.3;
}

.left-side .saree-corner {
    left: -2px;
    right: auto;
    background: linear-gradient(225deg, transparent 50%, #D4AF37 50%);
}

.content-title {
    font-family: 'Marcellus', serif;
    font-size: 28px;
    margin-bottom: 15px;
    color: #812529;
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* Thread Patterns */
.thread-pattern {
    display: flex;
    gap: 5px;
    margin-top: 15px;
}

.thread-pattern span {
    width: 30px;
    height: 4px;
    background: #812529;
    border-radius: 2px;
    animation: threadWidth 3s infinite;
}

.thread-pattern span:nth-child(2) { animation-delay: 0.3s; }
.thread-pattern span:nth-child(3) { animation-delay: 0.6s; }

.thread-pattern .color-1 { background: #812529; }
.thread-pattern .color-2 { background: #D4AF37; }
.thread-pattern .color-3 { background: #8B5A2B; }

@keyframes threadWidth {
    0%, 100% { width: 30px; }
    50% { width: 45px; }
}

.artisan-threads {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.thread-icon {
    width: 25px;
    height: 25px;
    background: #D4AF37;
    border-radius: 50%;
    opacity: 0.3;
    animation: threadGlow 2s infinite;
}

.thread-icon:nth-child(2) { animation-delay: 0.3s; }
.thread-icon:nth-child(3) { animation-delay: 0.6s; }

@keyframes threadGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); background: #812529; }
}

.zari-pattern {
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, #F4D03F, #D4AF37, transparent);
    margin-top: 20px;
    animation: zariShine 3s infinite;
}

@keyframes zariShine {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.map-threads {
    display: flex;
    justify-content: space-around;
}

.map-threads span {
    width: 8px;
    height: 8px;
    background: #812529;
    border-radius: 50%;
    position: relative;
}

.map-threads span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 50px;
    height: 1px;
    background: #D4AF37;
}

.map-threads span:last-child::after {
    display: none;
}

.ongoing-weave {
    display: flex;
    gap: 5px;
    margin-top: 20px;
}

.ongoing-weave span {
    height: 4px;
    background: #812529;
    border-radius: 2px;
    animation: ongoingWeave 2s infinite;
}

.ongoing-weave span:nth-child(1) { width: 20px; animation-delay: 0s; }
.ongoing-weave span:nth-child(2) { width: 30px; animation-delay: 0.3s; }
.ongoing-weave span:nth-child(3) { width: 40px; animation-delay: 0.6s; }
.ongoing-weave span:nth-child(4) { width: 50px; animation-delay: 0.9s; }

@keyframes ongoingWeave {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; background: #D4AF37; }
}

/* Present Card */
.present-card {
    border: 2px solid #D4AF37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

/* Grand Loom Showcase */
.grand-loom-showcase {
    padding: 60px 20px;
    background: linear-gradient(145deg, #fff5eb, #fff);
    border-radius: 60px;
    margin: 40px 0;
    position: relative;
}

.living-loom {
    max-width: 800px;
    margin: 0 auto;
}

.loom-frame {
    position: relative;
    height: 300px;
    background: #f0e9e0;
    border-radius: 100px 100px 30px 30px;
    padding: 20px;
    box-shadow: inset 0 -5px 20px rgba(0,0,0,0.05), 0 20px 30px rgba(129, 37, 41, 0.1);
}

.beam {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 8px;
    background: linear-gradient(90deg, #8B5A2B, #D4AF37, #8B5A2B);
    border-radius: 10px;
}

.top-beam { top: 15%; }
.bottom-beam { bottom: 15%; }

.stand {
    position: absolute;
    top: 10%;
    bottom: 10%;
    width: 12px;
    background: linear-gradient(180deg, #8B5A2B, #A67C52, #8B5A2B);
    border-radius: 20px;
}

.left-stand { left: 8%; }
.right-stand { right: 8%; }

.warp-threads-living {
    position: absolute;
    top: 18%;
    bottom: 18%;
    left: 15%;
    right: 15%;
    display: flex;
    justify-content: space-around;
}

.warp-threads-living span {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #812529, #D4AF37, #812529);
    animation: threadVibration 2s infinite;
    animation-delay: calc(0.2s * var(--i));
}

@keyframes threadVibration {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.5); background: linear-gradient(180deg, #D4AF37, #812529, #D4AF37); }
}

.shuttle-living {
    position: absolute;
    width: 50px;
    height: 22px;
    background: #8B5A2B;
    border-radius: 30% 10% 10% 30%;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 20;
}

.shuttle-living::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -8px;
    width: 18px;
    height: 35px;
    background: linear-gradient(145deg, #D4AF37, #F4D03F);
    border-radius: 30%;
    transform: rotate(5deg);
}

.woven-fabric {
    position: absolute;
    bottom: 18%;
    left: 15%;
    height: 8px;
    background: linear-gradient(90deg, #812529, #D4AF37, #812529, #D4AF37, #812529);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 10px;
    opacity: 0.8;
}

.loom-caption {
    font-family: 'Petit Formal Script', cursive;
    color: #812529;
    font-size: 18px;
}

.saree-border-animated {
    height: 30px;
    background: repeating-linear-gradient(90deg, #D4AF37 0px, #D4AF37 10px, transparent 10px, transparent 20px);
    margin-top: 30px;
    opacity: 0.3;
    animation: borderMove 20s linear infinite;
}

@keyframes borderMove {
    0% { background-position-x: 0; }
    100% { background-position-x: 200px; }
}

/* CTA Section */
.cta-section {
    padding: 60px 20px;
    position: relative;
    background: linear-gradient(145deg, #812529, #9a3a3e);
    border-radius: 50px 50px 30px 30px;
    color: white;
    margin: 40px 0;
    overflow: hidden;
}

.saree-pallu-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: repeating-linear-gradient(45deg, #D4AF37 0px, #D4AF37 20px, transparent 20px, transparent 40px);
}

.cta-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background: #D4AF37;
    color: #812529;
    font-family: 'Marcellus', serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-cta:hover {
    background: #F4D03F;
    color: #812529;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.thread-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, white, #D4AF37, transparent);
    margin: 40px auto 0;
}

/* Saree border (original) */
.saree-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="80" viewBox="0 0 400 80"><path d="M0,40 Q50,20 100,40 T200,40 T300,40 T400,40" stroke="%23D4AF37" fill="none" stroke-width="2"/><circle cx="50" cy="40" r="3" fill="%23D4AF37"/><circle cx="150" cy="40" r="3" fill="%23D4AF37"/><circle cx="250" cy="40" r="3" fill="%23D4AF37"/><circle cx="350" cy="40" r="3" fill="%23D4AF37"/></svg>');
    background-repeat: repeat-x;
    background-position: bottom;
    opacity: 0.5;
    animation: borderScroll 30s linear infinite;
}

@keyframes borderScroll {
    0% { background-position-x: 0; }
    100% { background-position-x: 400px; }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .section-title { font-size: 32px; }
    .year-number { font-size: 48px; }
    .timeline-loom { height: 60px; }
    .timeline-content-card { margin: 20px 0; }
    .saree-pallu-left, .saree-pallu-right { width: 40px; }
}

@media (max-width: 768px) {
    .logo { max-width: 200px; }
    .loading-text { font-size: 18px; }
    .tagline { font-size: 16px; }
    .timeline-row { text-align: center !important; }
    .year-badge { text-align: center !important; }
    .thread-decoration { display: none; }
    .saree-divider { flex-wrap: wrap; }
    .saree-pallu-left, .saree-pallu-right { width: 30px; height: 20px; }
}

/* Naadaa Shuttle for Timeline */
.naadaa-shuttle {
    position: absolute;
    width: 35px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="35" height="18" viewBox="0 0 35 18"><rect x="0" y="4" width="35" height="10" rx="5" fill="%23D4AF37"/><rect x="13" y="0" width="9" height="18" fill="%23D4AF37"/></svg>');
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.3));
    z-index: 20;
    animation: shuttleFloat 3s ease-in-out infinite;
}

.naadaa-shuttle.present-shuttle {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="35" height="18" viewBox="0 0 35 18"><rect x="0" y="4" width="35" height="10" rx="5" fill="%23812529"/><rect x="13" y="0" width="9" height="18" fill="%23812529"/></svg>');
    filter: drop-shadow(0px 0px 10px #D4AF37);
}

@keyframes shuttleFloat {
    0%, 100% { 
        transform: translate(-50%, -50%) translateY(0); 
    }
    50% { 
        transform: translate(-50%, -50%) translateY(-5px); 
    }
}

/* Remove the old shuttle-marker styles since we're replacing with naadaa */
.shuttle-marker {
    display: none;
}

/* Update timeline-loom to work with naadaa shuttle */
.timeline-loom {
    position: relative;
    height: 100px;
    width: 4px;
    background: linear-gradient(180deg, transparent, #812529, #D4AF37, #812529, transparent);
    margin: 0 auto;
}

/* Add animation for each shuttle with different delays */
#shuttle1 { animation-delay: 0s; }
#shuttle2 { animation-delay: 0.5s; }
#shuttle3 { animation-delay: 1s; }
#shuttle4 { animation-delay: 1.5s; }
#shuttle5 { animation-delay: 2s; }
#shuttle6 { animation-delay: 2.5s; }