﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
	opacity: 0.8;
}

.video-background iframe {
	/*position: absolute;*/
    /* top: 50%; */
/*    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
*/
    min-width: 100%;
    min-height: 100%;
/*
	width: auto;
    height: auto;*/
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}


.header .container {
    position: relative;
    z-index: 2;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.header .container {
    position: relative;
    z-index: 2;
}

/* Church Info Styles */
.church-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.church-name-kr {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Noto Sans KR', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.church-name-en {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Church Address Styles */
.church-address {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
}

.church-address i {
    margin-right: 8px;
    color: #ffd700;
}

/* Church Social Styles */
.church-social {
    margin-top: 30px;
}

.church-social .youtube-link {
    display: inline-flex;
    align-items: center;
    background: #ff0000;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,0,0,0.3);
    font-family: 'Noto Sans KR', sans-serif;
}

.church-social .youtube-link:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,0,0,0.4);
}

.church-social .youtube-link i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Navigation Styles */
.navigation {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e9ecef;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0 20px;
}

.nav-menu a {
    display: block;
    padding: 20px 0;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #667eea;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Navigation Active State */
.nav-menu a.active {
    color: #667eea;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: white;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Worship Schedule Styles */
.worship-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Schedule Item Styles */
.schedule-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.schedule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.schedule-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #667eea;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
}

.schedule-item .time {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* Video Section Styles */
.video-section {
    background: #f8f9fa;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* Flag Image Styles */
.flag-image {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 10px;
}

.mission-flag {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.world-vision-card .flag {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

/* Responsive flag sizing */
@media (max-width: 768px) {
    .flag-image {
        width: 50px;
        height: 33px;
    }
}

/* Flag Image Styles */
.flag-image {
    width: 40px;
    height: 27px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    vertical-align: middle;
    margin-right: 8px;
}

.country-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 10px;
}

.country-header h3 {
    margin: 0;
    font-size: 1.3rem;
    vertical-align: middle;
}

/* Responsive flag sizing */
@media (max-width: 768px) {
    .flag-image {
        width: 35px;
        height: 23px;
        margin-right: 6px;
    }
    
    .country-header h3 {
        font-size: 1.1rem;
    }
}

/* Leadership Styles */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Leader Card Styles */
.leader-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.leader-card h3 {
    font-size: 1.2rem;
    color: #667eea;
    margin-bottom: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
}

.leader-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
}

/* Music Team Styles */
.music-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* Team Member Styles */
.team-member {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.team-member-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

.team-member-icon i {
    font-size: 1.8rem;
    color: white;
    line-height: 1;
}

.team-member-icon img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
}

.instrument-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member h4 {
    font-size: 1.1rem;
    color: #667eea;
    margin-bottom: 10px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
}

.team-member h4 {
    font-size: 1.1rem;
    color: #667eea;
    margin-bottom: 10px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
}

.team-member p {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
    margin: 0;
}

/* Responsive Music Team */
@media (max-width: 768px) {
    .team-member-icon {
        width: 50px;
        height: 50px;
    }
    
    .team-member-icon i {
        font-size: 1.5rem;
    }
    
    .team-member h4 {
        font-size: 1rem;
    }
}

/* Missions Section Styles */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.mission-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    z-index: 1;
}

.mission-card > * {
    position: relative;
    z-index: 2;
}

.mission-flag {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.mission-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
}

.missionaries {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* World Vision Section */
.world-vision-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.world-vision-section h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
    position: relative;
}

.world-vision-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.world-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.world-vision-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
}

.world-vision-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.world-vision-card .flag {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.world-vision-card h4 {
    font-size: 1rem;
    color: #667eea;
    margin: 0 0 0 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
}

.world-vision-card .country-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.child-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.country {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Responsive World Vision */
@media (max-width: 768px) {
    .world-vision-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .world-vision-card .country-header {
        gap: 8px;
    }
    
    .world-vision-card h4 {
        font-size: 0.95rem;
    }
}

/* Contact Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-right: 15px;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 5px;
    font-family: 'Noto Sans KR', sans-serif;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Footer Styles */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 0;
}

.footer p {
    margin: 5px 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 40px 0;
    }
    
    .church-name-kr {
        font-size: 2rem;
    }
    
    .church-name-en {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        padding: 15px 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .worship-schedule,
    .leadership-grid,
    .music-team-grid,
    .missions-grid,
    .world-vision-grid,
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .schedule-item,
    .leader-card,
    .team-member,
    .mission-card,
    .world-vision-card,
    .contact-item {
        padding: 20px;
    }
    
    .video-container {
        max-width: 100%;
        margin: 0 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }
    
    .navigation .container {
        position: relative;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .church-name-kr {
        font-size: 1.8rem;
    }
    
    .church-name-en {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .church-social .youtube-link {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .video-container {
        margin: 0 10px;
    }
    
    .mission-flag {
        font-size: 2.5rem;
    }
    
    .mission-card h3 {
        font-size: 1.2rem;
    }
    
    .world-vision-card .flag {
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Loading State */
body:not(.loaded) {
    overflow: hidden;
}

body.loaded .section {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 10px;
}