/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header p {
    font-size: 1.2rem;
    color: #ccc;
    opacity: 0.9;
}

/* Letter Box */
.letter-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    max-width: 700px;
}

/* Letter Content */
.letter-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    text-align: center;
}

.challenge-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.daily-note {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin-top: 2rem;
}

/* Meme Section */
.meme-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.meme-container {
    text-align: center;
}

.meme-image {
    display: inline-block;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meme-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.samay-pic {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.meme-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b35;
    margin: 1rem 0;
    padding: 0 1rem;
}

.meme-caption {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin: 0;
    padding: 0 1rem;
}

.contact-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-top: 1.5rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .letter-box {
        padding: 30px 20px;
    }
    
    .challenge-text {
        font-size: 1.2rem;
    }
    
    .daily-note {
        font-size: 0.9rem;
    }
    
    .meme-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .samay-pic {
        max-width: 250px;
        width: 100%;
    }
    
    .meme-text {
        font-size: 0.9rem;
    }
    
    .meme-caption {
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
