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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1E1B4B;
    background-color: #F8FAFC;
    min-height: 100vh;
}

/* Page Container */
.page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

/* Hero Card */
.hero-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 20px 40px -12px rgba(49, 46, 129, 0.12);
    border: 1px solid #E2E8F0;
    max-width: 800px;
    width: 100%;
    padding: 64px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #DC2626 0%, #16A34A 100%);
}

/* Logo Section */
.logo-container {
    margin-bottom: 48px;
}

.church-logo {
    height: 150px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Content Section */
.content-section {
    margin-bottom: 48px;
}

/* Typography */
.main-heading {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    color: #312E81;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.welcome-message {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: #64748B;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Countdown Section */
.countdown-section {
    margin-bottom: 48px;
}

.countdown-heading {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #312E81;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-value {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #312E81;
    line-height: 1;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.time-value:hover {
    transform: scale(1.05);
    color: #DC2626;
}

.time-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Newsletter Section */
.newsletter-section {
    margin-bottom: 32px;
}

.newsletter-heading {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #312E81;
    margin-bottom: 24px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.email-input {
    flex: 1;
    height: 56px;
    padding: 0 20px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #1E1B4B;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.email-input::placeholder {
    color: #94A3B8;
}

.email-input:focus {
    border-color: #312E81;
    box-shadow: 0 0 0 4px rgba(49, 46, 129, 0.1);
    background: #FFFFFF;
}

.notify-button {
    height: 56px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    background: #DC2626;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.notify-button:hover {
    background: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.notify-button:active {
    transform: translateY(0);
}

.form-message {
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.show {
    opacity: 1;
}

.form-message.success {
    color: #16A34A;
}

.form-message.error {
    color: #DC2626;
}

.newsletter-note {
    font-size: 14px;
    color: #64748B;
    text-align: center;
    margin-top: 12px;
    line-height: 1.4;
}

/* Footer */
.footer-section {
    border-top: 1px solid #E2E8F0;
    padding-top: 32px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: #F1F5F9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #312E81;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: #312E81;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.contact-info {
    margin-bottom: 16px;
}

.contact-info a {
    color: #312E81;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    text-decoration: underline;
}

.copyright {
    opacity: 0.7;
}

.copyright p {
    font-size: 14px;
    color: #64748B;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-card {
        padding: 32px 24px;
        margin: 8px;
    }
    
    .main-heading {
        font-size: 40px;
    }
    
    .welcome-message {
        font-size: 18px;
        margin-bottom: 32px;
    }
    
    .countdown-timer {
        gap: 16px;
    }
    
    .time-value {
        font-size: 36px;
    }
    
    .time-label {
        font-size: 11px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .email-input,
    .notify-button {
        width: 100%;
    }
    
    .church-logo {
        height: 80px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 8px;
    }
    
    .hero-card {
        padding: 24px 16px;
    }
    
    .main-heading {
        font-size: 32px;
    }
    
    .welcome-message {
        font-size: 16px;
    }
    
    .countdown-timer {
        gap: 12px;
    }
    
    .time-unit {
        min-width: 60px;
    }
    
    .time-value {
        font-size: 28px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
}

/* Print Styles */
@media print {
    .page-container {
        background: white;
    }
    
    .hero-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .notify-button {
        background: #ccc !important;
        color: #666 !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-card {
        animation: none;
    }
}