/* ===== Wedding Invitation Web App Styles ===== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

/* Background Gradient */
body {
    background: linear-gradient(135deg, #ffe6ec 0%, #fff0f5 50%, #fff5ee 100%);
}

/* ===== Index Page Styles ===== */

/* Three.js Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Get Started Container */
.get-started-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

/* Heart-shaped Get Started Button */
.get-started-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(145deg, #ff6b9d, #ff8fb3);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px 50px 50px 50px / 30px 30px 30px 30px;
    box-shadow: 
        0 8px 25px rgba(255, 107, 157, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.get-started-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 35px rgba(255, 107, 157, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* Flower Decoration */
.flower-decoration {
    font-size: 1.5rem;
    animation: rotate-flower 4s linear infinite;
}

@keyframes rotate-flower {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Envelope Decoration */
.envelope-decoration {
    font-size: 1.3rem;
}

/* Button Text */
.btn-text {
    letter-spacing: 1px;
}

/* ===== Main Page Styles ===== */

/* Three.js Canvas */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Card Container */
.card-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    height: 60vh;
    max-height: 500px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Card Buttons */
.card-button {
    width: 100%;
    max-width: 280px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.card-button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(255, 107, 157, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Buttons Row */
.buttons-row {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.buttons-row .card-button {
    flex: 1;
    max-width: 160px;
}

.card-icon {
    font-size: 2rem;
}

.card-label {
    font-size: 1.3rem;
    color: #d6336c;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Glassmorphism Page Styles */
.glass-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform-origin: center center;
}

/* Glassmorphism Page - Open State */
.glass-page.active {
    opacity: 1;
    pointer-events: auto;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    color: #d6336c;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 107, 157, 0.8);
    color: white;
    transform: rotate(90deg);
}

/* Page Content */
.page-content {
    width: 100%;
}

.page-content h1 {
    color: #d6336c;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.page-content h2 {
    color: #c3456a;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 400;
}

.page-content p {
    color: #5a4a5a;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.page-content .date {
    color: #d6336c;
    font-weight: 600;
    font-size: 1.1rem;
}

.page-content .venue {
    color: #8a6a7a;
    font-style: italic;
}

.page-content .message {
    color: #6a5a6a;
    font-size: 0.95rem;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* Page 1 (Bottom) */
.page-1 {
    z-index: 5;
    transform-origin: center top;
}

/* Page 2 (Top) */
.page-2 {
    z-index: 6;
    opacity: 0;
    pointer-events: none;
}

/* Navigation Buttons */
.navigation {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 20;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    color: #d6336c;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 107, 157, 0.8);
    color: white;
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== Responsive Styles ===== */

@media (max-width: 480px) {
    .get-started-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .card-container {
        width: 92%;
        height: 55vh;
    }

    .card-button {
        padding: 20px 25px;
    }

    .card-icon {
        font-size: 1.5rem;
    }

    .card-label {
        font-size: 1.1rem;
    }

    .glass-page {
        padding: 20px;
    }

    .page-content h1 {
        font-size: 1.4rem;
    }

    .page-content h2 {
        font-size: 1.2rem;
    }

    .page-content p {
        font-size: 0.9rem;
    }

    .close-btn {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/* ===== Animations ===== */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}