/* wedding-styles.css */

/* Base Styles */
:root {
    --main-white: #ffffff;
    --dark-blue: #0a1a35;
    --gold: #d4af37;
    --light-gold: #f1e5ac;
    --light-blue: #1e3a5f;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-blue);
    background-color: var(--main-white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.main-nav.scrolled {
    background: rgba(10, 26, 53, 0.95);
    padding: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: bold;
}

.nav-links a {
    color: var(--main-white);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: var(--main-white);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    position: relative;
}

.save-the-date {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--gold);
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

.couple-names {
    font-size: 4.5rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease 1s forwards;
}

.name-highlight {
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.name-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    animation: lineExpand 1.5s ease 2s forwards;
}

.wedding-date {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease 1.5s forwards;
}

.date-main {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.date-month {
    color: var(--gold);
}

.date-time {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* Background Animation */
.bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.floating-flower {
    position: absolute;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' width='50' height='50'%3E%3Cpath d='M25 5 C20 5, 15 10, 15 15 C15 20, 20 25, 25 25 C30 25, 35 20, 35 15 C35 10, 30 5, 25 5 Z' fill='none' stroke='%23d4af37' stroke-width='0.5' opacity='0.7'/%3E%3Cpath d='M25 10 C22 10, 20 12, 20 15 C20 18, 22 20, 25 20 C28 20, 30 18, 30 15 C30 12, 28 10, 25 10 Z' fill='none' stroke='%23d4af37' stroke-width='0.3' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    opacity: 0.5;
}

.floating-flower:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: float 15s ease-in-out infinite;
}

.floating-flower:nth-child(2) {
    top: 60%;
    left: 80%;
    animation: float 18s ease-in-out infinite 2s;
}

.floating-flower:nth-child(3) {
    top: 30%;
    left: 75%;
    animation: float 12s ease-in-out infinite 1s;
}

.gold-dot {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
}

.gold-dot:nth-child(4) {
    width: 10px;
    height: 10px;
    top: 40%;
    left: 20%;
    animation: pulse 3s ease-in-out infinite;
}

.gold-dot:nth-child(5) {
    width: 15px;
    height: 15px;
    top: 70%;
    left: 15%;
    animation: pulse 4s ease-in-out infinite 1s;
}

.gold-dot:nth-child(6) {
    width: 8px;
    height: 8px;
    top: 80%;
    left: 70%;
    animation: pulse 5s ease-in-out infinite 2s;
}

/* Story Section */
.story {
    padding: 100px 0;
    background: var(--main-white);
}

.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gold);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease, transform 1s ease;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--dark-blue);
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 2;
}

.timeline-content {
    background: var(--main-white);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 80%;
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--main-white);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-right: 1px solid rgba(212, 175, 55, 0.3);
    transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-content::after {
    right: auto;
    left: -10px;
    transform: rotate(-135deg);
}

.timeline-content h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

/* Details Section */
.details {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f9f9f9 0%, #ffffff 100%);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.detail-card {
    background: var(--main-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--dark-blue), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
}

.detail-card:hover::before {
    transform: scaleX(1);
}

.detail-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gold);
    font-size: 2rem;
}

.detail-card h3 {
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.detail-card p {
    margin-bottom: 25px;
    color: var(--light-blue);
}

.detail-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.detail-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--dark-blue);
    transition: width 0.3s ease;
    z-index: -1;
}

.detail-btn:hover {
    color: var(--main-white);
}

.detail-btn:hover::before {
    width: 100%;
}

/* Countdown Section */
.countdown {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: var(--main-white);
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 10px;
    min-width: 130px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    color: var(--gold);
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--main-white);
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: bold;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineExpand {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .couple-names {
        font-size: 3.5rem;
    }
    
    .date-main {
        font-size: 2.8rem;
    }
    
    .story-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 80px;
    }
    
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-date {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-content::after {
        right: auto;
        left: -10px;
        transform: rotate(-135deg);
    }
    
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        transform: rotate(-135deg);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .couple-names {
        font-size: 2.8rem;
    }
    
    .date-main {
        font-size: 2.2rem;
    }
    
    .countdown-item {
        min-width: 100px;
    }
    
    .countdown-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .couple-names {
        font-size: 2.2rem;
    }
    
    .date-main {
        font-size: 1.8rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 20px 10px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}