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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe4ec 50%, #ffd6e3 100%);
    color: #333;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23ff69b4"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') 10 10, auto;
}

/* Music Player */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border: 3px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 105, 180, 0.4);
    transition: all 0.3s ease;
}

.music-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(255, 105, 180, 0.6);
}

.music-icon {
    width: 24px;
    height: 24px;
    color: white;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart, .floating-star, .floating-number {
    position: absolute;
    opacity: 0.4;
    animation: floatUpDown 8s ease-in-out infinite;
}

.floating-heart::before {
    content: '💕';
    font-size: 30px;
}

.floating-star::before {
    content: '✨';
    font-size: 25px;
}

.floating-number {
    font-family: 'Great Vibes', cursive;
    font-size: 40px;
    color: #ff69b4;
    font-weight: 600;
}

.floating-heart:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-heart:nth-child(2) { top: 60%; left: 5%; animation-delay: 2s; }
.floating-heart:nth-child(3) { top: 30%; right: 15%; animation-delay: 4s; }
.floating-heart:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 6s; }
.floating-heart:nth-child(5) { top: 80%; left: 15%; animation-delay: 1s; }
.floating-heart:nth-child(6) { top: 45%; right: 8%; animation-delay: 3s; }
.floating-heart:nth-child(7) { bottom: 40%; left: 12%; animation-delay: 5s; }
.floating-heart:nth-child(8) { top: 25%; left: 25%; animation-delay: 7s; }

.floating-star:nth-child(9) { top: 20%; right: 25%; animation-delay: 1s; }
.floating-star:nth-child(10) { bottom: 30%; left: 20%; animation-delay: 3s; }
.floating-star:nth-child(11) { top: 70%; right: 30%; animation-delay: 5s; }

.floating-number:nth-child(12) { top: 15%; left: 30%; animation-delay: 2s; }
.floating-number:nth-child(13) { top: 55%; right: 20%; animation-delay: 4s; }
.floating-number:nth-child(14) { bottom: 25%; left: 18%; animation-delay: 6s; }
.floating-number:nth-child(15) { top: 40%; right: 35%; animation-delay: 1.5s; }
.floating-number:nth-child(16) { bottom: 50%; right: 5%; animation-delay: 3.5s; }

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out both;
}

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

.hero-image-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 40px;
    border-radius: 50%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.4);
    position: relative;
    z-index: 2;
}

.image-frame {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4, #ff1493, #ffc0cb, #ff69b4);
    z-index: 1;
}

.image-shimmer {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.3), transparent 70%);
    animation: pulseShimmer 3s ease-in-out infinite;
    z-index: 0;
}

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

.hero-name {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(60px, 16vw, 110px);
    background: linear-gradient(135deg, #ff1493, #ff69b4, #ffc0cb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.hero-accent-line {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff69b4, transparent);
    margin: 20px auto;
    animation: lineExpand 2s ease-in-out infinite;
}

@keyframes lineExpand {
    0%, 100% { width: 100px; }
    50% { width: 150px; }
}

.hero-age {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 7vw, 42px);
    color: #ff1493;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.hero-date {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(16px, 4vw, 20px);
    color: #ff69b4;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.cta-button {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: 3px solid white;
    padding: 18px 45px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(255, 105, 180, 0.4);
    transition: all 0.4s ease;
    font-family: 'Raleway', sans-serif;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.6);
}

/* Photo Grid */
.photo-section {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-icon {
    width: 48px;
    height: 48px;
    color: #ff69b4;
    margin: 0 auto 20px;
    display: block;
    animation: iconBounce 2s ease-in-out infinite;
}

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

.section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(40px, 10vw, 64px);
    color: #ff1493;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(16px, 4vw, 20px);
    color: #ff69b4;
    font-weight: 400;
    letter-spacing: 3px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(255, 105, 180, 0.3);
    transition: all 0.4s ease;
    animation: photoFadeIn 0.8s ease-out both;
}

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

.photo-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 80px rgba(255, 105, 180, 0.8),
                0 0 60px rgba(255, 105, 180, 0.6),
                inset 0 0 40px rgba(255, 105, 180, 0.3);
}

.photo-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
    filter: brightness(1);
}

.photo-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.2);
}

/* Details Section */
.details-section {
    padding: 100px 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.detail-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 30px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
    border: 3px solid rgba(255, 105, 180, 0.2);
    transition: all 0.4s ease;
    animation: cardFloat 3s ease-in-out infinite;
}

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

.detail-card:nth-child(2) { animation-delay: 0.5s; }
.detail-card:nth-child(3) { animation-delay: 1s; }

.detail-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 30px 80px rgba(255, 105, 180, 0.5);
    border-color: rgba(255, 105, 180, 0.6);
}

.detail-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.5);
    animation: iconSpin 6s linear infinite;
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.detail-icon {
    width: 45px;
    height: 45px;
    color: white;
}

.detail-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    color: #ff1493;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.detail-card p {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    color: #666;
    margin: 8px 0;
}

.detail-address {
    color: #ff69b4;
    font-style: italic;
}

/* Margarita Section */
.margarita-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    position: relative;
    overflow: hidden;
}

.margarita-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.margarita-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.margarita-icon {
    width: 70px;
    height: 70px;
    color: white;
}

.rotating {
    animation: rotateIcon 4s linear infinite;
}

.rotating-delayed {
    animation: rotateIcon 4s linear infinite;
    animation-delay: 2s;
}

@keyframes rotateIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.margarita-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 9vw, 56px);
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.margarita-content p {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(16px, 4vw, 22px);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

/* Final Section */
.final-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #ffe4ec 0%, #ffd6e3 100%);
}

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

.final-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(44px, 11vw, 72px);
    color: #ff1493;
    margin-bottom: 15px;
}

.final-content p {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(18px, 5vw, 26px);
    color: #ff69b4;
}

@media (max-width: 768px) {
    .hero-image-container {
        width: 260px;
        height: 260px;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Full-Screen Card Opening Animation */
.card-opening-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
}

.card-left, .card-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 50%, #ffc0cb 100%);
    transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.1);
}

.card-left {
    left: 0;
    transform-origin: left center;
    animation: openLeft 2s ease-in-out 0.5s forwards;
}

.card-right {
    right: 0;
    transform-origin: right center;
    animation: openRight 2s ease-in-out 0.5s forwards;
}

@keyframes openLeft {
    0% {
        transform: perspective(1200px) rotateY(0deg);
    }
    100% {
        transform: perspective(1200px) rotateY(-110deg);
    }
}

@keyframes openRight {
    0% {
        transform: perspective(1200px) rotateY(0deg);
    }
    100% {
        transform: perspective(1200px) rotateY(110deg);
    }
}

.card-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: fadeOutLine 0.5s ease-in-out 2s forwards;
}

@keyframes fadeOutLine {
    to {
        opacity: 0;
    }
}

.card-pattern {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.card-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    opacity: 0;
    animation: textFadeIn 1s ease-out 0.3s forwards, textFadeOut 0.8s ease-in 1.8s forwards;
}

@keyframes textFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes textFadeOut {
    to {
        opacity: 0;
    }
}

.card-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card-text h2 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(48px, 12vw, 72px);
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .card-left, .card-right {
        width: 50%;
    }
}

/* Tap to Open Overlay */
.tap-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 50%, #ff69b4 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.tap-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.tap-overlay-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 600px;
    animation: pulse 2s infinite;
}

.tap-icon {
    font-size: 80px;
    margin-bottom: 30px;
    animation: bounce 1.5s infinite;
}

.tap-overlay h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tap-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.9;
}

.tap-hint {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 300;
    opacity: 0.8;
    animation: fadeInOut 2s infinite;
}

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

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

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Hide website content initially */
body:has(.tap-overlay:not(.fade-out)) .card-opening-animation,
body:has(.tap-overlay:not(.fade-out)) .music-player,
body:has(.tap-overlay:not(.fade-out)) .floating-elements,
body:has(.tap-overlay:not(.fade-out)) section {
    display: none !important;
}
