/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 20%, #ffffff 40%, #a8dadc 60%, #f1faee 80%, #fce4ec 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #2d3436;
    overflow: hidden;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(252, 228, 236, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(248, 187, 217, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(244, 143, 177, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(168, 218, 220, 0.2) 0%, transparent 50%);
    opacity: 0.6;
}

/* Header Navigation */
.header {
    position: absolute;
    top: 30px;
    width: 100%;
    z-index: 1000;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav a {
    color: #2d3436;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #81c784;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #81c784;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hearts Animation */
.hearts-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0.3;
    animation: floatHearts 8s infinite linear;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 16px;
    background: #f48fb1;
    border-radius: 10px 10px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart:nth-child(1)::before,
.heart:nth-child(1)::after {
    background: #f8bbd9;
}

.heart:nth-child(2)::before,
.heart:nth-child(2)::after {
    background: #fce4ec;
}

.heart:nth-child(3)::before,
.heart:nth-child(3)::after {
    background: #f48fb1;
}

.heart:nth-child(4)::before,
.heart:nth-child(4)::after {
    background: #f8bbd9;
}

.heart:nth-child(5)::before,
.heart:nth-child(5)::after {
    background: #fce4ec;
}

.heart::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.heart:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
}

.heart:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
}

.heart:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
}

.heart:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
}

@keyframes floatHearts {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
        transform: scale(1);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* Hero Content */
.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.couple-names {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.bride-name,
.groom-name {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin: 10px 0;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.15),
        0 0 8px rgba(0,0,0,0.1);
    color: #81c784;
}

.ampersand {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 400;
    opacity: 0.8;
    margin: 0 20px;
    background: linear-gradient(45deg, #f48fb1, #f8bbd9, #fce4ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wedding-date {
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.save-the-date {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 10px;
    opacity: 0.9;
}

.date {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    color: #2d3436;
}

/* Countdown Styles */
.countdown-container {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.countdown-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.9;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    min-width: 100px;
    border: 2px solid rgba(248, 187, 217, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #2d3436;
    box-shadow: 0 5px 15px rgba(244, 143, 177, 0.2);
}

.time-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(248, 187, 217, 0.4);
    border-color: rgba(244, 143, 177, 0.6);
}

.time-unit .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.time-unit .label {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Story Section */
.story-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 20%, #ffffff 40%, #a8dadc 60%, #f1faee 80%, #fce4ec 100%);
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: #81c784;
    font-weight: 600;
}

.story-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.story-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.story-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a8dadc 0%, #81c784 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.story-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.story-item p {
    color: #666;
    line-height: 1.8;
    font-weight: 300;
}

/* Details Section */
.details-section {
    padding: 100px 0;
    background: white;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.detail-card {
    background: linear-gradient(135deg, #a8dadc 0%, #81c784 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(168, 218, 220, 0.4);
}

.detail-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-time {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #f8bbd9;
}

.detail-location {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.detail-address {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

/* RSVP Section */
.rsvp-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f1faee 0%, #fce4ec 25%, #f8bbd9 50%, #ffffff 75%, #a8dadc 100%);
}

.rsvp-text {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    font-weight: 300;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
    background: #f9f9f9;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: #81c784;
    background: white;
}

.rsvp-form textarea {
    grid-column: 1 / -1;
    resize: vertical;
    min-height: 100px;
}

.rsvp-button {
    background: linear-gradient(135deg, #a8dadc 0%, #81c784 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.rsvp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 218, 220, 0.4);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.couple-initials {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #81c784;
}

.footer-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.footer-date {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #81c784;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bride-name,
    .groom-name {
        font-size: 2.5rem;
    }
    
    .ampersand {
        font-size: 2rem;
        margin: 0 10px;
    }
    
    .date {
        font-size: 2rem;
    }
    
    .countdown {
        gap: 15px;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 15px;
    }
    
    .time-unit .number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .nav ul {
        gap: 20px;
    }
    
    .nav a {
        font-size: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .story-content,
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 0 15px;
    }
    
    .bride-name,
    .groom-name {
        font-size: 2rem;
    }
    
    .countdown-title {
        font-size: 1.2rem;
    }
    
    .time-unit .number {
        font-size: 1.5rem;
    }
    
    .time-unit .label {
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
}
