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

:root {
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --background: #FFFFFF;
    --background-secondary: #F9FAFB;
    --background-page: #FAFAFA;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --primary-color: #60A5FA;
    --primary-hover: #3B82F6;
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-light: #9CA3AF;
    --background: #1F2937;
    --background-secondary: #111827;
    --background-page: #0F172A;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-page);
    min-height: 100vh;
    padding: 20px 20px 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background: transparent;
    border-radius: 0;
    padding: 24px 40px 32px;
    margin-bottom: 32px;
    box-shadow: none;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0;
}

.name {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 600px;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: none;
    border-bottom: 1px solid transparent;
}

.social-link:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
    border-bottom-color: var(--text-primary);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    right: 40px;
    bottom: 32px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: none;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.theme-toggle:hover {
    background: var(--background-secondary);
    border-color: var(--text-primary);
}

.theme-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.theme-icon.hidden {
    display: none;
}

/* Applications Section */
.applications {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    text-align: left;
    margin-bottom: 28px;
    text-shadow: none;
    letter-spacing: -0.3px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.app-grid {
    display: flex;
    gap: 0;
    background: transparent;
    overflow: hidden;
    position: relative;
    height: 360px;
    border-radius: 12px;
}

.app-card {
    background: var(--background);
    border-radius: 12px;
    padding: 32px 28px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0) scale(0.95);
}

.app-card:last-child {
    border: 1px solid var(--border-color);
}

.app-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    left: 0;
    pointer-events: auto;
    z-index: 2;
}

.app-card.next {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.app-card.exiting {
    opacity: 0;
    transform: translateX(-100%) scale(0.95);
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.app-card:hover {
    background: var(--background-secondary);
    box-shadow: var(--shadow-lg);
    transform: translateX(0) scale(1.02);
}

.app-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.app-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}

.app-link-indicator {
    color: var(--text-primary);
    font-weight: 400;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: none;
    border-bottom: 1px solid var(--border-color);
}

.app-card:hover .app-link-indicator {
    border-bottom-color: var(--text-primary);
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.nav-dot:hover {
    background: var(--text-secondary);
    transform: scale(1.2);
}

.nav-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 4px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px 20px 32px;
    color: var(--text-light);
    font-size: 0.875rem;
    text-shadow: none;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }

    .hero {
        padding: 40px 24px 32px;
    }

    .name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

    .description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .app-grid {
        flex-direction: column;
        height: 400px;
    }

    .app-card {
        padding: 32px 24px;
        width: 100%;
        position: absolute;
        left: 0 !important;
    }

    .app-card.next {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 24px;
    }

    .name {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .app-card {
        padding: 24px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeIn 0.4s ease-out;
}
