:root {
    --card: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #8b5cf6;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: radial-gradient(circle at top, #111827, #020617);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    background: rgba(2, 6, 23, 0.6);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 20px;
    color: white;
    text-decoration: none;
}

.nav-links a {
    margin-left: 24px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.nav-links a:hover {
    color: white;
}

/* HERO */
.hero {
    max-width: 1100px;
    margin: auto;
    min-height: 100vh;
    padding: 180px 20px 140px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

/* ENTRANCE ANIMATION */
.hero-left {
    animation: slideLeft 0.9s ease forwards;
}

.hero-right {
    animation: slideRight 0.9s ease forwards;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-size: 13px;
    margin-bottom: 20px;
}

h1 {
    font-size: 46px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
}

/* NAME COLOR */
.typing-name {
    color: var(--accent);
}

.hero-left p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 30px;
}

/* STACK HOVER EFFECT */
.stack {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stack span {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: default;
}

.stack span:hover {
    transform: translateY(-6px) scale(1.04);
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
    color: #fff;
}

/* RIGHT CARD */
.hero-right {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.15), rgba(0, 0, 0, 0.3));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
}

.hero-right img {
    width: 170px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.5));
}

.hero-right h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.hero-right p {
    font-size: 14px;
    color: var(--muted);
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1.5s forwards;
}

.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--muted);
    border-radius: 20px;
    margin-top: 8px;
    position: relative;
}

.mouse::before {
    content: "";
    width: 4px;
    height: 6px;
    background: var(--muted);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 1.6s infinite;
}

@keyframes wheel {
    to {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 160px;
    }

    .scroll-indicator {
        display: none;
    }

    .stack {
        justify-content: center;
    }
}

/* ABOUT SECTION */
.about {
    max-width: 1100px;
    margin: auto;
    padding: 100px 20px;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 1s ease forwards;
}

.section-title h2 {
    font-size: 38px;
    font-weight: 800;
}

.about-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text b {
    color: var(--text);
}

.experience-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
}

.stat:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.1);
}

.stat h3 {
    color: var(--accent);
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 800;
}

.stat p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

/* SKILLS GROUPS */
.about-skills {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skill-group h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

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

.tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--muted);
    transition: all 0.3s ease;
}

.tags span:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-container {
        padding: 40px 30px;
    }

    .experience-stats {
        flex-direction: column;
    }
}

/* SKILLS SECTION */
.skills {
    max-width: 1100px;
    margin: auto;
    padding: 100px 20px;
    position: relative;
}

.skills-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.skill-card i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--muted);
    transition: color 0.4s ease;
}

.skill-card:hover i {
    color: var(--accent);
}

.skill-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
    width: 0;
    /* Will be set via inline style or JS */
    transition: width 1.5s ease-in-out;
}

@media (max-width: 900px) {
    .skills-container {
        padding: 40px 30px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* PARTICLE TRAIL BACKGROUND */
#canvas {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    transition: opacity 0.5s ease;
}

/* FLOATING TOGGLE BUTTON */
.toggle-cursor {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.toggle-cursor:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(139, 92, 246, 0.3);
}