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

:root {
    --bg: #111214;
    --card-primary: #1e2025;
    --card-secondary: #181a1e;
    --accent: #7eb8e0;
    --accent-glow: rgba(126, 184, 224, 0.15);
    --accent-glow-strong: rgba(126, 184, 224, 0.3);
    --text-heading: #f0f2f5;
    --text-body: #9aa0ab;
    --text-muted: #555a63;
    --surface: #272b33;
    --border: #2a2e38;
    --font: 'Outfit', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

body {
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    gap: 20px;
    background-color: var(--bg);
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 28px 28px;
    font-family: var(--font);
    font-weight: 700;
}

.profile-card {
    width: 250px;
    height: 600px;
    background-color: var(--card-primary);
    border: 1px solid var(--border);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-heading);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.5s ease both;
    overflow: hidden;
    position: relative;
}

/* Top accent glow strip */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0.8;
}

.profile-info {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Avatar glow ring */
.profile-info img {
    border-radius: 18px;
    box-shadow: 0 0 0 3px var(--surface), 0 0 20px var(--accent-glow-strong);
    transition: box-shadow 0.3s;
}

.profile-info img:hover {
    box-shadow: 0 0 0 3px var(--surface), 0 0 32px var(--accent-glow-strong);
}

.username {
    margin: 14px 0 4px;
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.3px;
}

.description {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-body);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.social-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.social-link a {
    font-size: 13px;
    color: var(--text-body);
    transition: color 0.2s;
}

.social-link:hover a {
    color: var(--accent);
}

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

iconify-icon {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 9px;
    border-radius: 10px;
    transition: border-color 0.2s, color 0.2s;
}

.social-link:hover iconify-icon {
    border-color: var(--accent);
    color: var(--accent);
}

hr {
    width: 100%;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin: 8px 0;
}

.main-content {
    width: 600px;
    height: 600px;
    background-color: var(--card-secondary);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.5s 0.1s ease both;
    overflow: hidden;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    display: flex;
    margin: 0;
    border-radius: 22px 22px 0 0;
    align-items: center;
    justify-content: space-between;
    color: var(--text-heading);
    background-color: var(--card-primary);
    border-bottom: 1px solid var(--border);
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 3px;
    margin: 0;
    padding: 8px 12px;
    background: none;
}

.navbar ul li {
    padding: 8px 18px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
    font-family: var(--font);
}

.navbar ul li:hover {
    color: var(--text-heading);
    background-color: var(--surface);
    border-color: var(--border);
}

.navbar ul li.active {
    color: var(--accent);
    background-color: var(--surface);
    border-color: var(--border);
}

.currentOption {
    position: relative;
    margin: 0;
    padding: 13px 28px;
    font-size: 15px;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    color: var(--text-heading);
    background-color: var(--card-secondary);
    border-right: 1px solid var(--border);
    align-self: stretch;
    display: flex;
    align-items: center;
}



/* About section */
.about {
    padding: 24px 28px;
    color: var(--text-body);
    animation: fadeUp 0.4s ease both;
}

.about-title {
    color: var(--text-heading);
    font-family: var(--font-display);
    margin: 0 0 10px 0;
    font-size: 23px;
    letter-spacing: 0.2px;
}

.about-text {
    margin: 0 0 18px 0;
    line-height: 1.7;
    font-weight: 400;
    font-size: 15px;
}

.highlight {
    color: var(--accent);
    font-weight: 800;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.tag {
    background-color: var(--surface);
    color: var(--accent);
    border: 1px solid var(--border);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 0.3px;
    transition: border-color 0.2s, background-color 0.2s;
}

.tag:hover {
    border-color: var(--accent);
    background-color: var(--accent-glow);
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.about-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.about-card iconify-icon {
    font-size: 22px;
    color: var(--accent);
    background-color: var(--card-primary);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.about-card h4 {
    margin: 0 0 4px 0;
    color: var(--text-heading);
    font-size: 15px;
    font-family: var(--font-display);
}

.about-card p {
    margin: 0;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-body);
}

/* Projects section */
.projects {
    padding: 20px 25px;
}

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

.project-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-glow);
    border-color: var(--accent);
}

.project-banner {
    height: 55px;
    background: linear-gradient(135deg, var(--banner-color1), var(--banner-color2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.project-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.12), transparent 70%);
}

.project-banner iconify-icon {
    font-size: 26px;
    background: none;
    border: none;
    padding: 0;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    position: relative;
}

.project-body {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.project-name {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text-heading);
}

.project-desc {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

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

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.project-tags .tag {
    font-size: 11px;
    padding: 3px 9px;
}

.project-link {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    transition: color 0.2s;
    flex-shrink: 0;
}

.project-link:hover {
    color: var(--text-heading);
}

.project-link iconify-icon {
    font-size: 16px;
    background: none;
    padding: 0;
}

/* Skills section */
.skills {
    padding: 20px 25px;
}

.skills>ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.skills>ul>li {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.skills>ul>li:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 12px var(--accent-glow);
}

.skills>ul>li iconify-icon {
    font-size: 28px;
    background: none;
    padding: 0;
}

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

.skill-name {
    font-size: 15px;
    color: var(--text-heading);
    font-weight: 700;
    font-family: var(--font-display);
}

.skill-level {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
}

.bar {
    width: 100%;
    height: 4px;
    background: var(--card-primary);
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: var(--w);
    background: linear-gradient(to right, var(--accent), #b8d4eb);
    border-radius: 999px;
    animation: fillBar 0.8s ease forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: var(--w);
    }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {

    body {
        flex-direction: column;
        align-items: center;
        height: auto;
        min-height: 100vh;
        padding: 16px;
        gap: 12px;
        box-sizing: border-box;
    }

    /* ── Profile card: compact banner strip ── */
    .profile-card {
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        text-align: left;
        border-radius: 16px;
        padding: 0;
    }

    .profile-info {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 16px 20px;
        width: 100%;
    }

    .profile-info img {
        height: 64px !important;
        width: 64px !important;
        border-radius: 14px !important;
        flex-shrink: 0;
        object-fit: cover;
    }

    /* Text block next to avatar */
    .profile-info .username {
        margin: 0 0 2px 0;
        font-size: 15px;
    }

    .profile-info .description {
        margin: 0;
        font-size: 12px;
        color: var(--text-body);
    }

    hr {
        display: none;
    }

    /* Social links become icon-only row */
    .social-link {
        display: inline-flex;
        margin-top: 0;
        gap: 0;
    }

    /* Push social icons to the right */
    .profile-info {
        justify-content: space-between;
    }

    .social-links-group {
        display: flex;
        gap: 8px;
        margin-left: auto;
    }

    .social-link a {
        display: none;
    }

    .social-link iconify-icon {
        padding: 8px;
        font-size: 16px;
    }

    /* ── Main content ── */
    .main-content {
        width: 100%;
        height: auto;
        border-radius: 18px;
    }

    /* ── Navbar: tabs only, no currentOption label ── */
    .navbar {
        border-radius: 16px 16px 0 0;
        justify-content: stretch;
    }

    .currentOption {
        display: none;
    }

    .navbar ul {
        flex: 1;
        justify-content: space-around;
        padding: 8px 12px;
        gap: 4px;
        border-bottom-left-radius: 0;
    }

    .navbar ul li {
        flex: 1;
        text-align: center;
        padding: 8px 6px;
        font-size: 13px;
        border: 1px solid transparent;
    }

    .navbar ul li.active {
        border-color: var(--surface);
    }

    /* ── Content sections ── */
    .about,
    .projects,
    .skills {
        padding: 16px;
    }

    .about-title {
        font-size: 17px;
    }

    .about-text {
        font-size: 13px;
    }

    /* ── Projects: 2 columns ── */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .project-banner {
        height: 65px;
    }

    .project-banner iconify-icon {
        font-size: 30px;
    }

    .project-body {
        padding: 10px 12px;
        gap: 6px;
    }

    .project-name {
        font-size: 13px;
    }

    .project-desc {
        font-size: 11px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .project-tags .tag {
        font-size: 9px;
        padding: 2px 7px;
    }

    /* ── Skills: 2 columns ── */
    .skills>ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .skills>ul>li {
        padding: 12px 14px;
        gap: 8px;
    }

    .skills>ul>li iconify-icon {
        font-size: 24px;
    }

    .skill-name {
        font-size: 12px;
    }

    .skill-level {
        font-size: 11px;
    }
}

/* ── Small phones ── */
@media (max-width: 400px) {

    body {
        padding: 12px;
    }

    .profile-info img {
        height: 52px !important;
        width: 52px !important;
    }

    .profile-info .username {
        font-size: 14px;
    }

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

    .project-banner {
        height: 80px;
    }

    .project-banner iconify-icon {
        font-size: 36px;
    }

    .project-desc {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .navbar ul li {
        font-size: 12px;
        padding: 7px 4px;
    }
}