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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2c3e50;
    overflow-x: hidden;
}

.waves-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="%23ffffff" opacity="0.1"/></svg>') repeat-x bottom;
    animation: wave 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes wave {
    0% { background-position: 0 0; }
    100% { background-position: 1200px 0; }
}

.opening-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.opening-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.opening-content {
    text-align: center;
    animation: floatIn 1.5s ease;
}

.wave-circle {
    width: 150px;
    height: 150px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 auto 40px;
    position: relative;
    animation: ripple 2s infinite;
}

.wave-circle::before,
.wave-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.wave-circle::before {
    width: 120%;
    height: 120%;
    animation-delay: 0.5s;
}

.wave-circle::after {
    width: 140%;
    height: 140%;
    animation-delay: 1s;
}

.opening-title {
    font-size: 3.5rem;
    color: #fff;
    margin: 30px 0;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.3s both;
}

.opening-title span {
    display: block;
    font-size: 2rem;
    margin: 15px 0;
    opacity: 0.8;
}

.opening-date {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.open-button {
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease 0.9s both;
}

.open-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-content {
    display: none;
    position: relative;
    z-index: 1;
}

.main-content.visible {
    display: block;
    animation: fadeIn 1s ease;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    position: relative;
    overflow: hidden;
}

.ocean-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: shimmer 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    animation: fadeInScale 1.2s ease;
}

.seashell-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 5rem;
    margin: 30px 0;
    font-weight: 300;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero-date {
    font-size: 1.5rem;
    margin-top: 30px;
    opacity: 0.9;
}

.wave-divider {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    margin: 40px auto 0;
    border-radius: 3px;
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 60px;
    font-weight: 300;
    position: relative;
}

.section-title::after {
    content: '〰️';
    display: block;
    margin-top: 15px;
    font-size: 1.5rem;
}

.couple-section {
    background: linear-gradient(to bottom, #e3f2fd, #bbdefb);
}

.couple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.couple-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 50px 30px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease;
}

.couple-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.bubble-decoration {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

.bubble-decoration::before {
    content: '💙';
}

.couple-card h3 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 300;
}

.role {
    font-size: 1.2rem;
    color: #667eea;
    font-style: italic;
    margin-bottom: 20px;
}

.couple-card p {
    color: #546e7a;
    line-height: 1.8;
}

.event-section {
    background: linear-gradient(to bottom, #bbdefb, #90caf9);
}

.event-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px;
    text-align: center;
    border-radius: 30px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    animation: fadeInScale 1s ease;
}

.anchor-icon {
    font-size: 4rem;
    margin-bottom: 30px;
}

.event-card h3 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 300;
}

.event-time,
.event-location,
.event-address {
    color: #546e7a;
    margin: 15px 0;
    font-size: 1.2rem;
}

.countdown-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.countdown-section .section-title {
    color: #fff;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    min-width: 120px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease;
}

.countdown-item span {
    display: block;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.countdown-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.gallery-section {
    background: linear-gradient(to bottom, #e3f2fd, #fff);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    animation: fadeInScale 0.6s ease;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsvp-section {
    background: linear-gradient(to bottom, #fff, #e3f2fd);
}

.rsvp-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s ease;
}

.guest-name {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.3rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    color: #2c3e50;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

@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.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .opening-title { font-size: 2.5rem; }
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2rem; }
    .countdown { gap: 20px; }
    .countdown-item { min-width: 100px; padding: 20px; }
    .countdown-item span { font-size: 3rem; }
}

/* Navigation Menu */
#navbar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 30px;
    transition: all 0.5s ease;
    width: max-content;
    max-width: 90vw;
}

#navbar a {
    color: #2c7da0;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#navbar a:hover {
    color: #61a5c2;
    transform: translateY(-5px);
    background: rgba(44, 125, 160, 0.1);
}

#navbar a.active {
    background: linear-gradient(135deg, #2c7da0, #61a5c2);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(44, 125, 160, 0.4);
}

@media (max-width: 768px) {
    #navbar {
        gap: 15px;
        padding: 12px 20px;
    }

    #navbar a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
