/* Magical Unicorn World Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb, #ffb6c1, #ff69b4);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Sparkles Background */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkles::before,
.sparkles::after {
    content: '✨';
    position: absolute;
    font-size: 20px;
    animation: sparkle 3s linear infinite;
}

.sparkles::before {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.sparkles::after {
    top: 30%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

/* Header */
.magical-header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(45deg, #ff69b4, #ff1493, #ff69b4);
    border-bottom: 5px solid #ff1493;
    position: relative;
    z-index: 2;
}

.rainbow-text {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.8);
    background: linear-gradient(45deg, #ffffff, #ffd1dc, #ffffff, #ffd1dc);
    background-size: 300% 300%;
    animation: rainbow 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

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

.unicorn-decoration {
    font-size: 2.5rem;
    margin-top: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

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

/* Main Content */
main {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
    border: 3px solid #ff69b4;
}

section h2 {
    font-family: 'Fredoka One', cursive;
    color: #ff1493;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

.welcome-section p {
    text-align: center;
    font-size: 1.5rem;
    color: #ff69b4;
    font-weight: bold;
}

/* Photo Showcase - New Dynamic Layout */
.photo-showcase {
    text-align: center;
}

.featured-photo-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.featured-photo {
    position: relative;
    max-width: 600px;
    width: 100%;
    border: 8px solid #ff69b4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.4);
    background: linear-gradient(45deg, #ffb6c1, #ffc0cb);
    transition: transform 0.3s ease;
}

.featured-photo:hover {
    transform: scale(1.02);
}

.featured-photo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.featured-photo:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 105, 180, 0.2), rgba(255, 20, 147, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 2.5rem;
}

.featured-photo:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay span {
    animation: float 2s ease-in-out infinite;
}

.photo-overlay .sparkle { animation-delay: 0s; }
.photo-overlay .diamond { animation-delay: 0.5s; }
.photo-overlay .unicorn { animation-delay: 1s; }

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

.photo-info {
    text-align: center;
    max-width: 500px;
}

.photo-info h3 {
    font-family: 'Fredoka One', cursive;
    color: #ff1493;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(255, 105, 180, 0.3);
}

.photo-info p {
    color: #ff69b4;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Photo Navigation */
.photo-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.nav-btn {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.6);
}

.photo-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffc0cb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ff1493;
    transform: scale(1.3);
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.photo-thumbnail {
    position: relative;
    cursor: pointer;
    border: 4px solid #ff69b4;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: linear-gradient(45deg, #ffb6c1, #ffc0cb);
}

.photo-thumbnail:hover {
    transform: scale(1.05) rotate(2deg);
}

.photo-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.photo-thumbnail:hover img {
    transform: scale(1.1);
}

.photo-thumbnail.active {
    border-color: #ff1493;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6);
}

/* Unicorn Section */
.unicorn-parade {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.unicorn-parade .unicorn {
    font-size: 4rem;
    animation: unicornDance 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(255, 105, 180, 0.5));
}

.unicorn-parade .unicorn:nth-child(1) { animation-delay: 0s; }
.unicorn-parade .unicorn:nth-child(2) { animation-delay: 0.5s; }
.unicorn-parade .unicorn:nth-child(3) { animation-delay: 1s; }
.unicorn-parade .unicorn:nth-child(4) { animation-delay: 1.5s; }
.unicorn-parade .unicorn:nth-child(5) { animation-delay: 2s; }

@keyframes unicornDance {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

/* Diamond Section */
.diamond-section {
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.diamond-section h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
}

.diamond-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.diamond-showcase .diamond {
    font-size: 5rem;
    text-align: center;
    animation: diamondSparkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.diamond-showcase .diamond:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes diamondSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

/* Footer */
.magical-footer {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 3rem;
}

.footer-sparkles {
    font-size: 2rem;
    margin-top: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 105, 180, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    background: linear-gradient(45deg, #ffb6c1, #ffc0cb);
    border-radius: 20px;
    border: 5px solid #ff69b4;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.5);
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 3rem;
    font-weight: bold;
    color: #ff1493;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ff69b4;
    transform: scale(1.2);
}

#modalImage {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 3px solid #ff69b4;
    max-height: 70vh;
    object-fit: contain;
}

.modal-sparkles {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    font-size: 2rem;
}

.modal-sparkles span {
    animation: sparkle 1.5s ease-in-out infinite;
}

.modal-sparkles span:nth-child(1) { animation-delay: 0s; }
.modal-sparkles span:nth-child(2) { animation-delay: 0.3s; }
.modal-sparkles span:nth-child(3) { animation-delay: 0.6s; }
.modal-sparkles span:nth-child(4) { animation-delay: 0.9s; }

/* Responsive Design */
@media (max-width: 768px) {
    .rainbow-text {
        font-size: 2.5rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .featured-photo {
        max-width: 100%;
    }
    
    .featured-photo img {
        height: 300px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .unicorn-parade .unicorn {
        font-size: 3rem;
    }
    
    .diamond-section {
        padding: 3rem 1.5rem;
    }
    
    .diamond-section h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .diamond-showcase {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1.5rem;
    }
    
    .diamond-showcase .diamond {
        font-size: 4rem;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Additional Magical Effects */
.featured-photo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ff69b4, #ff1493, #ff69b4);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-photo:hover::before {
    opacity: 1;
}

/* Floating hearts background */
body::before {
    content: '💖';
    position: fixed;
    top: 20%;
    left: 10%;
    font-size: 2rem;
    animation: floatHeart 6s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

body::after {
    content: '💖';
    position: fixed;
    top: 60%;
    right: 15%;
    font-size: 1.5rem;
    animation: floatHeart 8s ease-in-out infinite reverse;
    z-index: 1;
    pointer-events: none;
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 1; }
} 