/* Professional Village Heritage Portal Styles */

:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-dark: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --bg-secondary: #f8fafc;
    --text-primary: #374151;
    --hover-bg: #f3f4f6;
    --accent-color-light: rgba(16, 185, 129, 0.1);
    --accent-color-dark: #059669;
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-color);
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
    color: var(--secondary-color);
    transition: all 0.4s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo:hover i {
    transform: scale(1.05);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 450px;
        padding: 0;
        overflow-x: hidden;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: floatingOrbs 20s ease-in-out infinite;
}

@keyframes floatingOrbs {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
        max-width: 100%;
        width: calc(100% - 2rem);
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 0.75rem;
        max-width: 100%;
        width: calc(100% - 1.5rem);
    }
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    word-break: break-word;
    letter-spacing: 0.02em;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

@media (max-width: 1024px) {
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto 3rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: calc(100vw - 2rem);
        margin: 0 auto 2rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 360px) {
    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 250px;
    }
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    min-width: 120px;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stat-item {
        padding: 0.8rem;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stat-item {
        padding: 0.6rem;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .stat-item {
        padding: 0.5rem;
        min-width: 70px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

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

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) scale(1.1);
}

.scroll-arrow {
    width: 16px;
    height: 16px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

/* Optimized 3D Effects */
/* Only apply to specific elements to reduce lag */

/* Universal Icon Hover Effects */
i {
    transition: all 0.3s ease;
}

/* Logo Icon */
.logo i:hover {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-color);
}

/* Navigation Icons */
.hamburger:hover span {
    background: var(--primary-color);
}

/* All Card Icons */
.quick-icon:hover i,
.geo-icon:hover i,
.occ-icon:hover i,
.art-icon:hover i,
.infra-icon:hover i,
.dev-icon:hover i,
.org-card:hover i,
.future-icon:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: brightness(1.2);
}

/* Social Media Icons */
.social-links a:hover i {
    transform: scale(1.3) rotate(-5deg);
    color: var(--secondary-color);
}

/* Contact Info Icons */
.contact-info i {
    transition: all 0.3s ease;
}

.contact-info p:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Heritage Meta Icons */
.heritage-meta i,
.temple-features i,
.feature-tag i {
    transition: all 0.3s ease;
}

.heritage-meta span:hover i,
.temple-features span:hover i,
.feature-tag:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* Selective Card 3D Effects */
.heritage-card, .org-card, .quick-link-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.heritage-card:hover, .org-card:hover, .quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Button Effects */
.btn-primary, .btn-secondary {
    transition: transform 0.2s ease;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 0;
    }
}

.dark-section {
    background: var(--dark-color);
    color: white;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: calc(100vw - 2rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
        max-width: calc(100vw - 1.5rem);
    }
}

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

.section-tag {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.dark-section .section-title {
    color: white;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.dark-section .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* History Section */
.history-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.history-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-heavy);
    position: relative;
    border: 1px solid var(--border-color);
}

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

.card-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.content-area h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
    font-size: 1.125rem;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--secondary-color);
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-area ul {
    list-style: none;
    padding-left: 0;
}

.content-area li {
    padding: 0.5rem 0;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 0 8px 8px 0;
}

.geography-cards {
    display: grid;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .geography-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .geography-cards {
        grid-template-columns: 1fr;
    }
}

.geo-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: transform 0.3s ease;
}

.geo-card:hover {
    transform: translateY(-5px);
}

.geo-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transform-style: preserve-3d;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.geo-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.geo-icon i {
    font-size: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.geo-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Demographics */
.demographics-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 3rem;
}

.demographics-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--dark-color);
}

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

@media (max-width: 768px) {
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

.demo-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.demo-card h4 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

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

@media (max-width: 480px) {
    .chart-item {
        gap: 0.75rem;
    }
    
    .age-group {
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .percentage {
        font-size: 0.9rem;
    }
}

.age-group {
    min-width: 100px;
    font-weight: 500;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.percentage {
    font-weight: 600;
    color: var(--primary-color);
}

.gender-stats,
.religion-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gender-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.gender-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.religion-item {
    padding: 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    font-weight: 500;
}

/* Map Section */
.map-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    margin-top: 3rem;
    display: block;
    visibility: visible;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--dark-color);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
    width: 100%;
    height: 400px;
}

#village-map {
    width: 100%;
    height: 100%;
    display: block;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 250px;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .map-section {
        padding: 2rem 1.5rem;
    }
}

/* Culture Section */
.culture-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

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

.occupation-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.occupation-card:hover {
    transform: translateY(-10px);
}

.occ-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transform-style: preserve-3d;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.occ-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.occ-icon i {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.occupation-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.occupation-card ul {
    list-style: none;
    text-align: left;
}

.occupation-card li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Traditions */
.traditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.tradition-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tradition-card h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.festival-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.festival-date {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.festival-info h5 {
    color: white;
    margin-bottom: 0.5rem;
}

.festival-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Food Section Styles */
.food-intro {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.food-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.food-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.food-category h5 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.food-category h5 i {
    color: var(--secondary-color);
}

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

.food-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.food-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.food-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.food-details {
    flex: 1;
}

.food-name {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.food-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.cooking-traditions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cooking-traditions h5 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cooking-traditions h5 i {
    color: var(--secondary-color);
}

.tradition-points {
    display: grid;
    gap: 0.75rem;
}

.tradition-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.tradition-point i {
    color: var(--accent-color);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.tradition-point span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Design for Traditions Section */
@media (max-width: 1200px) {
    .traditions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .traditions-grid {
        gap: 1.5rem;
    }
    
    .tradition-card {
        padding: 1.5rem;
    }
    
    .tradition-card h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .festival-item {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .festival-date {
        align-self: flex-start;
        min-width: auto;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .festival-info h5 {
        font-size: 1rem;
    }
    
    .festival-info p {
        font-size: 0.85rem;
    }
    
    .food-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .food-category {
        padding: 1.25rem;
    }
    
    .food-category h5 {
        font-size: 1rem;
    }
    
    .food-item {
        padding: 0.875rem;
    }
    
    .cooking-traditions {
        padding: 1.25rem;
    }
    
    .tradition-points {
        gap: 0.5rem;
    }
    
    .tradition-point {
        padding: 0.625rem;
    }
}

@media (max-width: 480px) {
    .tradition-card {
        padding: 1rem;
    }
    
    .tradition-card h4 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .festival-item {
        padding: 0.75rem;
    }
    
    .festival-date {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .festival-info h5 {
        font-size: 0.95rem;
    }
    
    .festival-info p {
        font-size: 0.8rem;
    }
    
    .food-intro {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .food-categories {
        gap: 1.5rem;
    }
    
    .food-category {
        padding: 1rem;
    }
    
    .food-category h5 {
        font-size: 0.95rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .food-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .food-item i {
        font-size: 1.1rem;
    }
    
    .food-name {
        font-size: 0.9rem;
    }
    
    .food-desc {
        font-size: 0.8rem;
    }
    
    .cooking-traditions {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .cooking-traditions h5 {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .tradition-point {
        padding: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tradition-point span {
        font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .tradition-card {
        padding: 0.75rem;
    }
    
    .tradition-card h4 {
        font-size: 1rem;
    }
    
    .festival-item {
        padding: 0.5rem;
    }
    
    .food-category {
        padding: 0.75rem;
    }
    
    .food-item {
        padding: 0.5rem;
    }
    
    .cooking-traditions {
        padding: 0.75rem;
    }
    
    .tradition-point {
        padding: 0.4rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .traditions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tradition-card {
        padding: 1.25rem;
    }
    
    .festival-item {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Specific */
@media (min-width: 481px) and (max-width: 768px) {
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .festival-item {
        flex-direction: row;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .traditions-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Arts Section */
.arts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.art-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.art-card:hover {
    transform: rotateY(10deg);
}

.art-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transform-style: preserve-3d;
    transition: all 0.4s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.art-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.art-icon i {
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.art-card h4 {
    color: white;
    margin-bottom: 1rem;
}

.art-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* Language Section */
.language-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.lang-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-card h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.lang-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.edu-card {
    background: greenyellow;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

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

.edu-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.edu-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.school-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.school-item:hover {
    background: #ef4444;
    border-color: #dc2626;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.school-item:hover {
    background: rgb(red, green, blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.school-image {
    flex-shrink: 0;
}

.school-image {
    align-self: center;
}

.school-image img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.school-item:hover .school-image img {
    transform: scale(1.05);
}

.school-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.school-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    transition: color 0.3s ease;
}

.school-info p i {
    color: var(--primary-color);
    width: 16px;
    transition: color 0.3s ease;
}

.school-item:hover .school-info h4,
.school-item:hover .school-info p,
.school-item:hover .school-info p i {
    color: white;
}

.edu-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.edu-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Education Responsive Design */

/* Mobile Phones - 320px to 480px */
@media (max-width: 480px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .edu-card {
        padding: 1.5rem;
    }
    
    .edu-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .edu-header i {
        font-size: 1.8rem;
    }
    
    .edu-header h3 {
        font-size: 1.25rem;
    }
    
    .school-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        text-align: center;
    }
    
    .school-image {
        align-self: center;
    }
    
    .school-image img {
        width: 120px;
        height: 80px;
    }
    
    .school-info h4 {
        font-size: 1.1rem;
    }
    
    .school-info p {
        font-size: 0.9rem;
    }
    
    .edu-sidebar {
        gap: 1.5rem;
    }
}

/* Mobile Landscape and Small Tablets - 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .edu-card {
        padding: 1.75rem;
    }
    
    .edu-header {
        gap: 1rem;
    }
    
    .edu-header h3 {
        font-size: 1.35rem;
    }
    
    .school-item {
        flex-direction: row;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    
    .school-image img {
        width: 130px;
        height: 90px;
    }
    
    .school-info h4 {
        font-size: 1.15rem;
    }
}

/* Tablets - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .edu-card {
        padding: 2rem;
    }
    
    .school-item {
        gap: 1.5rem;
        padding: 1.75rem;
    }
    
    .school-image img {
        width: 140px;
        height: 95px;
    }
}

/* Desktop - 1025px to 1399px */
@media (min-width: 1025px) and (max-width: 1399px) {
    .education-grid {
        grid-template-columns: 2fr 1fr;
        gap: 2.5rem;
    }
    
    .school-item {
        gap: 1.5rem;
    }
    
    .school-image img {
        width: 140px;
        height: 95px;
    }
}

/* Large Desktop - 1400px+ */
@media (min-width: 1400px) {
    .education-grid {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
    
    .school-item {
        gap: 2rem;
    }
    
    .school-image img {
        width: 160px;
        height: 110px;
    }
}

/* Ultra Small Devices - 320px */
@media (max-width: 320px) {
    .edu-card {
        padding: 1rem;
    }
    
    .edu-header {
        margin-bottom: 1rem;
    }
    
    .edu-header h3 {
        font-size: 1.1rem;
    }
    
    .school-item {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .school-image img {
        width: 100px;
        height: 70px;
    }
    
    .school-info h4 {
        font-size: 1rem;
    }
    
    .school-info p {
        font-size: 0.85rem;
    }
}

/* Landscape Orientation */
@media (max-width: 896px) and (orientation: landscape) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .school-item {
        flex-direction: row;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .school-image img {
        width: 120px;
        height: 80px;
    }
}

/* Print Styles for Education */
@media print {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .school-item {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .school-image img {
        width: 100px;
        height: 70px;
    }
}

/* Infrastructure Section */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.infra-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.infra-card:hover {
    transform: translateY(-10px);
}

.infra-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transform-style: preserve-3d;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.infra-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.infra-icon i {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.infra-card h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.infra-content ul {
    list-style: none;
    text-align: left;
}

.infra-content li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.infra-content i {
    color: var(--secondary-color);
    width: 20px;
}

/* Heritage Section */
.heritage-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

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

/* Mobile Phones - 320px to 480px */
@media (max-width: 480px) {
    .heritage-grid {
        display: block;
        gap: 1.5rem;
    }
    
    .heritage-grid .heritage-card {
        display: block;
        width: 100%;
        margin: 0 0 1.5rem 0;
    }
    
    .heritage-card {
        margin: 0;
    }
    
    .heritage-info {
        padding: 1.5rem;
    }
    
    .heritage-info h4 {
        font-size: 1.1rem;
    }
    
    .heritage-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Mobile Landscape and Small Tablets - 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .heritage-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .heritage-grid .heritage-card {
        display: block;
        width: auto;
        margin: 0;
    }
    
    .heritage-info {
        padding: 1.75rem;
    }
}

/* Tablets - 769px to 1023px */
@media (min-width: 769px) and (max-width: 1023px) {
    .heritage-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .heritage-grid .heritage-card {
        display: block;
        width: auto;
        margin: 0;
    }
}

/* Laptops - 1024px to 1399px - Large temple cards layout */
@media (min-width: 1024px) and (max-width: 1399px) {
    .heritage-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .heritage-grid .heritage-card {
        display: flex;
        width: 100%;
        margin: 0 0 3rem 0;
        min-height: 300px;
        align-items: stretch;
    }
    
    .heritage-grid .heritage-card:nth-child(even) {
        flex-direction: row-reverse;
    }
    
    .heritage-grid .heritage-card .heritage-image {
        flex: 0 0 45%;
        height: auto;
        min-height: 300px;
    }
    
    .heritage-grid .heritage-card .heritage-info {
        flex: 1;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Large Desktops - 1400px+ */
@media (min-width: 1400px) {
    .heritage-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .heritage-grid .heritage-card {
        display: flex;
        width: 100%;
        margin: 0 0 3rem 0;
        min-height: 350px;
        align-items: stretch;
    }
    
    .heritage-grid .heritage-card:nth-child(even) {
        flex-direction: row-reverse;
    }
    
    .heritage-grid .heritage-card .heritage-image {
        flex: 0 0 45%;
        height: auto;
        min-height: 350px;
    }
    
    .heritage-grid .heritage-card .heritage-info {
        flex: 1;
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.heritage-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    transition: all 0.3s ease;
}

.heritage-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-heavy);
}

.heritage-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.heritage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.heritage-card:hover .heritage-image img {
    transform: scale(1.1);
}

.heritage-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.heritage-card:hover .heritage-overlay {
    opacity: 1;
}

.heritage-info {
    padding: 2rem;
}

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

.heritage-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.heritage-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.heritage-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.heritage-meta i {
    color: var(--primary-color);
}

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

.nature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: transform 0.3s ease;
}

.nature-card:hover {
    transform: translateY(-5px);
}

.nature-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.nature-card:hover i {
    transform: scale(1.1);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.nature-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

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

.tourism-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.tourism-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.tourism-card ul {
    list-style: none;
}

.tourism-card li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-light);
}

.tourism-card i {
    color: var(--primary-color);
    width: 20px;
}

/* Community Section */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.community-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.community-card:hover {
    transform: rotateX(5deg) rotateY(5deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.community-card h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.admin-member {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-photo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.admin-photo:hover {
    transform: rotateY(15deg) rotateX(10deg) scale(1.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), inset 0 3px 6px rgba(255, 255, 255, 0.3);
}

.admin-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

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

.admin-photo .photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.admin-photo i {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.admin-photo:hover i {
    transform: rotateY(10deg) scale(1.1);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.admin-details h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.admin-details p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.panchayat-members h5 {
    color: white;
    margin-bottom: 1rem;
}

.panchayat-members ul {
    list-style: none;
}

.panchayat-members li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    border-left: 3px solid var(--secondary-color);
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.personalities-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.personality-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.personality-item:hover {
    transform: translateX(10px) rotateY(5deg) translateZ(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-left-width: 6px;
}

.personality-item h4 {
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.personality-item:hover h4 {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    transform: translateZ(5px);
}

.personality-item p {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.personality-item:hover p {
    color: rgba(255, 255, 255, 0.95);
    transform: translateZ(3px);
}

.organizations-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.organizations-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.15);
}

.organizations-section h3 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.organizations-section:hover h3 {
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
    transform: translateZ(10px);
}

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

.org-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.org-card:hover {
    transform: translateY(-10px) rotateX(10deg) rotateY(5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.org-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    display: inline-block;
}

.org-card:hover i {
    transform: scale(1.15);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.org-card h4 {
    color: white;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.org-card:hover h4 {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    transform: translateZ(10px);
}

.org-card p {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.org-card:hover p {
    color: rgba(255, 255, 255, 0.95);
    transform: translateZ(5px);
}

/* Gallery Section */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-medium);
}

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

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item {
    position: relative;
}

.video-item video {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.video-item:hover video {
    transform: scale(1.02);
}



.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 3;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Interactive Section */
.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.interactive-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.interactive-card h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.directory-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.directory-search input {
    flex: 1;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.directory-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.directory-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
}

.dir-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dir-icon i {
    color: white;
    font-size: 1.2rem;
}

.dir-info h4 {
    color: white;
    margin-bottom: 0.25rem;
}

.dir-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Calendar */
.calendar-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.calendar-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.calendar-header button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.event {
    background: var(--secondary-color);
    color: white;
    font-weight: bold;
}

.upcoming-events h4 {
    color: white;
    margin-bottom: 1rem;
}

.event-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.event-date {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.event-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Development Section */
.development-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.dev-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    transition: transform 0.3s ease;
}

.dev-card:hover {
    transform: translateY(-10px);
}

.dev-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transform-style: preserve-3d;
    transition: all 0.4s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.dev-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.dev-icon i {
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.dev-card h3 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.project-item {
    margin-bottom: 1.5rem;
}

.project-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.needs-list,
.vision-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.need-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.need-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.vision-item {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
}

.vision-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.vision-item p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

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

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

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

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    text-align: left;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    justify-content: flex-start;
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
}

.contribute-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.contribute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.edit-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.history-card:hover .edit-btn,
.geo-card:hover .edit-btn {
    opacity: 1;
}

.edit-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Comprehensive Responsive Design */

/* Mobile First - 320px to 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-item {
        padding: 0.75rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-link-card {
        padding: 1.5rem;
    }
    
    .quick-icon {
        width: 60px;
        height: 60px;
    }
    
    .quick-icon i {
        font-size: 1.5rem;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .geography-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .geo-card {
        padding: 1rem;
    }
    
    .geo-icon {
        width: 50px;
        height: 50px;
    }
    
    .demographics-section {
        padding: 1.5rem 1rem;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .demo-card {
        padding: 1.5rem;
    }
    
    .occupation-grid,
    .infra-grid,
    .arts-grid,
    .org-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .culture-tabs,
    .heritage-tabs,
    .gallery-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 200px;
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .heritage-grid,
    .gallery-grid,
    .nature-grid,
    .tourism-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .traditions-grid,
    .community-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tradition-card,
    .community-card {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Tablet Portrait - 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .history-grid,
    .education-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .geography-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .demo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .occupation-grid,
    .infra-grid,
    .arts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .heritage-grid,
    .gallery-grid,
    .nature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tourism-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .traditions-grid,
    .community-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .org-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Tablet Landscape - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .history-grid {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
    
    .geography-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .occupation-grid,
    .infra-grid,
    .arts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .heritage-grid,
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tourism-info {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .traditions-grid {
        grid-template-columns: 1fr;
    }
    
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .org-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 80vw);
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 1rem 2rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-width: calc(100vw - 2rem);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: 1rem;
        text-align: left;
        border-radius: 10px;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.95rem;
        flex-shrink: 0;
        min-height: 50px;
        display: flex;
        align-items: center;
    }
    
    .language-selector {
        padding: 1rem;
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .language-selector button {
        width: 100%;
        padding: 0.75rem;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 0.95rem;
        cursor: pointer;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Desktop - 1025px to 1399px */
@media (min-width: 1025px) and (max-width: 1399px) {
    .container {
        max-width: 1200px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .occupation-grid,
    .infra-grid,
    .arts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .org-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop - 1400px+ */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .occupation-grid,
    .infra-grid,
    .arts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .org-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .heritage-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Ultra Small Devices - 320px */
@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0.5rem 0.75rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-desc {
        font-size: 0.9rem;
    }
    
    .quick-link-card {
        padding: 1rem;
    }
    
    .quick-icon {
        width: 50px;
        height: 50px;
    }
    
    .quick-icon i {
        font-size: 1.2rem;
    }
    
    .geo-card,
    .demo-card,
    .tradition-card,
    .community-card {
        padding: 0.75rem;
    }
    
    .geo-icon {
        width: 40px;
        height: 40px;
    }
    
    .demographics-section {
        padding: 1rem 0.75rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section {
        padding: 0 0.5rem;
    }
}

/* iPhone SE - 375px */
@media (min-width: 321px) and (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .village-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .geography-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
    }
}

/* iPhone 12/13/14 - 390px */
@media (min-width: 376px) and (max-width: 390px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .geography-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
    }
    
    .occupation-grid {
        grid-template-columns: 1fr;
    }
}

/* iPhone Plus/Max - 414px */
@media (min-width: 391px) and (max-width: 414px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .geography-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .occupation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Tablets Portrait - 600px */
@media (min-width: 481px) and (max-width: 600px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .demo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* iPad Mini - 768px */
@media (min-width: 601px) and (max-width: 768px) {
    .history-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .occupation-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .infra-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* iPad Air/Pro Portrait - 820px */
@media (min-width: 769px) and (max-width: 820px) {
    .heritage-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* iPad Pro 11" - 834px */
@media (min-width: 821px) and (max-width: 834px) {
    .container {
        max-width: 800px;
    }
}

/* Small Laptops - 1024px */
@media (min-width: 1025px) and (max-width: 1200px) {
    .occupation-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Standard Desktop - 1366px */
@media (min-width: 1201px) and (max-width: 1366px) {
    .container {
        max-width: 1200px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop - 1920px */
@media (min-width: 1367px) and (max-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
}

/* Ultra Wide - 2560px+ */
@media (min-width: 1921px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 6rem;
    }
    
    .occupation-grid,
    .infra-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Landscape Orientation Optimizations */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-content {
        padding: 1rem 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .traditions-grid,
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg {
        background-attachment: scroll;
    }
    
    .heritage-image img,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .social-links,
    .contribute-btn {
        display: none !important;
    }
    
    .hero {
        height: auto;
        background: white;
        color: black;
        page-break-after: always;
    }
    
    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .footer {
        page-break-before: always;
    }
}

/* Foldable Devices */
@media (min-width: 280px) and (max-width: 653px) {
    .section {
        padding: 2rem 0;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Apple Watch and Very Small Screens */
@media (max-width: 280px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .nav-container {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
}

/* Safe Area Support for Notched Devices */
:root {
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
    --safe-area-inset-right: env(safe-area-inset-right);
}

/* Universal Mobile Width Fix */
@media (max-width: 768px) {
    * {
        max-width: 100vw !important;
    }
    
    .history-grid,
    .education-grid,
    .heritage-grid,
    .gallery-grid,
    .community-grid,
    .future-grid,
    .infra-grid,
    .occupation-grid,
    .traditions-grid,
    .arts-grid,
    .org-grid,
    .demo-grid,
    .geography-cards {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

.navbar {
    padding-top: var(--safe-area-inset-top);
}

@media (max-width: 768px) {
    .container {
        padding-left: max(1rem, var(--safe-area-inset-left));
        padding-right: max(1rem, var(--safe-area-inset-right));
    }
}

@media (min-width: 769px) {
    .container {
        padding-left: max(2rem, var(--safe-area-inset-left));
        padding-right: max(2rem, var(--safe-area-inset-right));
    }
}

.footer {
    padding-bottom: calc(4rem + var(--safe-area-inset-bottom));
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary,
    .tab-btn {
        border: 2px solid;
    }
    
    .heritage-card,
    .community-card,
    .quick-link-card {
        border: 2px solid var(--text-dark);
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
    .hero-bg {
        background-attachment: scroll;
    }
    
    .heritage-image img,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility - High Contrast */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid;
    }
    
    .feature-card {
        border: 2px solid var(--text-dark);
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .hero-bg {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }
    
    .section {
        background-color: #0f172a;
    }
    
    .dark-section {
        background-color: #1e293b;
    }
}

/* Quick Links Grid */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.quick-link-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .quick-link-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quick-link-card {
        padding: 1rem;
    }
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
}

.quick-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.quick-link-card:hover .quick-icon {
    background: var(--gradient-secondary);
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.quick-icon i {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.quick-link-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .quick-link-card {
        padding: 2rem 1.5rem;
    }
    
    .quick-icon {
        width: 60px;
        height: 60px;
    }
    
    .quick-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 0, 0, 0.7);
    transform: scale(1.1);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 80%;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    #caption {
        width: 90%;
        font-size: 16px;
        padding: 15px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        max-height: 75%;
    }
    
    .close {
        top: 5px;
        right: 10px;
        font-size: 25px;
        width: 35px;
        height: 35px;
    }
    
    #caption {
        width: 95%;
        font-size: 14px;
        padding: 10px;
        bottom: 5px;
    }
}

/* Print Optimizations */
@media print {
    .hero {
        height: auto;
        background: white;
        color: black;
    }
    
    .dark-section {
        background: white;
        color: black;
    }
    
    .occupation-grid,
    .heritage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        display: none;
    }
    
    .modal {
        display: none !important;
    }
}
/* Achievement Styles */
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid #ffd700;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(5px);
    background: var(--accent-color-light);
}

.achievement-item i {
    color: #ffd700;
    font-size: 1.2rem;
}

.achievement-item span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Digital Learning Styles */
.digital-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.digital-features p {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    color: var(--text-primary);
    margin: 0;
    transition: all 0.3s ease;
}

.digital-features p:hover {
    background: var(--accent-color-light);
    transform: translateX(5px);
}

.digital-features i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 20px;
}
/* Gallery Controls */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.language-toggle button {
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-toggle button:hover {
    background: var(--accent-color-dark);
    transform: translateY(-2px);
}

/* Map Section */
.map-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.map-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

/* Feedback Section */
.feedback-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.feedback-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-color-light);
}

.submit-btn {
    align-self: flex-end;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .map-container {
        height: 300px;
    }
}
/* Accessibility & Language Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 100;
    position: relative;
}

.accessibility-controls {
    display: flex;
    gap: 0.5rem;
}

.accessibility-controls button,
.language-selector button {
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accessibility-controls button:hover,
.language-selector button:hover {
    background: var(--accent-color);
    color: white;
}

/* News Section */
.news-section {
    background: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.news-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
}

.news-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.news-media {
    margin-top: 1rem;
}

.news-media audio,
.news-media video {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}

img, video, audio, iframe {
    max-width: 100%;
    height: auto;
}

.school-image img,
.heritage-image img,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
}

.play-interview {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-interview:hover {
    background: var(--accent-color-dark);
    transform: translateY(-2px);
}

/* Font Size Classes */
.font-small { font-size: 0.9em; }
.font-normal { font-size: 1em; }
.font-large { font-size: 1.2em; }
.font-xlarge { font-size: 1.4em; }

/* High Contrast Mode */
.high-contrast {
    --bg-primary: #000000;
    --text-primary: #ffffff;
    --accent-color: #ffff00;
    --card-bg: #1a1a1a;
}

@media (max-width: 768px) {
    .nav-controls {
        display: flex;
        gap: 0.5rem;
    }
    
    .accessibility-controls {
        gap: 0.3rem;
    }
    
    .accessibility-controls button,
    .language-selector button {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}
/* Nav Controls Fix - Always Visible */
.nav-controls {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    z-index: 100;
}

.accessibility-controls {
    display: flex;
    gap: 0.5rem;
}

.accessibility-controls button,
.language-selector button {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-controls button:hover,
.language-selector button:hover {
    background: var(--accent-color-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .nav-controls {
        gap: 0.5rem;
    }
    
    .accessibility-controls button,
    .language-selector button {
        padding: 0.4rem;
        font-size: 0.8rem;
        min-width: 35px;
        height: 35px;
    }
}
/* Future Section Styles */
.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 1200px) {
    .future-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .future-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .future-grid {
        gap: 1rem;
        margin-bottom: 2rem;
    }
}

.future-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.future-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .future-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .future-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .future-card {
        padding: 1rem;
        border-radius: 12px;
    }
}

.future-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.future-icon i {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .future-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .future-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .future-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.8rem;
    }
    
    .future-icon i {
        font-size: 1.2rem;
    }
}

.future-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.future-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .future-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .future-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .future-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .future-card p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
}

.future-timeline {
    margin-bottom: 1.5rem;
}

.timeline-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.future-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item i {
    color: var(--accent-color);
    width: 20px;
}

.roadmap-section {
    margin-top: 4rem;
    text-align: center;
}

.roadmap-section h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .roadmap-section h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .roadmap-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}

.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.timeline-year {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
    min-width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-content {
    text-align: left;
    flex: 1;
}

.timeline-content h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .roadmap-timeline {
        max-width: 700px;
        gap: 1.5rem;
    }
    
    .timeline-item {
        gap: 1.5rem;
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .roadmap-timeline {
        max-width: 100%;
        gap: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .timeline-content {
        text-align: center;
    }
    
    .timeline-year {
        min-width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .roadmap-timeline {
        gap: 0.8rem;
    }
    
    .timeline-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .timeline-year {
        min-width: 50px;
        height: 50px;
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media (max-width: 360px) {
    .timeline-year {
        min-width: 45px;
        height: 45px;
        font-size: 0.8rem;
    }
    
    .timeline-content h4 {
        font-size: 0.95rem;
    }
    
    .timeline-content p {
        font-size: 0.8rem;
    }
}

/* Enhanced Temple Section Styles */
.temples-hero {
    text-align: center;
    margin: 2rem 0 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--accent-color-light), var(--bg-secondary));
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.temples-hero h3 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.temples-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.featured-temple {
    grid-column: span 2;
    position: relative;
}

.temple-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.temple-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.temple-rating {
    display: flex;
    gap: 0.2rem;
}

.temple-rating i {
    color: #ffd700;
    font-size: 0.9rem;
}

.temple-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-tag {
    background: var(--accent-color-light);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.feature-tag i {
    font-size: 0.7rem;
}

.heritage-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.heritage-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
}

.heritage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.heritage-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.heritage-meta i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Responsive Temple Section */
@media (max-width: 1200px) {
    .featured-temple {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .temples-hero h3 {
        font-size: 1.5rem;
    }
    
    .temples-hero p {
        font-size: 1rem;
    }
    
    .temple-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .temple-features {
        justify-content: center;
    }
    
    .heritage-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}