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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Parallax Background */
.parallax-bg {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.parallax-bg>* {
    position: relative;
    z-index: 2;
}

/* Hero Section with Video Background */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.scroll-indicator {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    margin: 0 auto 10px;
    animation: bounce 2s infinite;
}

/* Timeline Section */
.timeline-section {
    position: relative;
}

.timeline-event {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.timeline-event:nth-child(1) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/first-meeting.jpg');
}

.timeline-event:nth-child(2) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/first-date.jpg');
}

.timeline-event:nth-child(3) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/vacation.jpg');
}

.timeline-event:nth-child(4) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/special-moment.jpg');
}

.timeline-event:nth-child(5) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/recent-memory.jpg');
}

.timeline-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.timeline-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content.left {
    text-align: left;
}

.timeline-content.right {
    text-align: right;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-width: 500px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.timeline-card.animate {
    transform: translateY(0);
    opacity: 1;
}

.timeline-content.right .timeline-card {
    margin-left: auto;
}

.timeline-date {
    color: #e91e63;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.timeline-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.timeline-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

/* Question Section */
.question-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/question-bg.jpg');
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.question-content {
    max-width: 800px;
    padding: 0 20px;
}

.question-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.question-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.continue-indicator {
    opacity: 0.8;
}

/* Card Section */
.card-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.card-container {
    perspective: 1000px;
    position: relative;
}

.dating-card {
    width: 350px;
    height: 700px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    cursor: grab;
    transition: transform 0.3s ease;
    user-select: none;
}

.dating-card:active {
    cursor: grabbing;
}

.dating-card.swipe-right {
    transform: translateX(100px) rotate(15deg);
    opacity: 0.8;
}

.dating-card.swipe-left {
    transform: translateX(-100px) rotate(-15deg);
    opacity: 0.8;
}

.card-image {
    height: 32%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 0.5rem;
    height: 70%;
    display: flex;
    flex-direction: column;
}

.card-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #e91e63;
    text-align: center;
    margin-bottom: 0.7rem;
    line-height: 1;
}

.card-details {
    margin-top: 0;
    padding-top: 0;
}

.card-details p {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.card-details p:first-child {
    text-align: center;
    font-size: 0.76rem;
}


.card-details strong {
    color: #333;
}

.card-actions {
    position: relative;
    margin-top: 0.2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.action-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-button:hover {
    transform: scale(1.1);
}

.action-button.reject {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

.action-button.accept {
    background: linear-gradient(135deg, #4ecdc4, #26a69a);
}

.swipe-instructions {
    margin-top: 4rem;
    text-align: center;
    color: white;
}

.swipe-instructions p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Response Messages */
.response-message {
    text-align: center;
    color: white;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 400px;
}

.response-message h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.response-message p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.celebration {
    font-size: 2rem;
    animation: bounce 1s infinite;
}

.try-again-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.try-again-btn:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .timeline-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    .timeline-card h3 {
        font-size: 1.8rem;
    }

    .question-content h2 {
        font-size: 2rem;
    }

    .dating-card {
        width: 300px;
        height: 900px;
    }

    .card-content h2 {
        font-size: 1.5rem;
    }

    .response-message h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .timeline-event {
        padding: 0 2%;
    }

    .timeline-card {
        padding: 1.5rem;
    }

    .dating-card {
        width: 280px;
        height: 500px;
    }

    .action-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.8s ease;
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    color: white;
    user-select: none;
}

.splash-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.splash-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.splash-button {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.splash-text {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.splash-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

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

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

@media (max-width: 768px) {
    .splash-title {
        font-size: 3rem;
    }
    
    .splash-subtitle {
        font-size: 1rem;
    }
}