@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-5%, -5%);
    }
}

/* Confetti Canvas */
#confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Gift Container */
.gift-container {
    text-align: center;
    z-index: 10;
    position: relative;
}

.message-before {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
}

.glowing-text {
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(255, 255, 255, 0.4);
    animation: glow 2s ease-in-out infinite;
    font-weight: 700;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 20px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.arrow-down {
    font-size: 2rem;
    color: white;
    margin-top: 20px;
    animation: bounce 2s infinite;
}

/* Gift Box */
.gift-box {
    width: 320px;
    height: 320px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.gift-box:hover {
    transform: scale(1.08) translateY(-10px);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

.gift-box:active {
    transform: scale(1.05) translateY(-5px);
}

.box-body {
    width: 100%;
    height: 70%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #ff6b6b 100%);
    position: absolute;
    bottom: 0;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                inset 0 -5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.box-body::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 10px;
}

.box-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shine 3s infinite;
}

.box-lid {
    width: 110%;
    height: 35%;
    background: linear-gradient(135deg, #ff8787 0%, #ff6b6b 50%, #ff8787 100%);
    position: absolute;
    top: 0;
    left: -5%;
    border-radius: 15px 15px 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                inset 0 5px 15px rgba(255, 255, 255, 0.2);
    transform-origin: bottom;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
}

.box-lid::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5%;
    right: 5%;
    height: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 10px;
}

.gift-box.opening .box-lid {
    transform: rotateX(-110deg) translateY(-20px);
}

/* Ribbon */
.ribbon-horizontal,
.ribbon-vertical {
    position: absolute;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3),
                inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.ribbon-horizontal {
    width: 100%;
    height: 35px;
    top: 50%;
    transform: translateY(-50%);
}

.ribbon-horizontal::before,
.ribbon-horizontal::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 60%;
    background: rgba(0, 0, 0, 0.1);
}

.ribbon-horizontal::before {
    left: 20%;
}

.ribbon-horizontal::after {
    right: 20%;
}

.ribbon-vertical {
    width: 35px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.ribbon-vertical::before,
.ribbon-vertical::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
}

.ribbon-vertical::before {
    top: 20%;
}

.ribbon-vertical::after {
    bottom: 20%;
}

/* Bow */
.bow {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bowFloat 3s ease-in-out infinite;
}

@keyframes bowFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.bow-left,
.bow-right {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 50% 50% 0 50%;
    position: absolute;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4),
                inset 0 3px 10px rgba(255, 255, 255, 0.5);
}

.bow-left {
    transform: rotate(-45deg);
    left: -35px;
}

.bow-left::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.bow-right {
    transform: rotate(45deg) scaleX(-1);
    right: -35px;
}

.bow-right::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.bow-center {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 50%;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4),
                inset 0 3px 10px rgba(255, 255, 255, 0.5);
}

.bow-center::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

/* Surprise Content */
.surprise-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.surprise-content.show {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.surprise-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
    pointer-events: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.close-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
}

.close-btn:active {
    transform: rotate(90deg) scale(1.05);
}

/* Slideshow Wrapper */
.slideshow-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    direction: ltr;
}

/* Slideshow Container */
.slideshow-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
    touch-action: pan-x;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: stretch;
    direction: ltr;
}

.slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 30px 60px 120px 60px;
    gap: 40px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    direction: rtl;
}

.slide.active {
    z-index: 1;
}



/* Mobile: vertical layout */
@media (max-width: 1024px) {
    .slide {
        flex-direction: column;
        padding: 20px 15px 90px 15px;
        gap: 20px;
    }
}

/* Scrollbar styling for dark theme */
.slide::-webkit-scrollbar {
    width: 8px;
}

.slide::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.slide::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.slide::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Different animation for each slide */
.slide.active.slide-anim-1 {
    animation: fadeInScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide.active.slide-anim-2 {
    animation: slideInFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide.active.slide-anim-3 {
    animation: slideInFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide.active.slide-anim-4 {
    animation: zoomRotate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide.active.slide-anim-5 {
    animation: flipIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Slide out animations */
.slide.slide-out-left {
    animation: slideOutLeft 0.5s ease forwards;
}

.slide.slide-out-right {
    animation: slideOutRight 0.5s ease forwards;
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-100%) scale(0.8);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

/* Slide Animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes zoomRotate {
    from {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg);
    }
}

/* Photo Frame */
.photo-frame {
    margin-bottom: 0;
    animation: photoAppear 1s ease, floatPhoto 3s ease-in-out infinite;
    width: 100%;
    max-width: 450px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    .photo-frame {
        margin-bottom: 20px;
        max-width: 550px;
    }
}

@keyframes floatPhoto {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.frame-border {
    position: relative;
    display: inline-block;
    padding: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 18px;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.7),
                0 0 60px rgba(255, 215, 0, 0.3),
                inset 0 5px 20px rgba(255, 255, 255, 0.6),
                inset 0 -5px 20px rgba(0, 0, 0, 0.3);
    animation: frameGlow 2s ease-in-out infinite;
}

@media (max-width: 1024px) {
    .frame-border {
        padding: 18px;
        border-radius: 20px;
    }
}

@keyframes frameGlow {
    0%, 100% {
        box-shadow: 0 35px 100px rgba(0, 0, 0, 0.7),
                    0 0 60px rgba(255, 215, 0, 0.3),
                    inset 0 5px 20px rgba(255, 255, 255, 0.6),
                    inset 0 -5px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 35px 100px rgba(0, 0, 0, 0.7),
                    0 0 80px rgba(255, 215, 0, 0.6),
                    0 0 120px rgba(255, 215, 0, 0.4),
                    inset 0 5px 20px rgba(255, 255, 255, 0.6),
                    inset 0 -5px 20px rgba(0, 0, 0, 0.3);
    }
}

.frame-border::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    pointer-events: none;
}

.frame-border::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    pointer-events: none;
}

.couple-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 50vh;
    border-radius: 15px;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .couple-photo {
        max-width: 500px;
        max-height: 35vh;
    }
}

.hearts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.heart-float {
    position: absolute;
    color: #ff6b6b;
    font-size: 2.5rem;
    animation: floatHeart 3s ease-in-out infinite;
    opacity: 0.9;
    filter: drop-shadow(0 5px 10px rgba(255, 107, 107, 0.5));
}

.heart-float:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.heart-float:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
    animation-duration: 3.5s;
}

.heart-float:nth-child(3) {
    bottom: 15%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 2.8s;
}

.heart-float:nth-child(4) {
    bottom: 25%;
    right: 10%;
    animation-delay: 1.5s;
    animation-duration: 3.2s;
}

.heart-float:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 2s;
    animation-duration: 3.8s;
}

/* Additional sparkles */
.frame-border .sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkleMove 2s ease-in-out infinite;
}

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

/* Love Message */
.love-message {
    text-align: center;
    animation: messageAppear 1s ease;
    padding: 30px 40px 35px 40px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    position: relative;
    width: 100%;
    max-width: 500px;
    flex-shrink: 0;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .love-message {
        max-width: 650px;
        margin-bottom: 15px;
    }
}

.love-message::before {
    content: '💝';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: heartBeat 1.5s ease-in-out infinite;
}

@media (max-width: 1024px) {
    .love-message::before {
        top: -30px;
        font-size: 3.5rem;
        width: 70px;
        height: 70px;
    }
}

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

.message-title {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    margin-top: 30px;
    animation: pulse 2s ease-in-out infinite;
    font-weight: 700;
    line-height: 1.3;
}

.message-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin: 0 auto 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.signature {
    font-size: 1.05rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-top: 20px;
    font-style: italic;
    position: relative;
    display: inline-block;
}

@media (max-width: 1024px) {
    .message-title {
        font-size: 2.2rem;
        margin-bottom: 18px;
        margin-top: 35px;
    }
    
    .message-text {
        font-size: 1.15rem;
        line-height: 1.8;
        margin-bottom: 20px;
    }
    
    .signature {
        font-size: 1.15rem;
        margin-top: 25px;
    }
}

.signature::before {
    content: '✨';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    animation: sparkleLeft 2s ease-in-out infinite;
}

.signature::after {
    content: '✨';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    animation: sparkleRight 2s ease-in-out infinite;
}

@keyframes sparkleLeft {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) rotate(180deg);
        opacity: 0.6;
    }
}

@keyframes sparkleRight {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) rotate(-180deg);
        opacity: 0.6;
    }
}

/* Action Buttons */
.action-buttons {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 1001;
    animation: buttonsAppear 1s ease 1.5s backwards;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Slide Navigation */
.slide-nav {
    position: fixed;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Navigation Arrows */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    opacity: 0.7;
}

.nav-arrow:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-arrow-left {
    left: 20px;
}

.nav-arrow-right {
    right: 20px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slide-dot.active {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: white;
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                0 4px 12px rgba(0, 0, 0, 0.3);
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-action {
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
                inset 0 2px 10px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-action:hover::before {
    width: 300px;
    height: 300px;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
                inset 0 2px 10px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-action:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-action i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    animation: iconPulse 2s ease-in-out infinite;
}

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

.btn-action span {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                     0 0 40px rgba(255, 255, 255, 0.6);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 1),
                     0 0 60px rgba(255, 255, 255, 0.8),
                     0 0 80px rgba(255, 255, 255, 0.6);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

@keyframes floatHeart {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

@keyframes photoAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotateY(180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateY(0);
    }
}

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

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

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

/* Responsive */
@media (max-width: 1024px) {
    .glowing-text {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .gift-box {
        width: 280px;
        height: 280px;
    }
    
    .slide {
        flex-direction: column;
        padding: 20px 15px 85px 15px;
        gap: 15px;
    }
    
    /* Hide scrollbar on mobile but keep functionality */
    .slide::-webkit-scrollbar {
        width: 4px;
    }
    
    .slide::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .photo-frame {
        max-width: 550px;
    }
    
    .couple-photo {
        max-width: 500px;
        max-height: 40vh;
    }
    
    .love-message {
        max-width: 650px;
        padding: 30px 35px;
    }
    
    .message-title {
        font-size: 2.3rem;
    }
    
    .message-text {
        font-size: 1.25rem;
    }
    
    .signature {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .glowing-text {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .arrow-down {
        font-size: 1.5rem;
    }
    
    .gift-box {
        width: 240px;
        height: 240px;
    }
    
    .bow-left,
    .bow-right {
        width: 50px;
        height: 50px;
    }
    
    .bow-left {
        left: -30px;
    }
    
    .bow-right {
        right: -30px;
    }
    
    .bow-center {
        width: 30px;
        height: 30px;
    }
    
    .slide {
        flex-direction: column;
        padding: 20px 15px 100px 15px;
        gap: 20px;
        justify-content: flex-start;
    }
    
    .photo-frame {
        max-width: 95%;
        margin-bottom: 20px;
    }
    
    .frame-border {
        padding: 15px;
    }
    
    .couple-photo {
        max-width: 100%;
        max-height: 35vh;
    }
    
    .love-message {
        padding: 25px 20px 30px 20px;
        max-width: 95%;
        margin-bottom: 15px;
    }
    
    .love-message::before {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
        top: -25px;
    }
    
    .message-title {
        font-size: 1.8rem;
        margin-top: 30px;
        margin-bottom: 18px;
        line-height: 1.4;
    }
    
    .message-text {
        font-size: 1.1rem;
        line-height: 1.9;
    }
    
    .signature {
        font-size: 1.1rem;
        margin-top: 20px;
    }
    
    .signature::before,
    .signature::after {
        font-size: 1.2rem;
        left: -35px;
        right: -35px;
    }
    
    .action-buttons {
        bottom: 10px;
        gap: 8px;
        padding: 8px 12px;
        width: auto;
        max-width: 90%;
        border-radius: 25px;
    }
    
    .btn-action {
        flex: 0 0 auto;
        min-width: 50px;
        width: 50px;
        height: 50px;
        padding: 0;
        font-size: 1rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-action span {
        display: none !important;
    }
    
    .btn-action i {
        font-size: 1.4rem;
        margin: 0;
    }
    
    .slide-nav {
        bottom: 70px;
        padding: 8px 12px;
    }
    
    .nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .nav-arrow-left {
        left: 15px;
    }
    
    .nav-arrow-right {
        right: 15px;
    }
    
    .slide-dot {
        width: 10px;
        height: 10px;
    }
    
    .close-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        top: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .glowing-text {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .arrow-down {
        font-size: 1.3rem;
    }
    
    .gift-box {
        width: 200px;
        height: 200px;
    }
    
    .ribbon-horizontal {
        height: 28px;
    }
    
    .ribbon-vertical {
        width: 28px;
    }
    
    .bow-left,
    .bow-right {
        width: 45px;
        height: 45px;
    }
    
    .bow-left {
        left: -25px;
    }
    
    .bow-right {
        right: -25px;
    }
    
    .bow-center {
        width: 28px;
        height: 28px;
    }
    
    .slide {
        flex-direction: column;
        padding: 12px 8px 75px 8px;
        gap: 12px;
        justify-content: flex-start;
    }
    
    /* Minimal scrollbar on small screens */
    .slide::-webkit-scrollbar {
        width: 2px;
    }
    
    .slide::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .photo-frame {
        max-width: 95%;
        margin-bottom: 15px;
    }
    
    .frame-border {
        padding: 12px;
    }
    
    .couple-photo {
        max-width: 100%;
        max-height: 30vh;
    }
    
    .heart-float {
        font-size: 1.8rem;
    }
    
    .love-message {
        padding: 20px 15px 25px 15px;
        max-width: 95%;
        margin-bottom: 10px;
    }
    
    .love-message::before {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        top: -20px;
    }
    
    .message-title {
        font-size: 1.4rem;
        margin-top: 25px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .message-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .signature {
        font-size: 0.95rem;
        margin-top: 15px;
    }
    
    .signature::before,
    .signature::after {
        display: none;
    }
    
    .action-buttons {
        bottom: 8px;
        gap: 6px;
        flex-direction: row;
        width: auto;
        max-width: 85%;
        padding: 6px 10px;
        border-radius: 20px;
    }
    
    .btn-action {
        width: 45px;
        height: 45px;
        min-width: 45px;
        padding: 0;
        font-size: 0.9rem;
        border-radius: 50%;
    }
    
    .btn-action span {
        display: none !important;
    }
    
    .btn-action i {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .slide-nav {
        bottom: 65px;
        padding: 6px 10px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .nav-arrow-left {
        left: 10px;
    }
    
    .nav-arrow-right {
        right: 10px;
    }
    
    .slide-dot {
        width: 8px;
        height: 8px;
    }
    
    .close-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        top: 10px;
        left: 10px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .gift-box:hover {
        transform: scale(1.05);
    }
    
    .gift-card:hover {
        transform: translateY(-10px) scale(1.02);
    }
    
    .btn-action:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 360px) {
    .glowing-text {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .gift-box {
        width: 180px;
        height: 180px;
    }
    
    .couple-photo {
        max-width: 250px;
    }
    
    .message-title {
        font-size: 1.4rem;
    }
    
    .message-text {
        font-size: 1rem;
    }
    
    .signature {
        font-size: 1rem;
    }
}

/* Scrollbar Styling */
.surprise-content::-webkit-scrollbar {
    width: 8px;
}

.surprise-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.surprise-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.surprise-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
