/* 
  Hub Page Design System 
  Focus: Homepage/Portal Layout (3-Column)
*/

:root {
    --bg-color: #05070a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.06);
    --accent-primary: #6366f1;
    --accent-secondary: #0ea5e9;
    --accent-tertiary: #f43f5e;
    --text-main: #f1f5f9;
    --text-muted: #64748b;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(5, 7, 10, 0.8);
    --sidebar-width: 240px;
    --archive-width: 220px;
    --font-family: 'Outfit', -apple-system, sans-serif;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* Three Column Layout */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* Left Sidebar (Navigation & Profile) */
.sidebar-left {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 40px 24px;
    border-right: 1px solid var(--glass-border);
    background: rgba(5, 7, 10, 0.5);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 48px;
    background: linear-gradient(135deg, #fff, #64748b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: auto;
}

.side-nav a {
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.side-nav a:hover, .side-nav a.active {
    background: var(--card-bg);
    color: var(--text-main);
    transform: translateX(5px);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
    border-color: white;
}

/* Center Content */
.main-content {
    flex: 1;
    margin: 0 var(--archive-width) 0 var(--sidebar-width);
    padding: 60px 40px;
    max-width: 760px;
}

/* Right Sidebar (Archive Gallery) */
.sidebar-right {
    width: var(--archive-width);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    padding: 40px 20px;
    border-left: 1px solid var(--glass-border);
    background: rgba(5, 7, 10, 0.3);
    overflow-y: auto;
    z-index: 900;
}

.archive-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.archive-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: var(--transition);
}

.archive-thumb:hover {
    transform: scale(1.05);
    border-color: var(--accent-secondary);
}

.archive-thumb:hover img {
    opacity: 1;
}

.archive-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-size: 0.7rem;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.archive-thumb:hover .archive-title {
    opacity: 1;
}

/* Main Components (Section Styling) */
section {
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

/* Hero */
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Profile Card */
.profile-hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    margin-bottom: 40px;
}

/* Product Big Cards */
.product-showcase {
    display: grid;
    gap: 32px;
}

.showcase-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
}

.showcase-media {
    width: 100%;
    aspect-ratio: 16/9;
}

.showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-info {
    padding: 32px;
}

.profile-avatar-zoom {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background-image: url('assets/img/avatar.jpg');
    background-size: 400%; /* Zoom into the center character */
    background-position: center 48%; 
    border: 2px solid var(--accent-primary);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.x-timeline-container {
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    min-height: 500px;
}

/* Hamburger Fix (Mobile Only) */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border: none;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.x-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.x-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    transition: var(--transition);
}

.x-card-link:hover .x-card {
    background: var(--card-hover);
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.x-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.x-card-body p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.x-card-media {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin-bottom: 16px;
}

.x-card-media img {
    width: 100%;
    height: auto;
    display: block;
}

.x-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.x-view-link {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
}

.x-view-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1100px) {
    .sidebar-right { display: none; }
    .main-content { margin-right: 0; }
}

@media (max-width: 850px) {
    .sidebar-left {
        left: -100%;
    }
    .sidebar-left.active {
        left: 0;
        width: 80%;
    }
    .main-content {
        margin-left: 0;
        padding: 80px 20px;
    }
    .mobile-nav-toggle {
        display: flex;
    }
}