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

:root {
    color-scheme: dark;
    --bg: #0b0f14;
    --bg-alt: #111827;
    --surface: rgba(15, 23, 42, 0.84);
    --surface-strong: rgba(17, 24, 39, 0.96);
    --surface-soft: rgba(255, 255, 255, 0.04);
    --border: rgba(148, 163, 184, 0.16);
    --border-strong: rgba(45, 212, 191, 0.28);
    --text: #e5eef8;
    --muted: #94a3b8;
    --accent: #2dd4bf;
    --accent-2: #60a5fa;
    --accent-3: #f97316;
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.28);
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 24%),
        radial-gradient(circle at bottom center, rgba(45, 212, 191, 0.08), transparent 24%),
        linear-gradient(180deg, #07111b 0%, #0b0f14 42%, #090d12 100%);
    letter-spacing: -0.01em;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        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: 64px 64px;
    opacity: 0.34;
}

main {
    width: 100%;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    grid-template-areas:
        "header header"
        "social content";
    gap: 24px;
    position: relative;
    z-index: 1;
}

.header,
.social-bar,
.content {
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px) saturate(145%);
    color: var(--text);
}

.header {
    grid-area: header;
    position: relative;
    overflow: hidden;
    min-height: 340px;
    border-radius: 30px;
    padding: clamp(28px, 5vw, 56px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image:
        linear-gradient(135deg, rgba(7, 12, 19, 0.84), rgba(7, 12, 19, 0.52)),
        url('image.png');
    background-size: cover;
    background-position: center;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.20), transparent 36%),
        radial-gradient(circle at bottom left, rgba(96, 165, 250, 0.16), transparent 34%);
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.65), rgba(96, 165, 250, 0.55), transparent);
}

.header-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.header h1 {
    margin: 0;
    color: #f8fbff;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(2.2rem, 4vw, 4.3rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.08em;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.title {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    font-weight: 500;
    text-shadow: none;
}

.university-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(8, 13, 21, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.uni-name {
    color: #f3f7fb;
    font-size: 0.92rem;
    font-weight: 600;
}

.pfp {
    width: clamp(108px, 13vw, 150px);
    height: clamp(108px, 13vw, 150px);
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(45, 212, 191, 0.72);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

.pfp:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.46);
}

.uop {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.headers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(96, 165, 250, 0.12));
    color: var(--text);
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    min-width: 0;
}

.social-bar {
    grid-area: social;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border-radius: 28px;
    min-width: 0;
}

.about-section,
.languages,
.skills,
.projects-container,
.art-portfolio-section,
.social-media,
.email-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
}

.about-text,
.about-text-unified,
.social-card,
.email-card,
.language-item,
.skill-item,
.project-card,
.hobby-item,
.art-portfolio-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.about-text,
.about-text-unified {
    margin: 0;
    padding: 20px 22px;
    border-left: 4px solid var(--accent);
    border-radius: 18px;
    color: var(--text);
    line-height: 1.8;
    text-align: justify;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.about-text {
    margin-bottom: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.section-divider {
    margin: 4px 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.55), rgba(96, 165, 250, 0.38), transparent);
    opacity: 0.85;
}

.social-link {
    text-decoration: none;
    display: block;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border-left: 3px solid transparent;
}

.social-card.linkedin {
    border-left-color: #2f80ed;
}

.social-card.instagram {
    border-left-color: #f97316;
}

.social-card.github {
    border-left-color: #e2e8f0;
}

.social-card.linkedin:hover {
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.14), rgba(255, 255, 255, 0.03));
}

.social-card.instagram:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(255, 255, 255, 0.03));
}

.social-card.github:hover {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.12), rgba(255, 255, 255, 0.03));
}

.social-card:hover,
.email-card:hover,
.language-item:hover,
.skill-item:hover,
.project-card:hover,
.hobby-item:hover,
.art-portfolio-card:hover {
    transform: translateY(-3px);
    border-color: rgba(45, 212, 191, 0.36);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.social-icon-img {
    width: 46px !important;
    height: 46px !important;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.24));
}

.social-label {
    color: var(--text);
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.social-icon {
    border: 4px solid transparent;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.social-icon:hover {
    transform: scale(1.08);
}

.social-icon.highlight {
    border: 7px solid rgba(45, 212, 191, 0.8);
    transform: scale(1.08);
}

.email-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(96, 165, 250, 0.12));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.email-card:hover {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(96, 165, 250, 0.18));
}

.email-card i {
    color: var(--accent);
    font-size: 1.05rem;
}

.email-label {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 700;
}

.hobby-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
}

.hobby-bullet {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.15rem;
    font-weight: 700;
}

.hobby-text {
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.5;
}

.language-item,
.skill-item {
    padding: 14px 16px;
    border-radius: 16px;
}

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

.language-name,
.skill-name {
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 700;
}

.language-level {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.24);
    color: #dffff9;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.language-progress,
.skill-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
}

progress.language-progress,
progress.skill-progress {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    accent-color: var(--accent);
}

progress.language-progress::-webkit-progress-bar,
progress.skill-progress::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

progress.language-progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.28);
}

progress.skill-progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.28);
}

progress.language-progress::-moz-progress-bar,
progress.skill-progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

.resume-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

.project-card {
    padding: 20px;
    border-left: 4px solid var(--accent);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-header {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    cursor: default;
}

.resume-card .project-header {
    cursor: default;
}

.project-title {
    margin: 0;
    padding: 0;
    color: var(--text);
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(1.02rem, 1.2vw, 1.18rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.toggle-icon {
    display: none;
    line-height: 1;
    font-size: 1.5rem;
    color: var(--accent);
    user-select: none;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.project-content {
    overflow: hidden;
    max-height: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.project-description {
    margin-bottom: 14px;
    color: var(--muted);
    line-height: 1.75;
    text-align: left;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tech-badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(96, 165, 250, 0.14));
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #eef8fb;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-link {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.direct {
    color: #9ee7df;
    font-weight: 700;
    text-decoration: none;
}

.direct:hover {
    color: #ffffff;
    text-decoration: underline;
}

.art-portfolio-card {
    display: block;
    padding: 18px 20px;
    border-radius: 20px;
    text-decoration: none;
}

.art-portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(96, 165, 250, 0.08));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.art-portfolio-card:hover::before {
    opacity: 1;
}

.art-portfolio-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
}

.art-portfolio-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.art-portfolio-icon i {
    color: #081018;
    font-size: 1.45rem;
}

.art-portfolio-text {
    flex: 1;
}

.art-portfolio-text h4 {
    margin: 0 0 4px 0;
    padding-left: 0;
    color: var(--text);
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.art-portfolio-text p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.art-portfolio-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: transform 0.25s ease, background 0.25s ease;
}

.art-portfolio-arrow i {
    color: var(--accent);
    transition: transform 0.25s ease;
}

.art-portfolio-card:hover .art-portfolio-arrow {
    background: rgba(45, 212, 191, 0.14);
}

.art-portfolio-card:hover .art-portfolio-arrow i {
    transform: translateX(3px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(96, 165, 250, 0.18));
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.button:hover {
    transform: translateY(-2px);
}

.list,
.list-lang {
    padding: 0;
}

h4 {
    padding-left: 0;
}

@media (min-width: 1025px) {
    .social-bar {
        position: sticky;
        top: 24px;
        align-self: start;
    }
}

@media (max-width: 1024px) {
    body {
        padding: 14px;
    }

    .container {
        width: min(100%, calc(100% - 0px));
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "content"
            "social";
        gap: 16px;
    }

    .header {
        min-height: auto;
        padding: 24px;
        border-radius: 24px;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-text {
        align-items: center;
    }

    .content,
    .social-bar {
        border-radius: 22px;
        padding: 18px;
        position: static;
    }

    .hobbies-grid,
    .skills-row {
        grid-template-columns: 1fr;
    }

    .project-header {
        cursor: pointer;
    }

    .resume-card .project-header {
        cursor: default;
    }

    .toggle-icon {
        display: inline-flex;
    }

    .project-card.collapsed .project-header {
        margin-bottom: 0;
    }

    .project-card.collapsed .project-content {
        opacity: 0;
    }

    .project-card.collapsed:hover {
        transform: none;
    }
}

@media (max-width: 720px) {
    .header {
        padding: 20px 18px;
    }

    .header h1 {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .title {
        font-size: 0.95rem;
    }

    .headers {
        width: 100%;
        justify-content: center;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .social-card,
    .email-card,
    .language-item,
    .skill-item,
    .project-card,
    .hobby-item,
    .art-portfolio-card {
        border-radius: 16px;
    }

    .social-card {
        padding: 13px 14px;
    }

    .social-icon-img {
        width: 42px !important;
        height: 42px !important;
    }

    .content,
    .social-bar {
        padding: 16px;
    }

    .about-text,
    .about-text-unified {
        padding: 18px;
        text-align: left;
    }

    .hobbies-grid {
        gap: 10px;
    }

    .art-portfolio-content {
        gap: 14px;
    }

    .art-portfolio-icon {
        width: 52px;
        height: 52px;
    }

    .project-card {
        padding: 18px;
    }

    .project-tech {
        gap: 6px;
    }

    .tech-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
