/* =========================================
   COMPREHENSIVE COLOR VARIABLE SYSTEM
   ========================================= */

:root {
    /* ===== PRIMARY COLORS ===== */
    --primary-white: #ffffff;
    --saffron: #ff6b35;
    --golden: #ffd700;
    
    /* ===== BACKGROUND COLORS ===== */
    --bg-light-beige: #faf8f5;
    --bg-dark-beige: #f5f1eb;
    --bg-white: #ffffff;
    --bg-dark: #2c3e50;
    --bg-gradient-light: linear-gradient(135deg, #faf8f5 0%, #f0ebe3 50%, #e8ddd4 100%);
    --bg-gradient-hero: linear-gradient(135deg, #faf8f5 0%, #f0ebe3 100%);
    --bg-gradient-card: linear-gradient(45deg, #ff6b35, #ffd700);
    
    /* ===== TEXT COLORS ===== */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #ffffff;
    --text-footer: #bdc3c7;
    --text-placeholder: #7f8c8d;
    
    /* ===== ACCENT COLORS ===== */
    --accent-saffron: #ff6b35;
    --accent-golden: #ffd700;
    --accent-border: #f5f1eb;
    
    /* ===== SHADOW COLORS ===== */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --shadow-saffron: rgba(255, 107, 53, 0.3);
    --shadow-saffron-light: rgba(255, 107, 53, 0.1);
    --shadow-saffron-medium: rgba(255, 107, 53, 0.2);
    
    /* ===== OVERLAY COLORS ===== */
    --overlay-navbar: rgba(255, 255, 255, 0.95);
    --overlay-navbar-scrolled: rgba(255, 255, 255, 0.98);
    --overlay-modal: rgba(0, 0, 0, 0.9);
    --overlay-dark: rgba(0, 0, 0, 0.3);
    
    /* ===== BORDER COLORS ===== */
    --border-light: #f5f1eb;
    --border-dark: #34495e;
    --border-footer: #34495e;
    
    /* ===== BUTTON COLORS ===== */
    --btn-primary-bg: #ff6b35;
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: transparent;
    --btn-secondary-text: #2c3e50;
    --btn-secondary-border: #2c3e50;
    --btn-outline-bg: transparent;
    --btn-outline-text: #ff6b35;
    --btn-outline-border: #ff6b35;
    
    /* ===== INPUT COLORS ===== */
    --input-bg: #faf8f5;
    --input-border: #f5f1eb;
    --input-border-focus: #ff6b35;
    --input-text: #333333;
    
    /* ===== ICON COLORS ===== */
    --icon-primary: #ff6b35;
    --icon-white: #ffffff;
    
    /* ===== SOCIAL COLORS ===== */
    --social-bg: #ff6b35;
    --social-hover: #ffd700;
    
    /* ===== NAVBAR COLORS ===== */
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-text: #2c3e50;
    --navbar-hover: #ff6b35;
    --navbar-underline: #ff6b35;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light-beige);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation with optimized performance */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 20px var(--shadow-light);
    will-change: background-color, box-shadow;
}

.navbar.scrolled {
    background: var(--overlay-navbar-scrolled);
    box-shadow: 0 2px 30px var(--shadow-hover);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-saffron);
    text-decoration: none;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--navbar-text);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--navbar-hover);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--navbar-underline);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--navbar-text);
    margin: 3px 0;
    transition: 0.3s;
}

/* Enhanced Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-gradient-light);
    overflow: hidden;
    will-change: transform;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    will-change: transform;
}

.mandala-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-golden) 0%, rgba(255, 215, 0, 0.3) 30%, transparent 70%);
    opacity: 0.1;
    animation: rotate 120s linear infinite;
    will-change: transform;
}

.geometric-patterns {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pattern-circle {
    position: absolute;
    border: 2px solid var(--accent-saffron);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.pattern-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.pattern-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
}

.pattern-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: 3s;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
    will-change: transform;
    filter: drop-shadow(0 0 10px var(--shadow-saffron));
}

.icon-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.icon-2 {
    top: 25%;
    right: 12%;
    animation-delay: 1.5s;
}

.icon-3 {
    bottom: 35%;
    left: 15%;
    animation-delay: 3s;
}

.icon-4 {
    bottom: 25%;
    right: 8%;
    animation-delay: 4.5s;
}

.icon-5 {
    top: 45%;
    left: 5%;
    animation-delay: 2s;
}

.icon-6 {
    top: 55%;
    right: 20%;
    animation-delay: 5.5s;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-saffron);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 6s linear infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 80%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 30%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 60%;
    animation-delay: 4s;
}

.particle:nth-child(6) {
    top: 70%;
    left: 10%;
    animation-delay: 5s;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-saffron);
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--shadow-light);
    backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 1.1rem;
}

.hero-title {
    font-size: 5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--shadow-light);
    line-height: 1.1;
}

.title-line-1 {
    display: block;
    background: linear-gradient(135deg, var(--accent-saffron), var(--accent-golden));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line-2 {
    display: block;
    color: var(--text-dark);
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--accent-saffron);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-text {
    color: var(--accent-saffron);
    font-weight: 600;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-golden);
    opacity: 0.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-light);
    backdrop-filter: blur(10px);
    min-width: 100px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-saffron);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
    background: transparent;
    color: var(--btn-primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-saffron);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border-color: var(--btn-secondary-border);
}

.btn-secondary:hover {
    background: var(--btn-secondary-border);
    color: var(--primary-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.btn-outline {
    background: var(--btn-outline-bg);
    color: var(--btn-outline-text);
    border-color: var(--btn-outline-border);
}

.btn-outline:hover {
    background: var(--btn-outline-border);
    color: var(--primary-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-saffron);
}

.btn i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-saffron);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Bhajans Section */
.bhajans-section {
    background: var(--bg-white);
    position: relative;
    z-index: 10;
    margin-top: -1px;
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
}

.search-box input:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px var(--shadow-saffron-light);
}

.bhajans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.bhajan-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-light);
}

.bhajan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-hover);
    border-color: var(--accent-saffron);
}

.bhajan-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.bhajan-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.bhajan-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.bhajan-duration {
    background: var(--bg-light-beige);
    padding: 5px 10px;
    border-radius: 15px;
}

/* Tirth Sthal Section */
.tirth-section {
    background: var(--bg-light-beige);
    position: relative;
    z-index: 10;
}

.tirth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tirth-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tirth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.tirth-image {
    width: 100%;
    height: 200px;
    background: var(--bg-gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-white);
}

.tirth-content {
    padding: 25px;
}

.tirth-content h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.tirth-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.tirth-location {
    display: flex;
    align-items: center;
    color: var(--accent-saffron);
    font-size: 0.9rem;
}

.tirth-location i {
    margin-right: 5px;
}

/* About Section */
.about-section {
    background: var(--bg-light-beige);
    position: relative;
    z-index: 10;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

.principle-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light-beige);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light);
    border-color: var(--accent-saffron);
}

.principle-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.principle-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.principle-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-light-beige);
    position: relative;
    z-index: 10;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--bg-gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 2rem;
    transition: all 0.3s ease;
}

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

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--shadow-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Contact Section */
.contact-section {
    background: var(--bg-white);
    position: relative;
    z-index: 10;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-saffron);
    margin-top: 5px;
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px var(--shadow-saffron-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--accent-saffron);
}

.footer-section p {
    color: var(--text-footer);
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-footer);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-saffron);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--social-bg);
    color: var(--icon-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-footer);
    color: var(--text-footer);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-modal);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.lightbox-caption {
    color: var(--text-white);
    text-align: center;
    margin-top: 10px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.9, 0.9, 1);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes rotate {
    from {
        transform: translate3d(-50%, -50%, 0) rotate(0deg);
    }
    to {
        transform: translate3d(-50%, -50%, 0) rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -15px, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

@keyframes particleFloat {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translate3d(0, -100px, 0);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate3d(-50%, 0, 0);
    }
    40% {
        transform: translate3d(-50%, -8px, 0);
    }
    60% {
        transform: translate3d(-50%, -4px, 0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
    will-change: opacity, transform;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
    will-change: opacity, transform;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
    will-change: opacity, transform;
}

.zoom-in {
    animation: zoomIn 0.8s ease-out;
    will-change: opacity, transform;
}

.page-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-gradient-hero);
    overflow: hidden;
}

.nav-link.active {
    color: var(--accent-saffron);
}

.nav-link.active::after {
    width: 100%;
}

.philosophy-section {
    margin-top: 60px;
    padding: 40px 0;
    background: var(--bg-light-beige);
    border-radius: 15px;
}

.philosophy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.philosophy-text h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.philosophy-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.philosophy-text ul {
    list-style: none;
    padding-left: 0;
}

.philosophy-text ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.philosophy-text ul li::before {
    content: '•';
    color: var(--accent-saffron);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Enhanced animations */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent-saffron);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--accent-saffron);
    }
}

/* Enhanced card hover effects with hardware acceleration */
.bhajan-card,
.tirth-card,
.principle-card {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.bhajan-card:hover,
.tirth-card:hover,
.principle-card:hover {
    transform: translate3d(0, -8px, 0) scale(1.01);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--bg-light-beige);
    border-radius: 50%;
    border-top-color: var(--accent-saffron);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced form styles */
.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-saffron-medium);
}

/* Enhanced button styles */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 999;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow-light);
        padding: 20px 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 12px 0;
        padding: 8px 0;
    }
    
    .nav-link {
        padding: 12px 20px;
        display: block;
        font-size: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-item {
        min-width: 80px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text {
        grid-template-columns: 1fr;
    }
    
    .bhajans-grid,
    .tirth-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .navbar {
        height: auto;
        padding: 0;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 12px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo i {
        margin-right: 5px;
        font-size: 1.4rem;
    }
    
    .hamburger {
        padding: 8px;
    }
    
    .bar {
        width: 20px;
        height: 2.5px;
        margin: 4px 0;
    }
    
    .hero {
        min-height: 80vh;
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }
    
    .hero-stats {
        gap: 0.5rem;
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        min-width: 70px;
        padding: 10px 8px;
        border-radius: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 3px;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        min-height: 44px;
        font-size: 0.95rem;
    }
    
    .btn i {
        margin-right: 6px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .search-box {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .search-box input {
        padding: 12px 12px 12px 40px;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text {
        grid-template-columns: 1fr;
    }
    
    .bhajans-grid,
    .tirth-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .bhajan-card,
    .tirth-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .bhajan-card h3,
    .tirth-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .bhajan-card p,
    .tirth-content p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .principle-card {
        padding: 20px 12px;
        border-radius: 12px;
    }
    
    .principle-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .principle-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .principle-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .contact-item {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .contact-item i {
        font-size: 1.3rem;
        min-width: 20px;
    }
    
    .contact-item h4 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 1rem;
        min-height: 44px;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Theme Switcher Mobile */
    .theme-toggle {
        right: 12px;
        bottom: 12px;
        width: 48px;
        height: 48px;
        min-height: 48px;
    }
    
    .theme-panel {
        right: 8px;
        left: 8px;
        bottom: 70px;
        width: auto;
        max-width: 100%;
    }
    
    .theme-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .theme-swatch {
        height: 50px;
    }
    
    .theme-swatch .label {
        font-size: 0.65rem;
    }
}

/* Theme Switcher Panel */
.theme-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    box-shadow: 0 8px 24px var(--shadow-saffron-light);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.theme-toggle:hover { transform: scale(1.04); }

.theme-panel {
    position: fixed;
    right: 18px;
    bottom: 86px;
    width: 320px;
    max-width: calc(100% - 40px);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 20px 50px var(--shadow-hover);
    padding: 14px;
    z-index: 3000;
    transform-origin: bottom right;
}
.theme-panel h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
}
.theme-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}
.theme-swatch {
    height: 56px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-swatch:focus,
.theme-swatch:hover {
    outline: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.theme-swatch .label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    pointer-events: none;
}
.theme-actions {
    display:flex;
    gap:8px;
    margin-top:10px;
}
.theme-actions button{
    flex:1;
    padding:8px 10px;
    border-radius:8px;
    border: none;
    cursor: pointer;
    font-weight:600;
}
.theme-actions .reset-btn{ background: var(--btn-secondary-bg); color: var(--btn-secondary-text); border:1px solid var(--btn-secondary-border); }
.theme-actions .random-btn{ background: var(--btn-primary-bg); color: var(--btn-primary-text); }

/* small screen panel position tweak */
@media (max-width: 520px){
    .theme-panel { right: 12px; left: 12px; bottom: 78px; }
}
