:root {
    --bg-color: #0a0a0b;
    --card-bg: #111113;
    --card-border: #1e1e22;
    --text-main: #ffffff;
    --text-secondary: #8b8b94;
    --accent-color: #0071e3;
    --accent-hover: #0077ed;
    --accent-glow: rgba(0, 113, 227, 0.15);
    --radius-lg: 20px;
    --radius-md: 12px;
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-inter);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 48px 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient Lighting Effects */
.ambient-light {
    position: fixed;
    top: -25%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.06) 0%, transparent 65%);
    z-index: -1;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.ambient-light.secondary {
    top: auto;
    bottom: -20%;
    left: -15%;
    right: auto;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.04) 0%, transparent 65%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: auto;
    gap: 20px;
    max-width: 1100px;
    width: 100%;
}

/* Common Card */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: #2a2a30;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* --- App Cards (Image First) --- */
.app-card {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.app-image-showcase {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(145deg, #0d0d0f 0%, #151518 100%);
    border-bottom: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-showcase {
    aspect-ratio: 16/10;
    background: linear-gradient(145deg, #0c0c0e 0%, #141416 50%, #0c0c0e 100%);
}

.app-image-showcase img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 16px;
    transition: transform 0.5s ease;
}

.app-card:hover .app-image-showcase img {
    transform: scale(1.02);
}

/* Minimal Info Bar */
.app-mini-bar {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--card-bg);
    gap: 16px;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #1a1a1e 0%, #252528 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid var(--card-border);
}

.app-icon.small {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.1rem;
}

.app-mini-bar h2, .app-mini-bar h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.short-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.app-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(0, 113, 227, 0.12);
    color: #4da3ff;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.platform-badge.mac {
    background: rgba(147, 51, 234, 0.12);
    color: #b794f6;
}

.btn-download {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0077ed 100%);
    color: white;
    padding: 9px 18px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 12px rgba(0, 113, 227, 0.25);
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.35);
}

.btn-download svg {
    opacity: 0.9;
}

.btn-outline {
    color: var(--text-secondary);
    border: 1px solid #2a2a30;
    padding: 8px 16px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    border-color: #444;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.btn-outline svg {
    opacity: 0.7;
}

/* --- Sidebar --- */
.profile-card {
    padding: 26px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1a1e 0%, #252528 100%);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.profile-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.role {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.bio-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.link-highlight {
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #333;
    transition: text-decoration-color 0.2s;
}

.link-highlight:hover {
    text-decoration-color: var(--accent-color);
}

.social-row {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: #161618;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
}

.social-icon:hover {
    background: #1e1e22;
    border-color: #333;
    transform: translateY(-2px);
}

/* Info Cards */
.info-card, .cta-card {
    padding: 24px;
}

.info-card h4, .cta-card h4 {
    margin-bottom: 14px;
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Features Card */
.features-card {
    grid-column: span 1;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.feature-icon {
    font-size: 1rem;
    width: 28px;
    height: 28px;
    background: #161618;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tech Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud span {
    font-size: 0.75rem;
    padding: 6px 12px;
    background: #161618;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: #999;
    font-weight: 500;
    transition: all 0.2s;
}

.tags-cloud span:hover {
    border-color: #333;
    color: var(--text-main);
}

/* CTA Card */
.cta-card {
    background: linear-gradient(145deg, #111113 0%, #151518 100%);
}

.cta-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.btn-text {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-text:hover {
    color: #4da3ff;
}

/* Footer */
.footer {
    margin-top: 48px;
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    body {
        padding: 32px 16px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .profile-card {
        order: -1;
    }
    
    .app-image-showcase {
        aspect-ratio: 4/3;
    }

    .hero-showcase {
        aspect-ratio: 3/2;
    }

    .app-mini-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .app-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .features-card {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .app-mini-bar h2, .app-mini-bar h3 {
        font-size: 1rem;
    }

    .short-desc {
        font-size: 0.78rem;
    }

    .btn-download, .btn-outline {
        padding: 8px 14px;
        font-size: 0.78rem;
    }
}
