:root {
    --bg-primary: #080710;
    --bg-secondary: #121026;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-gold: #f59e0b;
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    padding: 0;
    min-height: 100vh;
}

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

/* Back Navigation */
.back-nav {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: #818cf8;
    transform: translateX(-4px);
}

/* Profile Header */
.profile-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(15px);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-main);
}

.profile-pic-container {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-intro {
    flex: 1;
    min-width: 300px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.profile-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 40%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.profile-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #a5b4fc;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #0077b5;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.btn-linkedin:hover {
    background: #005d8f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.5);
}

.btn-chat-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-chat-trigger:hover {
    border-color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Main Profile Description */
.profile-description-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3.5rem;
    backdrop-filter: blur(10px);
}

.section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-heading i {
    color: #818cf8;
}

.profile-text {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Skills Layout */
.skills-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.skills-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
}

.skills-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skills-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skills-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.skills-card.fullstack .skills-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
}

.skills-card.gamedesign .skills-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-gold);
}

.skills-card.leadership .skills-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
}

.skills-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.35rem;
}

.skill-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Footer */
.profile-footer {
    margin-top: 5rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.profile-footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.profile-footer a:hover {
    color: #818cf8;
}

@media (max-width: 600px) {
    .profile-header {
        padding: 2rem 1.5rem;
        text-align: center;
        flex-direction: column;
    }

    .profile-header::before {
        width: 100%;
        height: 6px;
        top: 0;
        left: 0;
    }

    .profile-actions {
        justify-content: center;
        width: 100%;
    }

    .btn-linkedin,
    .btn-chat-trigger {
        width: 100%;
        justify-content: center;
    }

    .skills-card {
        padding: 1.5rem;
    }
}

/* Print CV Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
        padding: 0 !important;
        font-size: 11pt !important;
    }

    .back-nav,
    .chatbot-toggle,
    .chatbot-container,
    .profile-actions,
    .profile-footer,
    #chatbot-wrapper,
    .btn-chat-trigger,
    .btn-linkedin {
        display: none !important;
    }

    .container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .profile-header {
        border: none !important;
        background: transparent !important;
        padding: 0 0 1.5rem 0 !important;
        margin-bottom: 1.5rem !important;
        border-bottom: 2px solid #333 !important;
    }

    .profile-header::before {
        display: none !important;
    }

    .profile-pic-container {
        width: 90px !important;
        height: 90px !important;
        border: 1px solid #333 !important;
        box-shadow: none !important;
        display: block !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }

    .profile-pic {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .profile-name {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: black !important;
        font-size: 28pt !important;
        margin-bottom: 0.25rem !important;
    }

    .profile-title {
        color: #4f46e5 !important;
        font-size: 14pt !important;
        font-weight: bold !important;
        margin-bottom: 0 !important;
    }

    .profile-description-card {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .profile-text {
        color: #334155 !important;
        font-size: 10.5pt !important;
        line-height: 1.5 !important;
    }

    .skills-section-title {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: black !important;
        font-size: 16pt !important;
        margin-bottom: 1rem !important;
        text-align: left !important;
        border-bottom: 1px solid #333 !important;
        padding-bottom: 0.25rem !important;
    }

    .skills-grid {
        display: block !important;
    }

    .skills-card {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
        page-break-inside: avoid !important;
    }

    .skills-icon {
        display: none !important;
    }

    .skills-card-title {
        color: #1e1b4b !important;
        font-size: 12pt !important;
        margin-bottom: 0.5rem !important;
        font-weight: 700 !important;
    }

    .skills-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .skill-item {
        margin-bottom: 0 !important;
        page-break-inside: avoid !important;
    }

    .skill-item h4 {
        color: #312e81 !important;
        font-size: 10pt !important;
        margin-bottom: 0.15rem !important;
    }

    .skill-item p {
        color: #475569 !important;
        font-size: 9pt !important;
        line-height: 1.4 !important;
    }
}