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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section with Photo Layout */
.hero-section {
    display: flex;
    align-items: stretch;
    gap: 40px;
    margin-bottom: 40px;
}

.hero {
    text-align: center;
    padding: 80px 40px 60px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 500px;
    margin: 0 auto;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: #fbbf24;
}

.wedding-announcement {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.date-location {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.date, .location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 500;
}

.date i, .location i {
    font-size: 1.5rem;
    color: #fbbf24;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.countdown-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 80px;
}

.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Couple Photo Section */
.couple-photo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-container {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
}

.couple-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.photo-hint {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 3.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    z-index: 10;
}

.photo-container:hover .photo-hint {
    opacity: 0.8;
}

.photo-container:hover {
    transform: scale(1.02);
}

/* Purpose Section */
.purpose {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.purpose-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.purpose-content .button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.purpose-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 200px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.6);
}

.btn-secondary {
    background: white;
    color: #059669;
    border: 2px solid #059669;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: #059669;
    color: white;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group:first-of-type {
    margin-top: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #059669;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.form-actions .btn-primary {
    order: 1;
}

.form-actions .btn-secondary {
    order: 2;
}

/* Success Modal */
.success-content {
    text-align: center;
    padding: 20px 0;
}

.success-content .btn {
    margin: 0 auto;
    display: block;
}

.success-icon {
    font-size: 4rem;
    color: #059669;
    margin-bottom: 20px;
}

.success-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.success-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero {
        padding: 60px 20px 40px;
        border-radius: 20px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .couple-names {
        font-size: 2rem;
    }
    
    .date-location {
        flex-direction: column;
        gap: 20px;
    }
    
    .countdown {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 15px 10px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary {
        order: 1;
    }
    
    .form-actions .btn-secondary {
        order: 2;
    }
    
    .purpose {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 15px 30px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .couple-names {
        font-size: 1.8rem;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: 10px 5px;
    }
    
    .countdown-number {
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}

/* Background Animations */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

#floatingElements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.floating-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fbbf24;
    border-radius: 50%;
    opacity: 0.7;
    animation: sparkle 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.7;
    }
}

/* Animated Background Gradient */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
} 