:root {
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --primary-color: #00ff41;
    /* Hacker Green */
    --secondary-color: #b392f0;
    /* Soft Purple */
    --accent-color: #f85149;
    /* Alert Red */
    --dim-color: #8b949e;
    --font-mono: 'JetBrains Mono', monospace;
    --font-heading: 'Outfit', sans-serif;
    --card-bg: #161b22;
    --border-color: #30363d;
}

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

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(13, 17, 23, 0.9), rgba(13, 17, 23, 0.95)), url('assets/bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-color);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dim-color);
}

/* Scanline Effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
}

/* Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Section Common */
section {
    padding: 100px 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 200px;
    height: 1px;
    background: var(--border-color);
    margin-left: 20px;
}

.section-title span {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Hero */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    background: radial-gradient(circle at center, rgba(13, 17, 23, 0.4) 0%, var(--bg-color) 100%);
}

.greeting {
    font-family: var(--font-mono);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.glitch {
    font-size: 4rem;
    font-weight: 700;
    color: #e6edf3;
    position: relative;
}

.subtitle {
    font-size: 2rem;
    color: var(--dim-color);
    margin-top: 10px;
    margin-bottom: 30px;
}

.highlight {
    color: var(--secondary-color);
}

.roles span {
    display: inline-block;
    background: var(--border-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    margin-right: 10px;
    margin-bottom: 10px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.bio-list {
    list-style: none;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.bio-list li {
    margin-bottom: 10px;
}

.bio-list strong {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Skills */
.skill-category {
    margin-bottom: 40px;
}

.skill-category h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 5px 15px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: background 0.3s;
}

.skill-tags span:hover {
    background: rgba(0, 255, 65, 0.2);
}

/* Experience */
.timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    margin-left: 20px;
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--dim-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #e6edf3;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style-position: inside;
    color: var(--dim-color);
}

/* Certs */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cert-card {
    background: var(--card-bg);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.cert-card h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.cert-card ul {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Platform */
.platform-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-box {
    background: var(--card-bg);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.stat-box h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-detail {
    font-size: 0.9rem;
    color: var(--dim-color);
}

.awards-list {
    list-style: none;
    text-align: left;
    font-size: 0.9rem;
    color: var(--dim-color);
    margin-top: 10px;
}

.teams {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: var(--dim-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    .nav-links {
        display: none;
        /* Simple hide for now, could add hamburger */
    }

    #hero {
        padding-top: 0;
    }

    .glitch {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .section-title::after {
        width: 100px;
    }
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 2px #0ff;
    }

    25% {
        text-shadow: -2px -2px #f0f;
    }

    50% {
        text-shadow: 2px -2px #0ff;
    }

    75% {
        text-shadow: -2px 2px #f0f;
    }

    100% {
        text-shadow: 2px 2px #0ff;
    }
}

.glitch:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    cursor: default;
}

/* Avatar Style */
.avatar-container {
    margin-bottom: 30px;
    position: relative;
    width: 150px;
    height: 150px;
    margin-left: auto;
    margin-right: auto;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    transition: transform 0.3s;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
}