@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&family=Open+Sans:wght@300;400;600;700&display=swap');

/* General body and typography styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 25%, #e0f2fe 50%, #bae6fd 75%, #7dd3fc 100%);
    background-attachment: fixed;
}

body.menu-open {
    overflow: hidden;
}



/* --- Dark Mode Styles --- */
body.dark-mode {
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
}

body.dark-mode a {
    color: #f0f0f0;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 {
    color: #f0f0f0;
}

body.dark-mode .menu-toggle-btn {
    color: #e0e0e0;
}

body.dark-mode .side-menu {
    background-color: #1e1e1e;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .side-nav-links li {
    border-bottom: 1px solid #2a2a2a;
}

body.dark-mode .side-nav-links li:hover {
    background-color: #2a2a2a;
}

body.dark-mode .side-nav-links a, body.dark-mode .side-nav-links .language-btn {
    color: #e0e0e0;
}

body.dark-mode .dropdown-menu {
    background-color: #2a2a2a;
    border-top: 1px solid #444;
}

body.dark-mode .monastery-collage {
    background-color: #121212;
}

body.dark-mode .monastery-card-small {
    background-color: #2a2a2a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .monastery-card-small h3 {
    color: #f0f0f0;
}

body.dark-mode .monastery-card-small p {
    color: #c0c0c0;
}

body.dark-mode .footer {
    background-color: #1e1e1e;
    color: #a0a0a0;
}

body.dark-mode .footer .contact-info, body.dark-mode .footer .footer-details {
    color: #a0a0a0;
}

body.dark-mode #help-button {
    color: #222;
}

body.dark-mode .help-modal .modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .help-modal h2, body.dark-mode .help-modal label {
    color: #f0f0f0;
}

body.dark-mode .help-modal .modal-response {
    background-color: #2a2a2a;
}

body.dark-mode .help-modal #assistant-response {
    color: #c0c0c0;
}

body.dark-mode #user-input-text {
    background-color: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    background: none;
    border: none;
    color: #444;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    width: 100%;
}

.theme-toggle-btn i {
    font-size: 1.5rem;
}

body.dark-mode .theme-toggle-btn {
    color: #e0e0e0;
}
/* --- End Dark Mode Styles --- */



/* Floating Controls */
.floating-controls {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.floating-btn {
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.9), rgba(14, 165, 233, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 120px;
    height: 45px;
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(25px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(6, 182, 212, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(125, 211, 252, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-btn:hover {
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.15));
    transform: scale(1.15) translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(6, 182, 212, 0.3),
        0 0 0 1px rgba(6, 182, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #0891b2;
}

.floating-btn:hover::before {
    opacity: 1;
}

.floating-btn:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.language-dropdown {
    position: absolute;
    top: 60px;
    left: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(25px) saturate(180%);
    border-radius: 16px;
    padding: 12px;
    min-width: 220px;
    max-height: 380px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.9) rotateX(-10deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 
        0 25px 50px rgba(6, 182, 212, 0.3),
        0 0 0 1px rgba(6, 182, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1001;
    transform-style: preserve-3d;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1) rotateX(0deg);
}

.language-dropdown div {
    padding: 12px 16px;
    color: #1e293b;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin: 3px 0;
    position: relative;
    overflow: hidden;
}

.language-dropdown div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.2), transparent);
    transition: left 0.5s ease;
}

.language-dropdown div:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(14, 165, 233, 0.15));
    transform: translateX(6px) scale(1.02);
    color: #0891b2;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.language-dropdown div:hover::before {
    left: 100%;
}

.language-dropdown div:active {
    transform: translateX(3px) scale(0.98);
    transition: all 0.1s ease;
}

.language-dropdown::-webkit-scrollbar {
    width: 8px;
}

.language-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 8px 0;
}

.language-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.3), rgba(59, 130, 246, 0.3));
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.5), rgba(59, 130, 246, 0.5));
}

/* --- Old Side Menu Styles (Removed) --- */
.menu-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: transparent;
    color: #444;
    border: none;
    padding: 10px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2001;
    border-radius: 5px;
    transition: left 0.5s ease;
}

body.dark-mode .menu-toggle-btn {
    color: #e0e0e0;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: left 0.5s ease;
    padding-top: 60px;
}

body.dark-mode .side-menu {
    background-color: #1e1e1e;
}

.side-menu.show {
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    display: none;
}

.overlay.show {
    display: block;
}

.side-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.side-nav-links li {
    padding: 15px 25px;
    border-bottom: 1px solid #ddd;
}

body.dark-mode .side-nav-links li {
    border-bottom: 1px solid #2a2a2a;
}

.side-nav-links a, .side-nav-links .language-btn {
    color: #444;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    width: 100%;
}

body.dark-mode .side-nav-links a, body.dark-mode .side-nav-links .language-btn {
    color: #e0e0e0;
}

.side-nav-links li:hover {
    background-color: #eee;
}

body.dark-mode .side-nav-links li:hover {
    background-color: #2a2a2a;
}

.dropdown-menu {
    display: none;
    position: static;
    padding: 10px 0;
    background-color: #eee;
    border-top: 1px solid #ccc;
}

body.dark-mode .dropdown-menu {
    background-color: #2a2a2a;
    border-top: 1px solid #444;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    padding: 10px 35px;
    border-bottom: none;
}

/* Hero Section */
.hero-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 0;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: brightness(0.7) contrast(1.1);
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

body.dark-mode .hero-image-overlay {
    color: #fff;
}

.hero-image-overlay {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title .hero-discover {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-style: normal;
    color: #06b6d4;
    font-size: 0.4em;
    margin-right: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-title {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
    text-transform: none;
}

.hero-subtitle {
    font-family: 'Open Sans', 'Arial', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Slideshow Dots */
.slideshow-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background-color: #fff;
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Monastery Card Layout */
.monastery-collage {
    position: absolute;
    top: 100vh;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    text-align: left;
    min-height: 100vh;
    border-radius: 30px 30px 0 0;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 -20px 60px rgba(6, 182, 212, 0.2);
}

body.dark-mode .monastery-collage {
    background-color: #121212;
}

.section-title {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

body.dark-mode .section-title {
    color: #f0f0f0;
}

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

.monastery-card-small {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    transform-origin: center;
    min-width: 250px;
    height: 350px;
    position: relative;
}

body.dark-mode .monastery-card-small {
    background-color: #2a2a2a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.monastery-card-small:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.monastery-card-small:active {
    transform: scale(0.98);
    transition: all 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.monastery-card-small .card-image-container {
    height: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.monastery-card-small .card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

.monastery-card-small:hover .card-image-container img {
    transform: scale(1.1);
}

.monastery-card-small .card-content {
    padding: 10px;
}

.monastery-card-small .card-title-and-icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.monastery-card-small h3 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 600;
}

body.dark-mode .monastery-card-small h3 {
    color: #f0f0f0;
}

.monastery-card-small p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-mode .monastery-card-small p {
    color: #c0c0c0;
}

.card-actions {
    text-align: center;
}



/* Camera Translate Button */
#camera-translate-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#camera-translate-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(147, 51, 234, 1));
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

#camera-translate-btn:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

/* Camera Modal */
.camera-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.camera-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
}

body.dark-mode .camera-modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.camera-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

body.dark-mode .camera-close-btn {
    color: #e0e0e0;
}

.camera-container {
    text-align: center;
    margin: 20px 0;
}

#camera-video {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    border: 2px solid #10b981;
}

.camera-controls {
    text-align: center;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

#capture-btn, #switch-camera-btn {
    background-color: #10b981;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#capture-btn:hover, #switch-camera-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.translation-result {
    margin-top: 20px;
}

.detected-text, .translated-text {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
}

body.dark-mode .detected-text, body.dark-mode .translated-text {
    background-color: #2a2a2a;
}

.detected-text h3, .translated-text h3 {
    margin: 0 0 10px 0;
    color: #10b981;
    font-size: 1.1rem;
}

.detected-text p, .translated-text p {
    margin: 0;
    line-height: 1.5;
    color: #555;
}

body.dark-mode .detected-text p, body.dark-mode .translated-text p {
    color: #c0c0c0;
}

/* Footer */
.footer {
    background-color: #ddd;
    color: #555;
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

body.dark-mode .footer {
    background-color: #1e1e1e;
    color: #a0a0a0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info p, .footer-details p {
    margin: 0;
    font-size: 0.9rem;
}

.contact-info {
    text-align: left;
    color: #444;
}

body.dark-mode .contact-info {
    color: #a0a0a0;
}

.footer-details {
    text-align: right;
    color: #444;
}

body.dark-mode .footer-details {
    color: #a0a0a0;
}



/* Help Modal */
.help-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    position: relative;
    text-align: center;
}

body.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.close-button {
    color: #444;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

body.dark-mode .close-button {
    color: #e0e0e0;
}

.close-button:hover {
    color: #7dd3fc;
}

/* Modal Response and Input */
.modal-response {
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
    flex-grow: 1;
}

body.dark-mode .modal-response {
    background-color: #2a2a2a;
}

.modal-response label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}

body.dark-mode .modal-response label {
    color: #f0f0f0;
}

#assistant-response {
    color: #555;
    margin-top: 10px;
    min-height: 20px;
}

body.dark-mode #assistant-response {
    color: #c0c0c0;
}

/* New chat bar styles */
.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

#user-input-text {
    flex-grow: 1;
    background-color: #f0f0f0;
    color: #444;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 1rem;
    min-height: 40px;
    max-height: 100px;
    resize: none;
    box-sizing: border-box;
}

body.dark-mode #user-input-text {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

#listen-button, #mute-button, #send-button {
    background-color: #7dd3fc;
    color: #222;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

body.dark-mode #listen-button, body.dark-mode #mute-button, body.dark-mode #send-button {
    color: #222;
}

body.dark-mode .modal-close-btn {
    color: #fff;
}

body.dark-mode #modal-title {
    color: #fff;
}

body.dark-mode #modal-description {
    color: #e0e0e0;
}

#listen-button:hover, #mute-button:hover, #send-button:hover {
    background-color: #a5f3fc;
    transform: scale(1.1);
}

#send-button {
    font-size: 1.2rem;
}

/* Enhanced Monastery Modal with Glassmorphism */
.monastery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(15, 23, 42, 0.6));
    z-index: 3000;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(0px) saturate(100%);
}

.monastery-modal.show {
    display: flex;
    opacity: 1;
    backdrop-filter: blur(40px) saturate(180%);
}

.modal-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 32px;
    cursor: pointer;
    z-index: 3001;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 60px;
    gap: 40px;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100vh) scale(1.2);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.modal-image-container.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-image-container.zoom-left {
    width: 50%;
    height: 80%;
    position: relative;
    transform: translateY(0) scale(0.9) translateX(-5%);
    z-index: 1;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modal-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.1);
}

.modal-slide.active {
    opacity: 1;
    transform: scale(1);
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-slideshow-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
}

.modal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dot.active {
    background-color: #fbbf24;
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

.modal-content-container {
    width: 50%;
    height: 80%;
    padding: 50px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    overflow-y: auto;
    transform: translateX(100px) scale(0.9);
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modal-content-container.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

#modal-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 30px;
    color: #fbbf24;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    line-height: 1.2;
}

#modal-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-content-container.show #modal-title,
.modal-content-container.show #modal-description {
    transform: translateY(0);
    opacity: 1;
}

/* Parallax scroll effect */
.modal-content-container::-webkit-scrollbar {
    width: 8px;
}

.modal-content-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-content-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.6), rgba(251, 191, 36, 0.3));
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.8), rgba(251, 191, 36, 0.5));
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.split-text {
    overflow: hidden;
}

.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin-right: 0.3em;
}

.word.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Animation Keyframes */
@keyframes modalSlideIn {
    from {
        transform: translateX(-100px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes modalContentSlideIn {
    from {
        transform: translateX(100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.modal-slide.active {
    animation: parallaxFloat 6s ease-in-out infinite;
}

/* Modal Features */
.modal-features {
    margin-top: 30px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s;
}

.modal-content-container.show .modal-features {
    transform: translateY(0);
    opacity: 1;
}

.feature-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.feature-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.feature-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-btn.active {
    background: rgba(125, 211, 252, 0.3);
    border-color: #7dd3fc;
}

.feature-content {
    min-height: 200px;
}

.feature-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.feature-panel.active {
    display: block;
}

.feature-panel h3 {
    color: #7dd3fc;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.map-placeholder, .tour-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: #ccc;
}

.map-placeholder i, .tour-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.audio-play-btn {
    background: #7dd3fc;
    color: #222;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.audio-play-btn:hover {
    background: #a5f3fc;
    transform: scale(1.1);
}

.audio-duration {
    font-size: 0.8rem;
    color: #7dd3fc;
    margin-top: 5px;
}

.hotel-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hotel-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.hotel-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.hotel-item i {
    color: #fbbf24;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Translation Loading Overlay */
.translation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.translation-loader {
    text-align: center;
    color: #fff;
}

.modal-slide.shrinking {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

/* Monasteries Main Card */
.monasteries-main-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.monasteries-main-card .card-image-container {
    position: relative;
    height: 100%;
}

.monasteries-main-card .card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 25px 20px;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.card-overlay h3 {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.card-overlay p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.card-overlay i {
    font-size: 1rem;
    opacity: 0.8;
}

.monasteries-main-card:hover .card-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

/* All main cards now use the same overlay design */
.monasteries-main-card .card-content,
.food-main-card .card-content,
.trekking-main-card .card-content,
.culture-main-card .card-content {
    display: none;
}

/* Monasteries Page */
.page-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
}

.page-hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 800px;
    padding: 0 40px;
}

.back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:hover {
    background: linear-gradient(145deg, rgba(125, 211, 252, 0.2), rgba(59, 130, 246, 0.15));
    transform: scale(1.15) translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(125, 211, 252, 0.3),
        0 0 0 1px rgba(125, 211, 252, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #7dd3fc;
}

.back-btn:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.page-hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    margin: 0;
    line-height: 0.9;
    letter-spacing: -2px;
}

.page-hero-content p {
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0.9;
}

.page-content {
    position: relative;
    z-index: 2;
    margin-top: 100vh;
    padding: 80px 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(25px);
    border-radius: 30px 30px 0 0;
    min-height: 100vh;
}

.page-content h2 {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: 2px;
}

.monasteries-vertical-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.monastery-card-vertical {
    display: flex;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

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

.monastery-card-vertical img {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

.monastery-card-vertical .card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.monastery-card-vertical h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.monastery-card-vertical p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}



.monasteries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.monasteries-page .monastery-card-small {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    color: #333;
}

.monasteries-page .monastery-card-small:hover {
    transform: translateY(-5px);
}

.monasteries-page .monastery-card-small h3 {
    color: #333;
    font-size: 1.2rem;
}

.monasteries-page .monastery-card-small p {
    color: #666;
    font-size: 0.9rem;
}



/* New Scrollable Layout Styles */
.scroll-container {
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 80px;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #fbbf24;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
}

.scroll-down {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
    backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: lowercase;
    font-family: 'Inter', sans-serif;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.3);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.scroll-down:hover {
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(251, 191, 36, 0.2));
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 15px 50px rgba(251, 191, 36, 0.5);
    color: #ffffff;
}

.content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 80px;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.6) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.2), inset 0 1px 0 rgba(6, 182, 212, 0.1);
    margin: 20px;
    border-radius: 25px;
}

.content-section.reverse {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(35px) saturate(200%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 25px 70px rgba(6, 182, 212, 0.2), inset 0 1px 0 rgba(6, 182, 212, 0.2);
    color: #1e293b;
}

.section-number {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    font-family: 'Playfair Display', serif;
    z-index: 0;
}

.content-section.reverse .section-number {
    color: rgba(255, 255, 255, 0.05);
}

.section-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
    min-height: 400px;
}

.content-section.reverse .section-content {
    flex-direction: row-reverse;
}

.content-text {
    flex: 1;
    max-width: 500px;
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #06b6d4;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: inline-block;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.content-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #1e293b;
    text-shadow: 2px 2px 4px rgba(6, 182, 212, 0.3);
}

.content-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(6, 182, 212, 0.2);
}

.read-more {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.read-more:hover {
    transform: translateX(5px);
    color: #0891b2;
}

.content-image {
    flex: 1;
    max-width: 500px;
}

.content-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Rolling Gallery Styles */
.rolling-gallery {
    width: 100%;
    height: 400px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    cursor: grab;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    margin: auto;
}

.gallery-item {
    position: absolute;
    width: 280px;
    height: 200px;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -100px;
    backface-visibility: visible;
    border-radius: 15px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover img {
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 20px 45px rgba(251, 191, 36, 0.3);
}

.gallery-track:active {
    cursor: grabbing;
}

/* Scroll Animations */
.content-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.content-image {
    opacity: 0;
    transform: scale(0.8) translateX(-50px);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-section.animate .content-image {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.content-section.reverse .content-image {
    transform: scale(0.8) translateX(50px);
}

.content-section.reverse.animate .content-image {
    transform: scale(1) translateX(0);
}

/* Split Text Animation */
.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: wordReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    margin-right: 0.3em;
}

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

.content-section.animate .word {
    animation-play-state: running;
}

.content-section:not(.animate) .word {
    animation-play-state: paused;
}

/* Enhanced Image Animations */
.content-image img {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.1);
    filter: blur(2px);
}

.content-section.animate .content-image img {
    transform: scale(1);
    filter: blur(0px);
}

@media (max-width: 768px) {
    .monastery-card-vertical {
        flex-direction: column;
    }
    
    .monastery-card-vertical img {
        width: 100%;
        height: 200px;
    }
    
    .hero-section {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .content-section {
        padding: 60px 40px;
    }
    
    .section-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .content-section.reverse .section-content {
        flex-direction: column;
    }
    
    .content-text h2 {
        font-size: 2rem;
    }
    
    .section-number {
        font-size: 4rem;
        left: 10px;
    }
    
    /* Enhanced Modal Mobile Styles */
    .modal-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .modal-image-container,
    .modal-content-container {
        width: 100%;
        height: auto;
    }
    
    .modal-image-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .modal-content-container {
        height: auto;
        max-height: 40vh;
        padding: 30px 20px;
    }
    
    #modal-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    #modal-description {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .modal-close-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .slideshow-nav {
        padding: 0 20px;
    }
}
/* Photo Upload Card */
.upload-card-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.upload-card-bg i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Upload Modal */
.upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.upload-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.3);
    position: relative;
}

.upload-modal h2 {
    color: #10b981;
    text-align: center;
    margin-bottom: 30px;
}

.upload-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 10px 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: transparent;
    color: #10b981;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.upload-area {
    border: 2px dashed rgba(16, 185, 129, 0.5);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: rgba(16, 185, 129, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.upload-area i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 20px;
}

.upload-area button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
}

.uploaded-files {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.file-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

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

.file-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    z-index: 2;
}

.upload-user-info {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    background: linear-gradient(transparent, rgba(6, 182, 212, 0.9));
    color: white;
    padding: 5px 8px;
    border-radius: 0 0 8px 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.upload-user-info i {
    font-size: 12px;
}
/* Sign In Modal */
.signin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.signin-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    border: 2px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.3);
    position: relative;
    text-align: center;
}

.signin-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.signin-modal h2 {
    color: #06b6d4;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.signin-form {
    margin-top: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #06b6d4;
}

.input-group input {
    width: 100%;
    padding: 12px 45px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    box-sizing: border-box;
}

.signin-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.signin-tab {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    background: transparent;
    color: #06b6d4;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signin-tab.active {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.signin-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

/* User Header */
.user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
    border-radius: 15px;
    margin-bottom: 20px;
}

.user-avatar {
    font-size: 2.5rem;
    color: #06b6d4;
}

.user-info {
    flex: 1;
}

.user-info h3 {
    margin: 0;
    color: #06b6d4;
    font-size: 1.2rem;
}

.user-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.signout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
}

/* User Gallery */
.user-gallery {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
}

.user-gallery h3 {
    color: #06b6d4;
    margin-bottom: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(6, 182, 212, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item .item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 8px;
    font-size: 10px;
    text-align: left;
    line-height: 1.2;
}

.photo-user {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    font-weight: 600;
    color: #06b6d4;
}

.photo-user i {
    font-size: 12px;
}

.photo-date {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.photo-name {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
    font-style: italic;
}

.user-gallery h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: #06b6d4;
    margin-bottom: 5px;
}

.gallery-item:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

.gallery-item:hover .item-info {
    background: linear-gradient(transparent, rgba(6, 182, 212, 0.8));
}