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

/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    background: linear-gradient(180deg, #000000, #111111);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures footer stays at the bottom */
    align-items: center;
    text-align: center;
    min-height: 100vh; /* Full viewport height */
    transition: background 0.3s ease, color 0.3s ease;
}

/* Light Mode */
.light-mode {
    background: linear-gradient(180deg, #ffffff, #dddddd); /* Light gradient */
    color: #000;
}

/* Light Mode - Invert Logo */
.light-mode #logo img {
    filter: invert(1);
}

/* Light Mode - Social Icons Change Color */
.light-mode .social-links a {
    color: black;
}

/* Light Mode - Footer Text */
.light-mode .footer {
    color: black;
}

/* Wrapper to control layout */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Pushes content to center */
    width: 100%;
}

/* Logo Container */
#logo {
    position: relative;  /* Change from absolute to relative */
    top: 20px;  /* Keeps it near the top */
    max-width: 80%;
    height: auto;
    z-index: 10;
    margin-bottom: 20px; /* Ensures space below the logo */
}

#logo img {
    max-width: 20%; /* Default size for desktop */
    height: auto;
}

/* Mobile Adjustments */
@media (max-width: 1080px) {
    #logo img {
        max-width: 100%; /* Larger logo on mobile */
    }
    .music-player {
        margin-top: 30px; /* Reduce spacing between logo and player */
    }
}

/* Spotify Player */
.music-player {
    width: 100%;
    max-width: 400px; /* Controls the max size */
    margin-bottom: 20px;
}

/* Social Media Icons - Anchored Above Footer */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* Pushes icons down */
    margin-bottom: 10px; /* Keeps small space above footer */
    position: relative; /* Ensures correct stacking */
}

.social-links a {
    text-decoration: none;
    color: white;
    font-size: 2.5rem;
    transition: transform 0.3s ease-in-out, margin 0.3s ease-in-out;
}

/* Hover Effect for Icons */
.fab.fa-instagram:hover { color: #9b4d96 !important; }
.fab.fa-twitter:hover { color: #1da1f2 !important; }
.fab.fa-facebook:hover { color: #3b5998 !important; }
.fab.fa-youtube:hover { color: #ff0000 !important; }


/* Hovered icon grows & moves slightly up */
.social-links a:hover {
    transform: scale(1.4) translateY(-5px);
    margin: 0 10px; /* Pushes icons away */
}


/* Copyright - Stays at the Bottom */
.footer {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
    margin-top: auto; /* Pushes footer to bottom */
}

/* Additional Responsive Fixes */
@media (max-width: 768px) {
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .music-player iframe {
        height: 352px; /* Keeps embedded player large on mobile */
    }
}

/* Fade-In with No Movement (For Logo) */
@keyframes fadeInOpacity {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade-In with Movement (For Other Elements) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apply Animations */
#logo {
    animation: fadeInOpacity 1.5s ease-out;
}

.music-player {
    animation: fadeIn 2s ease-out 1s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.social-links {
    animation: fadeIn 2.5s ease-out 1.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.footer {
    animation: fadeIn 3s ease-out 2s;
    opacity: 0;
    animation-fill-mode: forwards;
}