:root {
    --bg: #0f1117;
    --surface: #161b22;
    --card: #1e242f;
    --accent: #00f5ff;
    --accent2: #c026d3;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    gap: 1rem;
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
}

    .social-links a {
        color: var(--text-muted);
        font-size: 1.3rem;
        transition: 0.3s;
    }

        .social-links a:hover {
            color: var(--accent);
            transform: translateY(-3px);
        }

/* HERO */

.hero {
    padding: 6rem 1rem 4rem;
    background: linear-gradient(135deg, #0f1117 0%, #1a1f2e 100%);
}

.hero-content {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.1;
}

.subtitle {
    color: var(--accent);
    margin: 1rem 0;
}

.hero-image img {
    max-width: 500px;
    border-radius: 20px;
}

/* SECTION */

section {
    width: min(1200px, calc(100% - 2rem));
    margin: auto;
    padding: 5rem 0;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* TECH TAGS */

.tech-stack,
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tech-tag {
    background: var(--surface);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

/* EXPERIENCE */

.experience-cards {
    max-width: 820px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.exp-date {
    color: var(--accent);
}

.role-card {
    background: var(--card);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: 0.3s;
}

    .role-card:hover {
        transform: translateY(-5px);
    }

    .role-card img {
        width: 80px;
        height: 80px;
        object-fit: contain;
    }

/* PROJECTS */

.projects-header {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(0, 245, 255, 0.2);
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.3s;
}

    .filter-btn:hover,
    .filter-btn.active {
        background: var(--accent);
        color: #000;
    }

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

.project-card {
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

    .project-card:hover {
        transform: translateY(-10px);
    }

    .project-card.hidden {
        display: none;
    }

    .project-card img {
        width: 100%;
        height: 210px;
        object-fit: cover;
    }

.project-info {
    padding: 1.5rem;
}

/* CONTACT */

#contact {
    background: linear-gradient(135deg, var(--surface), var(--card));
    border-radius: 24px;
}

.contact-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-item {
    background: var(--card);
    width: 220px;
    min-height: 220px;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

    .contact-item:hover {
        transform: translateY(-8px);
    }

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 3rem 5%;
    color: var(--text-muted);
}

/* MOBILE */

@media (max-width: 768px) {

    header {
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .role-card {
        flex-direction: column;
        text-align: center;
    }
}
