/* ===== CSS Variables ===== */
:root {
    --primary-color: #d4a574;
    --secondary-color: #8b6f47;
    --accent-color: #e8c4a0;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --bg-light: #faf8f5;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-romantic: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Animated Background ===== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 50%;
    right: -10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    bottom: -10%;
    left: 30%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-hearts::before,
.floating-hearts::after {
    content: '♥';
    position: absolute;
    font-size: 30px;
    color: rgba(212, 165, 116, 0.2);
    animation: floatHeart 15s infinite ease-in-out;
}

.floating-hearts::before {
    left: 20%;
    animation-delay: 0s;
}

.floating-hearts::after {
    right: 20%;
    animation-delay: 7s;
}

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

.date-badge {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 3rem;
    animation: slideDown 1s ease-out 0.3s both;
}

.date-text {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 300;
    margin: 2rem 0;
    line-height: 1.2;
}

.name {
    display: inline-block;
    animation: fadeInScale 1.2s ease-out both;
}

.name-1 {
    animation-delay: 0.5s;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ampersand {
    display: inline-block;
    margin: 0 1rem;
    font-size: 0.8em;
    animation: rotate 1.5s ease-out 0.8s both;
    color: var(--primary-color);
}

.name-2 {
    animation-delay: 1s;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    margin: 2rem 0;
    animation: fadeIn 1.5s ease-out 1.3s both;
}

.tagline-text {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-dark);
    opacity: 0.8;
}

.scroll-indicator {
    margin-top: 4rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    margin: 0 auto;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scrollDot 2s infinite;
}

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

/* ===== Section Styles ===== */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

/* ===== Story Section ===== */
.story-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

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

.story-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease-out both;
}

.story-card:nth-child(1) { animation-delay: 0.1s; }
.story-card:nth-child(2) { animation-delay: 0.2s; }
.story-card:nth-child(3) { animation-delay: 0.3s; }
.story-card:nth-child(4) { animation-delay: 0.4s; }

.story-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.story-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.story-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.story-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    opacity: 0.8;
}

/* ===== Details Section ===== */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    padding: 3rem 2rem;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.8s ease-out both;
}

.detail-card:nth-child(1) { animation-delay: 0.1s; }
.detail-card:nth-child(2) { animation-delay: 0.2s; }
.detail-card:nth-child(3) { animation-delay: 0.3s; }

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.detail-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

.detail-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.detail-info {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.detail-subinfo {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* ===== Countdown Section ===== */
.countdown-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

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

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    min-width: 140px;
    transition: all 0.3s ease;
    animation: fadeInScale 0.8s ease-out both;
}

.countdown-item:nth-child(1) { animation-delay: 0.1s; }
.countdown-item:nth-child(2) { animation-delay: 0.2s; }
.countdown-item:nth-child(3) { animation-delay: 0.3s; }
.countdown-item:nth-child(4) { animation-delay: 0.4s; }

.countdown-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.countdown-value {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dark);
    opacity: 0.7;
}

/* ===== RSVP Section ===== */
.rsvp-section {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    text-align: center;
}

.rsvp-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.rsvp-button {
    position: relative;
    padding: 1.5rem 4rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    animation: fadeInScale 1s ease-out;
}

.rsvp-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-strong);
}

.rsvp-button:active {
    transform: translateY(-1px) scale(1.02);
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

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

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-hearts {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.heart {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: heartbeat 1.5s infinite;
}

.heart:nth-child(2) {
    animation-delay: 0.2s;
}

.heart:nth-child(3) {
    animation-delay: 0.4s;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes rotate {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.2);
    }
    20%, 40% {
        transform: scale(1);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .names {
        font-size: 3rem;
    }
    
    .ampersand {
        margin: 0 0.5rem;
    }
    
    .story-timeline,
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 100px;
        padding: 1.5rem 2rem;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .rsvp-button {
        padding: 1.2rem 3rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .story-card,
    .detail-card {
        padding: 2rem 1.5rem;
    }
}
