/* CSS Custom Properties - Design System */
:root {
    /* Colors */
    --background: hsl(35, 50%, 98%);
    --foreground: hsl(0, 10%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 10%, 15%);
    --primary: hsl(24, 100%, 50%);
    --primary-foreground: hsl(0, 0%, 98%);
    --secondary: hsl(45, 80%, 95%);
    --secondary-foreground: hsl(0, 50%, 20%);
    --muted: hsl(45, 80%, 95%);
    --muted-foreground: hsl(0, 10%, 45%);
    --sacred: hsl(24, 100%, 50%);
    --sacred-foreground: hsl(0, 0%, 98%);
    --gold: hsl(45, 100%, 65%);
    --gold-foreground: hsl(0, 50%, 20%);
    --maroon: hsl(0, 100%, 25%);
    --maroon-foreground: hsl(0, 0%, 98%);
    --border: hsl(214, 32%, 91%);
    --input: hsl(214, 32%, 91%);
    
    /* Gradients */
    --gradient-sacred: linear-gradient(135deg, hsl(24, 100%, 50%), hsl(45, 100%, 65%));
    --gradient-divine: linear-gradient(180deg, hsl(35, 50%, 98%), hsl(45, 80%, 95%));
    --gradient-hero: linear-gradient(135deg, hsl(0, 100%, 25%), hsl(24, 100%, 50%));
    
    /* Shadows */
    --shadow-sacred: 0 10px 30px -10px hsl(24, 100%, 50%, 0.3);
    --shadow-divine: 0 20px 40px -15px hsl(45, 100%, 65%, 0.4);
    
    /* Border radius */
    --radius: 0.5rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: var(--shadow-sacred);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sacred);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--sacred);
    background-color: var(--sacred);
    background-color: hsl(24, 100%, 50%, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--foreground);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    background: var(--gradient-hero);
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: var(--primary-foreground);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    z-index: 2;
}

.hero-image {
    margin-bottom: 2rem;
}

.hero-img {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-divine);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    min-height: 2.5rem;
}

.btn-primary {
    background-color: var(--sacred);
    color: var(--sacred-foreground);
}

.btn-primary:hover {
    background-color: hsl(24, 100%, 45%);
}

.btn-outline {
    border: 1px solid currentColor;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: currentColor;
    color: var(--sacred);
}

.btn-white {
    background-color: white;
    color: var(--sacred);
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.btn-outline-white {
    border: 1px solid white;
    color: white;
    background-color: transparent;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--sacred);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: hsl(45, 80%, 95%, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--sacred);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sacred);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-divine);
    transform: translateY(-2px);
}

.service-card-special {
    background: linear-gradient(135deg, hsl(24, 100%, 50%, 0.1), hsl(45, 100%, 65%, 0.1));
}

@media (min-width: 768px) and (max-width: 1023px) {
    .service-card-special {
        grid-column: span 2;
    }
}

.service-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-content-center {
    text-align: center;
}

.service-icon {
    font-size: 3.75rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sacred);
    margin-bottom: 0.75rem;
}

.service-text {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

/* Call to Action */
.cta {
    padding: 4rem 0;
    background: var(--gradient-sacred);
    color: white;
}

.cta-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* Page Content */
.page-content {
    padding: 4rem 0;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.125rem);
    font-weight: 700;
    color: var(--sacred);
    margin-bottom: 1.5rem;
}

.title-divider {
    width: 6rem;
    height: 4px;
    background: linear-gradient(to right, var(--sacred), var(--gold));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.page-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

/* About Page */
.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-subtitle {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--sacred);
    margin-bottom: 1.5rem;
}

.about-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-paragraphs p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.about-image {
    text-align: center;
}

.nataraja-img {
    width: 100%;
    max-width: 28rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-divine);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.values-section {
    margin-bottom: 4rem;
}

.values-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-card {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sacred);
    transition: var(--transition);
}

.value-card:hover {
    box-shadow: var(--shadow-divine);
    transform: translateY(-2px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sacred);
    margin-bottom: 0.75rem;
}

.value-text {
    color: var(--muted-foreground);
}

.history-section {
    background-color: hsl(45, 80%, 95%, 0.3);
    border-radius: var(--radius);
    padding: 2rem;
}

.history-content {
    max-width: 64rem;
    margin: 0 auto;
}

.history-content p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.mantra-section {
    text-align: center;
    margin-top: 2rem;
}

.mantra-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sacred);
}

.mantra-meaning {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

/* Gallery Page */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
    color: var(--foreground);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--sacred);
    color: var(--sacred-foreground);
    border-color: var(--sacred);
}

.gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    background-color: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sacred);
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-divine);
    transform: translateY(-2px);
}

.gallery-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-content {
    padding: 1rem;
}

.gallery-title {
    font-weight: 600;
    color: var(--sacred);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.gallery-description {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.om-divider {
    text-align: center;
    font-size: 3.75rem;
    color: hsl(24, 100%, 50%, 0.3);
    margin: 4rem 0;
}

.gallery-cta {
    background: linear-gradient(to right, hsl(24, 100%, 50%, 0.1), hsl(45, 100%, 65%, 0.1));
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

/* Contact Page */
.contact-content {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--sacred);
    margin-bottom: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sacred);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    background-color: hsl(24, 100%, 50%, 0.1);
    padding: 0.75rem;
    border-radius: var(--radius);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-card-title {
    font-weight: 600;
    color: var(--sacred);
    margin-bottom: 0.5rem;
}

.contact-text {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.timing-details p {
    margin-bottom: 0.25rem;
}

.contact-form-card {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-divine);
    overflow: hidden;
}

.form-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.form-title {
    font-size: 1.5rem;
    color: var(--sacred);
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--muted-foreground);
}

.contact-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.form-input,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background-color: var(--card);
    color: var(--foreground);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--sacred);
    box-shadow: 0 0 0 2px hsl(24, 100%, 50%, 0.2);
}

.form-textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.additional-info {
    background: linear-gradient(to right, hsl(24, 100%, 50%, 0.1), hsl(45, 100%, 65%, 0.1));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sacred);
    margin-bottom: 1rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-list p {
    color: var(--muted-foreground);
}

.map-section {
    margin-top: 4rem;
}

.map-card {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-divine);
    overflow: hidden;
}

.map-placeholder {
    background-color: hsl(45, 80%, 95%, 0.3);
    padding: 2rem;
    text-align: center;
}

.map-icon {
    font-size: 3.75rem;
    margin-bottom: 1rem;
}

.map-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sacred);
    margin-bottom: 0.5rem;
}

.map-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.map-description {
    color: var(--muted-foreground);
}

/* Footer */
.footer {
    background-color: var(--maroon);
    color: var(--maroon-foreground);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    text-align: center;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: hsl(0, 0%, 98%, 0.8);
    margin-bottom: 1rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .footer-info {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}

.footer-location,
.footer-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone {
    font-weight: 600;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 4rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 4rem);
        background-color: var(--card);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Utilities */
.hidden {
    display: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Footer Social and Credit Styles */
.footer-social {
    margin-top: 1rem;
}

.social-link {
    color: var(--maroon-foreground);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-credit {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.credit-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.credit-link:hover {
    color: var(--gold-foreground);
    text-shadow: 0 0 10px var(--gold);
}

/* Map Container Styles */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sacred);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}