/* ===== CSS VARIABLES ===== */
:root {
    --color-cream: #fff8e7;
    --color-pink: #e85a7a;
    --color-pink-light: #FF8DA1;
    --color-white: #FFFFFF;
    --color-dark: #1A1A1A;
    --color-gold: #FFD700;
    
    --ease-celebrate: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-romantic: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-dramatic: cubic-bezier(0.87, 0, 0.13, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-silk: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    
}
html::-webkit-scrollbar {
    display: none;              /* Chrome, Safari and Opera */
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    background: var(--color-cream);
    color: var(--color-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

.font-script {
    font-family: 'Dancing Script', cursive;
}

/* ===== PARTICLES BACKGROUND ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: particle-float 15s infinite ease-in-out;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(1);
        opacity: 0;
    }
}

/* ===== FLOATING DECORATIONS ===== */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.5;
    animation: float 12s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.float-item:nth-child(2n) {
    animation-duration: 15s;
    animation-delay: -2s;
}

.float-item:nth-child(3n) {
    animation-duration: 18s;
    animation-delay: -5s;
}

.float-item:nth-child(4n) {
    animation-duration: 14s;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-25px) rotate(8deg);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    text-align: left;
    animation: fade-in-up 1s var(--ease-romantic) forwards;
}

.hero-subtitle {
    font-size: 3rem;
    color: var(--color-pink);
    opacity: 0;
    animation: fade-in-down 0.8s var(--ease-celebrate) 0.3s forwards;
}

.hero-title {
    font-size: 8rem;
    font-weight: 800;
    background: var(--color-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 0.5rem 0;
    opacity: 0;
    animation: scale-in 1.2s var(--ease-elastic) 0.5s forwards;
    text-shadow: 0 0 60px rgba(244, 244, 244, 0.3);
}

.hero-message {
    font-size: 1.5rem;
    color: var(--color-dark);
    opacity: 0.8;
    margin: 1.5rem 0 2rem;
    opacity: 0;
    animation: fade-in-up 0.8s var(--ease-romantic) 0.8s forwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--color-pink);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-silk);
    opacity: 0;
    animation: fade-in-up 0.8s var(--ease-celebrate) 1s forwards;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(188, 185, 186, 0.45);
}

.cta-button:active {
    transform: scale(1);
}

.heart-icon {
    font-size: 1.5rem;
    animation: heart-beat 1.5s ease-in-out infinite;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    70% { transform: scale(1); }
}

.hero-images {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 2rem;
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.4s var(--ease-silk);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-silk);
}

.main-image {
    width: 350px;
    height: 450px;
    z-index: 0;
    opacity: 0;
    animation: flip-in 1.4s var(--ease-dramatic) 1s forwards;
}

.side-image {
    width: 250px;
    height: 350px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(5deg);
    z-index: 1;
    opacity: 0;
    animation: slide-in-right 1.2s var(--ease-romantic) 1.2s forwards;
}

.hero-image:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(201, 201, 201, 0.25);
}

.hero-image:hover img {
    transform: scale(1.1);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100px) translateY(-50%) rotate(15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%) rotate(5deg);
    }
}

/* ===== MESSAGE SECTION ===== */
.message-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.message-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
}

.message-wave-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: var(--color-cream);
    background-size: 200% 100%;
    animation: wave-flow 15s ease infinite;
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

@keyframes wave-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.message-content {
    position: relative;
    z-index: 1;
}

.message-line {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.6;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s var(--ease-romantic);
}

.message-line:nth-child(even) {
    transform: translateX(50px);
}

.message-line.visible {
    opacity: 1;
    transform: translateX(0);
}

.message-line.highlight {
    background:  var(--color-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.message-signature {
    font-size: 2.5rem;
    color: var(--color-pink);
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-romantic);
}

.message-signature.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--color-pink), var(--color-pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-celebrate);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    opacity: 0;
    transform: scale(0) rotate(-10deg);
    transition: all 0.6s var(--ease-elastic);
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1) rotate(var(--rotation, 0deg));
}

.gallery-item:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 30px 60px rgba(255, 79, 122, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.4s var(--ease-silk);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 79, 122, 0.6), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s var(--ease-silk);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-emoji {
    font-size: 3rem;
    animation: bounce 1s ease-in-out infinite;
}

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

/* ===== GIFT SECTION ===== */
.gift-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.gift-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    perspective: 1000px;
}

.gift-box {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: gift-float 4s ease-in-out infinite;
    cursor: pointer;
}

@keyframes gift-float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-15px) rotateY(5deg); }
}

.gift-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-pink-light));
    border-radius: 10px 10px 0 0;
    transform-origin: bottom;
    transition: transform 0.8s var(--ease-celebrate);
    z-index: 3;
}

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

.gift-ribbon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 40px;
    background: var(--color-gold);
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gift-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--color-pink-light), var(--color-pink));
    border-radius: 0 0 10px 10px;
    z-index: 2;
}

.gift-ribbon-vertical {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 100%;
    background: var(--color-gold);
}

.gift-ribbon-horizontal {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 40px;
    background: var(--color-gold);
}

.gift-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    text-align: center;
    opacity: 0;
    transition: all 0.8s var(--ease-elastic);
    z-index: 1;
}

.gift-box.opened .gift-content {
    transform: translate(-50%, -100%) scale(1);
    opacity: 1;
}

.gift-heart {
    font-size: 5rem;
    animation: heart-beat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(176, 124, 137, 0.4));
}

.gift-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-pink);
    margin-top: 1rem;
}

.gift-subtext {
    font-size: 1.2rem;
    color: var(--color-dark);
    opacity: 0.7;
}

.gift-button {
    padding: 1rem 3rem;
    background:var(--color-pink);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(175, 169, 170, 0.35);
    transition: all 0.3s var(--ease-silk);
}

.gift-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(198, 198, 198, 0.45);
}

.gift-button.hidden {
    display: none;
}

/* ===== WISHES SECTION ===== */
.wishes-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.wish-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.35s var(--ease-silk);
    opacity: 0;
    transform: rotateY(-90deg);
}

.wish-card.visible {
    opacity: 1;
    transform: rotateY(0);
}

.wish-card:hover {
    transform: translateY(-10px) rotateX(-5deg) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(71, 64, 64, 0.2);
    border: 2px solid rgba(199, 199, 199, 0.2);
}

.wish-card.large {
    grid-column: span 2;
}

.wish-card.medium {
    grid-column: span 1;
}

.wish-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.6s var(--ease-elastic);
}

.wish-card:hover .wish-icon {
    transform: scale(1.2) rotate(360deg);
}

.wish-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-pink);
    margin-bottom: 1rem;
}

.wish-message {
    font-size: 1.1rem;
    color: var(--color-dark);
    opacity: 0.8;
    line-height: 1.6;
}

/* ===== FINALE SECTION ===== */
.finale-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.finale-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    z-index: -1;
}

.orbit-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: orbit 30s linear infinite;
    animation-delay: var(--orbit-delay, 0s);
}

.orbit-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes orbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(250px) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(250px) rotate(-360deg);
    }
}

.finale-text {
    position: relative;
    z-index: 2;
}

.finale-title {
    font-size: 6rem;
    font-weight: 800;
    background: var(--color-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 40px rgba(255,79,122,0.4); }
    50% { text-shadow: 0 0 80px rgba(255,79,122,0.8), 0 0 120px rgba(255,141,161,0.4); }
}

.finale-subtitle {
    font-size: 3.5rem;
    color: var(--color-pink);
    margin: 1rem 0 2rem;
}

.finale-message {
    font-size: 1.5rem;
    color: var(--color-dark);
    opacity: 0.8;
    margin: 0.5rem 0;
}

.celebrate-button {
    margin-top: 3rem;
    padding: 1.2rem 3rem;
    background: var(--color-pink);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 79, 122, 0.35);
    transition: all 0.3s var(--ease-silk);
}

.celebrate-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(211, 209, 210, 0.5);
}

.fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===== CONFETTI ===== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-images {
        flex-direction: column;
    }
    
    .side-image {
        position: relative;
        right: auto;
        top: auto;
        transform: rotate(5deg);
        margin-top: -100px;
        margin-left: 150px;
    }
    
    .message-line {
        font-size: 2rem;
    }
    
    .orbit-container {
        width: 350px;
        height: 350px;
    }
    
    .orbit-photo {
        width: 70px;
        height: 70px;
    }
    
    @keyframes orbit {
        0% {
            transform: translate(-50%, -50%) rotate(0deg) translateX(175px) rotate(0deg);
        }
        100% {
            transform: translate(-50%, -50%) rotate(360deg) translateX(175px) rotate(-360deg);
        }
    }
    
    .finale-title {
        font-size: 4rem;
    }
    
    .finale-subtitle {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .main-image {
        width: 280px;
        height: 360px;
    }
    
    .side-image {
        width: 180px;
        height: 250px;
        margin-left: 100px;
    }
    
    .message-line {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .wish-card.large,
    .wish-card.medium {
        grid-column: span 1;
    }
    
    .gift-box {
        width: 250px;
        height: 250px;
    }
    
    .finale-title {
        font-size: 3rem;
    }
    
    .finale-subtitle {
        font-size: 2rem;
    }
    
    .orbit-container {
        display: none;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
