/* Import Google Fonts for Hindi Support */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Segoe+UI:wght@400;500;600;700&display=swap');

/* CSS Custom Properties for Themes */
:root {
    /* Default Blue Theme */
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --accent-color: #667eea;
    --accent-secondary: #764ba2;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --hover-bg: #f8f9fa;
}

/* Red Theme */
[data-theme="red"] {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --accent-secondary: #c0392b;
    --text-color: #333;
    --bg-color: #fdf2f2;
    --card-bg: #ffffff;
    --border-color: #f8d7da;
    --hover-bg: #f8f9fa;
}

/* Green Theme */
[data-theme="green"] {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --secondary-color: #2c3e50;
    --accent-color: #2ecc71;
    --accent-secondary: #27ae60;
    --text-color: #333;
    --bg-color: #f0f9f0;
    --card-bg: #ffffff;
    --border-color: #d4edda;
    --hover-bg: #f8f9fa;
}

/* Purple Theme */
[data-theme="purple"] {
    --primary-color: #9b59b6;
    --primary-dark: #8e44ad;
    --secondary-color: #2c3e50;
    --accent-color: #9b59b6;
    --accent-secondary: #8e44ad;
    --text-color: #333;
    --bg-color: #f8f4ff;
    --card-bg: #ffffff;
    --border-color: #e2d5f1;
    --hover-bg: #f8f9fa;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #ecf0f1;
    --accent-color: #34495e;
    --accent-secondary: #2c3e50;
    --text-color: #ecf0f1;
    --bg-color: #2c3e50;
    --card-bg: #34495e;
    --border-color: #4a5568;
    --hover-bg: #4a5568;
}

/* Theme Switcher Styles */
.theme-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
}

.theme-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color), 0.2);
}

.theme-btn i {
    font-size: 1.2rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Devanagari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-section .container {
    max-width: none;
    width: 100%;
    padding: 0 40px;
}

.gallery-section .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header and Navigation */
header {
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    z-index: 1000;
}

.navbar {
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky; /* Make navbar sticky */
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--hover-bg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
main {
    margin-top: 0; /* Removed fixed margin since we have header image now */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-image {
    text-align: center;
}

.hero-image i {
    font-size: 15rem;
    opacity: 0.8;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 100px 0 50px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--card-bg);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: var(--card-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.member-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.member-image {
    margin-bottom: 1.5rem;
}

.member-image img.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-image img.member-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.member-image i {
    color: var(--primary-color);
    background: var(--card-bg);
    font-size: 4rem;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-info h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.bio {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-dark);
}

/* Team Stats */
.team-stats {
    padding: 80px 0;
    background: var(--bg-color);
}

.team-stats h2 {
    color: var(--secondary-color);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.stat-card i {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery-filter {
    padding: 2rem 0;
    background: var(--card-bg);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.gallery-section {
    padding: 2rem 0 80px;
    background: var(--card-bg);
    width: 100%;
    overflow-x: hidden;
}

.gallery-section-header {
    grid-column: 1 / -1;
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-section-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Gallery Section Header Mobile Styles */
@media (max-width: 768px) {
    .gallery-section-header {
        margin: 1rem 0;
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .gallery-section-header h2 {
        font-size: 1.5rem;
    }
    
    .gallery-section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-section-header {
        margin: 0.5rem 0;
        padding: 1rem;
    }
    
    .gallery-section-header h2 {
        font-size: 1.2rem;
    }
    
    .gallery-section-header p {
        font-size: 0.9rem;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: none;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: transparent;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border: none;
    box-sizing: border-box;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.image-placeholder h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.view-btn {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.view-btn:hover {
    background: #2980b9;
}

/* Add Content Section */
.add-content-section {
    padding: 80px 0;
    background: var(--bg-color);
    text-align: center;
}

.add-content-section h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.add-content-section p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.upload-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.upload-option {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--primary-color);
}

.upload-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.upload-option i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-option h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.upload-option p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.download-btn, .contact-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover, .contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Gallery Stats */
.gallery-stats {
    padding: 80px 0;
    background: var(--card-bg);
}

.gallery-stats h2 {
    color: var(--secondary-color);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--card-bg);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.contact-info h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: none;
    margin: 0 auto 2rem auto;
    padding: 0;
    align-items: stretch;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 6px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 140px;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 0;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.contact-item > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.contact-item p {
    margin: 0.1rem 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.social-media h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: var(--primary-dark);
}

/* Contact Form */
.contact-form {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
}

.contact-form h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.map-section h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#map {
    height: 400px;
    width: 100%;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.map-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.map-link {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.map-link:hover {
    background: rgba(255,255,255,0.3);
}

/* Office Info */
.office-info {
    padding: 80px 0;
    background: var(--card-bg);
}

.office-info h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.office-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.office-card i {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.office-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section p {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: white;
}

/* Maa Durga Header Image Styles */
.header-image {
    background: linear-gradient(135deg, #ff9933 0%, #ffffff 50%, #138808 100%);
    padding: 1rem 0;
    text-align: center;
    border-bottom: 3px solid #ff9933;
}

.durga-image-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.durga-images-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.durga-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    max-width: 400px;
}

.durga-side-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.durga-side-img {
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 3px solid #ff9933;
    transition: all 0.4s ease;
    object-fit: cover;
    cursor: pointer;
}

.durga-side-img:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    border-color: #ff6600;
    filter: brightness(1.05);
}

.durga-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0.5rem auto;
    max-width: 600px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.durga-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.durga-placeholder i {
    font-size: 4rem;
    color: #ff9933;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.durga-placeholder h1 {
    font-size: 2.5rem;
    color: #138808;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.durga-placeholder p {
    font-size: 1.2rem;
    color: #ff9933;
    margin: 0;
    font-weight: 600;
}

/* Actual image styling when image is added */
.durga-image {
    max-width: 350px;
    max-height: 250px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid #ff9933;
    transition: all 0.4s ease;
    object-fit: cover;
    display: block;
    margin: 0.5rem auto;
    cursor: pointer;
}

.durga-image:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: #ff6600;
    filter: brightness(1.05);
}

/* Gallery Photos and Video Placeholders */
.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-photo:hover {
    transform: scale(1.05);
}

/* Direct video container that doesn't use the gallery item structure */
.direct-video-container {
    grid-column: span 2;
    margin-bottom: 30px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(1);
}

.video-header {
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: white;
    text-align: center;
}

.video-header h3 {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.4;
}

.direct-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    z-index: 10;
}

.direct-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: auto;
    cursor: pointer;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.video-thumbnail:hover .thumbnail-img {
    transform: scale(1.05);
}

.video-thumbnail:hover .play-overlay {
    color: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-footer {
    padding: 15px;
    background: var(--bg-color);
    text-align: center;
}

/* Button styling for disabled state */
.play-video-btn:disabled {
    background: #95a5a6 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.play-video-btn:disabled:hover {
    transform: none;
    background: #95a5a6 !important;
}

/* Legacy video item styles kept for compatibility */
.video-gallery-item {
    display: flex;
    flex-direction: column;
    overflow: visible;
    height: auto;
    min-height: 350px;
    background: var(--card-bg);
    border-radius: 10px;
}

.video-title {
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-align: center;
}

.video-title h3 {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.4;
}

.gallery-video {
    height: 220px;
    position: relative;
    z-index: 5;
}

.gallery-video-player {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    background: var(--card-bg);
    outline: none;
}

.gallery-video-player:focus {
    outline: 2px solid var(--primary-color);
}

/* Featured Video Styles */
.featured-video-container {
    grid-column: 1 / -1;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.featured-video-header {
    text-align: center;
    margin-bottom: 20px;
}

.featured-video-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.featured-video-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
}

.featured-video-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.featured-video-player {
    width: 100%;
    height: 450px;
    background: var(--card-bg);
    outline: none;
}

.featured-video-player:focus {
    outline: 3px solid var(--primary-color);
}

.featured-video-info {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.featured-video-info p {
    margin: 10px 0;
    color: var(--text-color);
    line-height: 1.6;
}

.video-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.video-controls .view-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.video-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-color);
    text-align: center;
}

.video-fallback i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.video-embed {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 10;
}

.video-description {
    padding: 15px;
    text-align: center;
    background: var(--bg-color);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top: 1px solid var(--border-color);
}

.video-placeholder {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border: none;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.video-placeholder p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.video-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.upload-video-btn {
    background: #27ae60;
}

.upload-video-btn:hover {
    background: #219653;
}

/* Contact page specific styling for Follow Us section */
.contact-section .social-media {
    background: #ffffff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #e9ecef;
}

.contact-section .social-media h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-section .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-section .social-link {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 60px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    text-decoration: none;
}

.contact-section .social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Adjust contact section layout */
.contact-section .contact-content {
    display: block;
}

.contact-section .contact-info {
    max-width: none;
}

/* Map info section within contact */
.contact-content .map-info {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
}

.contact-content .map-info h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.contact-content .map-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content #map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-content .map-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.contact-content .map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.contact-content .map-placeholder h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-content .map-placeholder p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Contact section responsive adjustments */
.contact-content .map-info {
    padding: 2rem;
    margin-top: 1.5rem;
}

.contact-content .map-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-content #map {
    height: 300px;
}

.contact-content .map-placeholder h3 {
    font-size: 1.5rem;
}

.contact-content .map-placeholder p {
    font-size: 1rem;
}

/* Photo Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover,
.close:focus {
    background: var(--primary-color);
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    height: 100%;
    flex-direction: column;
}

#modalImage {
    flex: 1;
    width: 100%;
    height: 70%;
    object-fit: contain;
    background: #000;
}

.modal-info {
    padding: 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

#modalTitle {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.modal-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
    
    #modalImage {
        height: 60%;
    }
    
    .modal-info {
        padding: 15px;
    }
    
    #modalTitle {
        font-size: 1.2rem;
    }
    
    .modal-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        height: 98%;
        margin: 1% auto;
        border-radius: 10px;
    }
    
    #modalImage {
        height: 50%;
    }
    
    .modal-info {
        padding: 10px;
    }
    
    #modalTitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

/* Animation for gallery filter */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    display: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional Theme Updates */
.member-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.member-image i {
    color: var(--primary-color);
    background: var(--card-bg);
}

.member-info h3 {
    color: var(--secondary-color);
}

.position {
    color: var(--primary-color);
}

.skill-tag {
    background: var(--primary-color);
    color: white;
}

.social-links a {
    color: var(--primary-color);
}

.social-links a:hover {
    color: var(--primary-dark);
}

.team-stats {
    background: var(--bg-color);
}

.team-stats h2 {
    color: var(--secondary-color);
}

.stat-card {
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.stat-card i {
    color: var(--primary-color);
}

.stat-card h3 {
    color: var(--secondary-color);
}

.gallery-filter {
    background: var(--card-bg);
}

.filter-btn {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.gallery-section {
    background: var(--card-bg);
}

.image-placeholder {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
}

.gallery-stats {
    background: var(--bg-color);
}

.gallery-stats h2 {
    color: var(--secondary-color);
}

.contact-section {
    background: var(--card-bg);
}

.contact-info h2 {
    color: var(--secondary-color);
}

.contact-info p {
    color: var(--text-color);
}

.contact-item h3 {
    color: var(--secondary-color);
}

.contact-item i {
    color: var(--primary-color);
}

.social-link {
    background: var(--primary-color);
}

.social-link:hover {
    background: var(--primary-dark);
}

.contact-form {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.contact-form h2 {
    color: var(--secondary-color);
}

.form-group label {
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.map-section {
    background: var(--bg-color);
}

.map-section h2 {
    color: var(--secondary-color);
}

.map-placeholder {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
}

.office-info {
    background: var(--card-bg);
}

.office-info h2 {
    color: var(--secondary-color);
}

.office-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.office-card i {
    color: var(--primary-color);
}

.office-card h3 {
    color: var(--secondary-color);
}

footer {
    background: var(--secondary-color);
}

.footer-section h3 {
    color: white;
}

.footer-section ul li a {
    color: white;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section p {
    color: white;
}

/* Dark theme specific adjustments */
[data-theme="dark"] .footer-section ul li a {
    color: white;
}

[data-theme="dark"] .footer-section p {
    color: white;
}

[data-theme="dark"] .footer-bottom {
    color: white;
}

[data-theme="dark"] .nav-menu {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

/* Red theme specific hero gradient */
[data-theme="red"] .hero,
[data-theme="red"] .page-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

[data-theme="red"] .image-placeholder,
[data-theme="red"] .map-placeholder {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Green theme specific hero gradient */
[data-theme="green"] .hero,
[data-theme="green"] .page-header {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

[data-theme="green"] .image-placeholder,
[data-theme="green"] .map-placeholder {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

/* Purple theme specific hero gradient */
[data-theme="purple"] .hero,
[data-theme="purple"] .page-header {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

[data-theme="purple"] .image-placeholder,
[data-theme="purple"] .map-placeholder {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* Enhanced theme transition effects */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.theme-switcher {
    position: relative;
}

.theme-switcher::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: var(--border-color);
}

/* Mobile theme switcher positioning */
@media (max-width: 768px) {
    .theme-switcher {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: var(--card-bg);
        padding: 0.5rem;
        border-radius: 25px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 1001;
    }
    
    .theme-switcher::before {
        display: none;
    }
}

/* Enhanced hover effects for mobile */
.durga-image:hover {
    transform: scale(1.08);
}

.durga-placeholder:hover {
    transform: scale(1.02);
}

/* Gallery grid adjustments for direct video */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Make sure direct videos are visible initially */
.direct-video-container {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(1);
}

/* Ensure video controls are clickable */
.direct-video-wrapper {
    z-index: 10;
}

/* Video button styling */
.video-footer .view-btn {
    margin: 10px 5px 0;
    display: inline-block;
    background: var(--primary-color);
    padding: 8px 15px;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-footer .view-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.video-footer .play-video-btn {
    background: #27ae60;
}

.video-footer .play-video-btn:hover {
    background: #219653;
}

.video-footer .youtube-link {
    margin: 10px 5px 0;
    display: inline-block;
    background: #ff0000;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.video-footer .youtube-link:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

/* Google Maps iframe styling */
.contact-content .map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-content .map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-content .map-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Contact Form Styles */
.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* Photo Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover,
.close:focus {
    background: var(--primary-color);
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    height: 100%;
    flex-direction: column;
}

#modalImage {
    flex: 1;
    width: 100%;
    height: 70%;
    object-fit: contain;
    background: #000;
}

.modal-info {
    padding: 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

#modalTitle {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.modal-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
    
    #modalImage {
        height: 60%;
    }
    
    .modal-info {
        padding: 15px;
    }
    
    #modalTitle {
        font-size: 1.2rem;
    }
    
    .modal-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        height: 98%;
        margin: 1% auto;
        border-radius: 10px;
    }
    
    #modalImage {
        height: 50%;
    }
    
    .modal-info {
        padding: 10px;
    }
    
    #modalTitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}
