/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #10b981, #059669);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    top: 50%;
    right: -200px;
    animation-delay: -7s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    bottom: -225px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -80px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

/* ===== ENHANCED HERO ===== */
.hero-personal {
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-minecraft-display {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minecraft-skin-large {
    position: relative;
    width: 400px;
    height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
}

.minecraft-skin-large::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, #10b981, #059669, #3b82f6, #8b5cf6);
    border-radius: 30px;
    opacity: 0.3;
    filter: blur(40px);
    animation: heroGlow 3s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

.minecraft-skin-large img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 20px 60px rgba(16, 185, 129, 0.4));
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
    max-width: none;
}

.hero-content .hero-badge {
    margin-bottom: 1.5rem;
}

/* Old avatar styles - keeping for potential fallback */
.hero-avatar {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    display: none; /* Hidden by default now */
}

.hero-avatar-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3);
    animation: heroGlow 3s ease-in-out infinite;
}

.hero-avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #10b981, #059669, #3b82f6);
    border-radius: 30px;
    z-index: -1;
    animation: gradientRotate 4s linear infinite;
}

@keyframes gradientRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Minecraft Skin in Hero */
.minecraft-skin {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== ENHANCED SKILLS ===== */
.skills-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-enhanced {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-enhanced:hover::before {
    transform: scaleX(1);
}

.skill-enhanced:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.skill-icon .material-symbols-outlined {
    font-size: 32px;
    color: var(--primary);
}

.skill-enhanced h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.skill-enhanced p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ===== TECH STACK ===== */
.tech-stack {
    margin-top: 4rem;
}

.tech-stack h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.tech-badge {
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-badge:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tech-badge .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary);
}

/* ===== ENHANCED PORTFOLIO CARD ===== */
.portfolio-showcase {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-showcase:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.portfolio-banner {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 25, 0.7);
    backdrop-filter: blur(10px);
}

.portfolio-banner-logo {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.portfolio-details {
    padding: 2.5rem;
}

.portfolio-details h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-details p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.portfolio-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-bottom: 2rem;
}

.portfolio-stat {
    flex: 1;
    text-align: center;
}

.portfolio-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.portfolio-stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ===== CONTACT ENHANCEMENTS ===== */
.contact-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.contact-card-enhanced {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
}

.contact-card-enhanced:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon img {
    width: 32px;
    height: 32px;
}

.contact-icon .material-symbols-outlined {
    font-size: 32px;
    color: var(--primary);
}

.contact-info {
    flex: 1;
}

.contact-info-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-info-value {
    display: block;
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-card-enhanced:hover .contact-info-value {
    color: var(--primary);
}

/* ===== TIMELINE ===== */
.timeline {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 3;
    text-align: left;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px var(--border);
    grid-column: 2;
}

.timeline-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 300px 1fr;
        gap: 3rem;
    }

    .minecraft-skin-large {
        width: 300px;
        height: 450px;
    }

    .availability {
        top: 10rem;
        right: 5%;
    }

    .portfolio-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    /* Hide Minecraft skin on mobile */
    .hero-minecraft-display {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content .hero-badge {
        margin-bottom: 2rem;
    }

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

    .portfolio-banner {
        height: 200px;
    }

    .portfolio-banner-logo {
        width: 100px;
        height: 100px;
    }

    .portfolio-details {
        padding: 2rem;
    }

    .portfolio-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        grid-column: 2;
        text-align: left;
    }

    .timeline-dot {
        grid-column: 1;
    }

    .contact-grid-enhanced {
        grid-template-columns: 1fr;
    }

    .gradient-orb {
        filter: blur(60px);
        opacity: 0.1;
    }

    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 275px;
        height: 275px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tech-badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
}