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

:root {
    /* Tokyo Night Storm Colors */
    --bg-primary: #24283b;
    --bg-secondary: #1f2335;
    --bg-card: #292e42;
    --accent-primary: #7aa2f7;
    --accent-secondary: #bb9af7;
    --text-primary: #c0caf5;
    --text-secondary: #a9b1d6;
    --text-muted: #565f89;
    --border-color: #3b4261;
    --success: #9ece6a;
    --warning: #e0af68;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    scroll-behavior: smooth;
}

/* Header & Navigation */
header {
    background: rgba(31, 35, 53, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(122, 162, 247, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(187, 154, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(122, 162, 247, 0.3);
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(122, 162, 247, 0.4);
    background: var(--accent-secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about p {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.about .education,
.about .experience {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
}

.about h3 {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about .experience ul {
    margin-left: 0;
    margin-top: 0.5rem;
    list-style-position: inside;
    text-align: center;
}

.about .experience li {
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills {
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(122, 162, 247, 0.2);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.skill-category li:hover {
    color: var(--accent-primary);
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(122, 162, 247, 0.05) 0%, rgba(187, 154, 247, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(122, 162, 247, 0.25);
    border-color: var(--accent-primary);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
}

.project-card p {
    margin-bottom: 1rem;
    flex-grow: 1;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(122, 162, 247, 0.2);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tech-tag:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.project-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
    transition: all 0.3s ease;
    position: relative;
}

.project-link:hover {
    color: var(--accent-secondary);
    text-decoration: none;
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
    text-align: center;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: var(--accent-secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.social-links a:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(122, 162, 247, 0.3);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .social-links a {
        width: 200px;
    }
}
