/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #fafafa;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d32f2f;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('images/photo-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: #fff;
}

.hero-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-separator {
    color: #ffd700;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

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

/* Sections */
section {
    padding: 5rem 0;
}

section:nth-of-type(even) {
    background: white;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: #d32f2f;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #ffd700);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #34495e;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Program Grid */
.program {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe0e0 100%);
}

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

.program-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(211, 47, 47, 0.15);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.program-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 1rem;
    text-align: center;
}

.program-item p {
    color: #555;
    line-height: 1.7;
}

/* Tradition Section */
.tradition-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #34495e;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Info Grid */
.info {
    background: linear-gradient(135deg, #ffe6e6 0%, #fff9e6 100%);
}

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

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid #d32f2f;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateX(5px);
}

.info-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 1rem;
}

.info-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.info-card strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Atmosphere Section */
.atmosphere-image {
    margin: 0 0 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.atmosphere-image img {
    width: 100%;
    height: auto;
    display: block;
}

figcaption {
    padding: 1rem;
    background: #f5f5f5;
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.atmosphere-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #34495e;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-motto {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #fff;
    border-bottom-color: #ffd700;
}

.footer-credit {
    font-size: 0.9rem;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }

    section {
        padding: 3rem 0;
    }

    .program-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .hero-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-separator {
        display: none;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

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

/* Focus Styles */
a:focus,
button:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }

    .program-item,
    .info-card {
        border: 2px solid #d32f2f;
    }
}
