@import url('style.css');

/* Homepage Specific Styles */

/* Enhanced Hero Section */
.hero {
    padding: 140px 0 80px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero h1 {
    color: var(--maroon);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-image-container {
    position: relative;
    display: inline-block;
}

.hero-image {
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255,255,255,0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* About Section */
.about-image-container {
    position: relative;
    display: inline-block;
}

.about-image-container img {
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255,255,255,0.5);
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.about-image-container:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Tamil Nadu Intro Section */
.tamilnadu-intro {
    background: linear-gradient(135deg, rgba(255,250,242,0.8) 0%, rgba(255,232,204,0.8) 100%);
    position: relative;
}

.tamilnadu-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(245, 176, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(107, 29, 29, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Why Choose Section */
.why-choose .feature-card {
    padding: 2rem 1rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    background: white;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.5);
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.why-choose .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon), var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.why-choose .feature-card:hover::before {
    transform: scaleX(1);
}

.why-choose .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255,255,255,0.5);
}

.why-choose .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(245, 176, 65, 0.1) 0%, rgba(107, 29, 29, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.why-choose .feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--gold), var(--maroon));
}

.why-choose .feature-icon i {
    font-size: 2rem;
    color: var(--gold);
    transition: all 0.4s ease;
}

.why-choose .feature-card:hover .feature-icon i {
    color: white;
}

/* Temple Highlights Section */
.temple-preview-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.temple-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.temple-preview-image {
    height: 200px;
    overflow: hidden;
}

.temple-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.temple-preview-card:hover .temple-preview-image img {
    transform: scale(1.1);
}

.temple-preview-content {
    padding: 1.5rem;
    text-align: center;
}

.temple-preview-content h5 {
    margin-bottom: 0.5rem;
}

.temple-preview-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--dark-maroon) 100%) !important;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 176, 65, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta .container {
    position: relative;
    z-index: 2;
}

/* Final Message Section */
.final-message {
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--maroon);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
        text-align: center;
    }
    
    .hero-image {
        transform: none;
        margin-top: 2rem;
    }
    
    .about-image-container img {
        transform: none;
        margin-top: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .cta .text-lg-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animation Enhancements */
.feature-card,
.temple-preview-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-card.animated,
.temple-preview-card.animated {
    opacity: 1;
    transform: translateY(0);
}