@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playwrite+IE:wght@100..400&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



:root {
    --primary-color: #000000;
    --secondary-color: #7D39EB;
    --accent-color: #C6FF33;
    --text-color: #FFFFFF;
    --font-roboto: 'Roboto', sans-serif;
    --font-playwrite: 'Playwrite IE', cursive;
}

.body {
    background-color: var(--primary-color);
}

/*header*/

.header {
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 18px auto 0;
    padding: 0 18px;
    font-size: 18px;
    font-family: var(--font-roboto);
    gap: 16px;
}

.header ul a{
    color: var(--text-color);
    text-decoration: none;
    padding: 10px;
    font-size: 30px;
}

.header ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header ul a:hover {
    color: var(--secondary-color);
    transition: 0.3s;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #4f2ca0;
    border-radius: 999px;
    background: #1a1326;
    padding: 3px;
    cursor: pointer;
    width: 82px;
    height: 32px;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.lang-toggle-knob {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 37px;
    height: 26px;
    background: #7D39EB;
    border-radius: 999px;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.lang-toggle.is-br .lang-toggle-knob {
    transform: translateY(-50%) translateX(38px);
}

.lang-toggle-label {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-roboto);
    color: #9068cc;
    position: relative;
    z-index: 1;
    transition: color 0.25s ease;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.lang-toggle:not(.is-br) span:nth-child(2),
.lang-toggle.is-br span:nth-child(3) {
    color: #ffffff;
}

.lang-toggle:hover {
    border-color: #7D39EB;
    background: #221540;
}

.header p {
    color: var(--secondary-color);
    font-family: var(--font-playwrite);
    font-size: 30px;
    font-weight: 900;
    display: flex;
    align-items: center;
}

/* aboutme */

.aboutme{
    color: var(--text-color);
    max-width: 1120px;
    margin: 44px auto 0;
    padding: 0 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 10px 72px;
    align-items: start;
}

.aboutme p {
    font-size: 50px;
    font-family: var(--font-roboto);
}

.abotmetitle {
    margin-top: 0;
}

.aboutme > p {
    grid-column: 1 / -1;
}

.aboutme > div:first-of-type {
    grid-column: 1;
}

.aboutme > div:first-of-type ul {
    list-style: none;
}

.aboutme > div:last-of-type {
    grid-column: 2;
    display: flex;
    justify-content: center;
}

.aboutme div p{
    font-size: 22px;
    font-family: var(--font-roboto);
    font-weight: 10;
    line-height: 1.4;
    padding-top: 4px;
    padding-bottom: 4px;
}

.aboutme div img {
   width: 100%;
   max-width: 340px;
   aspect-ratio: 1 / 1;
   object-fit: cover;
   border-radius: 50%;
}

@media (max-width: 980px) {
    .header {
        padding: 0 16px;
    }

    .aboutme {
        margin-top: 28px;
        padding: 0 16px;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .aboutme > div:first-of-type,
    .aboutme > div:last-of-type {
        grid-column: 1;
    }

    .aboutme > div:last-of-type {
        justify-content: center;
    }

    .aboutme p {
        font-size: 38px;
    }

    .aboutme div p {
        font-size: 20px;
    }
}

/* skills */

.skills {
    color: var(--text-color);
    max-width: 1120px;
    margin: 86px auto 0;
    padding: 0 18px;
    font-family: var(--font-roboto);
}

.skills h2 {
    font-size: 50px;
    font-weight: 700;
}

.skills-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.skill-card {
    background: #101014;
    border: 1px solid #26263a;
    border-radius: 16px;
    padding: 18px;
}

.skill-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.skill-card h3 {
    font-size: 24px;
}

.skill-expand-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #4f2ca0;
    background: #1a1326;
    color: #b491ff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.skill-expand-btn:hover {
    background: #241935;
    transform: scale(1.05);
}

.skill-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    border: 1px solid #4f2ca0;
    border-radius: 999px;
    padding: 5px 10px;
    color: #b491ff;
    font-size: 14px;
}

.skills-panel {
    margin-top: 0;
    background: #101014;
    border: 1px solid transparent;
    border-radius: 18px;
    min-height: 0;
    max-height: 0;
    opacity: 0;
    padding: 0 28px;
    position: relative;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 0.38s ease, opacity 0.28s ease, padding 0.28s ease, margin-top 0.28s ease, border-color 0.22s ease, transform 0.28s ease;
}

.skills-panel.is-open {
    margin-top: 24px;
    min-height: 310px;
    max-height: 900px;
    opacity: 1;
    padding: 28px;
    border-color: #26263a;
    pointer-events: auto;
    transform: translateY(0);
}

.skills-panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #40345f;
    background: #151325;
    color: #c1a6ff;
    cursor: pointer;
}

.skills-panel-content {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    overflow: hidden;
    transition: opacity 0.24s ease, transform 0.24s ease, max-height 0.24s ease;
}

.skills-panel-content.is-active {
    max-height: 1200px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.skills-panel-content h4 {
    font-size: 36px;
    margin-bottom: 12px;
}

.skills-panel-content p {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 860px;
}

.skill-levels {
    margin-bottom: 18px;
    max-width: 820px;
}

.skill-levels h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #dfd2ff;
}

.skill-level-row {
    margin-bottom: 10px;
}

.skill-level-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    margin-bottom: 5px;
    color: #dfd2ff;
}

.skill-level-head strong {
    color: #b491ff;
}

.skill-level-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #1b1b29;
    border: 1px solid #30284a;
    overflow: hidden;
}

.skill-level-bar span {
    display: block;
    height: 100%;
    width: var(--level);
    background: linear-gradient(90deg, #6f45d6 0%, #a984ff 100%);
}

.skills-panel-content ul {
    padding-left: 18px;
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .skills {
        margin-top: 52px;
        padding: 0 16px;
    }

    .skills h2 {
        font-size: 38px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-panel {
        min-height: 0;
        padding: 0 18px;
    }

    .skills-panel.is-open {
        min-height: 250px;
        max-height: 1000px;
        padding: 22px 18px;
    }

    .skills-panel-content h4 {
        font-size: 30px;
    }

    .skills-panel-content p {
        font-size: 18px;
    }

    .skill-levels h5 {
        font-size: 17px;
    }

    .skill-level-head {
        font-size: 14px;
    }
}

/* projects */

.projects {
    color: var(--text-color);
    max-width: 1120px;
    margin: 86px auto 0;
    padding: 0 18px;
    font-family: var(--font-roboto);
}

.projects h2 {
    font-size: 50px;
    font-weight: 700;
}

.projects-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    background: #101014;
    border: 1px solid #26263a;
    border-radius: 16px;
    padding: 18px;
    min-height: 122px;
}

.project-card-empty {
    opacity: 0.42;
    border-style: dashed;
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.project-card h3 {
    font-size: 24px;
}

.project-expand-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #4f2ca0;
    background: #1a1326;
    color: #b491ff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.project-expand-btn:hover {
    background: #241935;
    transform: scale(1.05);
}

.project-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    border: 1px solid #4f2ca0;
    border-radius: 999px;
    padding: 5px 10px;
    color: #b491ff;
    font-size: 14px;
}

.projects-panel {
    margin-top: 0;
    background: #101014;
    border: 1px solid transparent;
    border-radius: 18px;
    min-height: 0;
    max-height: 0;
    opacity: 0;
    padding: 0 28px;
    position: relative;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 0.38s ease, opacity 0.28s ease, padding 0.28s ease, margin-top 0.28s ease, border-color 0.22s ease, transform 0.28s ease;
}

.projects-panel.is-open {
    margin-top: 24px;
    min-height: 280px;
    max-height: 720px;
    opacity: 1;
    padding: 28px;
    border-color: #26263a;
    pointer-events: auto;
    transform: translateY(0);
}

.projects-panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #40345f;
    background: #151325;
    color: #c1a6ff;
    cursor: pointer;
}

.projects-panel-content {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    overflow: hidden;
    transition: opacity 0.24s ease, transform 0.24s ease, max-height 0.24s ease;
}

.projects-panel-content.is-active {
    max-height: 800px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.projects-panel-content h4 {
    font-size: 36px;
    margin-bottom: 12px;
}

.projects-panel-content p {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 860px;
}

.project-link {
    color: #b491ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.project-link:hover {
    border-color: #b491ff;
}

.projects-panel-content ul {
    padding-left: 18px;
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .projects {
        margin-top: 52px;
        padding: 0 16px;
    }

    .projects h2 {
        font-size: 38px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-panel {
        min-height: 0;
        padding: 0 18px;
    }

    .projects-panel.is-open {
        min-height: 220px;
        max-height: 920px;
        padding: 22px 18px;
    }

    .projects-panel-content h4 {
        font-size: 30px;
    }

    .projects-panel-content p {
        font-size: 18px;
    }
}

/* blog */

.blog {
    color: var(--text-color);
    max-width: 1120px;
    margin: 86px auto 0;
    padding: 0 18px;
    font-family: var(--font-roboto);
}

.blog h2 {
    font-size: 50px;
    font-weight: 700;
}

.blog-status {
    margin-top: 8px;
    color: #a780ff;
    font-size: 18px;
    font-weight: 700;
}

.blog-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.blog-card {
    min-height: 132px;
    background: #101014;
    border: 1px dashed #34344d;
    border-radius: 16px;
    padding: 18px;
    opacity: 0.84;
}

.blog-card h3 {
    font-size: 24px;
}

.blog-card p {
    margin-top: 10px;
    color: #c9bbf3;
    font-size: 17px;
}

.blog-show-more {
    margin-top: 22px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #4f2ca0;
    border-radius: 999px;
    padding: 10px 16px;
    background: #1a1326;
    color: #b491ff;
    font-size: 15px;
    font-weight: 700;
    cursor: not-allowed;
    opacity: 0.8;
}

@media (max-width: 980px) {
    .blog {
        margin-top: 52px;
        padding: 0 16px;
    }

    .blog h2 {
        font-size: 38px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card h3 {
        font-size: 22px;
    }
}

/* contact */

.contact {
    color: var(--text-color);
    max-width: 1120px;
    margin: 86px auto 0;
    padding: 0 18px;
    font-family: var(--font-roboto);
}

.contact h2 {
    font-size: 50px;
    font-weight: 700;
}

.contact-subtitle {
    margin-top: 8px;
    color: #a780ff;
    font-size: 18px;
    font-weight: 700;
}

.contact-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.contact-card {
    background: #101014;
    border: 1px solid #26263a;
    border-radius: 16px;
    padding: 18px;
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.contact-card a {
    color: #b491ff;
    text-decoration: none;
    word-break: break-word;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-form {
    margin-top: 24px;
    background: #101014;
    border: 1px solid #26263a;
    border-radius: 16px;
    padding: 20px;
    display: grid;
    gap: 10px;
}

.contact-form label {
    font-size: 15px;
    color: #dfd2ff;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #13131c;
    border: 1px solid #323249;
    border-radius: 10px;
    color: var(--text-color);
    padding: 10px 12px;
    font-size: 16px;
    font-family: var(--font-roboto);
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6f45d6;
}

.contact-form button {
    margin-top: 6px;
    justify-self: start;
    border: 1px solid #4f2ca0;
    border-radius: 999px;
    padding: 10px 16px;
    background: #1a1326;
    color: #b491ff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background: #241935;
    transform: translateY(-1px);
}

@media (max-width: 980px) {
    .contact {
        margin-top: 52px;
        padding: 0 16px;
    }

    .contact h2 {
        font-size: 38px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* experience */

.experience {
    color: var(--text-color);
    max-width: 1120px;
    margin: 86px auto 0;
    padding: 0 18px;
    font-family: var(--font-roboto);
}

.experience h2 {
    font-size: 50px;
    font-weight: 700;
}

.experience-timeline {
    margin-top: 30px;
    display: grid;
    gap: 24px;
}

.experience-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.experience-year-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.experience-year {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6f45d6 0%, #8b63f1 100%);
    color: #f3ecff;
    font-size: 16px;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 1px solid #3f2c7a;
    box-shadow: 0 0 0 4px rgba(111, 69, 214, 0.14);
}

.experience-line {
    width: 2px;
    flex: 1;
    margin-top: 10px;
    background: linear-gradient(180deg, #8053e0 0%, #3a285f 100%);
}

.experience-card {
    background: #101014;
    border: 1px solid #26263a;
    border-radius: 16px;
    padding: 20px 22px;
}

.experience-card h3 {
    font-size: 28px;
    font-weight: 700;
}

.experience-company {
    margin-top: 8px;
    color: #a780ff;
    font-size: 18px;
    font-weight: 700;
}

.experience-card p {
    margin-top: 12px;
    color: #e6deff;
    font-size: 18px;
    line-height: 1.55;
}

/* footer */

.footer {
    margin-top: 100px;
    border-top: 1px solid #1e1e2e;
    font-family: var(--font-roboto);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-name {
    color: var(--secondary-color);
    font-family: var(--font-playwrite);
    font-size: 22px;
    font-weight: 900;
}

.footer-copy {
    color: #6a6a8a;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
}

.footer-links a {
    color: #8e8eaa;
    text-decoration: none;
    font-size: 15px;
    padding: 4px 10px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.footer-links a:hover {
    color: #b491ff;
    background: #1a1326;
}

@media (max-width: 980px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 16px;
    }
}

@media (max-width: 980px) {
    .experience {
        margin-top: 52px;
        padding: 0 16px;
    }

    .experience h2 {
        font-size: 38px;
    }

    .experience-item {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 12px;
    }

    .experience-year {
        width: 48px;
        height: 48px;
        font-size: 14px;
    }

    .experience-card {
        padding: 16px;
    }

    .experience-card h3 {
        font-size: 24px;
    }

    .experience-company {
        font-size: 16px;
    }

    .experience-card p {
        font-size: 16px;
    }
}

/* ── Hamburger button (hidden on desktop) ─────────────────────────────────── */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #c9c9e0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── 980px — reduce inline nav font sizes ────────────────────────────────── */

@media (max-width: 980px) {
    .header p {
        font-size: 24px;
    }

    .header .nav-links a {
        font-size: 20px;
        padding: 8px;
    }
}

/* ── 768px — hamburger menu + mobile nav overlay ─────────────────────────── */

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .header .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 18, 0.98);
        z-index: 9999;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .header .nav-links.is-open {
        display: flex;
    }

    .header .nav-links a {
        font-size: 34px;
        padding: 18px 40px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #1a1a2e;
    }

    .header .nav-links a:first-child {
        border-top: 1px solid #1a1a2e;
    }

    .header p {
        font-size: 22px;
    }
}

/* ── 480px — small phones ────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .header {
        margin-top: 12px;
    }

    .header p {
        font-size: 18px;
    }

    .aboutme {
        padding: 0 14px;
        margin-top: 28px;
    }

    .aboutme p {
        font-size: 30px;
    }

    .aboutme div p {
        font-size: 16px;
    }

    .skills,
    .projects,
    .blog,
    .contact,
    .experience {
        margin-top: 40px;
        padding: 0 14px;
    }

    .skills h2,
    .projects h2,
    .blog h2,
    .contact h2,
    .experience h2 {
        font-size: 28px;
    }

    .experience-item {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
    }

    .experience-year {
        width: 42px;
        height: 42px;
        font-size: 12px;
    }

    .experience-card h3 {
        font-size: 20px;
    }

    .experience-card p,
    .experience-company {
        font-size: 15px;
    }

    .skills-panel-content h4,
    .projects-panel-content h4 {
        font-size: 24px;
    }

    .skills-panel-content p,
    .projects-panel-content p {
        font-size: 16px;
    }

    .skills-panel.is-open,
    .projects-panel.is-open {
        padding: 18px 14px;
    }

    .blog-card h3 {
        font-size: 20px;
    }

    .contact-card h3 {
        font-size: 18px;
    }

    .contact-form {
        padding: 16px 14px;
    }

    .footer {
        margin-top: 60px;
    }

    .footer-name {
        font-size: 18px;
    }
}