:root {
    --purple: #7851a9;
    --light-purple: #a389d4;
    --dark-bg: #0d0d0d;
    --glass: rgba(255, 255, 255, 0.03);
    --text: #f0f0f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- Fixed Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 10%;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}

.logo { font-weight: 700; font-size: 1.6rem; color: #fff; white-space: nowrap; flex-shrink: 0; }
.bracket { color: var(--purple); transition: 0.3s; }
.logo:hover .bracket { letter-spacing: 5px; }
.cursor { color: var(--purple); animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.nav-list { display: flex; list-style: none; }
.nav-list li { margin-left: 1.5rem; }
.nav-list li a { text-decoration: none; color: var(--text); font-size: 0.9rem; padding: 10px 25px; border-radius: 50px; border: 1.5px solid rgba(120, 81, 169, 0.3); transition: 0.3s; }
.nav-list li a:hover {
    border-color: var(--light-purple);
    box-shadow: 0 0 15px rgba(163, 137, 212, 0.4);
    transform: scale(1.05);
}

/* Hidden by default on Desktop */
.menu-toggle { display: none; }

/* --- Mobile Breakpoint --- */
@media (max-width: 768px) {
    nav { padding: 1.2rem 24px; } 

    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0;
        transition: 0.3s;
        background: #fff;
        border-radius: 3px;
    }

    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-list {
        display: none; /* Desktop buttons disappear */
        flex-direction: column;
        width: 100%; position: absolute; top: 100%; left: 0;
        background: rgba(13, 13, 13, 0.98);
        padding: 20px 0; border-bottom: 1px solid rgba(120, 81, 169, 0.2);
    }
    .nav-list.active { display: flex; } /* Mobile menu appears when clicked */
    .nav-list li { margin: 15px 0; margin-left: 0; text-align: center; }
    .logo { font-size: 1.3rem; }
}

/* --- Hero & Rest --- */
.hero { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero h1 { font-size: clamp(3rem, 10vw, 5rem); background: linear-gradient(to bottom, #fff 30%, var(--purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }
.subtitle { color: #888; margin-bottom: 2.5rem; }

.section { padding: 8rem 10% 4rem; }
.section-title { font-size: 2.5rem; font-weight: 700; background: linear-gradient(to bottom, #fff 40%, var(--purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-align: center; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--purple); margin: 10px auto; border-radius: 10px; }
.section-title.left::after { margin: 10px 0 0; }

.about-container { 
    display: flex; 
    flex-direction: column; /* Stacks text and stats vertically */
    align-items: center;    /* Centers the flex items horizontally */
    gap: 3rem; 
}

.about-text { 
    text-align: center;     /* Centers the paragraph text */
    max-width: 800px; 
}
.about-stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card { background: var(--glass); padding: 1.5rem; border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); text-align: center; }
.stat-card h4 { color: var(--purple); font-size: 1.8rem; }

.skills-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.skill-item { background: var(--glass); padding: 0.7rem 1.2rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.05); color: #bbb; }
.skill-item:hover {
    color: #fff;
    border-color: var(--purple);
    background: rgba(120, 81, 169, 0.05);
}

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.project-card { background: var(--glass); padding: 2.5rem; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.05); transition: 0.3s; }
.tag { background: rgba(120, 81, 169, 0.15); color: var(--light-purple); padding: 5px 12px; border-radius: 50px; font-size: 0.7rem; }
.project-card:hover {
    transform: translateY(-12px);
    border-color: var(--purple);
    background: rgba(255, 255, 255, 0.05);
}

.btn { display: inline-block; padding: 0.8rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 600; margin: 0.5rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);}
.btn.primary { background: var(--purple); color: white; }
.btn.secondary { border: 1px solid var(--purple); color: white; }
.btn:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(120, 81, 169, 0.3); 
}

.grid-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 40px 40px; z-index: -2; pointer-events: none; }
.blob { position: fixed; width: 600px; height: 600px; background: radial-gradient(circle, rgba(120, 81, 169, 0.12) 0%, rgba(0,0,0,0) 70%); z-index: -1; filter: blur(100px); }
.blob-1 { top: -150px; right: -150px; }
.blob-2 { bottom: -150px; left: -150px; }

.scroll-indicator {
    position: absolute;
    bottom: 80px;      /* Moved up from 30px */
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.9;      /* Increased from 0.6 for better clarity */
    transition: 0.3s;
}

.mouse {
    width: 22px;
    height: 35px;
    border: 2px solid var(--purple);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--purple);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 50%;
    animation: scroll-wheel 1.5s infinite;
}

/* The vertical movement animation */
@keyframes scroll-wheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

.scroll-indicator p {
    font-size: 0.6rem;
    margin-top: 10px;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Status Badge (Above Heading) --- */
.status-badge {
    background: rgba(120, 81, 169, 0.1);
    border: 1px solid rgba(120, 81, 169, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--light-purple);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dot {
    width: 8px;
    height: 8px;
    background: #00ff88; /* Bright green for "available" */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Social Ribbon (Between Buttons & Scroll) --- */
.hero-socials {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0.7;
}

.hero-socials a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 300;
    transition: 0.3s;
}

.hero-socials a:hover {
    color: var(--purple);
    transform: translateY(-2px);
}

.divider {
    color: var(--purple);
    font-size: 0.8rem;
}

footer { text-align: center; padding: 5rem 2rem; color: #444; font-size: 0.8rem; }