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

:root {
    --accent: #6C63FF;
    --accent-h: #574fd6;
    --bg: #0a0a0f;
    --bg-dark: #111118;
    --card: #16161e;
    --border: #2a2a3a;
    --text: #f0f0f5;
    --muted: #888899;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
    background: #0a0a0f;
}

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

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.navbar,
main,
footer {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
}

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

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

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

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

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-tag {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    margin-top: 60px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-sub {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-h);
}

.btn-outline {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-dark {
    background: var(--bg-dark);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-sub {
    color: var(--muted);
    margin-bottom: 48px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s;
}

.project-card:hover {
    border-color: var(--accent);
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.project-tech {
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links a {
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all 0.2s;
}

.project-links a:hover {
    border-color: var(--accent);
    color: var(--text);
}

.project-links a.live {
    border-color: var(--accent);
    color: var(--accent);
}

.project-links a.live:hover {
    background: var(--accent);
    color: #fff;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
}

.skill-category h3 {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

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

.skill-tag {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.skill-tag.beginner {
    background: #1e1e2e;
    color: #888899;
}

.skill-tag.intermediate {
    background: #1e1230;
    color: #a78bfa;
}

.skill-tag.advanced {
    background: var(--accent);
    color: #fff;
}

/* Contact */
.contact-wrap {
    max-width: 560px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
}

.form-msg {
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

.form-msg.success {
    color: #4ade80;
}

.form-msg.error {
    color: #f87171;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.loading {
    color: var(--muted);
}

@media (max-width: 600px) {
    .nav-links {
        gap: 18px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -0;
    pointer-events: none;
}

.cursor {
    color: var(--accent);
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.greeting {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0.03em;
}

.logo-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}