/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* Background Music Player */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.music-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    padding: 5px;
    transition: all 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.05);
    color: #ff6b6b;
}

.music-btn i {
    font-size: 1.1rem;
    animation: musicPulse 2s infinite;
}

.music-btn.playing i {
    animation: musicSpin 3s linear infinite;
}

.music-text {
    font-weight: 500;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes musicSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .music-player {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
    }
    
    .music-text {
        display: none;
    }
    
    .music-btn {
        padding: 8px;
    }
}

.container {
    position: relative;
    z-index: 2;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f7b731, #5f27cd);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 1;
    opacity: 0.1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section - Mobile First */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    flex-direction: column;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-hearts .fas {
    position: absolute;
    color: rgba(255, 107, 107, 0.6);
    animation: float 6s ease-in-out infinite;
}

.heart1 { top: 20%; left: 10%; font-size: 20px; animation-delay: 0s; }
.heart2 { top: 40%; right: 15%; font-size: 25px; animation-delay: 2s; }
.heart3 { top: 60%; left: 20%; font-size: 18px; animation-delay: 4s; }
.heart4 { top: 80%; right: 25%; font-size: 22px; animation-delay: 1s; }
.heart5 { top: 30%; left: 50%; font-size: 15px; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

.hero-content {
    max-width: 100%;
    width: 100%;
    z-index: 2;
    position: relative;
    padding: 0 1rem;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
    line-height: 1.2;
}

.subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #ffb3ba;
    margin-bottom: 1rem;
    animation: fadeInUp 1.5s ease;
    line-height: 1.3;
}

.hero-text {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 2s ease;
    line-height: 1.5;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: fadeInUp 2.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #ff5252, #ff6b6b);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.btn-secondary, .btn-tertiary {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    animation: fadeInUp 2.5s ease;
    width: 100%;
    min-height: 48px;
}

.btn-tertiary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    background: linear-gradient(45deg, #45b7d1, #4ecdc4);
}

.btn-tertiary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #764ba2, #667eea);
}

/* Stats Counter - Mobile First */
.stats-counter {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 3;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 60px;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 1.2rem;
    margin-bottom: 0;
    display: block;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Letter Section - Mobile First */
.letter-section {
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.letter-container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
}

.letter-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f7b731);
    border-radius: 25px;
    z-index: -1;
    animation: gradientBorder 3s ease infinite;
}

@keyframes gradientBorder {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.letter-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ffb3ba;
}

.letter-header h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.date {
    color: #666;
    font-style: italic;
}

.letter-content {
    line-height: 1.8;
    color: #444;
}

.opening {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.letter-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.love-points {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffb3ba, #ffd1dc);
    border-radius: 15px;
}

.point {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.point:last-child {
    margin-bottom: 0;
}

.point i {
    color: #ff6b6b;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.point span {
    color: #333;
    font-weight: 500;
}

.closing {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    text-align: right;
    color: #ff6b6b;
    margin-top: 2rem;
    font-weight: 600;
}

/* Memories Section */
.memories-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(69, 183, 209, 0.1));
}

.memories-section h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    color: #fff;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.memories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.memory-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memory-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.memory-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.memory-icon i {
    font-size: 2rem;
    color: white;
}

.memory-card h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.memory-card p {
    color: #666;
    line-height: 1.6;
}

/* Promise Section */
.promise-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.promise-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.promise-section h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 3rem;
}

.promises {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.promise {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.promise:hover {
    transform: scale(1.05);
}

.promise i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.promise p {
    color: #333;
    font-weight: 500;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-hearts i {
    color: #ff6b6b;
    margin: 0 0.5rem;
    animation: pulse 2s infinite;
}

/* Messages Section */
.messages-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(255, 179, 186, 0.05));
}

.messages-section h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    color: #ff6b6b;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.messages-container {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.recent-messages, .add-message-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.recent-messages h4, .add-message-form h4 {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-card {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
}

.message-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
}

.admin-message {
    border-left-color: #4ecdc4;
    background: linear-gradient(135deg, #e8f5f4, #fff);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sender-name {
    font-weight: 600;
    color: #333;
}

.message-date {
    font-size: 0.9rem;
    color: #666;
}

.message-text {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-height: 48px;
    box-sizing: border-box;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.btn-submit {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive Design */
/* Tablet Styles */
@media (min-width: 768px) {
    .hero-section {
        padding: 2rem;
    }
    
    .hero-content {
        max-width: 600px;
        padding: 0 2rem;
    }
    
    .main-title {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
        max-width: 400px;
    }
    
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        max-width: 500px;
    }
    
    .btn-primary, .btn-secondary, .btn-tertiary {
        width: auto;
        min-width: 180px;
        padding: 1rem 1.5rem;
    }
    
    .stats-counter {
        flex-direction: row;
        gap: 1.5rem;
        max-width: 500px;
    }
    
    .stat-item {
        flex-direction: column;
        padding: 1rem;
        min-height: auto;
    }
    
    .stat-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .letter-section {
        padding: 3rem 2rem;
    }
    
    .letter-container {
        max-width: 700px;
        padding: 2.5rem;
    }
    
    .memories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 2rem;
    }
    
    .promises {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .messages-container {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
    
    .reaction-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        max-width: 600px;
    }
    
    .reaction-btn {
        padding: 1.5rem 1rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero-content {
        max-width: 800px;
    }
    
    .main-title {
        font-size: 4.5rem;
    }
    
    .subtitle {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1.2rem;
        max-width: 500px;
    }
    
    .hero-buttons {
        gap: 1.5rem;
        max-width: 600px;
    }
    
    .btn-primary, .btn-secondary, .btn-tertiary {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .stats-counter {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 2rem;
        margin-top: 0;
        max-width: none;
    }
    
    .stat-item {
        padding: 1rem 1.5rem;
        border-radius: 20px;
    }
    
    .letter-section {
        padding: 4rem 2rem;
    }
    
    .letter-container {
        max-width: 800px;
        padding: 3rem;
        border-radius: 20px;
    }
    
    .memories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 1200px;
        padding: 0;
    }
    
    .messages-container {
        max-width: 1200px;
        gap: 3rem;
    }
    
    .reaction-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 800px;
    }
    
    .reaction-btn {
        padding: 2rem 1rem;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .hero-section {
        padding: 4rem;
    }
    
    .letter-section {
        padding: 5rem 3rem;
    }
    
    .memories-section,
    .promise-section,
    .messages-section,
    .reaction-section {
        padding: 4rem 3rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff5252, #45b7d1);
}