/* Font Face Declarations */
@font-face {
    font-family: 'HomepageBaukasten-Bold';
    src: url('public/fonts/HomepageBaukasten-Bold.woff2') format('woff2'),
         url('public/fonts/HomepageBaukasten-Bold.woff') format('woff'),
         url('public/fonts/HomepageBaukasten-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HomepageBaukasten-Book';
    src: url('public/fonts/HomepageBaukasten-Book.woff2') format('woff2'),
         url('public/fonts/HomepageBaukasten-Book.woff') format('woff'),
         url('public/fonts/HomepageBaukasten-Book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --baby-blue: #A7D8DE;
    --light-blue: #D4F1F4;
    --aqua-green: #75E6DA;
    --teal: #05445E;
    --light-aqua: #C8F4F9;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'HomepageBaukasten-Book', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(4deg, #000000 0%, #1b0a48 50%, #4419AF 100%);
    min-height: 100vh;
    position: relative;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(4deg, #000000 0%, #1b0a48 50%, #4419AF 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeOut 1s ease-in-out 3s forwards;
    overflow: hidden;
}

.splash-content {
    position: relative;
    z-index: 1001;
    text-align: center;
}

.splash-title {
    font-family: 'HomepageBaukasten-Bold', Arial, sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    color: white;
    text-align: center;
    font-weight: bold;
    animation: splashAnimation 1s ease-out;
    z-index: 1001;
    padding: 0 20px;
    letter-spacing: 3px;
    transform-style: preserve-3d;
}

.splash-subtitle {
    font-family: 'HomepageBaukasten-Book', Arial, sans-serif;
    font-size: clamp(1rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.95);
    margin-top: 20px;
    animation: fadeInUp 1.2s ease-out 0.5s both;
    letter-spacing: 2px;
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Main Content */
.main-content {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out 0.2s forwards;
    padding: 40px 20px;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content.hidden {
    display: none;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 60px);
}

header h1, .animated-header {
    font-family: 'HomepageBaukasten-Bold', Arial, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #0077b6, #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 40px;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Message Section */
.message-section {
    margin-bottom: 60px;
}

/* Mom Timer */
.mom-timer {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(117, 230, 218, 0.1), rgba(167, 216, 222, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(117, 230, 218, 0.3);
    box-shadow: 0 10px 30px rgba(5, 68, 94, 0.2),
                0 0 20px rgba(117, 230, 218, 0.15);
}

.timer-title {
    font-family: 'HomepageBaukasten-Bold', Arial, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, #0077b6, #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: clamp(15px, 4vw, 40px);
    flex-wrap: wrap;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.timer-number {
    font-family: 'HomepageBaukasten-Bold', Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #75E6DA;
    text-shadow: 0 0 20px rgba(117, 230, 218, 0.6),
                 0 0 40px rgba(117, 230, 218, 0.3);
    line-height: 1;
    margin-bottom: 8px;
    animation: glowPulse 3s ease-in-out infinite;
}

.timer-label {
    font-family: 'HomepageBaukasten-Book', Arial, sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.message {
    font-family: 'HomepageBaukasten-Book', Arial, sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 25px;
    color: #ffffff;
    line-height: 1.9;
    opacity: 0;
}

.signature {
    font-family: 'HomepageBaukasten-Book', Arial, sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-style: italic;
    text-align: right;
    margin-top: 40px;
    color: #ffffff;
    opacity: 0;
}

/* Background Slideshow */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slideshow-image.active {
    opacity: 0.3;
}

/* Advanced Animations */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        transform: scale(1.1);
    }
}

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

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

@keyframes splashAnimation {
    0% {
        transform: scale(0.3) rotateY(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotateY(0deg);
    }
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(117, 230, 218, 0.8),
                     0 0 40px rgba(117, 230, 218, 0.6),
                     3px 3px 10px rgba(0, 0, 0, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 30px rgba(117, 230, 218, 1),
                     0 0 60px rgba(117, 230, 218, 0.8),
                     0 0 80px rgba(117, 230, 218, 0.4),
                     3px 3px 10px rgba(0, 0, 0, 0.3);
        transform: scale(1.05);
    }
}

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

@keyframes rotate3D {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .splash-title {
        letter-spacing: 2px;
    }

    .container {
        border-radius: 20px;
    }

    .message {
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 10px;
    }
}

/* Ensure full viewport coverage */
@media (min-height: 900px) {
    .main-content {
        min-height: 100vh;
    }
}
