:root {
    --bg: #060711;
    --text: #e9ecf7;
    --muted: #9ca3af;
    --card: rgba(16, 20, 35, 0.65);
    --card-strong: rgba(23, 30, 49, 0.8);
    --border: rgba(255, 255, 255, 0.08);
    --accent: #a855f7;
    --accent-2: #22d3ee;
    --glow: rgba(168, 85, 247, 0.35);
}

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

body {
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    color: var(--text);
    background: radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.08), transparent 30%),
                radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.06), transparent 35%),
                #05060f;
}

/* Loading Screen */
#loadingScreen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.15), transparent 35%),
                radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.12), transparent 40%),
                linear-gradient(135deg, #0f172a 0%, #0b1021 60%, #130f2e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loadingScreen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
}

.loading-logo {
    font-size: 5em;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #a8edea, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    animation: shimmer 2s infinite;
    letter-spacing: 1px;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-container {
    width: 420px;
    max-width: 90vw;
    height: 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f093fb, #f5576c, #4facfe);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s ease-out;
    animation: gradientSlide 2s linear infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.progress-text {
    margin-top: 20px;
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.enter-button {
    margin-top: 40px;
    padding: 18px 48px;
    font-size: 1.2em;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.6px;
}

.enter-button.show {
    opacity: 1;
    transform: translateY(0);
}

.enter-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Background */
#bgImage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(6, 7, 17, 0.8) 0%, rgba(6, 7, 17, 0.4) 60%, rgba(10, 12, 24, 0.85) 100%);
    z-index: -1;
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 28px 60px;
    display: flex;
    gap: 32px;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 1s ease;
    position: relative;
}

.container.show {
    opacity: 1;
}

.container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 20%, rgba(34, 211, 238, 0.06), transparent 45%),
                radial-gradient(circle at 20% 70%, rgba(168, 85, 247, 0.08), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Sidebar */
.sidebar {
    width: 320px;
    position: sticky;
    top: 20px;
    height: fit-content;
    background: var(--card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 30px;
    border: 1px solid var(--border);
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
    z-index: 1;
}

.avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.55);
}

.mini-tag {
    display: inline-flex;
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    border-radius: 999px;
    font-size: 0.85em;
    border: 1px solid rgba(168, 85, 247, 0.35);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.sidebar h1 {
    font-size: 1.9em;
    margin-bottom: 10px;
    font-weight: 700;
}

.sidebar .subtitle {
    font-size: 1em;
    opacity: 0.9;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--muted);
}

.discord-tag {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 22px;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.35);
    border-color: rgba(168, 85, 247, 0.45);
}

/* Activity Status */
.activity-status {
    margin-top: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.activity-header i {
    color: #43b581;
    animation: pulse 2s ease-in-out infinite;
}

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

.activity-content {
    padding-left: 4px;
}

.activity-title {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.activity-time {
    font-size: 0.88em;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Courier New', monospace;
}

/* Content */
.content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: var(--card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-card:hover::before {
    opacity: 1;
    animation: liquidMove 4s ease infinite;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.18);
}

@keyframes liquidMove {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(12%, 10%); }
    50% { transform: translate(-12%, 8%); }
    75% { transform: translate(10%, -12%); }
}

/* Hero */
.hero {
    margin-bottom: 38px;
}

.eyebrow {
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 2.3em;
    margin-bottom: 14px;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(120deg, #c084fc, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.05em;
    max-width: 820px;
    margin-bottom: 16px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #dbeafe;
    font-size: 0.95em;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.stat {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.stat-value {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.95em;
    color: var(--muted);
}

/* Programming Skills Tags */
.programming-skills {
    background: var(--card-strong);
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.section-heading {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.35em;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.skill-tag {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.22), rgba(118, 75, 162, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    font-size: 1em;
    font-weight: 600;
    cursor: default;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #e0e7ff;
}

.skill-tag:hover {
    transform: translateY(-6px) scale(1.03);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.35), rgba(118, 75, 162, 0.35));
    border-color: rgba(255, 255, 255, 0.32);
}

/* Section Titles */
.section-title {
    font-size: 2.2em;
    text-align: center;
    margin: 8px 0 14px 0;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 90px;
    height: 3px;
    background: linear-gradient(to right, #f093fb, #f5576c, #4facfe);
    margin: 14px auto 0;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
}

.projects-title {
    margin-top: 64px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
    border-color: rgba(255, 255, 255, 0.22);
}

.skill-icon {
    font-size: 3.2em;
    margin-bottom: 18px;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.25));
}

.skill-title {
    font-size: 1.35em;
    font-weight: 700;
    margin-bottom: 12px;
}

.skill-desc {
    opacity: 0.86;
    line-height: 1.7;
    font-size: 1.02em;
    color: var(--muted);
}

.project-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(34, 211, 238, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.25);
}

/* CTA */
.cta-wrap {
    margin: 70px 0 30px;
}

.cta-card h3 {
    font-size: 1.8em;
    margin: 8px 0 12px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 38px 20px 10px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
    opacity: 0.8;
    font-size: 1.02em;
    color: var(--muted);
}

/* Snowflakes */
.snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
    cursor: default;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 40px 22px;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: 1fr 2fr;
        text-align: left;
        gap: 16px;
    }

    .avatar-container {
        margin: 0;
        justify-self: center;
    }
}

@media (max-width: 960px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .skills-grid { grid-template-columns: 1fr; }
    .avatar-container { width: 150px; height: 150px; }
    .section-title { font-size: 1.9em; }
    .glass-card { padding: 28px; }
    .sidebar h1 { font-size: 1.6em; }
    
    .programming-skills {
        padding: 24px;
    }
    
    .skill-tag {
        padding: 10px 14px;
        font-size: 0.95em;
    }
}
