/* ===== PROFILE VIEW ===== */

/* ===== LEFT SIDEBAR NAV ===== */
/*
 * left: calc(50vw - 760px) keeps a constant 30px gap from the content edge
 * regardless of viewport width, because:
 *   sidebar right edge  = (50vw - 760) + 130 = 50vw - 630
 *   content left edge   = (100vw - 1200px) / 2 = 50vw - 600
 *   gap                 = 30px always
 */
.profile-sidenav {
    position: fixed;
    left: calc(50vw - 760px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 130px;
    padding: 14px 10px;
    background: rgba(9, 14, 28, 0.90);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.sidenav-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 0 8px;
}

.profile-sidenav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidenav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 8px;
    border-radius: var(--r-sm);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-3);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.sidenav-item:hover {
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.04);
}

.sidenav-item.active {
    color: var(--gold-light);
    background: var(--gold-dim);
}

.sidenav-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-3);
    transition: background 0.2s, transform 0.2s var(--ease);
}

.sidenav-item.active .sidenav-dot {
    background: var(--gold-light);
    transform: scale(1.4);
}

/* --- Hero --- */
.profile-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 48px) 28px 64px;
    position: relative;
    z-index: 1;
}

.profile-hero__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.profile-name {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: 16px;
    animation: fade-up 0.6s var(--ease) 0.15s both;
}

.profile-name mark {
    background: none;
    background-image: linear-gradient(135deg, var(--gold-light), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-title {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 18px;
    animation: fade-up 0.6s var(--ease) 0.25s both;
}

.title-sep {
    color: var(--gold);
    margin: 0 6px;
}

.profile-desc {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
    animation: fade-up 0.6s var(--ease) 0.35s both;
}

.profile-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fade-up 0.6s var(--ease) 0.45s both;
}

/* --- Profile card (right column) --- */
.profile-hero__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    animation: slide-in-right 0.7s var(--ease) 0.2s both;
    backdrop-filter: blur(12px);
}

.profile-hero__card::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -40%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 168, 78, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Avatar */
.avatar-ring {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0e0f2e, #060a1f);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    z-index: 1;
}

.avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(
        var(--gold) 0deg,
        var(--teal) 120deg,
        var(--gold-light) 240deg,
        var(--gold) 360deg
    );
    z-index: -1;
    animation: avatar-spin 10s linear infinite;
}

.avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--bg-card);
    z-index: -1;
}

/* Profile mini-stats */
.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.pstat {
    background: var(--bg-alt);
    border: 1px solid var(--border-s);
    border-radius: var(--r-md);
    padding: 14px 12px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s var(--ease);
}

.pstat:hover {
    border-color: var(--border);
    transform: translateY(-2px);
}

.pstat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.pstat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-3);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Tech cloud */
.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--teal-dim);
    border: 1px solid rgba(20, 230, 208, 0.18);
    color: var(--teal);
    padding: 4px 11px;
    border-radius: var(--r-sm);
    transition: background 0.2s, border-color 0.2s;
}

.tech-tag:hover {
    background: rgba(20, 230, 208, 0.18);
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--teal) 60%, transparent 100%);
}

.timeline-item {
    padding-left: 56px;
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(18px);
}

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

.tl-dot {
    position: absolute;
    left: 8px;
    top: 22px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 4px var(--bg-alt), 0 0 14px var(--gold-glow);
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.exp-card:hover {
    border-color: var(--border-h);
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.exp-company {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.exp-duration {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--teal);
    background: var(--teal-dim);
    border: 1px solid rgba(20, 230, 208, 0.18);
    padding: 3px 12px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

.exp-project {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
}

.exp-desc {
    font-size: 0.88rem;
    color: var(--text-2);
    margin-bottom: 16px;
    line-height: 1.7;
}

.exp-achievements {
    list-style: none;
    margin-bottom: 16px;
}

.exp-achievements li {
    font-size: 0.87rem;
    color: var(--text-2);
    padding: 4px 0 4px 18px;
    position: relative;
    line-height: 1.65;
}

.exp-achievements li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 1rem;
}

.exp-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stack-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: var(--r-sm);
    background: var(--gold-dim);
    border: 1px solid rgba(232, 168, 78, 0.18);
    color: var(--gold);
}

/* ===== SKILLS GRID ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.skill-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    transition: border-color 0.25s, transform 0.3s var(--ease);
    opacity: 0;
    transform: translateY(20px);
}

.skill-group:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
}

.skill-group__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
    background: var(--gold-dim);
}

.skill-group__icon[data-color="teal"]  { background: var(--teal-dim); }
.skill-group__icon[data-color="amber"] { background: var(--amber-dim); }
.skill-group__icon[data-color="green"] { background: var(--green-dim); }
.skill-group__icon[data-color="rose"]  { background: var(--rose-dim); }
.skill-group__icon[data-color="pink"]  { background: var(--pink-dim); }

.skill-group__title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

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

.skill-tag {
    font-size: 0.83rem;
    color: var(--text-2);
    background: var(--bg-alt);
    border: 1px solid var(--border-s);
    padding: 4px 11px;
    border-radius: var(--r-sm);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.skill-tag:hover {
    color: var(--text);
    border-color: var(--border);
    background: var(--bg-card-h);
}

/* ===== CERTIFICATIONS ===== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: border-color 0.25s, transform 0.3s var(--ease);
    opacity: 0;
    transform: translateY(20px);
}

.cert-card:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
}

.cert-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-icon--gold { background: var(--gold-dim); border: 1px solid rgba(232, 168, 78, 0.2); }
.cert-icon--teal { background: var(--teal-dim); border: 1px solid rgba(20, 230, 208, 0.2); }

.cert-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.cert-body {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* ===== COMPETENCIES ===== */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.comp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
    opacity: 0;
    transform: translateY(16px);
}

.comp-card:hover {
    border-color: var(--border-h);
    background: var(--bg-card-h);
    transform: translateY(-3px);
}

.comp-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.comp-card > span:last-child {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-2);
    line-height: 1.4;
}

/* ===== EDUCATION ===== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    transition: border-color 0.25s, transform 0.3s var(--ease);
    opacity: 0;
    transform: translateY(20px);
}

.edu-card:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
}

.edu-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.edu-degree {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.edu-uni {
    font-size: 0.9rem;
    color: var(--text-2);
    margin-bottom: 4px;
}

.edu-location {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-3);
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text);
    margin-bottom: 14px;
}

.contact-title mark {
    background: none;
    background-image: linear-gradient(135deg, var(--gold-light), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-sub {
    font-size: 0.98rem;
    color: var(--text-2);
    margin-bottom: 28px;
    line-height: 1.75;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--text-2);
    transition: color 0.2s;
    padding: 2px 0;
}

.contact-item:hover { color: var(--gold-light); }

.contact-item__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--gold-dim);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Connect card */
.connect-card {
    background: linear-gradient(135deg, var(--gold-dim), var(--teal-dim));
    border: 1px solid var(--border-h);
    border-radius: var(--r-xl);
    padding: 36px;
    text-align: center;
}

.connect-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.connect-card p {
    font-size: 0.9rem;
    color: var(--text-2);
    margin-bottom: 24px;
    line-height: 1.7;
}

.connect-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--r-md);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s var(--ease), filter 0.2s;
    border: 1px solid;
}

.connect-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.connect-btn--linkedin {
    background: rgba(10, 102, 194, 0.1);
    border-color: rgba(10, 102, 194, 0.28);
    color: #6ab4e8;
}

.connect-btn--github {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-2);
}

.connect-btn--youtube {
    background: rgba(255, 0, 0, 0.07);
    border-color: rgba(255, 60, 60, 0.22);
    color: #ff7070;
}

.connect-btn--medium {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-2);
}
