/* Global */
body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

/* Header & Nav */
#page-header {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.logo a {
    color: #b387ff;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: #ccc;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #b387ff;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-top: 150px;
}

/* Avatar */
.avatar {
    display: block; /* ensures it's on its own line */
    margin: 0 auto 20px auto;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(179, 135, 255, 0.4);
    position: relative;
}

/* Typing Text Container */
.text-container {
    display: block; /* ensures it sits below the avatar */
    width: 350px;
    height: 50px;
    overflow: hidden;
    position: relative;
    margin: 0 auto 10px auto; /* centers and spaces it */
}

@keyframes typing {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

.flashing-text {
    display: inline-block;
    font-size: 24px;
    color: #b387ff;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #b387ff;
    animation: typing 5s steps(30) infinite;
    position: absolute;
    left: 0;
    top: 0;
}

/* Buttons */
.link-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.btn, .btn-outline {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.btn {
    background-color: #b387ff;
    color: white;
    box-shadow: 0 0 15px rgba(179, 135, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #b387ff;
    color: #b387ff;
}

.btn:hover, .btn-outline:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(179, 135, 255, 0.4);
}

/* Video Section */
.video-container {
    margin-top: 50px;
    text-align: center;
}

.video-container h2 {
    color: #b387ff;
    font-size: 24px;
    margin-bottom: 15px;
}

.video-container iframe {
    width: 90%;
    max-width: 560px;
    height: 315px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(179, 135, 255, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    background-color: #000;
    padding: 20px 0;
    margin-top: 80px;
    color: #888;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .avatar {
        width: 150px;
        height: 150px;
    }

    .text-container {
        width: 270px;
        height: 35px;
    }

    .flashing-text {
        font-size: 20px;
    }
}


/* === PARTICLES === */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(179,135,255,0.1), transparent 80%);
}

/* === LAYER FIXES === */
.profile-section,
.video-container,
.link-buttons,
.text-container,
.avatar {
    position: relative;
    z-index: 9999;
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === GLOW TEXT === */
.flashing-text {
    color: #b387ff;
    text-shadow: 0 0 15px rgba(179,135,255,0.6);
}

/* === BACKGROUND ENHANCEMENTS === */
body {
    background: radial-gradient(circle at 50% 20%, #0a0012 0%, #000000 100%);
}

/* === FOOTER FIX === */
.footer {
    z-index: 9999;
}
