* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg: #0f1117;
    --panel: #161b26;
    --panel-soft: #1d2433;
    --text: #f3f5ff;
    --muted: #b2bed3;
    --line: #2c3448;
    --accent: #7c8eff;
    --accent-2: #46c4ff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

section[id] {
    scroll-margin-top: 72px;
}

body {
    background: radial-gradient(circle at top, #182037 0%, var(--bg) 45%);
    color: var(--text);
    line-height: 1.5;
}

body.menu-lock {
    overflow: hidden;
}

a {
    color: inherit;
}

.section-style1,
.section-style2 {
    width: 100%;
}

.section-style2 {
    padding: 80px 24px;
}

.section-after-hero {
    padding-top: 48px;
    padding-bottom: 64px;
}

.section-wrap {
    max-width: 1120px;
    margin: 0 auto;
}

.sectionHead {
    font-size: clamp(2.4rem, 5.5vw, 5.2rem);
    margin-bottom: 22px;
    line-height: 1;
}

.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    backdrop-filter: blur(8px);
    background: rgba(13, 16, 24, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#lineTest {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.brand-name {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.brand-name:hover {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(124, 142, 255, 0.5);
}

#menu-responsive,
#menu-close {
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 2.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

#menu-responsive:hover,
#menu-close:hover {
    color: var(--accent-2);
    transform: scale(1.06);
}

.nav-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    background: rgba(8, 10, 17, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.nav-menu.is-open {
    opacity: 1;
    visibility: visible;
}

#menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
}

.nav-menu-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(420px, 90%);
}

.menu-link-btn {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-size: 1.55rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-link-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 142, 255, 0.2);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 120px 24px 40px;
    overflow: hidden;
}

#pics {
    position: absolute;
    inset: 0;
    background-image: url("img/hero/dev-bg1.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(3px) brightness(0.42);
}

#inner-section1 {
    position: relative;
    z-index: 2;
    text-align: center;
}

#inner-section1 h3 {
    font-size: clamp(2rem, 4.7vw, 4.4rem);
    text-shadow: 0 8px 34px rgba(16, 33, 255, 0.42);
}

#inner-section1 h3::after {
    content: "|";
    animation: cursorDisplay 700ms infinite;
}

@keyframes cursorDisplay {
    from { color: transparent; }
    to { color: var(--text); }
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.skill-grid h3 {
    grid-column: 1 / -1;
    font-size: 1.7rem;
    margin-top: 10px;
    margin-bottom: 2px;
}

.skill-card {
    background: linear-gradient(170deg, var(--panel), var(--panel-soft));
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 9px;
    text-align: center;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.skill-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(124, 142, 255, 0.8);
    box-shadow: 0 10px 26px rgba(124, 142, 255, 0.2);
}

.skill-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.icon-invert {
    filter: brightness(0) invert(1);
}

.skill-card h4 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-top: 8px;
    font-weight: 500;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.soft-skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.soft-skill-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.soft-skill-card:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(124, 142, 255, 0.7);
}

.soft-skill-card p {
    font-size: 1.2rem;
    line-height: 1.45;
    text-align: center;
}

.boxOfInterest {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    background: rgba(22, 27, 38, 0.84);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
}

.profile-content1,
.profile-content2 {
    min-width: 0;
}

#self-pics {
    width: min(300px, 75%);
    aspect-ratio: 1/1;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid rgba(124, 142, 255, 0.35);
}

.profile-about-block h3 {
    font-size: 2.6rem;
    margin-bottom: 8px;
}

.profile-about-block p {
    color: var(--muted);
    font-size: 1.45rem;
    text-align: justify;
}

.profile-content2 h1 {
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin-bottom: 2px;
    white-space: nowrap;
}

.profile-content2 h2 {
    font-size: 1.85rem;
    color: var(--accent-2);
    margin-bottom: 20px;
}

.profile-content2 h3 {
    font-size: 1.45rem;
    color: #dbe5ff;
    margin-top: 14px;
}

.profile-content2 p,
.profile-content2 a {
    font-size: 1.25rem;
    color: var(--muted);
    text-decoration: none;
    overflow-wrap: anywhere;
}

#experience-list,
#works-list {
    display: grid;
    gap: 18px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.certificate-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    background: var(--panel);
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.certificate-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(124, 142, 255, 0.85);
    box-shadow: 0 12px 26px rgba(124, 142, 255, 0.18);
}

.certificate-card img {
    display: block;
    width: 100%;
    height: auto;
}

.certificate-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 10, 17, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.certificate-modal.is-open {
    opacity: 1;
    visibility: visible;
}

#certificate-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(9, 12, 20, 0.75);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

#certificate-modal-image {
    max-width: min(920px, 95vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.special-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.special-tool-card {
    background: linear-gradient(170deg, var(--panel), var(--panel-soft));
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 12px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.special-tool-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(124, 142, 255, 0.8);
    box-shadow: 0 10px 26px rgba(124, 142, 255, 0.2);
}

.special-tool-card img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 8px;
}

.special-tool-card h4 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.special-tool-card p {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.4;
}

.exp-div,
.work-div {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: stretch;
    gap: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.exp-div:hover,
.work-div:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(124, 142, 255, 0.85);
    box-shadow: 0 12px 26px rgba(124, 142, 255, 0.18);
}

.exp-img,
.work-img {
    border-radius: 12px;
    overflow: hidden;
    min-height: 140px;
    height: 100%;
    align-self: stretch;
}

.exp-img img,
.work-img img,
#self-pics img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-slider {
    width: 100%;
    height: 100%;
    min-height: inherit;
    position: relative;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.slider-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(0);
}

.slider-image-next {
    transform: translateX(100%);
}

.slider-image.is-animating {
    transition: transform 0.32s ease;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(9, 12, 20, 0.58);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.slider-arrow-left {
    left: 8px;
}

.slider-arrow-right {
    right: 8px;
}

.media-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(70, 196, 255, 0.6);
    transform: translateY(-50%) scale(1.06);
}

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.slider-dot.is-active {
    background: #ffffff;
}

.exp-content h3,
.work-content h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.exp-content h3 a:hover {
    text-decoration: underline;
}

.exp-content h4,
.work-content p {
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 500;
}

.exp-highlights {
    list-style: disc;
    margin: 10px 0 0 18px;
    padding: 0;
}

.exp-highlights li {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 6px;
    line-height: 1.45;
}

.chip-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chip-list li {
    font-size: 1.1rem;
    border: 1px solid var(--line);
    background: rgba(124, 142, 255, 0.12);
    border-radius: 999px;
    padding: 5px 10px;
}

.appear {
    opacity: 0;
    transform: translate(0, 50%);
    transition: 0.6s;
}

@media (max-width: 900px) {
    .boxOfInterest {
        grid-template-columns: 1fr;
    }

    .exp-div,
    .work-div {
        grid-template-columns: 1fr;
    }

    .special-tools-grid {
        grid-template-columns: 1fr;
    }

    .exp-img,
    .work-img {
        min-height: 180px;
        height: auto;
    }
}

@media (max-width: 640px) {
    .header-nav {
        padding: 10px 14px;
    }

    .section-style2 {
        padding: 64px 16px;
    }

    .menu-link-btn {
        font-size: 1.4rem;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    #menu-responsive,
    #menu-close {
        font-size: 2rem;
    }
}
