/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: #1a1a2e;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(34, 34, 62, 0.9);
    backdrop-filter: blur(5px);
    padding: 1rem;
    z-index: 10;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.navbar li {
    margin: 0 2rem;
}

.navbar a {
    color: #a3bffa;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://source.unsplash.com/random/1920x1080?forest') no-repeat center/cover;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 4rem;
    z-index: 1;
    animation: fadeIn 2s ease-in;
    color: #fff;
}

.hero p {
    font-size: 1.5rem;
    z-index: 1;
    margin-top: 1rem;
    color: #b0b0c0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Links Section (Cards) */
.links {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    perspective: 1000px;
    width: 250px;
    height: 300px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: rgba(22, 33, 62, 0.9);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(163, 191, 250, 0.1);
    backdrop-filter: blur(5px);
}

.card-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front i {
    font-size: 3rem;
    color: #a3bffa;
}

.card-front h3 {
    margin-top: 1rem;
    color: #fff;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-back p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #d0d0e0;
}

.card-back a {
    color: #a3bffa;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.card-back a:hover {
    color: #fff;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    background: #0f1626;
}

/* About Text (Desktop) */
.about-text {
    max-width: 500px;
    text-align: left;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #98d7c2;
}

.about-text p {
    margin-bottom: 1rem;
    color: #d0d0e0;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #a3bffa;
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* About Image (Desktop) */
.about-image img {
    width: 300px;
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

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

/* Connect Section */
.connect {
    padding: 4rem 2rem;
    text-align: center;
}

.connect h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #98d7c2;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icons a {
    color: #a3bffa;
    font-size: 3rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: rotate(360deg);
    color: #fff;
}

/* Footer */
footer {
    background: linear-gradient(45deg, #16213e, #0f1626);
    padding: 2rem;
    color: #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info, .footer-logo, .social-media-footer {
    flex: 1;
    min-width: 200px;
}

.contact-info h4, .social-media-footer h4 {
    margin-bottom: 1rem;
    color: #98d7c2;
}

.social-icons-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icons-footer a {
    color: #a3bffa;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons-footer a:hover {
    color: #fff;
}

.footer-logo h2 {
    font-size: 2rem;
    color: #98d7c2;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(22, 33, 62, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-control label {
    color: #fff;
    font-size: 0.9rem;
}

#volumeSlider {
    width: 100px;
    accent-color: #a3bffa;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }

    .navbar li {
        margin: 0.5rem 0;
    }

    .hero {
        height: auto;
        padding: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .links {
        gap: 1rem;
    }

    .card {
        width: 200px;
        height: 250px;
    }

    .card-front i {
        font-size: 2.5rem;
    }

    .card-front h3, .card-back p {
        font-size: 0.9rem;
    }

    .about {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .about-text {
        max-width: 100%;
        text-align: center;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .about-image img {
        width: 200px;
    }

    .connect h2 {
        font-size: 2rem;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .social-icons a {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info, .footer-logo, .social-media-footer {
        margin-bottom: 1.5rem;
    }

    .social-icons-footer {
        justify-content: center;
    }

    .music-control {
        bottom: 10px;
        right: 10px;
        padding: 0.3rem 0.8rem;
    }

    #volumeSlider {
        width: 80px;
    }
}

/* Fine-tune for iPhone 15 Pro Max (430px wide in portrait) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .card {
        width: 180px;
        height: 230px;
    }

    .card-front i {
        font-size: 2rem;
    }

    .card-front h3, .card-back p {
        font-size: 0.8rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 0.85rem;
    }

    .button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .about-image img {
        width: 180px;
    }

    .connect h2 {
        font-size: 1.8rem;
    }

    .social-icons a {
        font-size: 2rem;
    }
}