/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* CSS Variables - Color Palette */
:root {
    --bg-primary: rgb(13, 17, 23);
    --bg-secondary: rgb(16, 21, 29);
    --bg-card: rgb(22, 27, 34);
    --bg-card-light: rgb(28, 33, 42);
    
    --text-primary: rgb(201, 209, 217);
    --text-secondary: rgb(139, 148, 158);
    --text-muted: rgb(72, 79, 88);
    
    --accent-primary: rgb(88, 166, 255);
    --accent-secondary: rgb(56, 139, 253);
    
    --border-color: rgb(48, 54, 61);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --gradient-card: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-light) 100%);
    --gradient-accent: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, transparent 100%);
}

/* Global Reset & Typography */
html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 120, 61, 0.18), transparent 24%),
        radial-gradient(circle at 80% 15%, rgba(255, 165, 74, 0.16), transparent 22%),
        radial-gradient(circle at 50% 90%, rgba(181, 52, 20, 0.18), transparent 30%),
        linear-gradient(135deg, #0c0908 0%, #170f0d 35%, #1f110d 100%);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    font-weight: 400;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 55%, rgba(2, 6, 12, 0.68) 100%);
    pointer-events: none;
    z-index: 0;
}

.container, header, footer {
    position: relative;
    z-index: 1;
}

h1, h2, h3 {
    color: var(--text-primary);
    margin-top: 0;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Header & Navigation */
header {
    background-color: rgba(13, 17, 23, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent-primary);
}

nav a:hover::after {
    width: 100%;
}

/* Main Container */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Hero Section Styling */
#hero {
    margin-bottom: 80px;
    padding-top: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-text-content {
    flex: 1;
    min-width: 300px;
}

.hero-image {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 310px;
    height: 310px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.12), rgba(56, 139, 253, 0.03));
    border: 1px solid rgba(88, 166, 255, 0.2);
    box-shadow: 0 25px 60px rgba(17, 24, 39, 0.5);
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(24px);
    opacity: 0.8;
}

.orb-one {
    width: 200px;
    height: 200px;
    background: rgba(88, 166, 255, 0.28);
    top: 30px;
    left: 30px;
}

.orb-two {
    width: 180px;
    height: 180px;
    background: rgba(56, 139, 253, 0.2);
    bottom: 20px;
    right: 25px;
}

.hero-pokemon {
    position: relative;
    z-index: 1;
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 20px 45px rgba(255, 120, 61, 0.5)) drop-shadow(0 0 40px rgba(255, 165, 74, 0.35));
    animation: float 3s ease-in-out infinite;
    image-rendering: auto;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes slideIn {
    from {
        width: 0 !important;
    }
    to {
        width: var(--width);
    }
}

.greeting {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: slideInLeft 0.6s ease 0.2s backwards;
}

.hero-title {
    font-size: 60px;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.6s ease 0.3s backwards;
}

.hero-subtitle {
    font-size: 40px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
    animation: slideInLeft 0.6s ease 0.4s backwards;
}

.hero-text {
    max-width: 550px;
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.8;
    animation: slideInLeft 0.6s ease 0.5s backwards;
}

.quick-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    animation: slideInLeft 0.6s ease 0.55s backwards;
}

.quick-badges span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffd7b3;
    background: rgba(255, 120, 61, 0.08);
    border: 1px solid rgba(255, 120, 61, 0.25);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    animation: slideInLeft 0.6s ease 0.6s backwards;
}

/* Section Titles */
.section-title {
    font-size: 28px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -100%;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    animation: shimmer 2s infinite;
}

/* Grid Layout */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 60px;
}

/* Card Styling */
.card {
    background: var(--gradient-card);
    padding: 30px;
    border-radius: 12px;
    flex: 1;
    min-width: 280px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(88, 166, 255, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -0.03em;
}

.card p {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(56, 139, 253, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(88, 166, 255, 0.2);
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.2) 0%, rgba(56, 139, 253, 0.1) 100%);
    border-color: rgba(88, 166, 255, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.card-icon svg {
    width: 40px;
    height: 40px;
}

.project-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
}

.project-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffd7b3;
    background: rgba(255, 120, 61, 0.1);
    border: 1px solid rgba(255, 120, 61, 0.2);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.hobby-card {
    min-height: 170px;
}

/* Skills Section */
#skills {
    margin-bottom: 80px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.skill-category {
    background: var(--gradient-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.skill-category:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.1);
}

.skill-category h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--accent-primary);
    font-weight: 700;
}

.skill-item {
    margin-bottom: 22px;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.skill-level {
    font-size: 12px;
    color: var(--accent-primary);
    background: rgba(88, 166, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.skill-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: slideIn 1s cubic-bezier(0.23, 1, 0.320, 1) forwards;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.15) 0%, rgba(56, 139, 253, 0.1) 100%);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    transition: all 0.3s ease;
    cursor: default;
}

.badge:hover {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.25) 0%, rgba(56, 139, 253, 0.15) 100%);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: linear-gradient(135deg, #ff9a3d 0%, #ff5d2e 100%);
    color: #1b100b;
    border: 2px solid rgba(255, 154, 61, 0.9);
    box-shadow: 0 8px 25px rgba(255, 120, 61, 0.25);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 120, 61, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 2px solid rgba(255, 160, 85, 0.4);
}

.secondary-btn:hover {
    background: rgba(255, 160, 85, 0.08);
    border-color: rgba(255, 160, 85, 0.7);
    transform: translateY(-2px);
}

.outline-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 150, 70, 0.8);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.repo-link-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.github-mark {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

.outline-btn:hover {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(56, 139, 253, 0.1) 100%);
    border-color: var(--accent-secondary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.2);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 80px;
    padding: 40px 20px 30px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

footer p {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.footer-links a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

.footer-links span {
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }

    nav a {
        margin-left: 15px;
        font-size: 13px;
    }

    .container {
        padding: 40px 15px;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-visual {
        width: 240px;
        height: 240px;
    }

    .hero-pokemon {
        width: 170px;
        height: 170px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .card-grid {
        gap: 15px;
    }

    .card {
        min-width: 100%;
        padding: 20px;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .skill-category {
        padding: 20px;
    }

    .badges-container {
        gap: 8px;
    }

    .badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}