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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #eee;
    overflow-x: hidden;
}

.opening-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
    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; }

.mountain-layers {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%;
    background-size: cover;
    background-position: bottom;
}

.layer-1 {
    background: linear-gradient(to top, #1a1a2e 0%, transparent 100%);
    height: 40%;
    animation: parallaxLayer1 20s ease-in-out infinite;
}

.layer-2 {
    background: linear-gradient(to top, #16213e 0%, transparent 100%);
    height: 50%;
    animation: parallaxLayer2 15s ease-in-out infinite;
}

.layer-3 {
    background: linear-gradient(to top, #0f3460 0%, transparent 100%);
    height: 60%;
    animation: parallaxLayer3 10s ease-in-out infinite;
}

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

@keyframes parallaxLayer2 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-40px); }
}

@keyframes parallaxLayer3 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-60px); }
}

.opening-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1.5s ease;
}

.opening-title {
    font-size: 3.5rem;
    color: #fff;
    margin: 30px 0;
    font-weight: 300;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.opening-title span {
    display: block;
    font-size: 2rem;
    margin: 15px 0;
    color: #e94560;
}

.opening-date {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 40px;
}

.open-button {
    padding: 15px 50px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.open-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.6);
}

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

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

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out;
}

.layer-far {
    background: linear-gradient(to bottom, #0f2027, #203a43);
    z-index: 1;
}

.layer-mid {
    background: linear-gradient(to bottom, transparent, rgba(44, 83, 100, 0.5));
    z-index: 2;
}

.layer-near {
    background: linear-gradient(to bottom, transparent, rgba(26, 26, 46, 0.7));
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #e94560;
}

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

.hero-date {
    font-size: 1.5rem;
    margin-top: 30px;
    color: #ccc;
}

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

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

.couple-section {
    background: #16213e;
}

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

.couple-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px 30px;
    text-align: center;
    border-radius: 20px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(50px);
}

.couple-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.couple-card:hover {
    transform: translateY(-10px);
    border-color: #e94560;
    box-shadow: 0 20px 60px rgba(233, 69, 96, 0.3);
}

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

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

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

.event-section {
    background: #0f3460;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 60px;
    text-align: center;
    border-radius: 30px;
    max-width: 700px;
    margin: 0 auto;
    border: 2px solid rgba(233, 69, 96, 0.3);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.event-card.revealed {
    opacity: 1;
    transform: scale(1);
}

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

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

.countdown-section {
    background: #1a1a2e;
}

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

.countdown-item {
    text-align: center;
    background: rgba(233, 69, 96, 0.1);
    padding: 30px;
    border-radius: 20px;
    min-width: 120px;
    border: 2px solid rgba(233, 69, 96, 0.3);
}

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

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

.gallery-section {
    background: #16213e;
}

.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;
    border: 2px solid rgba(233, 69, 96, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: #e94560;
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.4);
}

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

.rsvp-section {
    background: #0f3460;
}

.rsvp-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 30px;
    border: 2px solid rgba(233, 69, 96, 0.3);
}

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

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

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(233, 69, 96, 0.3);
    color: #fff;
    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: #e94560;
    background: rgba(255, 255, 255, 0.1);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: #e94560;
    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(233, 69, 96, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@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: #5a7c65;
    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: #7a9d89;
    transform: translateY(-5px);
    background: rgba(90, 124, 101, 0.1);
}

#navbar a.active {
    background: linear-gradient(135deg, #5a7c65, #7a9d89);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(90, 124, 101, 0.4);
}

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

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