/* ============================================
   KatAbel.eu - Late Spring Meadow Theme
   ============================================ */

/* CSS Variables - Dark Forest Color Palette */
:root {
    /* Greens - deeper forest tones */
    --mint: #5a8a6e;
    --sage: #4a7a5e;
    --lime: #7a9a6b;
    --moss-green: #3d6b4a;
    --dark-green: #1e3d2a;
    --forest-deep: #152a1e;

    /* Wildflower accents - muted */
    --purple: #7a5a8a;
    --soft-pink: #9a7a7e;
    --mauve: #8a6a7a;

    /* Golden hour tones - warm amber filtered through canopy */
    --golden-yellow: #c9a84e;
    --warm-amber: #b8860b;
    --soft-gold: #d4b86a;

    /* Background & text */
    --bg-gradient-start: #1a2f1f;
    --bg-gradient-mid: #243828;
    --bg-gradient-end: #1e3325;
    --text-soft: #a8c4a8;
    --text-dark: #d4e4d4;
    --text-muted: #7a9a7a;

    /* Shadows & effects */
    --glow-color: rgba(201, 168, 78, 0.3);
    --shadow-soft: rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 40%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* Page wrapper for footer positioning */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Main Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* ============================================
   Header Section - Names
   ============================================ */
.names-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.names-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.names-wrapper.colliding .name {
    animation: collide 0.3s ease-in forwards;
}

.names-wrapper.colliding .ampersand {
    animation: fadeOut 0.2s ease-out forwards;
}

.name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--moss-green) 0%, var(--golden-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, filter 0.3s ease;
    text-shadow: 0 0 30px var(--glow-color);
    filter: drop-shadow(0 0 20px var(--glow-color));
}

.name::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, var(--glow-color) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
}

.name:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px var(--glow-color));
}

.ampersand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    color: var(--purple);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Merged Name */
.merged-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--moss-green) 0%, var(--golden-yellow) 50%, var(--warm-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 25px var(--glow-color));
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.merged-name.hidden {
    display: none;
}

.merged-name.show {
    display: block;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Explosion Effect */
.explosion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    animation: explode 0.5s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

/* ============================================
   Introduction Section
   ============================================ */
.intro-section {
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
}

.intro-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-soft);
    line-height: 1.7;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Photo Section
   ============================================ */
.photo-section {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.photo-wrapper {
    position: relative;
    display: inline-block;
}

.photo-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--sage) 50%, var(--golden-yellow) 100%);
    border-radius: 16px;
    z-index: -1;
}

.photo {
    display: block;
    max-width: 100%;
    width: 450px;
    height: auto;
    border-radius: 12px;
    box-shadow:
        0 20px 40px var(--shadow-soft),
        0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 50px var(--shadow-soft),
        0 12px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Decorative Flowers
   ============================================ */
.decorative-flower {
    position: fixed;
    font-size: 2rem;
    opacity: 0.15;
    pointer-events: none;
    animation: floatGentle 6s ease-in-out infinite;
    z-index: -1;
    filter: saturate(0.7);
}

.flower-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.flower-2 {
    top: 25%;
    right: 8%;
    animation-delay: 1s;
    font-size: 1.5rem;
}

.flower-3 {
    bottom: 30%;
    left: 8%;
    animation-delay: 2s;
}

.flower-4 {
    top: 45%;
    right: 5%;
    animation-delay: 3s;
    font-size: 2.5rem;
}

.flower-5 {
    bottom: 25%;
    right: 12%;
    animation-delay: 4s;
    font-size: 1.8rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(to top, rgba(21, 42, 30, 0.95), rgba(30, 51, 37, 0.85));
    backdrop-filter: blur(10px);
    padding: 30px 24px;
    display: flex;
    justify-content: center;
    gap: 60px;
    border-top: 1px solid rgba(122, 90, 138, 0.2);
    margin-top: auto;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.contact-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-email {
    font-size: 0.85rem;
    color: var(--soft-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--golden-yellow);
    text-decoration: underline;
}

/* ============================================
   Confetti Particles
   ============================================ */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: fall linear forwards;
}

.confetti.circle {
    border-radius: 50%;
}

.confetti.square {
    border-radius: 2px;
}

.confetti.ribbon {
    width: 8px;
    height: 20px;
    border-radius: 2px;
}

/* ============================================
   Toast Notification
   ============================================ */
.celebration-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, rgba(30, 51, 37, 0.95), rgba(21, 42, 30, 0.98));
    border: 1px solid var(--soft-gold);
    border-radius: 12px;
    padding: 16px 24px;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 168, 78, 0.15);
    z-index: 1001;
    animation: toastIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.celebration-toast.fade-out {
    animation: toastOut 0.5s ease-in forwards;
}

.celebration-toast .toast-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.celebration-toast .toast-message {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
}

.celebration-toast .toast-submessage {
    font-size: 0.85rem;
    color: var(--soft-gold);
    margin-top: 4px;
}

@keyframes toastIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.3);
    }

    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }

    70% {
        transform: translateY(5px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatGentle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes collide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--collide-direction));
        opacity: 0;
    }
}

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

@keyframes popIn {
    0% {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translateX(-50%) scale(1.2);
    }

    75% {
        transform: translateX(-50%) scale(0.9);
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

@keyframes explode {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .name {
        font-size: 2.5rem;
    }

    .merged-name {
        font-size: 2.5rem;
    }

    .ampersand {
        font-size: 1.8rem;
    }

    .names-wrapper {
        gap: 12px;
    }

    .intro-text {
        font-size: 1.1rem;
    }

    .photo {
        width: 100%;
        max-width: 350px;
    }

    .footer {
        gap: 40px;
        padding: 16px 20px;
    }

    .decorative-flower {
        font-size: 1.5rem;
        opacity: 0.1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 16px;
    }

    .name {
        font-size: 2rem;
    }

    .merged-name {
        font-size: 2rem;
    }

    .ampersand {
        font-size: 1.5rem;
    }

    .names-wrapper {
        gap: 8px;
    }

    .intro-text {
        font-size: 1rem;
    }

    .footer {
        gap: 24px;
        flex-direction: column;
        align-items: center;
    }

    .contact-name {
        font-size: 0.85rem;
    }

    .contact-email {
        font-size: 0.8rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}