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

:root {
    --bg-start: #120f1f;
    --bg-middle: #221b3a;
    --bg-end: #3b2d63;
    --text-primary: #f5f3ff;
    --text-secondary: #cfc7e6;
    --card-bg: rgba(255, 255, 255, 0.06);
    --nav-bg: rgba(20, 16, 35, 0.55);
    --accent: #9f7aea;

}

body {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Manrope', sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    background:
        radial-gradient(
            circle at top left,
            rgba(168, 85, 247, 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(139, 92, 246, 0.14),
            transparent 36%
        ),
        linear-gradient(
            180deg,
            #0f0b1a 0%,
            #1b1430 42%,
            #2a1f4d 72%,
            #35265f 100%
        );
    background-attachment: fixed;
    transition:
        color 0.3s ease,
        filter 0.2s linear;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(168, 85, 247, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 30%,
            rgba(139, 92, 246, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 80%,
            rgba(192, 132, 252, 0.06),
            transparent 35%
        );
    pointer-events: none;
    z-index: -1;
    animation: ambientMove 18s ease-in-out infinite alternate;
    mix-blend-mode: screen;
    opacity: 0.9;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(168, 85, 247, 0.04),
            transparent 45%
        );
    pointer-events: none;
    z-index: -2;
    animation: pulseGlow 10s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }
    100% {
        opacity: 0.9;
        transform: scale(1.08);
    }
}

@keyframes ambientMove {
    0% {
        transform: translateY(0px) scale(1);
    }
    100% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero {
    position: relative;
    min-height: 100svh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 20px 80px;
    z-index: 1;
    isolation: isolate;
    
}

.hero::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background:
        radial-gradient(
            circle,
            rgba(139,92,246,0.14),
            transparent 65%
        );
    top: 50%;
    left: 50%;
    transform:
        translate(-50%, -50%);
    z-index: -1;
    filter: blur(40px);
}

.hero-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.text h1 {
    font-size: clamp(42px, 8vw, 72px);
    line-height: 1.05;
    letter-spacing: 0px;
    font-weight: 700;
}

.text h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 18px;
    color: #cfc7e6;
}

.text p {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 18px;
    color: var(--text-secondary);
}

.buttons {
    display: flex;
    gap: 18px;
    margin-bottom: 0px;
}

.photo-wrapper {
    position: relative;
    width: 360px;
    height: 480px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: floatPhoto 6s ease-in-out infinite;
}

.photo-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    background:
        radial-gradient(
            circle,
            rgba(139,92,246,0.35) 0%,
            rgba(139,92,246,0.12) 40%,
            transparent 75%
        );
    filter: blur(55px);
    bottom: 20px;
    z-index: 1;
}

.profile-photo {
    position: relative;

    width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    z-index: 2;
    filter:
        drop-shadow(0 30px 50px rgba(0,0,0,0.45));
    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

.photo-wrapper:hover .profile-photo {
    transform:
        translateY(-10px)
        scale(1.02);
    filter:
        drop-shadow(0 40px 70px rgba(0,0,0,0.55));
}

@keyframes floatPhoto {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseGlowPhoto {

    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.photo-box::after {
    content: "";
    position: absolute;
    width: 85%;
    height: 85%;
    background:
        radial-gradient(
            circle,
            rgba(168,85,247,0.35),
            transparent 70%
        );
    z-index: -1;
    filter: blur(40px);
    animation: photoGlow 6s ease-in-out infinite alternate;
}

@keyframes photoGlow {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

.hidden {
    opacity: 0;
    transform:
        translateY(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    padding: 14px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 500;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary {
    background:
        linear-gradient(
            135deg,
            #9f7aea,
            #7c3aed
        );
    color: white;
    border: none;
    box-shadow:
        0 10px 30px rgba(139,92,246,0.28);
    position: relative;
    overflow: hidden;
}

.primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,0.22),
            transparent
        );
    transition: 0.7s;
}

.secondary {
    border:
        1px solid rgba(255,255,255,0.12);
    color: white;
    background:
        rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
}

.primary:hover,
.secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(124,58,237,0.35),
        0 0 20px rgba(139,92,246,0.25);
}

.secondary:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.12);
}

.section {
    width: 100%;
    max-width: 1240px;
    padding: 110px 32px;
    margin: 0 auto;
    position: relative;
}

.section h3 {
    font-size: 29px;
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
}

section, header {
    background: transparent;
}

.plain p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.card,
.invite-form {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 24px;
    line-height: 1.6;
    border-radius: 18px;
    margin-bottom: 14px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.card::before,
.invite-form::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.7;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.06),
            transparent 40%
        );
    pointer-events: none;
}

.card:hover,
.invite-form:hover,
.photo-box:hover {
    transform: translateY(-6px);
    border-color: rgba(168,85,247,0.28);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.32),
        0 0 24px rgba(139,92,246,0.12);
}

.certificates-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.certificate {
    background:
        rgba(255,255,255,0.05);
    border:
        1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    transition:
        0.45s ease;
    position: relative;
    margin-bottom: 14px;
}

.certificate:last-child {
    margin-bottom: 0;
}

.certificate:hover {
    border-color:
        rgba(168,85,247,0.28);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.28),
        0 0 24px rgba(139,92,246,0.10);
    transform:
        translateY(-4px);
}

.cert-top {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cert-title {
    font-size: 18px;
    font-weight: 600;
}

.cert-arrow {
    font-size: 22px;
    transition:
        transform 0.4s ease;
}

.certificate.active .cert-arrow {
    transform: rotate(180deg);
}

.cert-body {
    max-height: 0;
    overflow: hidden;
    padding:
        0 24px;
    opacity: 0;
    transition:
        max-height 0.45s ease,
        opacity 0.35s ease,
        padding 0.45s ease;
}

.certificate.active .cert-body {
    max-height: 520px;
    opacity: 1;
    padding: 0 24px 28px;
}

.cert-body p {
    color:
        var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.cert-tags span {
    background:
        rgba(255,255,255,0.08);
    padding:
        8px 14px;
    border-radius: 14px;
    font-size: 13px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    transition: 0.3s;
}

.tags span img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.9;
    filter:
        brightness(0)
        invert(1)
        opacity(1);
}

.tags span i {
    font-size: 18px;
}

.tags span:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

html {
    scroll-behavior: smooth;
}

.nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    background: var(--nav-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 9999;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    max-width: 95vw;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav.scrolled {
    background: rgba(20, 16, 35, 0.95);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
}

.nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.88);
    font-size: 14px;
    transition: 0.3s;
}

.nav a:hover {
    color: #f5f3ff;
    transform: translateY(-3px);
}

.nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    border-radius: 999px;
    background: rgba(200,180,255,0.7);
    transition: 0.35s ease;
}

.nav a.active::after,
.nav a:hover::after {
    width: 70%;
}

.nav a.active {
    color: white;
}

.nav.scrolled {
    background: rgba(20, 16, 35, 0.82);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 15px 40px rgba(0,0,0,0.28);
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 1000;
    transition: width 0.1s linear;
    background: linear-gradient(
        90deg,
        #8b5cf6,
        #a855f7
    );
    box-shadow:
        0 0 10px rgba(168,85,247,0.35);
}

.typing {
    font-size: clamp(42px, 7vw, 68px);
    font-weight: 600;
    border-right: 2px solid rgba(255,255,255,0.45);
    overflow: hidden;
    width: fit-content;
    animation: blink 0.8s infinite;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

#contacts .card a {
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 500;
}

#contacts .card a:hover {
    color: #ddd6fe;
}

.timeline {
    position: relative;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(168,85,247,0.9),
            transparent
        );
    box-shadow:
        0 0 20px rgba(168,85,247,0.35);
}

.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
}

.timeline-item.left {
    justify-content: flex-start;
}

.timeline-item.right {
    justify-content: flex-end;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #9f7aea;
    box-shadow:
        0 0 0 6px rgba(159,122,234,0.12),
        0 0 18px rgba(159,122,234,0.55);

    z-index: 3;
}

.timeline-card {
    width: calc(50% - 50px);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(14px);
    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.timeline-card:hover {
    transform: translateY(-6px);
    border-color: rgba(159,122,234,0.35);
    background: rgba(255,255,255,0.07);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.3),
        0 0 25px rgba(159,122,234,0.15);
}

.timeline-date {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    color: #b8a8dd;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timeline-role {
    color: var(--text-secondary);
    margin-bottom: 10px;
}


.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse > * {
    direction: ltr;
}

.text-block {
    max-width: 520px;
}

.focus-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    opacity: 0;
    transform:
        translateY(14px);
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        max-height 0.5s ease;
}

.info-card:hover .focus-skills {
    opacity: 1;
    transform:
        translateY(0);
    max-height: 220px;
}

.focus-skills span {
    padding: 10px 14px;
    border-radius: 999px;
    background:
        rgba(255,255,255,0.07);
    border:
        1px solid rgba(255,255,255,0.08);
    color: #ddd6fe;
    font-size: 13px;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.focus-skills span:hover {
    transform:
        translateY(-2px);
    background:
        rgba(168,85,247,0.12);
    border-color:
        rgba(168,85,247,0.24);
}

.focus-skills span {
    opacity: 0;
    transform:
        translateY(10px);
    animation: none;
}

.info-card:hover .focus-skills span {
    animation:
        skillReveal 0.45s forwards;
}

.info-card:hover .focus-skills span:nth-child(1) {
    animation-delay: 0.05s;
}

.info-card:hover .focus-skills span:nth-child(2) {
    animation-delay: 0.1s;
}

.info-card:hover .focus-skills span:nth-child(3) {
    animation-delay: 0.15s;
}

.info-card:hover .focus-skills span:nth-child(4) {
    animation-delay: 0.2s;
}

.info-card:hover .focus-skills span:nth-child(5) {
    animation-delay: 0.25s;
}

.info-card:hover .focus-skills span:nth-child(6) {
    animation-delay: 0.3s;
}

.info-card:hover .focus-skills span:nth-child(7) {
    animation-delay: 0.35s;
}

.info-card:hover .focus-skills span:nth-child(8) {
    animation-delay: 0.4s;
}

@keyframes skillReveal {

    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}

.info-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 32px;
    backdrop-filter: blur(16px);
    box-shadow:
        0 10px 40px rgba(0,0,0,0.18);
    transition: 0.4s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168,85,247,0.28);
}

.qa-manifesto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.manifesto-label {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
}

.qa-manifesto h3 {
    font-size: clamp(85px, 5vw, 88px);
    line-height: 0.95;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #d8b4fe 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 30px rgba(168,85,247,0.15);
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.qa-feature-card {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 26px;
    padding: 34px;
    transition:
        transform 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}

.qa-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top left,
            rgba(168,85,247,0.14),
            transparent 45%
        );
    opacity: 0;
    transition: 0.45s ease;
}

.qa-feature-card:hover {
    transform:
        translateY(-10px)
        scale(1.02);

    border-color:
        rgba(168,85,247,0.25);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.25);
}

.qa-feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 18px;
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
    }

    .text {
        text-align: center;
        width: 100%;
        max-width: 520px;
        margin-top: 0;
    }

    .text h1 {
        font-size: 38px;
        line-height: 1.1;
        margin-bottom: 8px;
    }

    .text h2 {
        font-size: 21px;
        margin-bottom: 8px;
        color: #cfc7e6;
    }

    .text p {
        font-size: 16px;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 90px 20px 60px;
    }

    .hero-container {
        gap: 36px;
    }

    .text h1 {
        font-size: 33px;
    }

    .text h2 {
        font-size: 22px;
    }

    .text p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    @media (max-width: 768px) {

    .photo-wrapper {
        width: 280px;
        height: 360px;
    }

    .photo-glow {
        width: 220px;
        height: 220px;
        bottom: 40px;
    }
}
}

@media (max-width: 768px) {

    .nav {
        position: fixed;
        top: 70px;
        right: 15px;
        left: auto;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
        width: 190px;
        opacity: 0;
        pointer-events: none;
        transition:
            opacity 0.3s ease,
            transform 0.3s ease;
        transform: translateY(-10px);
        background: rgba(25, 20, 45, 0.72);
        border: 1px solid rgba(255,255,255,0.08);
        backdrop-filter: blur(18px);
        border-radius: 24px;
        z-index: 9999;
    }

    .nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.contact-cta {
    max-width: 620px;
    margin: 0 auto;
    padding: 34px;
    border-radius: 28px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    transition: 0.4s ease;
}

.contact-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top left,
        rgba(168,85,247,0.18),
        transparent 60%
    );
    opacity: 0.8;
    pointer-events: none;
}

.contact-cta:hover {
    transform: translateY(-6px);
    border-color: rgba(168,85,247,0.25);
}

.contact-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 22px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#contact-form input,
#contact-form textarea {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    padding: 14px 16px;
    border-radius: 14px;
    color: var(--text-primary);
    outline: none;
    transition: 0.25s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: rgba(168,85,247,0.6);
    background: rgba(255,255,255,0.06);
}

#contact-form textarea {
    min-height: 120px;
    resize: none;
}

.full {
    width: 100%;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#contact-form input,
#contact-form textarea {

    font-family: 'Manrope', sans-serif !important;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    font-size: 16px;
    outline: none;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        transform 0.2s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: rgba(168,85,247,0.65);
    background: rgba(255,255,255,0.06);

}

.input-error {
    border-color: rgba(255, 90, 120, 0.75) !important;
}

.error-text {
    font-size: 13px;
    color: #ff8ca5;
    margin-top: -10px;
    margin-left: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.error-text.show {
    opacity: 1;
    transform: translateY(0);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255,255,255,0.45);
}

#contact-form textarea {
    resize: vertical;
}

#form-status {
    margin-top: 16px;
    font-size: 14px;
}

.lang-switch {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10001;
    
    display: flex;
    background: rgba(25, 20, 45, 0.72);
    backdrop-filter: blur(16px);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    width: 108px;           
    height: 42px;
}

.lang-btn {
    flex: 1;
    padding: 0;
    border: none;
    background: transparent;
    font-weight: 500;
    font-size: 13.5px;
    cursor: pointer;
    transition: color 0.4s ease;
    z-index: 2;
    position: relative;
    color: rgba(255,255,255,0.75);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    color: white;
}

.slider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: 49px;
    background: linear-gradient(
        135deg,
        #8b5cf6,
        #7c3aed
    );
    border-radius: 50px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.lang-switch[data-lang="en"] .slider {
    transform: translateX(49px);
}

.lang-btn.active {
    color: white;
}

#about {
    padding-top: 40px;
}

.text h1.typing {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    border-right: none !important;
    padding-right: 0 !important;
}

@media (max-width: 1024px) {
    .text h1.typing {
        font-size: 49px !important;
        line-height: 1.12 !important;
        margin-bottom: 0px !important;
    }

    .hero {
        padding-top: 105px !important;
    }
}

@media (max-width: 600px) {
    .text h1.typing {
        font-size: 32px !important;
        line-height: 1.15 !important;
    }
    .hero {
        padding: 98px 20px 65px !important;
    }
    .hero-container {
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .text h1.typing {
        font-size: 38px !important;
    }
}

@media (max-width: 900px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-dot {
        left: 20px;
    }
    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 50px;
    }
    .timeline-card {
        width: 100%;
    }
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -3;
    opacity: 0.22;
}

.orb-1 {
    width: 320px;
    height: 320px;
    background: #7c3aed;
    top: 10%;
    left: -100px;
    animation: orbFloat1 18s ease-in-out infinite;
}

.orb-2 {
    width: 260px;
    height: 260px;
    background: #9333ea;
    top: 55%;
    right: -80px;
    animation: orbFloat2 22s ease-in-out infinite;
}

.orb-3 {
    width: 220px;
    height: 220px;
    background: #a855f7;
    bottom: 5%;
    left: 40%;
    animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-40px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes orbFloat2 {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(50px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes orbFloat3 {
    0% {
        transform:
            translateX(0px)
            translateY(0px);
    }
    50% {
        transform:
            translateX(40px)
            translateY(-30px);
    }
    100% {
        transform:
            translateX(0px)
            translateY(0px);
    }
}

.skills-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 34px;
    padding: 18px 0;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.skill-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.skill-chip:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(168,85,247,0.3);
}

.skill-chip i {
    font-size: 18px;
}

.skill-chip img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter:
        brightness(0)
        invert(1);
}

.skills-track {
    display: flex;
    gap: 14px;
    width: max-content;
    min-width: max-content;
    animation: marqueeMove 40s linear infinite;
}

@keyframes marqueeMove {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

.contact-label {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.contact-heading {
    font-size: clamp(60px, 7vw, 92px);
    line-height: 0.95;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #d8b4fe 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 30px rgba(168,85,247,0.15);
}

.contact-text {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-links a {
    color: #c4b5fd;
    text-decoration: none;
}

@media (max-width: 992px) {

    .split-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .text-block {
        width: 100%;
        max-width: 100%;
    }

    .qa-manifesto {
        width: 100%;
        text-align: center;
        order: -1;
    }

    .qa-manifesto h3 {
        font-size: 36px;
        line-height: 1.15;
        max-width: 100%;
        word-break: break-word;
    }
}

@media (max-width: 768px) {

    .section {
        width: 100%;
        max-width: 100%;
        padding: 60px 20px;
    }

    .buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .buttons .btn {
        width: auto;
        min-width: 140px;
        padding: 12px 18px;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-card {
        padding: 20px;
    }

    .certificate {
        border-radius: 18px;
    }

    .cert-top {
        padding: 18px;
    }

    .cert-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .contact-heading {
        font-size: clamp(42px, 12vw, 64px);
    }

    .contact-text {
        font-size: 16px;
    }

    .contact-links {
        font-size: 15px;
    }

    .skill-chip {
        padding: 10px 14px;
        font-size: 13px;
    }
    
}

@media (max-width: 480px) {

    .hero {
        min-height: auto;
    }

    .photo-wrapper {
        width: 230px;
        height: 300px;
    }

    .photo-glow {
        width: 180px;
        height: 180px;
    }

    .text h1.typing {
        font-size: 30px !important;
    }

    .text h2 {
        font-size: 20px;
    }

    .section h3 {
        font-size: 24px;
    }

    .qa-feature-card {
        padding: 24px;
    }

    .timeline-card {
        padding: 18px;
    }

    .contact-heading {
        font-size: 40px;
        line-height: 1.05;
    }

    #contact-form input,
    #contact-form textarea {
        font-size: 16px;
    }
}

@media (max-width: 768px) {

    .hero-container {
        width: 100%;
        margin: 0 auto;
        align-items: center;
        justify-content: center;
    }

    .text {
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .photo-wrapper {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .split-layout,
    .contact-layout,
    .qa-grid {
        display: flex;
        flex-direction: column;
    }

    .qa-manifesto {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .qa-manifesto h3 {
        font-size: 48px;
        line-height: 1.1;
    }

    .qa-feature-card {
        width: 100%;
        padding: 24px;
    }

    .timeline-card {
        width: 100%;
    }

    .contact-heading {
        font-size: 42px;
    }
}

.qa-feature-card h4,
.qa-feature-card p {
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 768px) {

    #contact-form {
        width: 100%;
    }

    #contact-form input,
    #contact-form textarea,
    #contact-form button {
        width: 100%;
    }

    #contact-form textarea {
        min-height: 140px;
    }
}