:root {
    --bg-dark: #050505;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --glow-color: rgba(255, 255, 255, 0.15);
    
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(45, 12, 107, 0.4) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(12, 83, 107, 0.3) 0%, transparent 70%);
}

/* Layout */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.handle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.discipline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

/* Links Section */
/* --- LAYOUT ARCHITECTURES --- */

.links-section {
    width: 100%;
    margin-bottom: 2rem;
}

/* 1. Bento Grid (Main Links) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.bento-grid .bento-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    grid-column: span 1;
}

.bento-grid .card-cover {
    height: 150px;
}

/* Modifier for grids where every item is full-width */
.bento-grid.bento-stack .bento-card {
    grid-column: span 2;
}
.bento-grid.bento-stack .card-cover {
    height: 200px;
}

/* 2. Horizontal Editorial List (Free Guides) */
.editorial-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.editorial-list .editorial-card {
    flex-direction: row;
    align-items: center;
    padding: 0.75rem;
}

.editorial-list .editorial-card .card-cover {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    flex-shrink: 0;
    margin-right: 1rem;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
}

.editorial-list .editorial-card .card-content {
    padding: 0;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-top: none;
}

.editorial-list .editorial-card .link-title {
    font-size: 0.95rem;
}

/* 3. Common Link Card Styles */

.section-heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-left: 0.5rem;
}

.link-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.3s ease, 
                border-color 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), var(--glow-color), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.link-card:hover {
    transform: translateY(-2px);
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-card:hover::before {
    opacity: 1;
}

.card-cover {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-right: 1rem;
}

.link-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.link-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.arrow-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
}

.link-card:hover .arrow-icon {
    transform: translateX(4px);
    opacity: 1;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-grid .bento-card {
        grid-column: span 1 !important;
    }
    .bento-grid .card-cover {
        height: 200px !important;
    }
}
