* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Soft color palette */
    --cream: #FDF8F5;
    --cream-dark: #F5EBE0;
    --sage: #B8C4B0;
    --sage-dark: #9CAF88;
    --dusty-pink: #D4A5A5;
    --dusty-pink-dark: #C99090;
    --gold: #C9A962;
    --gold-dark: #B89450;
    
    /* Text colors */
    --text-dark: #4A4A4A;
    --text-light: #6B6B6B;
    --text-muted: #8B8B8B;
    --white: #FFFFFF;
    
    /* Semantic colors */
    --error: #D63031;
    --success: #00B894;
    --warning: #FDCB6E;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
.serif-font {
    font-family: 'Playfair Display', serif;
}

/* Screen reader only */
.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;
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-delay:nth-child(1) { transition-delay: 0.1s; }
.stagger-delay:nth-child(2) { transition-delay: 0.15s; }
.stagger-delay:nth-child(3) { transition-delay: 0.2s; }
.stagger-delay:nth-child(4) { transition-delay: 0.25s; }

/* Overlay Pattern */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1.5" fill="%23C9A962" opacity="0.15"/></svg>');
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, rgba(253,248,245,0.3) 0%, rgba(245,235,224,0.5) 100%);
}

.hero-content {
    z-index: 1;
    padding: 2rem;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 5rem);
    color: var(--dusty-pink-dark);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-weight: 700;
}

.date {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: var(--text-light);
    letter-spacing: 3px;
}

/* Countdown Section */
.countdown-section {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--white);
    margin: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

.countdown-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--gold-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.countdown-section h2 .date-inline {
    display: block;
    margin-top: 0.5rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--dusty-pink);
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    padding: 1rem 1.2rem;
    border-radius: 15px;
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(212, 165, 165, 0.2);
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Couple Section */
.couple-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.couple-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--gold-dark);
    margin-bottom: 3rem;
    font-weight: 600;
}

.couple-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.couple {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.couple-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid var(--sage);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    filter: grayscale(60%) contrast(105%);
    transition: filter 0.3s ease, transform 0.6s ease;
}

.couple-image.zoom-in {
    transform: scale(1.15);
}

.couple-image:hover {
    filter: grayscale(0%) contrast(100%);
}

.couple h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--dusty-pink-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.couple p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.ampersand {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--gold);
}

.prayer-intro {
    max-width: 600px;
    margin: 2rem auto 0;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
}

/* Event Section */
.event-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.event-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--gold-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.event-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.event-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    min-width: 280px;
    max-width: 350px;
    border-top: 4px solid var(--sage);
}

.event-card.single {
    max-width: 500px;
    margin: 0 auto;
}

.event-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--dusty-pink-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Apology Section */
.apology-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.apology-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
    border-top: 4px solid var(--gold);
}

.apology-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.apology-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.apology-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.apology-content .closing {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--sage);
    font-style: italic;
    color: var(--dusty-pink-dark);
}

/* Location Section */
.location-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    margin: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.location-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--gold-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
}

.map-container iframe {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    min-height: 48px;
    min-width: 48px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.maps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(156,175,136,0.4);
}

.maps-btn:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Verse Section */
.verse-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--sage) 0%, var(--cream) 100%);
    margin: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.verse-content {
    max-width: 700px;
    margin: 0 auto;
}

.verse-arabic {
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--gold-dark);
    line-height: 2.2;
    margin-bottom: 1.5rem;
    direction: rtl;
}

.verse-translation {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.verse-source {
    font-weight: 600;
    color: var(--gold);
}

/* Comments Section */
.comments-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.comments-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.comments-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.comment-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--cream-dark);
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(184,196,176,0.2);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error);
    background: #FFF5F5;
}

.form-group input.success,
.form-group textarea.success {
    border-color: var(--success);
}

.error-text {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.char-count {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.submit-btn {
    background: linear-gradient(135deg, var(--dusty-pink) 0%, var(--dusty-pink-dark) 100%);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 48px;
    min-width: 160px;
    position: relative;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 165, 165, 0.4);
}

.submit-btn:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn .btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    text-align: left;
    animation: slideUp 0.5s ease;
}

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

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.comment-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--dusty-pink-dark);
    font-weight: 600;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-message {
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    word-wrap: break-word;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Privacy Section */
.privacy-section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.privacy-card {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.privacy-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
}

.privacy-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--dusty-pink) 0%, var(--gold-dark) 100%);
    color: var(--white);
    position: relative;
    z-index: 1;
    margin-top: 3rem;
}

footer::before {
    content: '❧';
    display: block;
    font-size: 2rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

footer .footer-content {
    max-width: 600px;
    margin: 0 auto;
}

footer .couple-footer-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: var(--cream);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

footer .footer-text {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-bottom: 0.3rem;
}

footer .footer-thanks {
    font-style: italic;
    font-size: 1rem;
    color: var(--cream-dark);
    margin-bottom: 1rem;
}

footer .divider {
    width: 50px;
    height: 2px;
    background: var(--cream);
    margin: 1rem auto;
}

/* Notification */
.notification {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.notification.success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.notification.error {
    background: rgba(214, 48, 49, 0.15);
    color: var(--error);
    border: 1px solid var(--error);
}

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

/* Responsive */
@media (max-width: 768px) {
    .countdown-section,
    .verse-section,
    .location-section {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
        min-width: 65px;
        padding: 0.8rem 1rem;
    }

    .countdown-item {
        min-width: 65px;
        gap: 0.25rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .couple-image {
        width: 150px;
        height: 150px;
    }

    .ampersand {
        font-size: 2.5rem;
    }

    .couple-container {
        gap: 2rem;
    }
    
    .comment-form {
        padding: 1.5rem;
    }
    
    .submit-btn {
        width: 100%;
        min-height: 52px;
    }
    
    .maps-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        transition: none;
    }
    
    .fade-in.visible,
    .slide-in-left.visible,
    .slide-in-right.visible,
    .scale-in.visible {
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-dark: #000000;
        --text-light: #333333;
    }
    
    .event-card,
    .apology-card,
    .comment-form,
    .comment-card {
        border: 2px solid var(--text-dark);
    }
}
