/* Scrolling Text Styles */
.scrolling-text {
    background-color: #B22222;
    color: #FFD700;
    padding: 0.8rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    font-weight: 500;
    letter-spacing: 1px;
}

.scroll-content {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
    padding-left: 100%;
    font-size: 1.1rem;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(178, 34, 34, 0.8), rgba(205, 92, 92, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #FFD700;
    text-align: center;
    padding: 8rem 2rem;
    position: relative;
    min-height: 60vh;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.hero h4 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 300;
    letter-spacing: 1px;
}

.hero button, .hero-btn {
    background-color: #B22222;
    color: #fff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero button:hover, .hero-btn:hover {
    background-color: #FFA500;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero button:focus, .hero-btn:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
    background-color: #FFA500;
    color: #B22222;
}

.hero button:focus-visible, .hero-btn:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Slideshow Styles */
.slideshow-container {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #f5f5f5;
}

.slides-wrapper {
    display: flex;
    animation: scroll 40s linear infinite;
    gap: 0;
    padding: 20px 0;
}

.slide {
    flex: 0 0 20%;
    min-width: 200px;
    padding: 0 10px;
}

.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-20% * 5));
    }
}

/* Pause animation on hover */
.slides-wrapper:hover {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .slide {
        flex: 0 0 25%;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-25% * 4));
        }
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem;
        min-height: 50vh;
        background-attachment: scroll; /* Better mobile performance */
    }

    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero h4 {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        margin-bottom: 2rem;
    }

    .hero button, .hero-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Fix slideshow for mobile */
    .slide {
        flex: 0 0 100%;
    }
    
    .slide img {
        height: 200px;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100% * 3));
        }
    }
}

@media (max-width: 480px) {
    .slide {
        flex: 0 0 50%;
    }
    
    .slide img {
        height: 200px;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% * 2));
        }
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}

/* Landscape Mode Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .slide img {
        height: 150px;
    }
}

.ganesha-shloka-columns {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    padding: 25px;
}
.ganesha-shloka-kannada, .ganesha-shloka-english {
    flex: 1;
    font-size: 1rem;
    line-height: 2;
    font-family: 'Playfair Display', serif;
    color: #B22222;
    font-weight: 600;
    padding: 1rem 0;
}
.ganesha-shloka-kannada {
    border-right: 2px solid #FFD700;
    padding-right: 2rem;
}
.ganesha-shloka-english {
    padding-left: 2rem;
}
@media (max-width: 800px) {
    .ganesha-shloka-columns {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .ganesha-shloka-kannada, .ganesha-shloka-english {
        border: none;
        padding: 200;
    }
}

/* Gallery Link Section */
.gallery-link-section {
    max-width: 1000px;
    margin: 2rem auto 3rem auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.gallery-link-text {
    font-size: 1.2rem;
    color: #B22222;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    transition: color 0.2s;
    display: inline-block;
    margin: 1.5rem 0 2.5rem 0;
}
.gallery-link-text:hover {
    color: #1100ff;
    text-decoration: none;
    cursor: pointer;
}

.gallery-divider {
    width: 3px;
    height: 40px;
    background-color: #FFD700;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* Mobile Responsive for Gallery Links */
@media (max-width: 768px) {
    .gallery-link-section {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem auto 2rem auto;
    }

    .gallery-link-text {
        font-size: 1rem;
        margin: 0.5rem 0;
    }

    .gallery-divider {
        width: 60px;
        height: 3px;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .gallery-link-text {
        font-size: 0.9rem;
    }

    .gallery-divider {
        width: 50px;
        height: 2px;
    }
} 