/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f5f7;
    color: #333;
    overflow-x: hidden;
}

i {
    color: #ff7e5f;
}

/* Hero Section with 3D Layers */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
}

.layered-background {
    position: absolute;
    width: 150%;
    height: 100%;
    background: radial-gradient(circle, rgba(20, 20, 50, 0.8), rgba(0, 0, 0, 0.9)), url('background1.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
    animation: panBackground 20s linear infinite;
}

@keyframes panBackground {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

.content {
    z-index: 2;
    text-align: center;
    color: white;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.5s forwards 0.5s;
}

.main-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.5s forwards 1s;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-direction: column;
}

.cta-btn, .lightbox-trigger {
    padding: 10px 20px;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover, .lightbox-trigger:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Animation for hero section text */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tribute Section */
.tribute-section {
    padding: 80px 20px;
    text-align: center;
    background-color: white;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto 30px;
}

.tribute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.tribute-item {
    background: #f7f9fa;
    padding: 30px 20px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tribute-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tribute-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.tribute-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Goodbye Section */
.goodbye-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #2c3e50;
    color: white;
}

.goodbye-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.goodbye-btn {
    background-color: #ff7e5f;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.goodbye-btn:hover {
    background-color: #feb47b;
}

.goodbye-message {
    font-size: 1.4rem;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}

textarea {
    width: 100%;
    height: 120px;
    margin: 20px 0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.submit-btn {
    background-color: #ff7e5f;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #feb47b;
}

/* Close Button for Modal */
.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #47403f;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s;
}

.music-toggle:hover {
    background-color: #302c29;
}

.music-toggle i {
    font-size: 1.5rem;
}

/* Hide audio controls */
audio {
    display: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 10px;
    }
    .main-title {
        font-size: 2.5rem;
    }
    .main-subtitle {
        font-size: 1rem;
    }
    .buttons {
        flex-direction: column;
    }

    .cta-btn, .lightbox-trigger {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tribute-item {
        padding: 20px 10px;
    }

    .goodbye-title {
        font-size: 1.5rem;
    }

    .music-toggle {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .music-toggle i {
        font-size: 1.2rem;
    }    
}
