:root {
    --profile-bg: var(--bg-main);
    --profile-card-bg: var(--bg-card);
    --profile-shadow: var(--shadow-md);
    --profile-shadow-hover: var(--shadow-lg);
    --primary-blue: var(--primary);
    --glass-border: var(--border-soft);
    --card-radius: var(--radius-lg);
    --primary-black: var(--text-main);
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-reveal {
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.profile-layout {
    display: flex;
    gap: 3rem;
    margin-top: -80px;
    position: relative;
    z-index: 20;
    align-items: flex-start;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Sidebar Styling */
.profile-sidebar {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
}

.profile-sidebar-content {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-base);
}

.profile-picture-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.profile-picture {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-md);
    background: var(--bg-muted);
    overflow: hidden;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-identity {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.profile-username {
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.profile-headline {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.btn-behance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary-behance {
    background: var(--primary);
    color: white;
}

.btn-primary-behance:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-behance {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-base);
}

.btn-secondary-behance:hover {
    background: var(--bg-muted);
}

.profile-details-list {
    border-top: 1px solid var(--gray-100);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.detail-item i {
    width: 20px;
    color: var(--gray-400);
    text-align: center;
}

/* Main Content Styling */
.profile-main {
    flex-grow: 1;
    background: transparent;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-behance-sm {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    background: var(--primary-black);
    color: var(--text-inverse);
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}

/* Portfolio Cards: Behance Style */
.discovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-card-behance {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-base);
}

.portfolio-card-behance:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.portfolio-cover {
    position: relative;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    background: var(--gray-100);
}

.portfolio-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-base);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card-behance:hover .portfolio-overlay {
    opacity: 1;
}

.view-project-btn {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 0.6rem 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.portfolio-card-behance:hover .view-project-btn {
    transform: translateY(0);
}

.portfolio-info {
    padding: 1rem;
}

.card-project-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Sections (Storage, Video) */
.sidebar-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.section-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.storage-percentage-badge {
    font-size: 0.7rem;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.storage-mini-bar {
    height: 8px;
    background: var(--bg-muted);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.storage-fill {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.storage-text {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: right;
}

.sidebar-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .profile-layout {
        flex-direction: column;
        margin-top: -100px;
    }

    .profile-sidebar {
        width: 100%;
        position: static;
    }

    .profile-sidebar-content {
        margin-bottom: 2rem;
    }

    .profile-main {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .discovery-grid {
        grid-template-columns: 1fr;
    }
}


