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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #4a5568, #2d3748, #1a202c, #2b6cb0);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dancing-script {
    font-family: 'Dancing Script', cursive;
}

/* Fix emoji colors */
.emoji-fix {
    color: initial !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}

/* Ensure birthday text doesn't affect emoji colors */
#countdown h1, #countdown h2, #countdown p {
    color: white !important;
}

#countdown h1 .emoji-fix, 
#countdown h2 .emoji-fix, 
#countdown p .emoji-fix {
    color: initial !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease-out;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-heart {
    font-size: 4rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Particle System */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Floating Hearts Animation */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.heart {
    position: absolute;
    color: rgba(255, 255, 255, 0.9);
    animation: float 8s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        opacity: 0; 
    }
    10% { opacity: 1; transform: scale(1.2); }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100vh) rotate(360deg) scale(0.8); 
        opacity: 0; 
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: #FFE66D;
    transform: translateY(-2px);
}

/* Main Content */
.container {
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    color: white;
    animation: fadeInUp 1.5s ease-out;
}

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

.hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 20px;
    background: linear-gradient(45deg, #FF6B6B, #FFE66D, #FF6B6B);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 3s ease infinite;
}

@keyframes gradientText {
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.hero .date {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 600;
}

.hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 15px;
    opacity: 0.8;
    font-weight: 600;
}

/* Countdown Lock Message */
.countdown-message {
    margin: 40px 0;
    text-align: center;
}

.countdown-lock {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.countdown-lock::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.lock-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.countdown-lock h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #FFE66D;
    font-weight: 600;
}

.countdown-lock p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Enhanced Countdown Timer */
.countdown-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px;
    margin: 50px 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.countdown-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.countdown-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.countdown-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #FF6B6B, #FFE66D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberPulse 1s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.countdown-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 10px;
    font-weight: 500;
}

/* Enhanced Buttons */
.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    background: linear-gradient(45deg, #FF6B6B, #FFE66D);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    position: relative;
}

.section-content {
    max-width: 1200px;
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FF6B6B, #FFE66D, #FF6B6B);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.card:hover .card-inner {
    background: rgba(255, 255, 255, 0.85);
}

.card-inner {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 40px;
    transition: all 0.3s ease;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    margin-bottom: 50px;
    color: rgb(255, 192, 203);
}

/* Enhanced Wishes Grid */
.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.wish-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    color: white;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.wish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.wish-card:hover::before {
    transform: translateX(0);
}

.wish-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.wish-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.wish-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFE66D;
}

.wish-text {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Timeline Section */
.timeline {
    position: relative;
    padding: 50px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #FF6B6B, #FFE66D);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 50px 0;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(even) {
    text-align: right;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    width: 45%;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #FFE66D;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 230, 109, 0.5);
}

/* Gallery Spoiler */
.gallery-spoiler {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px;
    margin: 50px 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-spoiler::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.spoiler-content {
    position: relative;
    z-index: 1;
}

.spoiler-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.gallery-spoiler h4 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.gallery-spoiler p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.spoiler-btn {
    background: linear-gradient(45deg, #FF6B6B, #FFE66D);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.spoiler-btn::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;
}

.spoiler-btn:hover::before {
    left: 100%;
}

.spoiler-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.gallery-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Photo Gallery with Slideshow */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.gallery-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.gallery-display {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: opacity 0.3s ease;
    margin-bottom: 20px;
    position: relative;
}

.gallery-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.gallery-display .gallery-placeholder {
    font-size: 8rem;
    animation: float 3s ease-in-out infinite;
}

.gallery-info {
    text-align: center;
    color: white;
    max-width: 600px;
}

.gallery-info h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.gallery-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.thumbnail {
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.thumbnail.active {
    border-color: #FFE66D;
    box-shadow: 0 0 20px rgba(255, 230, 109, 0.5);
    transform: scale(1.05);
}

.thumbnail .gallery-placeholder {
    font-size: 2.5rem;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-btn {
        width: 200px;
    }
    
    .gallery-display {
        height: 300px;
    }
    
    .gallery-display .gallery-placeholder {
        font-size: 6rem;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .thumbnail {
        height: 100px;
    }
    
    .thumbnail .gallery-placeholder {
        font-size: 2rem;
    }
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 25px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.music-player:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.music-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.music-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    padding: 12px 18px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.music-title {
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
    opacity: 0.8;
}

/* Fireworks */
.firework {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: fireworkLaunch 1s ease-out forwards;
}

@keyframes fireworkLaunch {
    0% {
        transform: translateY(100vh) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

.firework-explosion {
    position: fixed;
    pointer-events: none;
    animation: explode 0.5s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
/* Mobile First - Extra Small Devices */
@media (max-width: 480px) {
    .hero-content {
        padding: 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .countdown-container {
        padding: 20px 15px;
        margin: 30px 0;
    }
    
    .countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        margin: 5px;
    }
    
    .card {
        padding: 20px 15px;
        margin: 20px 10px;
    }
    
    .card-inner {
        padding: 20px 15px;
    }
    
    .wishes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 10px;
    }
    
    .wish-card {
        padding: 25px 20px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px !important;
        padding: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-item {
        text-align: left !important;
        margin-bottom: 30px;
    }
    
    .gallery-display {
        height: 250px;
    }
    
    .gallery-display .gallery-placeholder {
        font-size: 4rem;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .thumbnail {
        height: 80px;
    }
    
    .thumbnail .gallery-placeholder {
        font-size: 1.5rem;
    }
    
    .gallery-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .music-player {
        bottom: 15px;
        right: 15px;
        padding: 12px;
        border-radius: 20px;
    }
    
    .music-btn {
        padding: 8px 12px;
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

/* Small Devices (Tablets) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .countdown-container {
        padding: 30px 25px;
    }
    
    .countdown {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .wishes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }
    
    .timeline::before {
        left: 25px;
    }
    
    .timeline-dot {
        left: 25px;
    }
    
    .gallery-display {
        height: 320px;
    }
    
    .gallery-display .gallery-placeholder {
        font-size: 5rem;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .thumbnail {
        height: 100px;
    }
    
    .thumbnail .gallery-placeholder {
        font-size: 1.8rem;
    }
}

/* Medium Devices (Landscape Tablets) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .wishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-display {
        height: 350px;
    }
    
    .gallery-display .gallery-placeholder {
        font-size: 6rem;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Large Devices (Desktops) */
@media (min-width: 1025px) {
    .wishes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Extra Large Devices */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
}

/* Navigation Mobile Menu */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-radius: 0 0 20px 20px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-top: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 10px 15px;
        display: block;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        display: block;
        padding: 10px;
        border-radius: 8px;
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-toggle:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .nav-container::after {
        display: none;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .gallery-btn:hover,
    .music-btn:hover,
    .wish-card:hover,
    .card:hover,
    .countdown-item:hover {
        transform: none;
    }
    
    .gallery-btn:active,
    .music-btn:active {
        transform: scale(0.95);
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-content {
        padding: 30px 20px;
    }
    
    .countdown-container {
        padding: 20px;
        margin: 20px 0;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .section {
        padding: 40px 20px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #FF6B6B, #FFE66D);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #FFE66D, #FF6B6B);
}
