:root {
    --bg-color: #0a080f;
    --text-color: #ffffff;
    --accent-color: #9d00ff;      /* Bright purple */
    --secondary-color: #14121d;    
    --hover-color: #8400d6;
    --gradient-1: #0c0a1d;
    --gradient-2: #14121d;
    --gradient-3: #1a1a2e;
    --glass-bg: rgba(35, 32, 42, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(157, 0, 255, 0.1);
    --bg-pattern: rgba(40, 35, 45, 0.03);
    --accent-glow: rgba(157, 0, 255, 0.5);
}

/* Global Transitions */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    animation: fadeIn 0.5s ease-in-out;
    min-height: 100vh;
    backdrop-filter: blur(5px); /* Additional blur effect */
}

/* Hide Scrollbar */
::-webkit-scrollbar {
    display: none;
}

header {
    padding: 2rem;
    text-align: center;
}

.profile-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 5px 1px rgb(255 255 255 / 5%);
}

.profile-info {
    text-align: center;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid white;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px var(--glass-shadow),
                0 0 40px var(--glass-shadow);
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-tag {
    color: white;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px var(--accent-glow);
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--accent-color), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skills {
    padding: 2rem;
    backdrop-filter: blur(10px);
    background: rgba(35, 39, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 800px;
    transition: transform 0.3s ease;
}

.skills:hover {
    transform: translateY(-5px);
}

.skill-bar {
    margin: 1.5rem 0;
}

.skill-bar span {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgb(183, 76, 250);
    margin-bottom: 0.8rem;
    display: block;
}

.bar {
    background: rgba(0, 0, 0, 0.2);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    width: 100%;
}

.progress {
    height: 100%;
    background: var(--accent-color);
    border-radius: 5px;
    width: 0;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
    will-change: width;
}

.progress.animated {
    transition: width 1s ease-out;
} /* Added closing brace */



.about {
    text-align: center;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 4px 15px var(--glass-shadow);
    transition: transform 0.3s ease;
}

.about:hover {
    transform: translateY(-5px);
}

.about h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.player-count {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(114, 137, 218, 0.1);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    border: 1px solid rgba(114, 137, 218, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.player-count i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.player-count-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.current-players {
    color: var(--accent-color);
}

.player-separator {
    color: rgba(255, 255, 255, 0.5);
}

.max-players {
    color: rgba(255, 255, 255, 0.7);
}

.status-item i {
    margin-right: 0.5rem;
    transition: color 0.3s ease;
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}



@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    display: none;
}

/* Revert the navigation bar to fixed positioning */
.main-nav {
    position: sticky; /* Reapply fixed positioning */
    z-index: 1000;
    top: 0;            /* Position at the top */
    width: 100%;       /* Full width */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Re-add shadow */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 20px var(--accent-glow);
    padding: 5px 10px;
    cursor: default;
    user-select: none;
    letter-spacing: 0.5px;
    transition: text-shadow 0.3s ease;
    left: 27.11%;
    position: fixed;
}

.nav-logo:hover {
    text-shadow: 0 0 30px var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-left: auto; /* Push links to the right */
    position: relative; /* Remove fixed positioning */
}

.nav-link {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    right: 190.8%;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    cursor: pointer;
  }

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.theme-alt .nav-link.active {
    background: #ab26ff;
    box-shadow: none;
}

.nav-link:hover {
    background: rgba(157, 0, 255, 0.15);
    border-color: rgba(157, 0, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(157, 0, 255, 0.2);
}

.nav-link.active {
    background: var(--accent-color);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.3);
    transform: translateY(-2px);
    pointer-events: auto !important; /* Force enable clicking */
}

.nav-link::after {
    display: none; /* Remove the underline effect */
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-right: auto; /* Push other elements to the right */
}

/* Projects Page Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.project-card {
    background: rgba(35, 39, 42, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(114, 137, 218, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(114, 137, 218, 0.2);
}

.hero {
    text-align: center;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    scroll-margin-top: 70px;
}

.intro-text {
    max-width: 600px;
    margin: 2rem auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.about-btn {
    background-color: var(--accent-color);
    border: 1px solid var(--glass-border);
    color: white;
}


.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.about-text {
    margin-bottom: 3rem;
    line-height: 1.8;
}

.experience-section {
    margin-top: 3rem;
}

.experience-item {
    padding: 1.5rem;
    background: rgba(35, 39, 42, 0.3);
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* About Page Styles */
.about-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    transition: opacity 0.3s ease;
    scroll-margin-top: 70px;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.personal-info {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    animation: fadeInLeft 0.8s ease;
}

.personal-info h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}





@keyframes countUpdate {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { 
        opacity: 0.5;
        filter: brightness(0.8);
    }
    50% { 
        opacity: 1;
        filter: brightness(1.2);
    }
    100% { 
        opacity: 0.5;
        filter: brightness(0.8);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pattern-move {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 0, 20px 20px; }
}

@keyframes particles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

.page-section {
    min-height: 100vh;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    scroll-margin-top: 70px;
    opacity: 1; /* Change from 0 to 1 */
    transform: translateY(0); /* Reset transform */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    visibility: visible; /* Add this */
}

.section-spacer {
    height: 40vh;
    position: relative;
    pointer-events: none;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem;
    }

    .nav-logo {
        font-size: 1.2rem;
        background: linear-gradient(45deg, var(--accent-color), #ffffff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-left: 0.5rem;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.95);
        padding: 0.8rem;
        display: flex;
        justify-content: space-around;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(157, 0, 255, 0.2);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-link {
        padding: 0.6rem;
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.4rem;
        border-radius: 12px;
        min-width: 65px;
        text-align: center;
        background: transparent;
    }

    .nav-link i {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }

    .nav-link.active {
        background: rgba(157, 0, 255, 0.2);
        border: 1px solid rgba(157, 0, 255, 0.3);
        transform: translateY(-2px);
    }

    .nav-link:active {
        transform: scale(0.95);
    }

    .profile-container,
    .about{
        margin: 1rem;
        padding: 1.2rem;
        border-radius: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 15px 24px;
        margin: 8px 0;
        font-size: 1rem;
    }

    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    .nav-links {
        padding-bottom: calc(0.8rem + env(safe-area-inset-bottom));
    }

    .nav-container {
        padding: 0.6rem 1rem;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 20, 0.75); /* More transparent */
        padding: 0.6rem;
        display: flex;
        justify-content: space-around;
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(157, 0, 255, 0.1);
        z-index: 1000;
    }

    .nav-link {
        padding: 0.4rem;
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.2rem;
        border-radius: 8px;
        min-width: 60px; /* Ensure consistent width */
    }

    .nav-link i {
        font-size: 1.1rem;
    }

    .main-nav {
        background: rgba(15, 15, 20, 0.75);
        height: 3.5rem; /* Shorter height on mobile */
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    body {
        padding-bottom: 60px; /* Reduce bottom padding */
    }

    .nav-left {
        gap: 1rem;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 20, 0.95);
        padding: 0.8rem;
        display: flex;
        justify-content: space-around;
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.3rem;
    }

    .nav-link i {
        font-size: 1.2rem;
    }

    /* Sections */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    /* Profile */
    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-avatar {
        width: 150px;
        height: 150px;
    }


    /* Spacing adjustments */
    .section-spacer {
        height: 20vh;
    }

    body {
        padding-bottom: 70px; /* Space for bottom navigation */
    }

    /* General containers */
    .profile-container,
    .about {
        padding: 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 350px) {
    .nav-link {
        padding: 0.5rem;
        min-width: 55px;
        font-size: 0.65rem;
    }

    .nav-link i {
        font-size: 1.1rem;
    }

    .profile-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens */
    .profile-info h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }


}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    opacity: 0.15;
    pointer-events: none;
    filter: blur(8px);
    transform: scale(1.1); /* Prevent blur edges from showing */
}

/* Re-add styles for audio controls if necessary */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(157, 0, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative; /* Change from fixed to relative */
    z-index: 2000; /* Increase z-index */
    left: 900px;
}

.volume-slider {
    width: 100px;
}

.mute-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001; /* Higher than parent */
    min-width: 32px;
    min-height: 32px;
}

.mute-btn:hover {
    color: var(--text-color);
    background: var(--accent-color);
    transform: scale(1.1);
}

.mute-btn i {
    pointer-events: none; /* Prevent icon from interfering with clicks */
} /* Added closing brace */

@media (max-width: 768px) {
    .audio-controls {
        padding: 0.4rem 0.8rem;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .mute-btn {
        padding: 3px;
    }
}

.page-section {
    min-height: 100vh;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    scroll-margin-top: 70px;
    opacity: 1; /* Change from 0 to 1 */
    transform: translateY(0); /* Reset transform */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    visibility: visible; /* Add this */
}

.section-title {
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
    font-size: 2.5rem;
    position: relative;
}

.section-title i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Fix for mobile scrolling */
@media (max-width: 768px) {
    .page-section {
        min-height: calc(100vh - 70px);
        padding: 60px 15px;
    }

    .section-title {
        font-size: 2rem;
    }
}
