/* Bismillah */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    /* Cosmic gradient background */
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #2d1b69 100%);
    position: relative;
}

/* Nebula gas clouds */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.6), rgba(75, 0, 130, 0.3), transparent);
    top: -200px;
    right: -150px;
    animation: float 25s ease-in-out infinite;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.5), rgba(25, 25, 112, 0.3), transparent);
    bottom: -150px;
    left: -100px;
    animation: float 30s ease-in-out infinite reverse;
}

.nebula-cloud {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.nebula-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(186, 85, 211, 0.5), rgba(138, 43, 226, 0.2), transparent);
    top: 20%;
    left: 10%;
    animation: float 35s ease-in-out infinite;
}

.nebula-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(72, 61, 139, 0.6), rgba(106, 90, 205, 0.3), transparent);
    top: 50%;
    right: 15%;
    animation: float 40s ease-in-out infinite reverse;
}

.nebula-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(147, 112, 219, 0.4), rgba(123, 104, 238, 0.2), transparent);
    bottom: 15%;
    left: 40%;
    animation: float 28s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -40px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

/* Star rain animation - falling straight down */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Star tail - vertical trail effect */
.star::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.9));
}

@keyframes fallStraight {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.container {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.right-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    max-width: 380px;
    flex-shrink: 0;
}

.left-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.left-section h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #f8f9fa;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(138, 43, 226, 0.5),
        0 0 30px rgba(138, 43, 226, 0.3);
}

.name {
    font-size: 2rem;
    font-weight: 600;
    color: #f8f9fa;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    margin-bottom: 0.8rem;
    white-space: nowrap;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.social-label {
    font-size: 0.85rem;
    color: #b8b9ba;
    font-weight: 500;
}

.social-link a {
    font-size: 1.1rem;
    color: #8ab4f8;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.social-link a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #8ab4f8, #a78bfa);
    transition: width 0.3s ease;
}

.social-link a:hover {
    color: #a78bfa;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.social-link a:hover::after {
    width: 100%;
}

/* Responsive design */
@media (max-width: 1024px) {
    .container {
        gap: 3rem;
        padding: 1.5rem;
    }

    .left-section h1 {
        font-size: 3rem;
    }

    .name {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .container {
        flex-direction: column-reverse;
        gap: 2rem;
        padding: 1.5rem;
        height: auto;
        min-height: 100vh;
    }

    .left-section h1 {
        font-size: 2.2rem;
        white-space: normal;
        padding: 1rem 0;
    }

    .right-section {
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .name {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        white-space: normal;
    }

    .socials {
        gap: 1rem;
    }

    .social-link a {
        font-size: 1rem;
    }

    .social-label {
        font-size: 0.8rem;
    }

    /* Reduce nebula clouds on mobile for better performance */
    .nebula-cloud {
        opacity: 0.2;
        filter: blur(60px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
        gap: 1.5rem;
    }

    .left-section h1 {
        font-size: 1.8rem;
    }

    .right-section {
        padding: 1.5rem 1.2rem;
    }

    .name {
        font-size: 1.4rem;
    }

    .social-link a {
        font-size: 0.95rem;
    }

    body::before,
    body::after {
        opacity: 0.2;
    }
}
