/* Woralelandia Modern Bento & Dual-Theme System 2026 */
@import url('https://fonts.googleapis.com/css2?family=Gruppo&family=Metrophobic&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    color-scheme: dark;
    
    /* Dark Theme Default */
    --bg: #050811;
    --bg-mesh: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.12) 0%, transparent 50%),
               radial-gradient(circle at 10% 40%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
               radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
    --bg-surface: rgba(13, 21, 38, 0.7);
    --bg-card: rgba(16, 26, 48, 0.75);
    --bg-card-hover: rgba(22, 36, 68, 0.9);
    --border: rgba(56, 189, 248, 0.2);
    --border-hover: rgba(0, 240, 255, 0.6);
    --text-title: #ffffff;
    --text-body: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --subtitle: #94a3b8;
    --tagline: #cbd5e1;
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.35);
    --icon-color: #f1f5f9;
    --fma-color: #00f0ff;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    --status-bg: rgba(13, 21, 38, 0.85);
    --status-text: #cbd5e1;
    --status-border: rgba(56, 189, 248, 0.3);
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f1f5f9;
    --bg-mesh: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.12) 0%, transparent 60%),
               radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --border: rgba(203, 213, 225, 0.9);
    --border-hover: #0284c7;
    --text-title: #0f172a;
    --text-body: #1e293b;
    --text-muted: #334155;
    --text-dim: #64748b;
    --subtitle: #0369a1;
    --tagline: #475569;
    --accent: #0284c7;
    --accent-glow: rgba(2, 132, 199, 0.25);
    --icon-color: #0f172a;
    --fma-color: #0284c7;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --status-bg: #ffffff;
    --status-text: #1e293b;
    --status-border: rgba(2, 132, 199, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

body {
    background: var(--bg);
    background-image: var(--bg-mesh);
    background-attachment: fixed;
    color: var(--text-body);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px);
    overflow-x: hidden;
}

.main-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--status-bg);
    border: 1px solid var(--status-border);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--status-text);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

/* Header */
header {
    text-align: center;
}

header small {
    display: block;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--subtitle);
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 6px;
}

header h1 {
    font-family: 'Gruppo', sans-serif;
    font-size: clamp(3.2rem, 9vw, 5.8rem);
    color: var(--accent);
    letter-spacing: 6px;
    line-height: 1;
    margin: 6px 0 12px 0;
    text-shadow: 0 0 32px var(--accent-glow);
}

header .tagline {
    font-family: 'Metrophobic', sans-serif;
    font-size: clamp(1.1rem, 2.8vw, 1.45rem);
    color: var(--tagline);
    letter-spacing: 2px;
    font-style: italic;
}

/* Roles Bar */
.roles-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.role-tag {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 10px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    text-decoration: none;
    color: var(--text-body);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px var(--accent-glow);
}

/* Hero Feature Card: Projects Constellation */
.bento-featured {
    grid-column: span 12;
    padding: 32px;
    background: linear-gradient(135deg, #0b1329, #152244);
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 16px 48px rgba(0, 240, 255, 0.15);
    color: #f8fafc;
}

.bento-featured:hover {
    border-color: #00f0ff;
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.35);
}

.featured-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.featured-text h2 {
    font-family: 'Gruppo', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: #00f0ff;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.featured-text p {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 600px;
    line-height: 1.6;
}

.featured-badges {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.mini-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #00f0ff;
}

.btn-constellation {
    background: #00f0ff;
    color: #050811;
    font-weight: 800;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    flex-shrink: 0;
}

/* Medium Bento Cards */
.bento-half {
    grid-column: span 6;
}

.bento-third {
    grid-column: span 4;
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: inline-block;
}

.card-title {
    font-family: 'Metrophobic', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-title);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title .arrow {
    font-size: 1.1rem;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bento-card:hover .card-title .arrow {
    opacity: 1;
    transform: translateX(4px) translateY(-2px);
    color: var(--accent);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400;
}

/* Footer & Social */
footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.social-bar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--icon-color);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.social-link .icon-dynamic {
    color: var(--icon-color);
    fill: var(--icon-color);
}

.social-link .icon-fma {
    color: var(--fma-color);
    fill: var(--fma-color);
}

.social-link:hover {
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.social-link svg,
.social-link img {
    width: 22px;
    height: 22px;
}

.footer-copy {
    font-size: 0.88rem;
    color: var(--text-dim);
    font-weight: 500;
}

.theme-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-title);
    border-radius: 20px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
}

.theme-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Sub-page Container */
.content-container {
    width: 100%;
    max-width: 860px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(24px, 5vw, 48px);
    box-shadow: var(--shadow);
    text-align: left;
    margin: 20px 0;
    backdrop-filter: blur(16px);
}

.content-container h2 {
    font-family: 'Gruppo', sans-serif;
    color: var(--accent);
    font-size: 1.8rem;
    margin: 24px 0 12px 0;
    letter-spacing: 1px;
}

.content-container h2:first-child {
    margin-top: 0;
}

.content-container p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 16px;
}

.content-container a {
    color: var(--accent);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .bento-half {
        grid-column: span 12;
    }
    .bento-third {
        grid-column: span 6;
    }
}

@media (max-width: 600px) {
    .bento-third {
        grid-column: span 12;
    }
    .featured-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-constellation {
        width: 100%;
        justify-content: center;
    }
}
