/* Light Theme with Unique Color Names (Retained for thematic depth) */
:root {
    --sky-whisper: #E0F7FA; /* Light Blue for backgrounds */
    --misty-dawn: #F0F4F8; /* Off-white for cards/sections */
    --ocean-breeze: #00BCD4; /* Primary blue */
    --emerald-glow: #4CAF50; /* Success/accent green */
    --golden-radiance: #FFC107; /* Warning/accent gold */
    --lavender-haze: #9C27B0; /* Secondary accent purple */
    --charcoal-depth: #263238; /* Dark text */
    --silver-mist: #78909C; /* Muted text */
    --white-cloud: #FFFFFF; /* Pure white */
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-deep: 0 8px 16px rgba(0, 0, 0, 0.16);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--charcoal-depth);
    background-color: var(--sky-whisper);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--ocean-breeze), var(--lavender-haze));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- THEME DEFINITIONS (Simplified for efficiency) --- */
:root, [data-theme="default"] {
    --primary-color: #0b3a60;
    --secondary-color: #f8f9fa;
    --text-color: #212529;
}
[data-theme="icy-cool"] {
    --primary-color: #4a90e2;
    --secondary-color: #e0f7fa;
    --text-color: #004d7a;
}
/* ... Include all 4 other theme definitions here as in original CSS ... */

/* --- APPLYING THEME VARIABLES --- */
body {
    background-color: var(--secondary-color);
    color: var(--text-color);
}
.navbar {
    background-color: var(--white-cloud) !important;
}
.navbar-brand, .nav-link {
    color: var(--primary-color) !important;
}
.navbar-brand i {
    color: var(--primary-color);
}
.btn-primary, .btn-outline-primary {
    border-color: var(--primary-color);
}
.btn-primary {
    background: var(--primary-color);
}
.btn-outline-primary {
    color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}
.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(var(--primary-color-rgb), 0.1); /* Assuming a way to get RGB from theme vars */
}
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background: rgba(var(--primary-color-rgb), 0.15); 
}
.text-primary {
    color: var(--primary-color) !important;
}
.bg-light {
    background-color: var(--misty-dawn) !important;
}
/* New Q&A styles */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}
.accordion-button {
    background-color: var(--white-cloud);
    color: var(--charcoal-depth);
    font-weight: 600;
    padding: 1rem 1.25rem;
    transition: background-color 0.2s;
}
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 188, 212, 0.25);
}
.accordion-body {
    padding: 1.25rem;
    background-color: var(--misty-dawn);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* Navigation Styles - Enhanced Mobile UX */
.navbar {
    padding: 0.5rem 0; /* Smaller padding on mobile */
}

.nav-link {
    font-size: 0.95rem; /* Slightly smaller text */
}

@media (max-width: 991px) {
    /* Mobile Menu Style */
    .navbar-collapse {
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    .nav-link {
        justify-content: flex-start; /* Align text left in mobile menu */
        padding: 0.75rem 1rem !important;
    }
    .navbar-nav {
        gap: 0;
    }
    .theme-selector {
        width: 100%; /* Full width for better tap target */
        margin: 1rem 0;
    }
    .theme-dropdown {
        position: relative !important; /* Forces dropdown content inline on mobile */
        top: 0 !important;
        left: 0 !important;
        margin-top: 0.5rem !important;
        padding: 0.75rem;
        width: 100%;
        border: none;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
    }
    .theme-dropdown.d-none {
        display: none !important;
    }
}


/* Hero Section - Mobile Focus */
@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.2rem;
        text-align: center;
    }
    .hero-content .lead {
        font-size: 1rem;
        text-align: center;
    }
    .hero-image {
        margin-top: 2rem;
    }
    .hero-image img {
        height: 250px;
        object-fit: cover;
    }
    .d-flex.flex-wrap.gap-3 {
        justify-content: center;
    }
    .btn-lg {
        padding: 10px 18px;
        font-size: 1rem;
    }
}

/* Card Sections - Better Mobile Stacking */
.principle-icon, .tirthankara-number {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.principle-card, .vow-card, .tirthankara-card, .festival-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* Tirthankara List Page - Mobile Sleekness */
@media (max-width: 768px) {
    .timeline {
        padding: 0 1rem;
    }
    .tirthankara-card {
        width: 100% !important; 
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left;
        padding: 1.5rem;
    }
    .symbol-image-container {
        width: 100px;
        height: 100px;
        float: left;
        margin-right: 1rem;
    }
    .tirthankara-card .info {
        overflow: hidden;
    }
    .tirthankara-card .info h3 {
        font-size: 1.3rem;
    }
    .tirthankara-card .info .hindi-name {
        font-size: 1.1rem;
    }
    .tirthankara-card .info .hindi-desc {
        display: none; /* Hide detailed Hindi description on mobile to save space */
    }
    .moksha-sthal {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

/* Footer - Mobile Stacking */
@media (max-width: 767px) {
    .footer-brand, .footer-section {
        text-align: center;
    }
    .footer-stats {
        justify-content: center;
    }
    .footer-links a {
        justify-content: center;
    }
    .footer-social .social-title, .social-icons {
        justify-content: center;
    }
}

/* New: Q&A Section Wrapper */
.qna-section {
    padding: 3rem 0;
    background-color: var(--white-cloud);
}
.qna-section .accordion {
    max-width: 900px;
    margin: 0 auto;
}
/* ... rest of the original style.css content remains ... */

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--ocean-breeze), var(--lavender-haze));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Styles */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 188, 212, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ocean-breeze) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--lavender-haze) !important;
}

.navbar-brand i {
    font-size: 2rem;
    color: var(--ocean-breeze);
    transition: all 0.3s ease;
}

.navbar-brand:hover i {
    color: var(--lavender-haze);
    transform: rotate(10deg);
}

.navbar-nav {
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    color: var(--charcoal-depth) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--ocean-breeze) !important;
    transform: translateY(-2px);
    background: rgba(0, 188, 212, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, var(--ocean-breeze), var(--lavender-haze));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link.active {
    color: var(--ocean-breeze) !important;
    font-weight: 600;
    background: rgba(0, 188, 212, 0.1);
}

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

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25);
}

.navbar-toggler:hover {
    background: rgba(0, 188, 212, 0.1);
}

.navbar-collapse {
    justify-content: space-between;
    align-items: center;
}

/* Gallery */

#photos .col-md-4 {
    padding: 10px;
}

.img-thumbnail-btn {
    border: none;
    padding: 0;
    background: none;
    width: 100%;
    cursor: pointer;
  }

  .gallery-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    aspect-ratio: 1/1;
    transition: transform 0.3s ease;
  }

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

    @media (max-width: 576px) {
    .gallery-img {
      aspect-ratio: auto;
    }
}

    /* --- THEME DEFINITIONS --- */
        :root, [data-theme="default"] {
            --primary-color: #0b3a60;
            --secondary-color: #f8f9fa;
            --text-color: #212529;
            --navbar-bg: #ffffff;
            --navbar-text: #0b3a60;
        }
        [data-theme="icy-cool"] {
            --primary-color: #4a90e2;
            --secondary-color: #e0f7fa;
            --text-color: #004d7a;
            --navbar-bg: #ffffff;
            --navbar-text: #4a90e2;
        }
        [data-theme="ocean-breeze"] {
            --primary-color: #0077b6;
            --secondary-color: #e3f2fd;
            --text-color: #023e8a;
            --navbar-bg: #ffffff;
            --navbar-text: #0077b6;
        }
        [data-theme="sunset-glow"] {
            --primary-color: #d9534f;
            --secondary-color: #fff3e0;
            --text-color: #9d3e3a;
            --navbar-bg: #ffffff;
            --navbar-text: #d9534f;
        }
        [data-theme="forest-zen"] {
            --primary-color: #4CAF50;
            --secondary-color: #e8f5e9;
            --text-color: #2E7D32;
            --navbar-bg: #ffffff;
            --navbar-text: #4CAF50;
        }
        [data-theme="royal-purple"] {
            --primary-color: #8e44ad;
            --secondary-color: #f3e5f5;
            --text-color: #6a1b9a;
            --navbar-bg: #ffffff;
            --navbar-text: #8e44ad;
        }

        /* --- APPLYING THEME VARIABLES --- */
        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--secondary-color);
            color: var(--text-color);
            transition: background-color 0.3s ease;
        }
        .navbar {
            background-color: var(--navbar-bg) !important;
            transition: background-color 0.3s ease;
        }
        .navbar-brand, .nav-link {
            color: var(--navbar-text) !important;
            font-weight: 500;
        }
        .navbar-brand i {
            color: var(--primary-color);
        }
        .btn-outline-primary {
            color: var(--primary-color);
            border-color: var(--primary-color);
        }
        .btn-outline-primary:hover {
            background-color: var(--primary-color);
            color: white;
        }
        .dropdown-item.active, .dropdown-item:active {
            background-color: var(--primary-color);
        }
        
        /* Theme Selector Dropdown */
        .theme-preview {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 1px solid #ccc;
        }
        .default-preview { background: #0b3a60; }
        .icy-cool-preview { background: linear-gradient(135deg, #e0f7fa, #80deea); }
        .ocean-breeze-preview { background: linear-gradient(135deg, #e3f2fd, #64b5f6); }
        .sunset-glow-preview { background: linear-gradient(135deg, #fff3e0, #ffb74d); }
        .forest-zen-preview { background: linear-gradient(135deg, #e8f5e9, #a5d6a7); }
        .royal-purple-preview { background: linear-gradient(135deg, #f3e5f5, #ba68c8); }

/* Flowchart */
.font-hindi {
            font-family: 'Tiro Devanagari Hindi', serif;
        }

        /* Section and Heading Styles */
        .flowchart-section {
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;
            padding: 3rem 0;
        }
        .flowchart-header {
            text-align: center;
            margin-bottom: 3rem;
        }
        .flowchart-title {
            font-size: 2rem;
            font-weight: 700;
            color: #0b3a60;
        }
        .flowchart-subtitle {
            font-size: 1.75rem;
            font-weight: 400;
            color: #0b3a60;
        }

        /* Custom colors from the original design */
        .jainism-blue-text {
            color: #0b3a60;
        }
        .jainism-blue-border {
            border-color: #0b3a60;
        }

        /* Flowchart container setup */
        .flowchart-container {
            position: relative;
            width: 100%;
            max-width: 900px;
            aspect-ratio: 1 / 1;
            margin: auto;
        }

        /* SVG layer for the connecting lines */
        .flowchart-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            overflow: visible;
        }

        /* Styling for the central topic node with a subtle gradient */
        .main-topic {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10;
            transition: all 0.3s ease-in-out;
            background: linear-gradient(145deg, #0d406b, #0b3a60);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.1);
            width: 12rem;
            height: 12rem;
            border-radius: 50%;
            color: white;
            font-weight: 700;
            text-align: center;
            padding: 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
        }

        /* Styling for the surrounding pillar nodes */
        .node {
            position: absolute;
            z-index: 10;
            transform: translate(-50%, -50%);
            transition: all 0.3s ease-in-out;
            background-color: #ffffff;
            box-shadow: 0 8px 25px rgba(11, 58, 96, 0.08);
            width: 11rem;
            height: 11rem;
            border-radius: 50%; /* Makes the nodes circular */
            border: 4px solid #0b3a60;
            font-weight: 600;
            text-align: center;
            padding: 0.5rem;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .node-title {
            font-weight: 700;
            font-size: 1.1rem;
        }

        /* Enhanced hover effect for all nodes */
        .node:hover, .main-topic:hover {
            transform: translate(-50%, -50%) scale(1.05);
            box-shadow: 0 12px 30px rgba(11, 58, 96, 0.12);
            z-index: 11;
        }
        
        /* Logic for the description pop-up */
        .description {
            display: none; /* Hide description by default */
            position: absolute;
            top: 100%;
            margin-top: 0.5rem;
            width: 224px;
            background-color: white;
            padding: 0.75rem;
            border-radius: 0.5rem;
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
            border: 2px solid #0b3a60;
            font-size: 0.75rem;
            line-height: 1rem;
            z-index: 20;
        }
        .node:hover .description {
            display: block; /* Show description on hover */
        }

        /* Responsive adjustments for smaller screens */
        @media (max-width: 768px) {
            .flowchart-title { font-size: 1.75rem; }
            .flowchart-subtitle { font-size: 1.5rem; }
            .main-topic { width: 10rem; height: 10rem; font-size: 1rem; }
            .node { width: 9rem; height: 9rem; }
            .node-title { font-size: 1rem; }
        }

/* Base styles with the fixed background */
        body {
            font-family: 'Inter', sans-serif;
            color: #333;
            margin: 0;
            background-image: 
                radial-gradient(circle at center, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.3) 100%),
                url('https://upload.wikimedia.org/wikipedia/commons/a/a3/Gommateshwara_Statue_in_Shravanabelagola%2C_Karnataka.jpg');
            background-attachment: fixed;
            background-position: center center;
            background-size: cover;
            background-repeat: no-repeat;
        }
        .font-hindi {
            font-family: 'Tiro Devanagari Hindi', serif;
        }

        /* Content wrapper */
        .content {
            padding: 2rem 1rem;
            position: relative;
            z-index: 1;
        }

        /* Main container and header */
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        .header {
            text-align: center;
            margin-bottom: 2rem;
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(12px);
            padding: 2rem;
            border-radius: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
        }
        .header h1 { font-size: 2.5rem; font-weight: 700; color: #0b3a60; }
        .header h2 { font-size: 2rem; color: #0b3a60; }
        .header p { font-size: 1.1rem; color: #4a4a4a; max-width: 800px; margin: 1rem auto 0; }
        
        /* Search Bar */
        .search-bar {
            margin: 2rem auto 4rem;
            max-width: 500px;
            position: relative;
        }
        .search-input {
            width: 100%;
            padding: 1rem 1.5rem;
            border-radius: 50px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            font-size: 1.1rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(5px);
        }
        .search-input::placeholder {
            color: #6c757d;
        }

        /* Timeline container */
        .timeline {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
        }

        /* SVG for drawing connecting lines */
        .timeline-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            overflow: visible;
        }
        .timeline-svg path {
            transition: stroke-dashoffset 1.5s cubic-bezier(0.47, 0, 0.745, 0.715);
            filter: drop-shadow(0 0 4px rgba(0,0,0,0.4));
        }
        .path-color-0 { stroke: #FF4136; } .path-color-1 { stroke: #FFDC00; } .path-color-2 { stroke: #FFFFFF; } .path-color-3 { stroke: #2ECC40; } .path-color-4 { stroke: #0074D9; }

        /* Tirthankara card styles */
        .tirthankara-card {
            position: relative;
            z-index: 1;
            padding: 1.5rem;
            margin-bottom: 2rem;
            background-color: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px);
            border-radius: 1rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.25);
            text-align: center;
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.3s;
            cursor: pointer;
        }
        .tirthankara-card:hover {
             box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }
        .tirthankara-card.is-visible { opacity: 1; transform: translateY(0); }
        
        .symbol-image-container {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            margin: 0 auto 1.5rem auto;
            background-color: rgba(255, 255, 255, 0.5);
            border: 2px solid var(--tirthankara-color, #e9ecef);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        .symbol-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .tirthankara-card .info h3 { margin: 0; font-size: 1.5rem; font-weight: 600; color: var(--tirthankara-text-color, #0b3a60); }
        .tirthankara-card .info .hindi-name { font-size: 1.25rem; color: var(--tirthankara-text-color, #343a40); }
        .tirthankara-card .info .hindi-desc { margin: 0.75rem 0; font-size: 1.1rem; line-height: 1.6; color: #495057; }
        .moksha-sthal { font-size: 1rem; font-weight: 600; color: #6c757d; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
        .moksha-sthal i { font-size: 1.1rem; color: #888; }
        
        /* --- REFINED MODAL STYLES --- */
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1050; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; backdrop-filter: blur(5px); }
        .modal-overlay.is-visible { opacity: 1; visibility: visible; }
        .modal-content { background: #fff; border-radius: 1rem; max-width: 700px; width: 90%; text-align: center; transform: scale(0.9); transition: transform 0.3s; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
        .modal-overlay.is-visible .modal-content { transform: scale(1); }
        
        .modal-banner {
            height: 300px;
            width: 100%;
            background-color: #2c3e50; /* Dark background for contrast */
            overflow: hidden;
        }
        .modal-banner img {
            width: 100%;
            height: 100%;
            object-fit: contain; /* THE FIX: Ensures no cropping */
        }

        .modal-body {
            padding: 2rem;
        }
        .modal-body h3 { font-size: 2rem; color: var(--tirthankara-text-color, #0b3a60); margin: 0; }
        .modal-body .hindi-name { font-size: 1.5rem; color: var(--tirthankara-text-color, #343a40); margin-bottom: 2rem; }
        
        .modal-details { 
            text-align: center;
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 1.5rem;
        }
        .modal-details .detail-item { 
            display: flex; 
            flex-direction: column; 
            align-items: center;
        }
        .modal-details strong { color: #0b3a60; font-size: 0.9rem; margin-bottom: 0.25rem; }
        .modal-details span { font-size: 1.1rem; }

        .close-modal { position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,0.3); color: white; border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 1.5rem; cursor: pointer; line-height: 30px; padding: 0; z-index: 10; }

        /* Back to Top Button */
        .back-to-top { position: fixed; bottom: 20px; right: 20px; width: 45px; height: 45px; background-color: #0b3a60; color: white; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 50; cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
        .back-to-top.is-visible { opacity: 1; visibility: visible; }
        
        /* ZIG-ZAG LAYOUT FOR DESKTOP */
        @media (min-width: 768px) {
            .tirthankara-card { width: calc(50% - 2rem); }
            .tirthankara-card:nth-child(odd) { margin-right: auto; }
            .tirthankara-card:nth-child(even) { margin-left: auto; }
        }

/* Namokar Mantra Custom Styling */
.mantra-card {
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
}

.mantra-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #7c2d12;
}

.mantra-script {
    font-size: 1.3rem;
    line-height: 2rem;
    font-family: 'Noto Serif', serif;
    text-align: center;
    color: #1f2937;
    margin-bottom: 20px;
}

.accordion-button {
    font-weight: 600;
    background-color: #fff;
    color: #0f172a;
}

.accordion-button.collapsed {
    color: #1e293b;
}

.accordion-body {
    font-size: 1rem;
    line-height: 1.7rem;
    color: #374151;
}

/* Jainism Flag Colors */
:root {
    --jain-flag-white: #FFFFFF;
    --jain-flag-red: #FF0000;
    --jain-flag-yellow: #FFFF00;
    --jain-flag-green: #00FF00;
    --jain-flag-blue: #0000FF;
}

.jain-flag-hero {
    background: linear-gradient(to right, var(--jain-flag-red), var(--jain-flag-yellow), var(--jain-flag-white), var(--jain-flag-green), var(--jain-flag-blue));
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.jain-flag-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay for text readability */
    z-index: 1;
}

.jain-flag-hero .container {
    position: relative;
    z-index: 2;
}

.jain-flag-hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.jain-flag-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.jain-flag-card {
    background-color: var(--jain-flag-white);
    color: #333;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.jain-flag-card h2 {
    color: var(--jain-flag-red);
}

.jain-flag-card h3 {
    color: var(--jain-flag-green);
}

.jain-flag-card h4 {
    color: var(--jain-flag-blue);
}

.jain-flag-card p {
    color: #555;
}

.jain-flag-text-red {
    color: var(--jain-flag-red);
}

.jain-flag-text-yellow {
    color: var(--jain-flag-yellow);
}

.jain-flag-text-green {
    color: var(--jain-flag-green);
}

.jain-flag-text-blue {
    color: var(--jain-flag-blue);
}

.jain-flag-text-white {
    color: var(--jain-flag-white);
}

/* Social links in navbar */
.navbar .social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .social-links .btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.navbar .social-links .btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 188, 212, 0.1);
    }
    
    .navbar .social-links {
        margin-top: 1rem;
        justify-content: center;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.6), rgba(156, 39, 176, 0.8));
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-image img {
  transition: transform 0.5s ease;
}
.hero-image img:hover {
  transform: scale(1.05);
}

.girnar-hero {
    background-image: url("images/girnar-temple-page.JPG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 450px;
    padding: 60px 0;
    position: relative;
}

.girnar-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    z-index: 1;
}

.glass-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 1.5rem;
    z-index: 1;
    max-width: 700px;
    width: 100%;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

.btn {
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ocean-breeze), var(--lavender-haze));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-deep);
    background: linear-gradient(135deg, var(--lavender-haze), var(--ocean-breeze));
}

.btn-outline-primary {
    border: 2px solid var(--ocean-breeze);
    color: var(--ocean-breeze);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--ocean-breeze);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Image Placeholders */
.image-placeholder {
    background: linear-gradient(135deg, var(--misty-dawn), #CFD8DC);
    border: 2px dashed var(--silver-mist);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-placeholder:hover {
    border-color: var(--ocean-breeze);
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05), rgba(156, 39, 176, 0.05));
}

.hero-image .image-placeholder {
    min-height: 400px;
}

/* Principle Cards */
.principle-card {
    background: var(--white-cloud);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 188, 212, 0.1);
    height: 100%;
}

.principle-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  transition: transform 0.3s ease;
}

.principle-img:hover {
  transform: scale(1.03);
}

.principle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
    border-color: var(--ocean-breeze);
}

.principle-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ocean-breeze), var(--lavender-haze));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
}

.principle-card .card-header {
    background: none;
    border: none;
    padding: 0 0 1.5rem 0;
}

.principle-card h4 {
    color: var(--ocean-breeze);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.principle-details h6 {
    color: var(--charcoal-depth);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Three Jewels Section */
.jewels-list {
    padding-left: 0;
}

.zoom-on-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.zoom-on-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.jewel-item {
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--white-cloud);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.jewel-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(8px);
}

.jewel-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--golden-radiance), #FFEB3B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.jewel-item h5 {
    color: var(--ocean-breeze);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Vow Cards */
.vow-card {
    background: var(--white-cloud);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.vow-card img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.vow-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    margin-bottom: 1rem;
}

.vow-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
    border-color: var(--lavender-haze);
}

.vow-card.featured {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05), rgba(156, 39, 176, 0.05));
    border: 2px solid var(--ocean-breeze);
}

.vow-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.vow-header i {
    font-size: 2rem;
    color: var(--lavender-haze);
    margin-right: 1rem;
}

.vow-header h4 {
    color: var(--ocean-breeze);
    font-weight: 700;
    margin: 0;
}

/* Tirthankara Cards */
.tirthankara-card {
    background: var(--white-cloud);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.tirthankara-card img:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.tirthankara-img {
    max-height: 300px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem auto;
}

.tirthankara-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
    border-color: var(--golden-radiance);
}

.tirthankara-card .card-header {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0 0 1.5rem 0;
}

.tirthankara-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--golden-radiance), #FFEB3B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.tirthankara-card h4 {
    color: var(--ocean-breeze);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.teachings-highlight {
    background: rgba(255, 193, 7, 0.1);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--golden-radiance);
    margin-top: 1rem;
}

.teachings-highlight h6 {
    color: var(--golden-radiance);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Back To Top Button Base */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #c3cfe2, #4facfe);
}

.back-to-top:active {
  transform: translateY(-1px) scale(1.05);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}


/* Festival Cards */
.festival-card {
    background: var(--white-cloud);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.festival-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
    border-color: var(--ocean-breeze);
}

.festival-card.featured {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05), rgba(156, 39, 176, 0.05));
    border: 2px solid var(--ocean-breeze);
}

.festival-img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.festival-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.festival-header i {
    font-size: 2.5rem;
    color: var(--ocean-breeze);
    margin-right: 1rem;
}

.festival-header h3,
.festival-header h4 {
    color: var(--ocean-breeze);
    font-weight: 700;
    margin: 0;
}

.festival-activities h6 {
    color: var(--charcoal-depth);
    font-weight: 600;
    margin-bottom: 1rem;
}

.festival-img-lg {
    max-height: 360px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.festival-img-md {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.festival-img-lg:hover,
.festival-img-md:hover {
    transform: scale(1.03);
}

/* Pilgrimage Cards */
.pilgrimage-card {
    background: var(--white-cloud);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.pilgrimage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
    border-color: var(--emerald-glow);
}

.pilgrimage-card .image-placeholder {
    border-radius: 0;
    border: none;
    margin: 0;
    min-height: 200px;
}

.pilgrimage-img {
  max-height: 220px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pilgrimage-img:hover {
  transform: scale(1.05);
}

.pilgrimage-info {
    padding: 1.5rem;
}

.pilgrimage-info h5 {
    color: var(--ocean-breeze);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Philosophy Section */
.philosophy-points {
    padding-left: 0;
}

.philosophy-img {
  width: 100%;
  height: auto;
  max-height: 350px;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.philosophy-img:hover {
  transform: scale(1.03);
}

.point-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 12px;
    background: var(--misty-dawn);
    transition: all 0.3s ease;
}

.point-item:hover {
    background: rgba(0, 188, 212, 0.05);
    transform: translateX(8px);
}

.point-item h6 {
    color: var(--ocean-breeze);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Meditation Section */
.meditation-content {
    padding: 2rem;
    background: var(--white-cloud);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.meditation-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  image-rendering: auto;
  object-fit: contain;
}

.meditation-img:hover {
  transform: scale(1.03);
}

.meditation-type {
    background: rgba(0, 188, 212, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--ocean-breeze);
    height: 100%;
}

.meditation-type h5 {
    color: var(--ocean-breeze);
    font-weight: 600;
    margin-bottom: 1rem;
}

.meditation-benefits {
    background: rgba(76, 175, 80, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--emerald-glow);
    margin-top: 1rem;
}

.meditation-benefits h6 {
    color: var(--emerald-glow);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--charcoal-depth), #455A64) !important;
}

.footer-brand h5 {
    color: white;
    font-weight: 700;
}

.social-links .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.social-links .btn:hover {
    background: var(--ocean-breeze);
    border-color: var(--ocean-breeze);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .principle-card,
    .vow-card,
    .tirthankara-card,
    .festival-card,
    .community-card {
        margin-bottom: 2rem;
    }
    
    .jewel-item {
        margin-bottom: 1rem;
    }
    
    .point-item {
        flex-direction: column;
        text-align: center;
    }
    
    .point-item i {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .principle-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .tirthankara-number,
    .jewel-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease forwards;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--misty-dawn);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--ocean-breeze), var(--lavender-haze));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--lavender-haze), var(--ocean-breeze));
}




/* Modern Social Media Links Section */
.social-media-section {
    border-bottom: 1px solid rgba(0, 188, 212, 0.1);
}

.social-intro h6 {
    color: var(--ocean-breeze);
    font-size: 1rem;
}

.modern-social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--charcoal-depth);
    background: var(--misty-dawn);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 100px;
    justify-content: center;
}

.social-link i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-label {
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
    z-index: 1;
}

.social-link:hover .social-hover-effect {
    left: 100%;
}

/* Individual social platform colors */
.social-link.twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.3);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #E4405F, #C13584, #833AB4);
    color: white;
    border-color: #E4405F;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(228, 64, 95, 0.3);
}

.social-link.website:hover {
    background: var(--ocean-breeze);
    color: white;
    border-color: var(--ocean-breeze);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
}

.social-link.youtube:hover {
    background: #FF0000;
    color: white;
    border-color: #FF0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.social-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    min-width: 60px;
}

.stat-number {
    font-size: 1.25rem;
    color: var(--ocean-breeze);
    font-weight: 700;
}

.stat-label {
    color: var(--silver-mist);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive design for social media section */
@media (max-width: 991px) {
    .social-intro {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .modern-social-links {
        justify-content: center;
    }
    
    .social-stats {
        justify-content: center;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modern-social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        padding: 0.5rem 0.75rem;
        min-width: 80px;
    }
    
    .social-label {
        font-size: 0.8rem;
    }
    
    .social-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .social-link .social-label {
        display: none;
    }
    
    .social-link {
        min-width: 50px;
        padding: 0.75rem;
    }
}


/* Custom Footer Styles */
.custom-footer {
    position: relative;
    background: linear-gradient(135deg, var(--charcoal-depth), #37474F);
    color: white;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
    transform: rotateY(180deg);
}

.footer-wave .shape-fill {
    fill: var(--sky-whisper);
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 6rem 0 2rem;
}

/* Brand Section */
.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ocean-breeze);
}

.footer-brand .brand-logo i {
    font-size: 2.2rem;
    color: var(--golden-radiance);
}

.brand-description {
    color: #B0BEC5;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-stats .stat {
    text-align: center;
}

.footer-stats .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--golden-radiance);
    line-height: 1;
}

.footer-stats .stat-label {
    font-size: 0.8rem;
    color: #90A4AE;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Sections */
.footer-section .footer-title {
    color: var(--ocean-breeze);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #B0BEC5;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--ocean-breeze);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.9rem;
    width: 16px;
    color: var(--golden-radiance);
}

.footer-description {
    color: #B0BEC5;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Newsletter Signup */
.newsletter-signup .input-group {
    margin-bottom: 0.5rem;
}

.newsletter-signup .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
    color: white;
    border-radius: 8px 0 0 8px;
}

.newsletter-signup .form-control::placeholder {
    color: #90A4AE;
}

.newsletter-signup .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--ocean-breeze);
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25);
    color: white;
}

.newsletter-signup .btn {
    border-radius: 0 8px 8px 0;
    background: var(--ocean-breeze);
    border-color: var(--ocean-breeze);
}

.newsletter-signup .btn:hover {
    background: var(--lavender-haze);
    border-color: var(--lavender-haze);
}

/* Footer Social */
.footer-social .social-title {
    color: var(--ocean-breeze);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    transform: translateY(-3px);
    color: white;
}

.social-icon.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #E4405F, #C13584);
    border-color: #E4405F;
    box-shadow: 0 8px 20px rgba(228, 64, 95, 0.4);
}

.social-icon.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.social-icon.website:hover {
    background: var(--ocean-breeze);
    border-color: var(--ocean-breeze);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

.copyright p {
    margin: 0;
    color: #90A4AE;
}

.copyright .small {
    color: #78909C;
    font-style: italic;
}

.footer-motto .motto-text {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--golden-radiance);
    margin-bottom: 0.25rem;
}

.footer-motto .motto-text i {
    font-size: 1.2rem;
}

.footer-motto .small {
    color: #90A4AE;
    font-style: italic;
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer-content {
        padding: 4rem 0 2rem;
    }
    
    .footer-stats {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-motto .motto-text {
        justify-content: center;
    }
    
    .footer-motto {
        text-align: center !important;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-wave {
        height: 80px;
    }
    
    .footer-wave svg {
        height: 80px;
    }
    
    .footer-content {
        padding: 3rem 0 2rem;
    }
    
    .footer-stats {
        gap: 1rem;
    }
    
    .footer-stats .stat-number {
        font-size: 1.25rem;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-brand .brand-logo {
        justify-content: center;
        font-size: 1.5rem;
    }
    
    .footer-brand .brand-logo i {
        font-size: 1.8rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .newsletter-signup .input-group {
        flex-direction: column;
    }
    
    .newsletter-signup .form-control,
    .newsletter-signup .btn {
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
}


/* Theme Selector Styles */
.theme-selector {
    position: relative;
    display: inline-block;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white-cloud, #fff); /* Fallback in case variable not defined */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 188, 212, 0.1);
    pointer-events: none;
}

.theme-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.theme-dropdown-menu {
    display: none !important;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.theme-option:last-child {
    margin-bottom: 0;
}

.theme-option:hover {
    background: rgba(0, 188, 212, 0.1);
    transform: translateX(5px);
}

.theme-option.active {
    background: rgba(0, 188, 212, 0.15);
    border: 1px solid var(--ocean-breeze, #00BCD4);
}

.theme-preview {
    width: 30px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icy-cool-preview {
    background: linear-gradient(135deg, #E3F2FD, #81D4FA);
}

.ocean-breeze-preview {
    background: linear-gradient(135deg, #E0F7FA, #00BCD4);
}

.sunset-glow-preview {
    background: linear-gradient(135deg, #FFF3E0, #FF9800);
}

.forest-zen-preview {
    background: linear-gradient(135deg, #E8F5E8, #4CAF50);
}

.royal-purple-preview {
    background: linear-gradient(135deg, #F3E5F5, #9C27B0);
}

.theme-option span {
    font-weight: 500;
    color: var(--charcoal-depth);
}

/* Theme Variations */

/* Icy Cool Theme */
body.icy-cool {
    --sky-whisper: #E3F2FD;
    --misty-dawn: #F8FBFF;
    --ocean-breeze: #2196F3;
    --emerald-glow: #00BCD4;
    --golden-radiance: #FFC107;
    --lavender-haze: #3F51B5;
    --charcoal-depth: #1A237E;
    --silver-mist: #5C6BC0;
}

body.icy-cool .hero-section {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(63, 81, 181, 0.05));
}

body.icy-cool .navbar-brand,
body.icy-cool .nav-link.active {
    color: #2196F3 !important;
}

body.icy-cool .btn-primary {
    background: linear-gradient(135deg, #2196F3, #3F51B5);
}

body.icy-cool .btn-primary:hover {
    background: linear-gradient(135deg, #1976D2, #303F9F);
}

/* Ocean Breeze Theme (Default) */
body.ocean-breeze {
    --sky-whisper: #E0F7FA;
    --misty-dawn: #F0F4F8;
    --ocean-breeze: #00BCD4;
    --emerald-glow: #4CAF50;
    --golden-radiance: #FFC107;
    --lavender-haze: #9C27B0;
    --charcoal-depth: #263238;
    --silver-mist: #78909C;
}

/* Sunset Glow Theme */
body.sunset-glow {
    --sky-whisper: #FFF3E0;
    --misty-dawn: #FFFBF5;
    --ocean-breeze: #FF9800;
    --emerald-glow: #FF5722;
    --golden-radiance: #FFC107;
    --lavender-haze: #E91E63;
    --charcoal-depth: #BF360C;
    --silver-mist: #FF8A65;
}

body.sunset-glow .hero-section {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.05), rgba(233, 30, 99, 0.05));
}

body.sunset-glow .navbar-brand,
body.sunset-glow .nav-link.active {
    color: #FF9800 !important;
}

body.sunset-glow .btn-primary {
    background: linear-gradient(135deg, #FF9800, #E91E63);
}

body.sunset-glow .btn-primary:hover {
    background: linear-gradient(135deg, #F57C00, #C2185B);
}

/* Forest Zen Theme */
body.forest-zen {
    --sky-whisper: #E8F5E8;
    --misty-dawn: #F1F8E9;
    --ocean-breeze: #4CAF50;
    --emerald-glow: #8BC34A;
    --golden-radiance: #FFC107;
    --lavender-haze: #607D8B;
    --charcoal-depth: #1B5E20;
    --silver-mist: #81C784;
}

body.forest-zen .hero-section {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(96, 125, 139, 0.05));
}

body.forest-zen .navbar-brand,
body.forest-zen .nav-link.active {
    color: #4CAF50 !important;
}

body.forest-zen .btn-primary {
    background: linear-gradient(135deg, #4CAF50, #607D8B);
}

body.forest-zen .btn-primary:hover {
    background: linear-gradient(135deg, #388E3C, #455A64);
}

/* Royal Purple Theme */
body.royal-purple {
    --sky-whisper: #F3E5F5;
    --misty-dawn: #FAF4FB;
    --ocean-breeze: #9C27B0;
    --emerald-glow: #E91E63;
    --golden-radiance: #FFC107;
    --lavender-haze: #673AB7;
    --charcoal-depth: #4A148C;
    --silver-mist: #BA68C8;
}

body.royal-purple .hero-section {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.05), rgba(103, 58, 183, 0.05));
}

body.royal-purple .navbar-brand,
body.royal-purple .nav-link.active {
    color: #9C27B0 !important;
}

body.royal-purple .btn-primary {
    background: linear-gradient(135deg, #9C27B0, #673AB7);
}

body.royal-purple .btn-primary:hover {
    background: linear-gradient(135deg, #7B1FA2, #512DA8);
}

/* Responsive Theme Selector */
@media (max-width: 991px) {
    .theme-dropdown {
        right: auto;
        left: 0;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .theme-selector {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .theme-dropdown {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 1px solid rgba(0, 188, 212, 0.2);
        margin-top: 0.5rem;
    }
    
    .theme-dropdown.show {
        display: block;
    }
    
    .theme-dropdown:not(.show) {
        display: none;
    }
}



.theme-toggle i {
    color: inherit; /* Ensure icon color matches button text color */
    display: inline-block; /* Ensure icon is displayed */
}

