@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #00aaff;
    --background-color: #121212;
    --text-color: #e0e0e0;
    --card-background: #1e1e1e;
    --border-color: #333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

main {
    padding: 6rem 5% 2rem;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

h1, h2, h3 {
    color: #fff;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

#about {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.typewriter {
    color: var(--primary-color);
    font-weight: bold;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

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

.project-card, .education-item, #extracurriculars ul, .skills-grid, #skills h3 + ul {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover, .education-item:hover, #extracurriculars ul:hover, .skills-grid:hover, #skills h3 + ul:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    color: var(--primary-color);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.skill {
    background-color: #2a2a2a;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

#skills h3 {
    margin-top: 3rem;
    text-align: center;
}

#skills ul, #extracurriculars ul {
    list-style-position: inside;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-background);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card-dynamic {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card-dynamic:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card-dynamic h4 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
}

.project-card-dynamic p {
    font-size: 0.9rem;
    margin: 1rem 0;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 1.5rem;
}

.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.language-tag {
    background-color: #333;
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

.repo-stats span {
    margin-left: 1rem;
}

.repo-stats span i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

.skill-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    text-align: center;
}

.skill-item {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
}

.skill-item i {
    font-size: 3rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    nav ul {
        display: none; /* Simple responsive nav for now */
    }
}
