/* Highly Premium Deep Aesthetic CSS */
:root {
    --bg-base: #09090b;
    --bg-surface: #121214;
    --bg-surface-hover: #18181b;
    --border-subtle: #27272a;
    --border-focus: #3f3f46;
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    
    --accent: #e4e4e7;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #27272a;
    color: #fff;
}

/* Layout */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: 35%;
    max-width: 400px;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
}

.border-right {
    border-right: 1px solid var(--border-subtle);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.brand-section {
    margin-bottom: 3rem;
}

.logo-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-tagline {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.brand-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s var(--ease-out);
}

.nav-line {
    width: 2rem;
    height: 1px;
    background-color: var(--border-subtle);
    transition: width 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.nav-item:hover .nav-line, .nav-item.active .nav-line {
    width: 4rem;
    background-color: var(--text-primary);
}

/* Sidebar Footer */
.sidebar-footer {
    padding-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--text-primary);
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 6rem 4rem 6rem 5rem;
    min-width: 0;
}

/* Typography */
.main-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--text-secondary);
    max-width: 800px;
}

.text-highlight {
    color: var(--text-primary);
}

.intro-section {
    margin-bottom: 8rem;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Bento Grid */
.bento-section {
    margin-bottom: 8rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.bento-card {
    position: relative;
    border-radius: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.featured-app {
    grid-column: 1 / -1; /* spans full width */
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border-radius: inherit;
    pointer-events: none;
}

.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

.bento-card:hover {
    border-color: var(--border-focus);
    transform: translateY(-2px);
}

.bento-card:hover .card-bg {
    opacity: 1;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.app-icon-wrapper {
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: transform 0.4s var(--ease-out);
}

.bento-card:hover .app-icon-wrapper {
    transform: scale(1.05) rotate(-2deg);
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-title-group {
    flex-grow: 1;
}

.app-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.app-category {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.arrow-icon {
    color: var(--text-secondary);
    transition: transform 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.bento-card:hover .arrow-icon {
    transform: translate(4px, -4px);
    color: var(--text-primary);
}

.card-details {
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.app-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.tags {
    display: flex;
    gap: 0.75rem;
}

.tag {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-subtle);
}

/* Empty State Card */
.empty-state {
    align-items: center;
    justify-content: center;
    min-height: 250px;
    border: 1px dashed var(--border-subtle);
    background: transparent;
}

.empty-state::before { display: none; }

.empty-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-tertiary);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(0.8); }
}

/* About Section */
.about-section {
    margin-bottom: 8rem;
    max-width: 800px;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat-desc {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    margin-bottom: 4rem;
}

.contact-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.contact-sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 400px;
    z-index: 10;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
    z-index: 10;
}

.btn-primary-large:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .layout-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-width: 100%;
        height: auto;
        position: relative;
        padding: 3rem 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        background: var(--bg-base);
        z-index: 10;
    }
    
    .sidebar-content {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 2rem;
    }
    
    .brand-section {
        margin-bottom: 0;
        flex: 1;
        min-width: 250px;
    }
    
    .nav-menu {
        flex-direction: row;
        margin-top: 0;
    }
    
    .sidebar-footer {
        width: 100%;
        padding-top: 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .social-links { margin-bottom: 0; }
    
    .main-content {
        padding: 4rem 2rem;
    }
    
    .intro-section { margin-bottom: 5rem; }
    .bento-section { margin-bottom: 5rem; }
    .about-section { margin-bottom: 5rem; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    
    .brand-desc { display: none; }
    
    .bento-grid { grid-template-columns: 1fr; }
    
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .arrow-icon { display: none; }
    
    .stats-grid { grid-template-columns: 1fr; }
    
    .contact-box { padding: 3rem 1.5rem; }
    
    .contact-heading { font-size: 2.2rem; }
}
