/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none; /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Disable copy/paste */
*:focus {
    outline: none;
}

:root {
    --sky-blue: #87CEEB;
    --coral-pink: #FF7F50;
    --purple: #663399;
    --light-purple: rgba(102, 51, 153, 0.1);
    --light-blue: rgba(135, 206, 235, 0.1);
    --light-coral: rgba(255, 127, 80, 0.1);
}

body {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2ff 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 10px 20px;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--purple) 0%, var(--coral-pink) 50%, var(--sky-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 2px;
    background: linear-gradient(to right, 
        transparent,
        var(--sky-blue) 20%,
        var(--coral-pink) 50%,
        var(--purple) 80%,
        transparent
    );
}

.count-up-timer {
    margin-top: 20px;
    display: inline-block;
    padding: 25px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 3px 15px rgba(102, 51, 153, 0.08);
    position: relative;
}

.count-up-timer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--coral-pink) 100%);
    border-radius: 21px;
    z-index: -1;
    opacity: 0.2;
}

.timer-label {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: var(--purple);
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 1px;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.timer-unit {
    background: white;
    padding: 20px;
    border-radius: 15px;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 51, 153, 0.08);
}

.timer-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--coral-pink);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
}

.timer-label-unit {
    display: block;
    font-size: 0.9rem;
    color: var(--purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Photo Section */
.main-photo-section {
    text-align: center;
    margin-bottom: 40px;
}

.main-photo-container {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.main-photo {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    width: auto;
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(102, 51, 153, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transform: perspective(1000px) rotateX(2deg);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.main-photo:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(102, 51, 153, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.quote-container {
    margin: 20px auto;
    max-width: 800px;
    position: relative;
    padding: 0 20px;
}

.love-quote {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 600;
    color: var(--purple);
    position: relative;
    line-height: 1.6;
}

/* Carousel Styles */
.carousel-section {
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(102, 51, 153, 0.15);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9ff;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-image:hover {
    transform: scale(1.02);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--purple);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(102, 51, 153, 0.15);
}

.carousel-btn:hover {
    background: var(--sky-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

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

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

.carousel-dots {
    text-align: center;
    padding: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(102, 51, 153, 0.2);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--purple);
    transform: scale(1.2);
}

/* Countdown Section */
.countdown-section {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 20px;
    background: white;
    border-radius: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 3px 15px rgba(102, 51, 153, 0.08);
    position: relative;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--coral-pink) 100%);
    border-radius: 26px;
    z-index: -1;
    opacity: 0.2;
}

.to-be-continued h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.countdown-container {
    position: relative;
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    visibility: visible;
    opacity: 1;
    width: 100%;
}

.countdown-unit {
    background: white;
    padding: 25px;
    border-radius: 15px;
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 51, 153, 0.08);
}

.countdown-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--coral-pink);
    margin-bottom: 5px;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: var(--purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coordinates-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--purple);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    padding: 20px 30px;
    border-radius: 12px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    z-index: 2;
    background: white;
    box-shadow: 0 10px 30px rgba(102, 51, 153, 0.15);
}

.countdown-container:hover .countdown-display {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.countdown-container:hover .coordinates-display {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header, .main-photo-section, .carousel-section, .countdown-section {
    animation: fadeInUp 0.8s ease-out;
}

.main-photo-section {
    animation-delay: 0.2s;
}

.carousel-section {
    animation-delay: 0.4s;
}

.countdown-section {
    animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2.8rem;
    }
    
    .timer-display {
        font-size: 1.8rem;
        color: #351e4b; /* Slightly purple-black shade */
    }
    
    .love-quote {
        font-size: 1.6rem;
    }
    
    .countdown-display {
        gap: 20px;
    }
    
    .countdown-unit {
        min-width: 120px;
        max-width: 150px;
        padding: 20px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .coordinates-display {
        font-size: 1.5rem;
        padding: 15px 20px;
    }
    
    .timer-unit {
        min-width: 120px;
        padding: 15px;
    }
    
    .timer-number {
        font-size: 2rem;
    }
    
    .timer-label-unit {
        font-size: 0.8rem;
    }
    
    .timer-label {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .countdown-display {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .countdown-unit {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    
    .to-be-continued h2 {
        font-size: 2rem;
    }
    
    .love-quote {
        font-size: 1.4rem;
    }
}

/* Photo Modal Styles */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalImageFadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    color: #663399;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-close:hover {
    background: #FF7F50;
    color: white;
    transform: scale(1.1);
}

@keyframes modalImageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-close {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}
