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

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

.hidden {
    display: none !important;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B5CF6, #A855F7, #C084FC, #DDD6FE);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><text x="10" y="15" font-size="12" fill="rgba(255,255,255,0.1)">💜</text></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
    opacity: 0.3;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.5s ease-out;
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.5s ease-out 0.3s both;
}

.start-journey-btn {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    animation: fadeInUp 1.5s ease-out 0.6s both;
}

.start-journey-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

/* Timeline Section */
.timeline-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
    padding: 4rem 2rem;
}

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-header h2 {
    font-size: 3rem;
    color: #8B5CF6;
    margin-bottom: 1rem;
}

.timeline-header p {
    font-size: 1.2rem;
    color: #64748B;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #8B5CF6, #A855F7, #C084FC);
    transform: translateX(-50%);
    border-radius: 2px;
}

.memories-container {
    position: relative;
    z-index: 2;
}

.memory-item {
    display: flex;
    align-items: center;
    margin: 3rem 0;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease forwards;
}

.memory-item:nth-child(even) {
    flex-direction: row-reverse;
}

.memory-item:nth-child(even) .memory-content {
    text-align: right;
}

.memory-item:nth-child(even) .memory-content::before {
    left: auto;
    right: -20px;
}

.memory-content {
    flex: 1;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.memory-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.memory-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-right-color: white;
    transform: translateY(-50%);
}

.memory-item:nth-child(even) .memory-content::before {
    border-right-color: transparent;
    border-left-color: white;
}

.memory-date {
    font-size: 0.9rem;
    color: #8B5CF6;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.memory-title {
    font-size: 1.3rem;
    color: #1E293B;
    margin-bottom: 1rem;
}

.memory-caption {
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.memory-images {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.memory-receipt, .memory-couple {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.memory-receipt:hover, .memory-couple:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.memory-receipt img, .memory-couple img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.memory-couple {
    position: relative;
}

.memory-couple img {
    height: 400px;
}

.image-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.memory-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.action-btn {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Emotional Button */
.emotional-btn {
    background: linear-gradient(45deg, #EC4899, #F472B6) !important;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    animation: emotionalGlow 2s ease-in-out infinite;
}

.emotional-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.6);
}

.timeline-end {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
}

.end-message h3 {
    font-size: 2rem;
    color: #8B5CF6;
    margin-bottom: 2rem;
}

.secret-btn {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.secret-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

/* Deep Emotions Section */
.deep-emotions-section {
    background: linear-gradient(135deg, #1E1B4B, #312E81);
    margin-top: 4rem;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.emotions-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #F472B6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.emotions-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #E0E7FF;
    line-height: 1.8;
}

.emotional-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.deep-emotional-btn {
    background: linear-gradient(45deg, #EC4899, #F472B6);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deep-emotional-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.6);
    background: linear-gradient(45deg, #F472B6, #EC4899);
}

    .deep-emotional-btn i {
        font-size: 1.3rem;
    }

    /* Journey End Section */
    .journey-end-section {
        background: linear-gradient(135deg, #7C3AED, #8B5CF6);
        margin-top: 4rem;
        padding: 4rem 2rem;
        border-radius: 20px;
        text-align: center;
        color: white;
        box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    .journey-end-content h3 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: #FCD34D;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .journey-end-content p {
        font-size: 1.3rem;
        margin-bottom: 3rem;
        color: #E0E7FF;
        line-height: 1.8;
    }

    .journey-end-buttons {
        display: flex;
        gap: 2rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .journey-end-btn {
        background: linear-gradient(45deg, #FCD34D, #F59E0B);
        color: #1F2937;
        border: none;
        padding: 1.5rem 2rem;
        border-radius: 15px;
        cursor: pointer;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        box-shadow: 0 8px 25px rgba(252, 211, 77, 0.4);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 600;
    }

    .journey-end-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(252, 211, 77, 0.6);
        background: linear-gradient(45deg, #F59E0B, #FCD34D);
    }

    .journey-end-btn.secondary {
        background: linear-gradient(45deg, #EC4899, #F472B6);
        color: white;
    }

    .journey-end-btn.secondary:hover {
        background: linear-gradient(45deg, #F472B6, #EC4899);
        box-shadow: 0 15px 35px rgba(236, 72, 153, 0.6);
    }

    .journey-end-btn i {
        font-size: 1.3rem;
    }

    /* Final Section */
.final-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.final-content {
    max-width: 800px;
    padding: 2rem;
}

.final-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.final-text {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.download-btn, .back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.download-btn:hover, .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #8B5CF6;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #A855F7;
    transform: scale(1.1);
}

.modal-body {
    margin-top: 1rem;
}

.memory-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.memory-images img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Multiple couple images in modal */
.couple-image-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.couple-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.couple-image-item {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.couple-image-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Slider buttons */
.slider-btn {
    background: rgba(139, 92, 246, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(139, 92, 246, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.slider-btn:active {
    transform: scale(0.95);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* Hide buttons when not needed */
.slider-btn.hidden {
    display: none !important;
}

.memory-images img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.memory-details h3 {
    color: #8B5CF6;
    margin-bottom: 1rem;
}

.memory-details p {
    color: #64748B;
    margin-bottom: 1rem;
}

.map-container {
    height: 200px;
    background: #F1F5F9;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B5CF6;
    font-weight: 500;
}

/* Secret Modal */
.secret-modal {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
}

.secret-content {
    text-align: center;
}

.secret-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.secret-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.heart-animation {
    font-size: 4rem;
    animation: heartBeat 2s ease-in-out infinite;
}

/* Ticket Modal */
.ticket-modal {
    background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
}

.ticket-content {
    text-align: center;
}

.ticket-content h3 {
    color: #8B5CF6;
    margin-bottom: 2rem;
}

.ticket-content p {
    color: #64748B;
    margin-bottom: 1rem;
}

.ticket-content input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.ticket-content button {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ticket-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

#ticketContent {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #E2E8F0;
}

#ticketContent img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 1rem;
}

#ticketAudio {
    width: 100%;
}

/* Special Emotional Modal */
.special-emotional-modal {
    background: linear-gradient(135deg, #EC4899, #F472B6) !important;
    color: white;
}

.special-content {
    text-align: center;
}

.special-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.special-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: white;
}

.special-content ul {
    text-align: right;
    margin: 1rem 0;
    list-style: none;
}

.special-content li {
    margin: 0.5rem 0;
    padding-right: 1rem;
    position: relative;
}

.special-content li::before {
    content: '💜';
    position: absolute;
    right: 0;
    top: 0;
}

.special-content button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.special-content button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatHeart {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-100px) scale(0.5); opacity: 0; }
}

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

@keyframes emotionalGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(236, 72, 153, 0.5); }
    50% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.8); }
}

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

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

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

/* Emotional Notifications */
.notification-emotional {
    background: linear-gradient(45deg, #EC4899, #F472B6) !important;
    border-left: 4px solid #F472B6;
    animation: emotionalGlow 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .memory-item {
        flex-direction: column !important;
        margin-left: 3rem;
    }
    
    .memory-content::before {
        display: none;
    }
    
    .memory-images {
        grid-template-columns: 1fr;
    }
    
    .timeline-header h2 {
        font-size: 2rem;
    }
    
    .final-content h2 {
        font-size: 2.5rem;
    }
    
    .download-btn, .back-btn {
        display: block;
        margin: 1rem auto;
        width: 80%;
    }
    
    .emotional-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .deep-emotional-btn {
        width: 80%;
        margin: 0.5rem 0;
    }
    
    .journey-end-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .journey-end-btn {
        width: 80%;
        margin: 0.5rem 0;
    }
    
    /* Mobile slider adjustments */
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .couple-image-container {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .timeline-section {
        padding: 2rem 1rem;
    }
    
    .memory-content {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}
