/* ===== CSS Variables & Root ===== */
:root {
    /* Colors - Vibrant & Modern */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #14b8a6;
    --accent: #f59e0b;
    --accent-pink: #ec4899;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);

    /* Backgrounds */
    --bg-light: #f8fafc;
    --bg-section-alt: #f1f5f9;
    --bg-dark: #1a1a2e;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    /* Spacing */
    --section-padding: 5rem 1.5rem;
    --container-max: 1200px;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

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

img {
    max-width: 100%;
    display: block;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
    transition: var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.5rem;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition-normal);
}

.navbar.scrolled .nav-logo {
    color: var(--primary);
}

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

.nav-link {
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-normal);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar.scrolled .nav-link {
    color: var(--text-primary);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition-normal);
}

.navbar.scrolled .nav-toggle span {
    background: var(--text-primary);
}

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

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

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-location {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-btn {
    display: inline-block;
    background: var(--text-light);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--accent);
    color: var(--text-light);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* ===== Section Styles ===== */
.section {
    padding: var(--section-padding);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.about-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    color: var(--text-light);
}

.about-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.about-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.about-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.about-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.about-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.about-location-card {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.about-location-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-location-card p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.95;
}

.about-location-card strong {
    color: var(--accent);
}

/* ===== Temples Section ===== */
.temples {
    background: linear-gradient(180deg, var(--bg-section-alt) 0%, var(--bg-light) 100%);
}

.temples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.temple-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    color: var(--text-light);
}

.temple-card:nth-child(1) {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}

.temple-card:nth-child(2) {
    background: linear-gradient(135deg, #5f27cd 0%, #a29bfe 100%);
}

.temple-card:nth-child(3) {
    background: linear-gradient(135deg, #ff9ff3 0%, #f368e0 100%);
}

.temple-card:nth-child(4) {
    background: linear-gradient(135deg, #54a0ff 0%, #5f27cd 100%);
}

.temple-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.temple-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.temple-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.temple-card h3 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.temple-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.temple-manager {
    background: var(--gradient-warm);
    color: var(--text-light);
    padding: 1.25rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.temple-manager strong {
    font-weight: 600;
}

/* ===== Education Section ===== */
.education {
    background: var(--bg-light);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.education-card {
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    color: var(--text-light);
}

.education-card:nth-child(1) {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.education-card:nth-child(2) {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.education-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.education-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.education-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.education-card h3 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.education-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.education-note {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-left: 4px solid var(--secondary);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1rem;
}

.education-note strong {
    color: var(--secondary);
}

/* ===== Structure Section ===== */
.structure {
    background: linear-gradient(180deg, var(--bg-section-alt) 0%, var(--bg-light) 100%);
}

.structure-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sahi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.sahi-card {
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    color: var(--text-light);
}

.sahi-card:nth-child(1) {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
}

.sahi-card:nth-child(2) {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.sahi-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.sahi-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.sahi-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.sahi-card h3 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.sahi-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.supreme-governance {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.supreme-governance h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.supreme-governance p {
    font-size: 1rem;
    opacity: 0.95;
}

.supreme-governance strong {
    color: var(--accent);
}

/* ===== Leadership Section ===== */
.leadership {
    background: var(--bg-light);
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.leader-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.leader-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Style 1: Primary Purple Gradient */
.leader-card.style-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.leader-card.style-primary .leader-role {
    color: var(--accent);
}

.leader-card.style-primary p:last-child {
    color: rgba(255, 255, 255, 0.85);
}

/* Style 2: Secondary Teal Gradient */
.leader-card.style-secondary {
    background: var(--gradient-secondary);
    color: var(--text-light);
}

.leader-card.style-secondary .leader-role {
    color: #fef3c7;
}

.leader-card.style-secondary p:last-child {
    color: rgba(255, 255, 255, 0.85);
}

/* Style 3: Warm Orange/Red Gradient */
.leader-card.style-warm {
    background: var(--gradient-warm);
    color: var(--text-light);
}

.leader-card.style-warm .leader-role {
    color: #fef3c7;
}

.leader-card.style-warm p:last-child {
    color: rgba(255, 255, 255, 0.85);
}

/* Style 4: Accent Pink/Rose */
.leader-card.style-accent {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    color: var(--text-light);
}

.leader-card.style-accent .leader-role {
    color: #fef3c7;
}

.leader-card.style-accent p:last-child {
    color: rgba(255, 255, 255, 0.85);
}

.leader-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.leader-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.leader-role {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.leader-card.supreme .leader-role {
    color: var(--accent);
}

.leader-card p:last-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.leader-card.supreme p:last-child {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== Youth Clubs Section ===== */
.youth {
    background: linear-gradient(180deg, var(--bg-section-alt) 0%, var(--bg-light) 100%);
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.club-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    color: var(--text-light);
}

.club-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.club-card:nth-child(2) {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
}

.club-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.club-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.club-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.club-icon {
    font-size: 2.5rem;
}

.club-header h3 {
    color: #fff;
    font-size: 1.3rem;
}

.club-president {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.club-president strong {
    color: #fff;
}

.club-card>p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.club-activities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.club-activities span {
    background: var(--gradient-secondary);
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
}

.youth-note {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1rem;
}

/* ===== Environment Section ===== */
.environment {
    background: linear-gradient(180deg, #e8f5e9 0%, var(--bg-light) 100%);
}

.environment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.env-card {
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    color: var(--text-light);
}

.env-card:nth-child(1) {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.env-card:nth-child(2) {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
}

.env-card:nth-child(3) {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.env-card:nth-child(4) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.env-card:nth-child(5) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.env-card:nth-child(6) {
    background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
}

.env-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.env-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.env-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.env-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #fff;
}

.env-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-normal);
}

.env-card:hover p {
    color: #fff;
}

/* ===== Festivals Section ===== */
.festivals {
    background: var(--bg-light);
}

.festivals-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.festival-item {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    opacity: 0;
    transform: scale(0.9);
}

.festival-item.visible {
    opacity: 1;
    transform: scale(1);
}

.festival-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
    background: var(--gradient-warm);
    color: var(--text-light);
}

.festival-icon {
    font-size: 1.5rem;
}

.festival-item span:last-child {
    font-weight: 500;
    font-size: 0.95rem;
}

.festivals-note {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1rem;
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    width: 100%;
    height: auto;
}

.footer-content {
    padding: 4rem 1.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-main h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.footer-location {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 1.5rem;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.footer-info {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    :root {
        --section-padding: 4rem 1.25rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

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

    .nav-link {
        color: var(--text-primary);
        font-size: 1.1rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary);
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem 1rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-location {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }

    .hero-btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .about-content,
    .temples-grid,
    .education-grid,
    .sahi-cards,
    .leaders-grid,
    .clubs-grid {
        gap: 1rem;
    }

    .about-card,
    .temple-card,
    .education-card,
    .sahi-card,
    .leader-card,
    .club-card {
        padding: 1.5rem;
    }

    .about-location-card,
    .supreme-governance {
        padding: 1.5rem;
    }

    .education-note,
    .youth-note,
    .festivals-note {
        padding: 1.25rem 1.5rem;
    }

    .environment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .env-card {
        padding: 1.25rem;
    }

    .festivals-showcase {
        gap: 0.75rem;
    }

    .festival-item {
        padding: 0.75rem 1.25rem;
    }

    .footer-content {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-main h2 {
        font-size: 1.75rem;
    }

    .footer-tagline {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 0.75rem;
    }

    html {
        font-size: 15px;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .about-icon,
    .temple-icon,
    .sahi-icon,
    .leader-icon {
        font-size: 2.5rem;
    }

    .education-icon {
        font-size: 3rem;
    }

    .club-icon {
        font-size: 2rem;
    }

    .env-icon {
        font-size: 2rem;
    }

    .environment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .festivals-showcase {
        flex-direction: column;
        align-items: center;
    }

    .festival-item {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* ===== Animation Classes ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus States */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .navbar,
    .hero-wave,
    .footer-wave {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    .section {
        padding: 1rem;
        page-break-inside: avoid;
    }
}