/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Ethiopic', 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--primary-gradient);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navy, Soft Gray, and Warm Gold Color Scheme */
:root {
    /* Navy Colors */
    --navy-primary: #1e3a8a;
    --navy-dark: #1e40af;
    --navy-light: #3b82f6;
    --navy-black: #0f172a;
    --navy-darker: #1e293b;
    --navy-alpha: rgba(30, 58, 138, 0.9);
    
    /* Soft Gray Colors */
    --gray-primary: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #cbd5e1;
    --gray-dark: #475569;
    --gray-alpha: rgba(100, 116, 139, 0.1);
    
    /* Warm Gold Colors */
    --gold-primary: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    --gold-accent: #fcd34d;
    --gold-alpha: rgba(245, 158, 11, 0.1);
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--navy-black) 0%, var(--navy-darker) 50%, var(--navy-primary) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    --accent-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-accent) 100%);
    --warm-gradient: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    --cool-gradient: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy-primary) 100%);
    --neutral-gradient: linear-gradient(135deg, var(--gray-light) 0%, var(--gray-lighter) 100%);
    
    /* Text Colors */
    --text-primary: var(--navy-primary);
    --text-secondary: var(--gray-dark);
    --text-light: var(--gray-light);
    --text-gold: var(--gold-dark);
    --white: #ffffff;
    --off-white: #f8fafc;
    
    /* Glass Effects */
    --glass: rgba(255, 255, 255, 0.1);
    --glass-dark: rgba(15, 23, 42, 0.3);
    --glass-navy: rgba(30, 58, 138, 0.15);
    --glass-gold: rgba(245, 158, 11, 0.1);
    
    /* Shadows with navy and gold tints */
    --shadow-sm: 0 4px 6px -1px rgba(30, 58, 138, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(30, 58, 138, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(30, 58, 138, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(30, 58, 138, 0.25);
    --shadow-gold: 0 20px 40px -12px rgba(245, 158, 11, 0.3);
    
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
}

/* Modern Animated Background */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: -3;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Background is controlled by JavaScript based on active section */

.background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
    animation: backgroundFloat 30s ease-in-out infinite;
    z-index: -2;
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--dynamic-bg-image, url('../images/background.jpg'));
    background-size: 80%;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(2deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-2deg);
    }
}

/* Modern Glassmorphism Header */
.header {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
    position: relative;
}

.logo {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.logo::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--white);
    z-index: -1;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--border-radius-xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1.3rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(245, 158, 11, 0.15);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--white);
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.admin-link {
    background: var(--navy-primary) !important;
    color: var(--white) !important;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3) !important;
}

.admin-link:hover {
    background: var(--navy-dark) !important;
    transform: translateY(-1px) !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
    border-radius: 2px;
}

/* Modern Main Content */
.main {
    margin-top: 90px;
    min-height: calc(100vh - 180px);
    padding: 2rem 0;
}

.section {
    padding: 3rem 0;
    min-height: calc(100vh - 180px);
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

.section.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4rem;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.2));
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--warm-gradient);
    border-radius: 2px;
    box-shadow: var(--shadow-gold);
}

/* Modern Home Section */
.home-section.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 1;
    visibility: visible;
    padding: 2rem 0;
}

.home-content {
    max-width: 1200px;
    width: 100%;
}

.verse-container {
    background: var(--glass);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4rem;
    border-radius: var(--border-radius-xl);
    margin-bottom: 5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.verse-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cool-gradient);
    opacity: 0.15;
    z-index: -1;
}

.verse-text h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.verse-reference {
    background: var(--warm-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: right;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.navigation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--warm-gradient);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.4);
}

.card:hover::before {
    opacity: 0.1;
}

.card i {
    font-size: 3.5rem;
    background: var(--warm-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
}

.card:hover i {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.3));
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 700;
    transition: all 0.3s ease;
}

.card:hover h3 {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.card:hover p {
    color: var(--white);
    transform: translateY(-2px);
}

/* Sermons Section */
.sermons-section {
    background: rgba(0, 0, 0, 0.3);
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.lang-btn {
    background: rgba(15, 23, 42, 0.3);
    border: 2px solid rgba(245, 158, 11, 0.3);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.lang-btn.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.lang-btn.active:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 4rem;
}

.search-container input {
    width: 100%;
    padding: 1.2rem 4rem 1.2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    font-size: 1.1rem;
    background: var(--glass);
    backdrop-filter: blur(15px);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-container input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-container i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

.sermons-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.sermon-item {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sermon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cool-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.sermon-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.4);
}

.sermon-item:hover::before {
    opacity: 0.05;
}

.sermon-item h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.sermon-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.sermon-item small {
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 1.5rem;
}

.sermon-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--navy-primary);
    color: var(--white);
    border-color: var(--navy-primary);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.btn-secondary:hover {
    background: var(--gold-primary);
    color: var(--white);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-accent {
    background: var(--gold-primary);
    color: var(--white);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-accent:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Songs Section */
.songs-section {
    background: rgba(0, 0, 0, 0.2);
}

.songs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.song-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.song-item:hover {
    transform: translateY(-5px);
}

.song-item h3 {
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.song-item p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.song-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.play-btn {
    background: var(--navy-primary);
    color: var(--white);
    border: 2px solid var(--navy-primary);
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.play-btn:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.download-btn {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.download-btn:hover {
    background: var(--gold-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Pictures Section */
.pictures-section {
    background: rgba(0, 0, 0, 0.1);
}

.pictures-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.pictures-gallery::-webkit-scrollbar {
    height: 8px;
    display: block;
}

.pictures-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.pictures-gallery::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.7);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.pictures-gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.9);
}

.pictures-gallery.active {
    cursor: grabbing;
    user-select: none;
}

.pictures-gallery {
    cursor: grab;
}

.picture-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

.picture-item:hover {
    transform: translateY(-5px);
}

.picture-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.picture-info {
    padding: 1rem;
}

.picture-item:hover .picture-info {
    transform: translateY(0);
}

.picture-info h3 {
    color: var(--navy-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.picture-info small {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* Scroll indicator for pictures */
.pictures-section {
    position: relative;
}

.scroll-instruction {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.scroll-instruction i {
    animation: swipeLeft 2s ease-in-out infinite;
}

@keyframes swipeLeft {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.8;
    }
    50% {
        transform: translateX(10px);
        opacity: 1;
    }
}

/* About Section */
.about-section {
    background: rgba(0, 0, 0, 0.3);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.about-content p {
    color: var(--primary-black);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 10px;
}

.contact-item i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.contact-item span {
    color: var(--primary-black);
    font-weight: 600;
}

.developer-credit {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary-orange);
}

.developer-credit p {
    color: var(--primary-orange);
    font-weight: 600;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Enhanced Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.modal-content img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    cursor: zoom-out;
}

.modal-content img:hover {
    transform: none;
}

/* Navigation Arrows */
.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: rgba(245, 158, 11, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.5);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

/* Close Button */
.close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.close:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: scale(1.1);
    border-color: rgba(220, 38, 38, 0.5);
}

/* Image Info - Hidden for full screen */
.image-info {
    display: none;
}

.image-info h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
    text-align: left;
}

#imageCounter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* Thumbnail Navigation - Hidden for full screen */
.thumbnail-nav {
    display: none;
}

.thumbnail-nav::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.thumbnail-nav::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.5);
    border-radius: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.6;
}

.thumbnail:hover {
    border-color: rgba(245, 158, 11, 0.7);
    transform: scale(1.1);
    opacity: 0.8;
}

.thumbnail.active {
    border-color: var(--gold-primary);
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

/* Modal Actions - Hidden for full screen */
.modal-actions {
    display: none;
}

.modal-actions .download-btn,
.modal-actions .close-btn {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-actions .download-btn {
    background: var(--gold-primary);
    color: var(--white);
    border: 2px solid var(--gold-primary);
}

.modal-actions .download-btn:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.modal-actions .close-btn {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-actions .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-direction: column;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(245, 158, 11, 0.2);
    border-top: 4px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Error State */
.error-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.error-icon {
    font-size: 3rem;
    color: #ef4444;
}

.error-message {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
}

.retry-btn {
    background: var(--gold-primary);
    color: var(--white);
    border: 2px solid var(--gold-primary);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.retry-btn:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

/* Success Message */
.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* No Content State */
.no-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-direction: column;
    gap: 1rem;
}

.no-content-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.no-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    text-align: center;
}

/* Accessibility and Keyboard Navigation */
*:focus {
    outline: 3px solid var(--gold-primary);
    outline-offset: 2px;
}

.nav-link:focus,
.btn:focus,
.audio-control-btn:focus,
.modal-nav:focus {
    outline: 3px solid var(--gold-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.2);
}

.card:focus {
    outline: 3px solid var(--gold-primary);
    outline-offset: 2px;
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 0 5px rgba(245, 158, 11, 0.2);
}

.picture-item:focus,
.sermon-item:focus,
.song-item:focus {
    outline: 3px solid var(--gold-primary);
    outline-offset: 2px;
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2), 0 0 0 5px rgba(245, 158, 11, 0.2);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--navy-primary);
    color: var(--white);
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 2000;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass: rgba(0, 0, 0, 0.8);
        --glass-dark: rgba(0, 0, 0, 0.9);
    }
    
    .modal {
        background-color: rgba(0, 0, 0, 0.95);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover,
    .picture-item:hover,
    .sermon-item:hover,
    .song-item:hover {
        transform: none;
    }
}

/* Enhanced Audio Player */
.audio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.audio-player {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.audio-icon {
    width: 60px;
    height: 60px;
    background: var(--gold-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.audio-details {
    overflow: hidden;
}

.audio-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-control-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.audio-control-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: scale(1.05);
}

.play-pause-btn {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.play-pause-btn:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--gold-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--gold-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.audio-progress {
    flex: 2;
    margin: 0 1rem;
}

.progress-container {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    transition: height 0.2s ease;
}

.progress-container:hover {
    height: 8px;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 100%;
}

.progress-fill {
    height: 100%;
    background: var(--gold-primary);
    border-radius: 3px;
    transition: width 0.1s ease;
    width: 0%;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 3px solid var(--gold-primary);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    left: 0%;
    margin-left: -8px;
}

.progress-container:hover .progress-handle {
    opacity: 1;
}

.close-player {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.close-player:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

#audioElement {
    display: none;
}

/* Responsive Audio Player */
@media (max-width: 768px) {
    .audio-player {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .audio-info {
        width: 100%;
        justify-content: center;
    }
    
    .audio-controls {
        width: 100%;
        justify-content: center;
    }
    
    .audio-progress {
        width: 100%;
        margin: 0;
    }
    
    .volume-control {
        display: none; /* Hide volume on mobile */
    }
}

@media (max-width: 480px) {
    .audio-player {
        padding: 0.5rem;
    }
    
    .audio-control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .play-pause-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .verse-text h2 {
        font-size: 1.4rem;
    }
    
    /* Modal responsive styles */
    .modal-content {
        padding: 1rem;
        width: 98%;
    }
    
    .modal-nav {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
        padding: 0.8rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
    
    .modal-info {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .modal-info h3 {
        font-size: 1.2rem;
    }
    
    .image-info {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .image-info h3 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .thumbnail-nav {
        padding: 0.5rem 0;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.8rem;
        max-width: 300px;
    }
    
    .modal-actions .download-btn,
    .modal-actions .close-btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-image-container {
        padding: 0.5rem;
        max-height: 60vh;
    }
    
    .modal-content img {
        max-height: 60vh;
    }
    
    .pictures-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .navigation-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .sermons-list,
    .songs-list {
        grid-template-columns: 1fr;
    }
    
    .pictures-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .song-controls {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .verse-container {
        padding: 2rem;
    }
    
    .verse-text h2 {
        font-size: 1.2rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 10px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--primary-orange);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pictures Gallery Counter */
.pictures-counter {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Modal Image Info */
.modal-image-info {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 2001;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 80vw;
}

.modal-image-info h3 {
    margin: 0;
    color: var(--white);
}

/* Image Counter */
.image-counter {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 2001;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Modal Download Button */
.modal-download-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-primary);
    color: var(--white);
    border: 2px solid var(--gold-primary);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-download-btn:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

/* Full Screen Modal Mobile Responsiveness */
@media (max-width: 768px) {
    .close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .modal-content {
        padding: 0;
    }
}
