/* CSS Variables for Temple Theme */
:root {
    /* Spiritual Color Palette - Warm Earth Tones with Sacred Saffron */
    --primary-color: #FF6B35;
    --primary-dark: #D84315;
    --primary-light: #FFB299;
    --secondary-color: #8B4513;
    --secondary-dark: #5D2E0F;
    --accent-gold: #D4AF37;
    --accent-saffron: #FF9933;
    
    /* Neutral Colors */
    --bg-light: #FFF8F0;
    --bg-white: #FFFFFF;
    --text-dark: #2C1810;
    --text-medium: #5D4E37;
    --text-light: #8B7355;
    --border-color: #E8D5C4;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(139, 69, 19, 0.1);
    --shadow-md: 0 4px 16px rgba(139, 69, 19, 0.15);
    --shadow-lg: 0 8px 32px rgba(139, 69, 19, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-medium);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-icon {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    transition: var(--transition-normal);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle i {
    width: 28px;
    height: 28px;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./images/hero-temple.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(44, 24, 16, 0.4), rgba(44, 24, 16, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    max-width: 800px;
    padding: var(--spacing-md);
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-badge i {
    width: 20px;
    height: 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn i {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    width: 32px;
    height: 32px;
    color: var(--bg-white);
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.about-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid var(--border-color);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-saffron));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    width: 40px;
    height: 40px;
    color: var(--bg-white);
    stroke-width: 2;
}

.about-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* History Section */
.history {
    background: var(--bg-light);
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.history-text {
    padding-right: var(--spacing-md);
}

.timeline {
    margin-top: var(--spacing-md);
}

.timeline-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    bottom: -32px;
    width: 2px;
    background: var(--border-color);
}

.timeline-marker {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 4px var(--border-color);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    color: var(--text-medium);
}

.history-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.history-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.9), transparent);
    color: var(--bg-white);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.image-caption i {
    width: 20px;
    height: 20px;
}

/* Legend Section */
.legend {
    background: var(--bg-white);
}

.legend-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.legend-intro,
.legend-text,
.legend-conclusion {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: var(--spacing-md);
    color: var(--text-medium);
}

.legend-intro {
    font-weight: 500;
    color: var(--text-dark);
}

.legend-conclusion {
    font-style: italic;
    color: var(--primary-dark);
    font-weight: 500;
}

/* Visit Section */
.visit {
    background: var(--bg-light);
}

.visit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.visit-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.visit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.visit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.visit-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary-dark);
    stroke-width: 2;
}

.visit-card h3 {
    margin-bottom: var(--spacing-sm);
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: var(--spacing-xs) 0;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-color);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: var(--text-dark);
}

/* Gallery Section */
.gallery {
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: var(--transition-slow);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.9), transparent);
    color: var(--bg-white);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay i {
    width: 24px;
    height: 24px;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-details {
    margin-top: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-item i {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: var(--spacing-xs);
}

.contact-item p {
    color: var(--text-medium);
    margin: 0;
}

.contact-map {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-gold));
    color: var(--text-dark);
    text-align: center;
    padding: var(--spacing-md);
}

.map-placeholder i {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
}

.map-placeholder p {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.map-placeholder span {
    color: var(--text-medium);
}

/* Footer */
.footer {
    background: var(--secondary-dark);
    color: var(--bg-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: var(--spacing-sm);
}

.footer-brand i {
    width: 32px;
    height: 32px;
}

.footer-section p {
    color: rgba(255, 248, 240, 0.8);
    line-height: 1.8;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: rgba(255, 248, 240, 0.8);
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
    padding-left: var(--spacing-xs);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 248, 240, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--accent-gold);
    transform: translateY(-4px);
}

.social-links i {
    width: 20px;
    height: 20px;
    color: var(--bg-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 248, 240, 0.2);
    color: rgba(255, 248, 240, 0.6);
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .history-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .visit-grid {
        grid-template-columns: 1fr;
    }
}