/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.heart-loader {
    position: relative;
    margin-bottom: 30px;
}

.heart-loader .heart {
    position: relative;
    width: 32px;
    height: 29px;
    background: #ff6b6b;
    transform: rotate(-45deg);
    animation: heartbeat 1.2s infinite;
    margin: 0 10px;
    display: inline-block;
}

.heart-loader .heart:before,
.heart-loader .heart:after {
    content: '';
    width: 16px;
    height: 24px;
    position: absolute;
    left: 16px;
    top: 0;
    background: #ff6b6b;
    border-radius: 16px 16px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart-loader .heart:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.heart-loader .heart:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes heartbeat {
    0%, 50%, 100% {
        transform: rotate(-45deg) scale(1);
    }
    25%, 75% {
        transform: rotate(-45deg) scale(1.1);
    }
}

.loading-screen p {
    font-size: 18px;
    color: #666;
    font-weight: 300;
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content.show {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.heart-float {
    position: absolute;
    width: 16px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(-45deg);
    animation: floatUp 6s infinite linear;
}

.heart-float:before,
.heart-float:after {
    content: '';
    width: 8px;
    height: 12px;
    position: absolute;
    left: 8px;
    top: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px 8px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart-float:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.heart-float:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart-float:nth-child(2) { left: 30%; animation-delay: 2s; }
.heart-float:nth-child(3) { left: 50%; animation-delay: 4s; }
.heart-float:nth-child(4) { left: 70%; animation-delay: 1s; }
.heart-float:nth-child(5) { left: 90%; animation-delay: 3s; }

@keyframes floatUp {
    0% {
        bottom: -100px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 100vh;
        opacity: 0;
    }
}

.hero-content {
    z-index: 1;
}

.birthday-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.birthday-title span {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 1s ease forwards;
}

.birthday-title .line-1 { animation-delay: 0.5s; }
.birthday-title .line-2 { animation-delay: 0.8s; }
.birthday-title .line-3 { animation-delay: 1.1s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.birthday-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0;
    animation: fadeIn 1s ease 1.8s forwards;
}

.birthday-date i {
    color: #ff6b6b;
    font-size: 1.3rem;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease 2.5s forwards;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 15px;
    position: relative;
    margin: 0 auto 10px;
}

.scroll-arrow span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { top: 8px; opacity: 0; }
    30% { opacity: 1; }
    60% { opacity: 1; }
    100% { top: 32px; opacity: 0; }
}

.scroll-indicator p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* Message Section */
.message-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    margin: 0 auto;
    border-radius: 2px;
}

.message-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500, #ff6b6b);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.message-icon {
    text-align: center;
    margin-bottom: 30px;
}

.message-icon i {
    font-size: 3rem;
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
    text-align: center;
}

.message-text:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #ff6b6b;
}

/* Navigation Cards Section */
.nav-cards-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 400px;
    margin: 0 auto;
}

.nav-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.nav-card:hover::before {
    left: 100%;
}

.nav-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 3rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.nav-card:hover .card-icon i {
    transform: scale(1.2);
    color: #ff6b6b;
}

.nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.nav-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.card-arrow i {
    color: white;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-card:hover .card-arrow {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
}

.nav-card:hover .card-arrow i {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer p:last-child {
    margin-bottom: 0;
    opacity: 0.7;
}

/* Mobile Responsive - iPhone 13 (390px) */
@media (max-width: 414px) {
    .container {
        padding: 0 15px;
    }

    .birthday-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .birthday-date {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .message-card {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .message-text {
        font-size: 1rem;
    }

    .nav-card {
        padding: 25px 20px;
    }

    .nav-card h3 {
        font-size: 1.3rem;
    }

    .card-icon i {
        font-size: 2.5rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator p {
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .birthday-title {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .message-card {
        margin: 0 10px;
        padding: 25px 15px;
    }
}

/* Animation for page entrance */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
