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

::selection {
    background: rgba(124, 58, 237, 0.35);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: #2a2a3a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #08080e;
    color: #e4e4e7;
    line-height: 1.6;
    background-image:
        radial-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

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

/* HEADER */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(8, 8, 14, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
    color: #fff;
}

.logo span {
    color: #a78bfa;
    margin-left: 4px;
}

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

.nav-links a {
    text-decoration: none;
    color: #a1a1aa;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #a78bfa;
    transition: width 0.25s;
}

.nav-links a:hover {
    color: #a78bfa;
}

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

/* HERO */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
}

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

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-text {
    flex: 1;
}

.hero-subtitle {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #a78bfa;
    font-weight: 500;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.hero-subtitle::before {
    content: '$ ';
    color: #a78bfa;
    font-weight: 700;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.hero-role {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.hero-role::before {
    content: '>';
    margin-right: 6px;
    color: #22c55e;
}

.hero-description {
    font-size: 1rem;
    color: #f4f4f5;
    max-width: 520px;
    margin-bottom: 28px;
    border-left: 2px solid rgba(124, 58, 237, 0.3);
    padding-left: 18px;
    line-height: 1.7;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: #7c3aed;
    color: #fff;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.25);
}

.btn-outline {
    background: transparent;
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: #a78bfa;
}

.hero-image {
    flex-shrink: 0;
}

.avatar-img {
    width: 280px;
    height: 280px;
    border-radius: 32px 32px 32px 4px;
    object-fit: cover;
    border: 2px solid rgba(124, 58, 237, 0.25);
    box-shadow:
        0 0 60px rgba(124, 58, 237, 0.15),
        -4px 4px 0 rgba(124, 58, 237, 0.08);
    transition: border-radius 0.3s;
}

.avatar-img:hover {
    border-radius: 50%;
}

/* SECTIONS */

section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    color: #6b7280;
    max-width: 540px;
    margin: 16px auto 36px;
    font-size: 0.95rem;
}

/* SKILLS */

.skills {
    background: #0e0e16;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}

.skill-category {
    flex: 1 1 280px;
    max-width: 380px;
    min-width: 260px;
    background: #0f0f18;
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 8px;
    padding: 20px 22px;
    position: relative;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.03);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 2px;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #1e1e2a;
}

.skill-category-header h3 {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.skill-category-header h3::before {
    content: '# ';
    color: #6b7280;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
}

.skill-item {
    font-weight: 500;
    font-size: 0.85rem;
    color: #c4b5fd;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 4px;
    transition: border-color 0.2s;
}

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

.skill-item:hover {
    border-color: rgba(124, 58, 237, 0.25);
}

.skill-item i.devicon-archlinux-plain,
.skill-item i.devicon-github-original {
    color: #e4e4e7;
}



.skill-soft {
    color: #e4e4e7;
    border-color: rgba(255, 255, 255, 0.08);
}

.skill-item {
    font-weight: 500;
    font-size: 0.88rem;
    color: #c4b5fd;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

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

.skill-item:hover {
    color: #a78bfa;
}

.skill-soft {
    color: #a1a1aa;
}

/* PROJECTS */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: #12121a;
    border: 1px solid #1e1e2a;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: #a78bfa;
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
}

.project-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.12);
    margin-bottom: 20px;
}

.project-icon-img {
    font-size: 2rem;
}

.project-card h3 {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.project-card p {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tags span {
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-tags span i {
    font-size: 0.9rem;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.2s;
}

.project-link:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

/* EXPERIENCE / TIMELINE */

.experience {
    background: #0e0e16;
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 20px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 20px;
    bottom: -28px;
    width: 2px;
    background: linear-gradient(to bottom, #a78bfa, #3b82f6);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item:last-child .timeline-content {
    margin-bottom: 0;
}

.timeline-line {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a78bfa;
    border: 2px solid #0e0e16;
    box-shadow: 0 0 0 2px #a78bfa;
    flex-shrink: 0;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

.timeline-content {
    margin-bottom: 28px;
}

.timeline-content {
    background: #12121a;
    border: 1px solid #1e1e2a;
    border-radius: 16px;
    padding: 24px 28px;
    transition: border-color 0.3s;
}

.timeline-content:hover {
    border-color: #a78bfa;
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.9rem;
    color: #a78bfa;
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #a1a1aa;
    font-size: 0.9rem;
}

/* CONTACT */

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 16px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #a1a1aa;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.25s;
    padding: 8px;
}

.contact-card i {
    font-size: 2.8rem;
    transition: transform 0.25s;
}

.contact-card:hover {
    color: #fff;
}

.contact-card:hover i {
    transform: translateY(-4px);
}

.contact-card .devicon-linkedin-plain {
    color: #0a66c2;
}

.contact-card .devicon-github-original {
    color: #e4e4e7;
}

.contact-card .devicon-google-plain {
    color: #ea4335;
}

.contact-item a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-form .form-group {
    flex: 1 1 100%;
}

.contact-form .form-group:first-child,
.contact-form .form-group:nth-child(2) {
    flex: 1 1 calc(50% - 7px);
}

.form-group {
    margin-bottom: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: #0f0f18;
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 6px;
    color: #e4e4e7;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #52525b;
}

/* FOOTER */

footer {
    border-top: 1px solid #1e1e2a;
    padding: 32px 0;
}

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

.footer-content p {
    color: #52525b;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #a78bfa;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .avatar-img {
        width: 200px;
        height: 200px;
        border-radius: 24px 24px 24px 4px;
    }

    .avatar-img:hover {
        border-radius: 50%;
    }

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

    section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
