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

:root {
    --bg: #0a0a0f;
    --bg-card: #141419;
    --text: #f5f0ff;
    --text-muted: #a8a8b3;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --border: #27272a;
    --gradient: linear-gradient(135deg, #8b5cf6, #a78bfa);
    --youtube-red: #ff0000;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

.main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page Views Counter */
.page-views {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.main-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.main-views i {
    color: var(--accent);
}

.view-details {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
}

.view-stat {
    color: var(--text-muted);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile {
    margin-bottom: 2rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.centered-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text);
}

.profile h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.link[href*="youtube"]:hover {
    border-color: var(--youtube-red);
    background: var(--youtube-red);
    color: white;
}

/* Sections */
.section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.section p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill {
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.skill:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

/* Projects */
.projects-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.lily-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.lily-name {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lily-dots {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    min-width: 1.5rem;
    animation: pulse 1s ease-in-out infinite;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.projects {
    display: grid;
    gap: 1rem;
}

.project {
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.1), 0 10px 10px -5px rgba(139, 92, 246, 0.04);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.project-title {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-title:hover {
    color: var(--accent);
}

.project-lang {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* YouTube Stats */
.youtube-loading, .videos-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.youtube-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.channel-avatar-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.channel-avatar-link:hover {
    transform: scale(1.1) rotate(5deg);
}

.channel-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.channel-avatar-link:hover .channel-avatar {
    border-color: var(--youtube-red);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.channel-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.stat:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 8px 12px -2px rgba(139, 92, 246, 0.1);
}

.stat i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.stat small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Videos */
.videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.video {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.video:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -10px rgba(139, 92, 246, 0.2), 0 15px 20px -5px rgba(139, 92, 246, 0.1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: var(--bg-card);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video:hover .video-thumbnail img {
    transform: scale(1.08);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.video-content {
    padding: 1.5rem;
}

.video-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    font-size: 1rem;
    min-height: 3rem;
}

.video-description {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-engagement {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.engagement-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.engagement-stat i {
    color: var(--accent);
}

.video-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-content {
    position: relative;
    z-index: 2;
}

.quote-icon {
    font-size: 2rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.quote-section p {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    margin-bottom: 1rem;
    font-style: italic;
}

.quote-refresh {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-refresh:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1rem;
}

.fun-facts h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.fact {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

/* Activity Cards */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.activity-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.1);
}

.activity-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.activity-card:hover i {
    transform: scale(1.1);
}

.activity-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.activity-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Floating Hearts */
.floating-heart {
    position: fixed;
    font-size: 1.5rem;
    animation: float-up linear;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.7;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Welcome Banner */
.welcome-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    animation: welcome-bounce 0.5s ease-out;
    max-width: 400px;
    width: 90%;
}

@keyframes welcome-bounce {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.welcome-content h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.welcome-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.welcome-content button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.welcome-content button:hover {
    background: var(--accent-light);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .videos {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .activity-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .centered-title {
        font-size: 1.5rem;
    }

    .profile h1, .profile h2 {
        font-size: 2rem;
    }

    .links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .link {
        width: 200px;
        justify-content: center;
    }

    .section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .page-views {
        position: static;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .channel-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .videos {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .welcome-banner {
        margin: 1rem;
        width: calc(100% - 2rem);
        left: 1rem;
        transform: translateY(-50%);
    }

    .video-engagement {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .engagement-stat {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    .section {
        padding: 1rem;
    }

    .skills {
        justify-content: center;
    }

    .activity-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .centered-title {
        font-size: 1.2rem;
    }

    .profile h1, .profile h2 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-content {
        padding: 1rem;
    }

    .engagement-stat {
        font-size: 0.65rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0.5rem;
    }

    .section {
        padding: 0.75rem;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}