/* ==========================================
   FLOATING BACKGROUND CUBES (profile page only)
========================================== */

.floating-cube{
    position:fixed;
    color:var(--primary);
    opacity:.08;
    pointer-events:none;
    z-index:-1;
    animation:floatCube 9s ease-in-out infinite;
}

.fc-1{
    top:14%;
    left:6%;
    font-size:64px;
    animation-delay:0s;
}

.fc-2{
    top:60%;
    right:8%;
    font-size:90px;
    animation-delay:2s;
    opacity:.06;
}

.fc-3{
    bottom:8%;
    left:42%;
    font-size:44px;
    animation-delay:4s;
}

@keyframes floatCube{
    0%,100%{ transform:translateY(0) rotate(0deg); }
    50%{ transform:translateY(-26px) rotate(12deg); }
}

@media (prefers-reduced-motion: reduce){
    .floating-cube{ animation:none; }
}



/* ==========================================
   PROFILE BANNER
========================================== */

.profile-banner{
    position:relative;
    background:linear-gradient(150deg,rgba(216,59,59,.90),rgba(120,24,24,.85));
    backdrop-filter:blur(20px) saturate(160%);
    -webkit-backdrop-filter:blur(20px) saturate(160%);
    border-radius:var(--radius-lg);
    padding:38px;
    margin-bottom:22px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.28);
    box-shadow:0 22px 50px rgba(150,25,25,.35),inset 0 1px 0 rgba(255,255,255,.22);
}

.banner-glow{
    position:absolute;
    top:-45%;
    left:-15%;
    width:150%;
    height:150%;
    background:radial-gradient(circle at 20% 15%,rgba(255,255,255,.28),transparent 55%);
    pointer-events:none;
}

.banner-shine{
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.08) 45%,transparent 60%);
    pointer-events:none;
}

.banner-content{
    position:relative;
    display:flex;
    align-items:center;
    gap:28px;
    flex-wrap:wrap;
}

.avatar-ring{
    position:relative;
    padding:5px;
    border-radius:50%;
    background:conic-gradient(from 0deg,rgba(255,255,255,.85),rgba(255,255,255,.15),rgba(255,255,255,.85));
    flex-shrink:0;
}

.profile-avatar{
    width:108px;
    height:108px;
    border-radius:50%;
    object-fit:cover;
    display:block;
    border:3px solid rgba(255,255,255,.5);
    box-shadow:0 10px 26px rgba(0,0,0,.3);
}

.profile-info{
    color:#fff;
    flex:1;
    min-width:240px;
}

.profile-info h1{
    font-size:27px;
    font-weight:800;
    display:flex;
    align-items:center;
    gap:10px;
    letter-spacing:-.3px;
}

.profile-info .verified{
    color:#7ee0ff;
    font-size:18px;
}

.social-links{
    display:flex;
    gap:10px;
    margin-top:14px;
}

.social-links a{
    width:36px;
    height:36px;
    border-radius:50%;
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.25);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:14px;
    transition:.2s;
}

.social-links a:hover{
    background:rgba(255,255,255,.3);
    transform:translateY(-3px);
}

.profile-chip-row{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:14px;
}

.pchip{
    display:inline-flex;
    align-items:center;
    gap:7px;
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.25);
    color:#fff;
    padding:7px 14px;
    border-radius:30px;
    font-size:12.5px;
    font-weight:600;
}

.pchip-accent{
    background:rgba(255,255,255,.92);
    color:var(--primary-dark);
}

.edit-profile-btn{
    background:rgba(255,255,255,.2);
    color:#fff;
    border:1px solid rgba(255,255,255,.4);
    padding:11px 20px;
    border-radius:12px;
    font-weight:700;
    font-size:13.5px;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:8px;
    transition:.2s;
    flex-shrink:0;
}

.edit-profile-btn:hover{
    background:rgba(255,255,255,.32);
}



/* ==========================================
   STATS
========================================== */

.profile-stats{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
    margin-bottom:22px;
}

.pstat-card{
    background:var(--glass-strong);
    backdrop-filter:blur(var(--glass-blur)) saturate(150%);
    -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(150%);
    border:1px solid var(--glass-border);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-md);
    padding:22px 24px;
    display:flex;
    align-items:center;
    gap:16px;
    transition:.25s;
}

.pstat-card:hover{
    transform:translateY(-3px);
    box-shadow:var(--shadow-lg);
}

.pstat-icon{
    width:52px;
    height:52px;
    background:var(--primary-soft);
    color:var(--primary);
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    flex-shrink:0;
}

.pstat-card h2{
    font-size:26px;
    font-weight:800;
    color:var(--ink);
}

.pstat-card p{
    font-size:12.5px;
    color:var(--ink-soft);
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.4px;
    margin-top:2px;
}



/* ==========================================
   TABS
========================================== */

.profile-tabs{
    display:flex;
    gap:8px;
    margin-bottom:22px;
    flex-wrap:wrap;
}

.profile-tabs a{
    text-decoration:none;
    color:var(--ink-soft);
    background:var(--glass-strong);
    border:1px solid var(--glass-border);
    padding:10px 20px;
    border-radius:30px;
    font-weight:600;
    font-size:13.5px;
    transition:.2s;
}

.profile-tabs a:hover{
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}



/* ==========================================
   GENERIC GLASS CARD
========================================== */

.glass-card{
    background:var(--glass-strong);
    backdrop-filter:blur(var(--glass-blur)) saturate(150%);
    -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(150%);
    border:1px solid var(--glass-border);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-md);
    padding:26px;
    margin-bottom:22px;
    scroll-margin-top:24px;
}

.glass-card h2{
    font-size:18px;
    font-weight:800;
    color:var(--ink);
    margin-bottom:16px;
}

.about-text{
    color:var(--ink-soft);
    line-height:1.75;
    font-size:14.5px;
}

.empty-note{
    color:var(--ink-faint);
    font-size:13.5px;
}



/* ==========================================
   PROFILE BODY GRID
========================================== */

.profile-body-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:22px;
    align-items:start;
}

.profile-left-col,
.profile-right-col{
    display:flex;
    flex-direction:column;
}



/* ==========================================
   ACHIEVEMENTS
========================================== */

.achievement-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:14px;
}

.achievement-card{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px;
    border-radius:14px;
    background:rgba(255,255,255,.4);
    border:1px solid var(--border);
}

html[data-theme="dark"] .achievement-card{
    background:rgba(255,255,255,.04);
}

.achievement-icon{
    width:44px;
    height:44px;
    border-radius:12px;
    background:var(--primary-soft);
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    flex-shrink:0;
}

.achievement-card h4{
    font-size:14px;
    font-weight:700;
    color:var(--ink);
    margin-bottom:3px;
}

.achievement-card p{
    font-size:12px;
    color:var(--ink-soft);
}



/* ==========================================
   SKILL CHIPS
========================================== */

.skill-chip-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.skill-chip{
    text-decoration:none;
    background:var(--primary-soft);
    color:var(--primary);
    padding:9px 16px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
    transition:.2s;
}

.skill-chip:hover{
    background:var(--primary);
    color:#fff;
    transform:translateY(-2px);
}



/* ==========================================
   SECTION HEADER
========================================== */

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}

.section-header h2{
    margin-bottom:0;
}

.section-header a{
    color:var(--primary);
    text-decoration:none;
    font-weight:600;
    font-size:13.5px;
}

.section-header a:hover{
    text-decoration:underline;
}



/* ==========================================
   PROFILE PROJECTS GRID
========================================== */

.profile-projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:18px;
}

.profile-project-card{
    display:block;
    text-decoration:none;
    border-radius:16px;
    overflow:hidden;
    background:rgba(255,255,255,.4);
    border:1px solid var(--border);
    transition:.25s;
}

html[data-theme="dark"] .profile-project-card{
    background:rgba(255,255,255,.03);
}

.profile-project-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow-lg);
}

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

.ppc-body{
    padding:16px;
}

.ppc-body h3{
    font-size:15px;
    font-weight:700;
    color:var(--ink);
    margin-bottom:6px;
}

.ppc-body p{
    font-size:12.5px;
    color:var(--ink-soft);
    line-height:1.6;
    margin-bottom:10px;
}



/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:900px){
    .profile-body-grid{
        grid-template-columns:1fr;
    }
    .profile-stats{
        grid-template-columns:1fr;
    }
}

@media(max-width:576px){
    .banner-content{
        flex-direction:column;
        text-align:center;
    }
    .social-links,
    .profile-chip-row{
        justify-content:center;
    }
    .edit-profile-btn{
        width:100%;
        justify-content:center;
    }
    .floating-cube{
        display:none;
    }
}