/* layout */


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

:root {
    --bg-page: #050b14;
    --bg-surface: #0d1726;
    --bg-surface-soft: #101d2f;
    --surface-rgb: 13, 23, 38;

    --border: rgba(125, 211, 252, 0.24);
    --border-soft: rgba(255, 255, 255, 0.13);

    --text-heading: #f8fbff;
    --text-body: #d4e4f7;
    --text-muted: #9bb1ce;

    --accent: #3ea5ff;
    --accent-strong: #69d2ff;
    --accent-tint-bg: rgba(62, 165, 255, 0.15);
    --accent-tint-text: #dff5ff;
    --accent-rgb: 62, 165, 255;

    --highlight: #f7d35d;
    --highlight-soft: rgba(247, 211, 93, 0.2);
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.12);
    --shadow-rgb: 2, 6, 23;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(62, 165, 255, 0.22), transparent 25%),
        radial-gradient(circle at bottom right, rgba(247, 211, 93, 0.16), transparent 30%),
        var(--bg-page);
    color: var(--text-heading);
    font-family: 'Prompt', 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 32%, transparent 90%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: slowGridDrift 14s ease-in-out infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 28%, transparent 70%, rgba(62,165,255,0.04));
    pointer-events: none;
    z-index: 0;
    animation: softGlowPulse 8s ease-in-out infinite alternate;
}

main, header, footer, section {
    position: relative;
    z-index: 1;
}

@keyframes slowGridDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.22; }
    50% { transform: translate3d(0.9%, 1.2%, 0) scale(1.04); opacity: 0.46; }
    100% { transform: translate3d(-1.1%, -1.4%, 0) scale(1.08); opacity: 0.3; }
}

@keyframes softGlowPulse {
    0% { opacity: 0.28; }
    50% { opacity: 0.6; }
    100% { opacity: 0.38; }
}

a {
    text-decoration: none;
    color: var(--accent);
}

li {
    list-style: none;
}

span {
    color: var(--accent-strong);
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    color: var(--text-heading);
    font-size: clamp(2.4rem, 3vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

h2 {
    color: var(--accent-strong);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-body);
}

.section-title-row {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.section-row {
    display: flex;
    justify-content: center;
    padding: 1.5rem 2rem;
    box-shadow: 0px 20px 40pxvar(--accent-strong);
}

.large-heading {
    font-size: 45px;
    font-weight: 800;
}

.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row-center {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.row-right {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.text-action-link {
    text-decoration: none;
    color: var(--text-heading);
    font-size: 20px;
    font-weight: 1000;
}

.text-highlight-red {
    color: var(--danger);
}

.mt-2rem {
    margin-top: 2rem;
}

.card-con {
    width: 900px;
    margin: 3rem auto;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(var(--accent-rgb), 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.card-con:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(var(--accent-rgb), 0.35);
}

.card-con img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.card-content {
    padding: 1.75rem 2rem;
}

.card-content h2 {
    margin-bottom: 1rem;
}

.card-content p {
    line-height: 1.8;
    color: var(--text-body);
}


/* การจัดวางสไตล์ Side-by-Side (รูปข้าง ข้อความข้าง) */
.about-flex-container {
    display: flex;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    gap: 4rem;
    align-items: center;
}

.about-text-col {
    flex: 1.2; /* ให้พื้นที่ฝั่งข้อความกว้างกว่าเล็กน้อย */
}

.about-image-col {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
}

.about-subtitle {
    color: var(--accent);
    font-weight: 700;
    margin-top: 0.5rem;
}

.about-bio {
    margin: 1.5rem 0 2.5rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
}

/* ส่วนของกล่องทักษะ */
.about-skills-section h3 {
    color: var(--text-heading);
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-size: 1.3rem;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-surface);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.skill-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ส่วนจัดการรูปภาพและวงกลมกราฟิก */
.profile-image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
}

.profile-bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fcff49; /* ดึงสีเหลืองจากธีมการ์ดเดิมของคุณ */
    border-radius: 50%;
    z-index: 1;
}

.profile-img {
    position: relative;
    width: 95%;
    height: 95%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--bg-surface);
    z-index: 2; /* ดันรูปให้อยู่เหนือกราฟิกวงกลมสีเหลือง */
    box-shadow: 0 20px 40px rgba(var(--shadow-rgb), 0.08);
}

/* ปรับปรุง Responsive ให้แสดงผลแนวตั้งบนมือถืออัตโนมัติ */
@media (max-width: 768px) {
    .about-flex-container {
        flex-direction: column-reverse; /* เอารูปขึ้นก่อนเมื่อจอมือถือเล็ก */
        gap: 2rem;
        margin: 2rem auto;
    }
    .profile-image-wrapper {
        width: 280px;
        height: 280px;
    }
}

.about-skills-section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.about-skills-section h3 {
    color: var(--text-heading); /* ดึงสีข้อความหลักจากเว็บคุณ */
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

/* ตั้งค่าให้เรียง 2 คอลัมน์คู่กันเพื่อประหยัดพื้นที่ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* สไตล์กล่องข้อความทักษะ */
.skill-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-surface);
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border); /* สไตล์ขอบการ์ดเดิมของคุณ */
    box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.02);
}

.skill-desc {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.5;
}

/* ปรับสีแท็ก Software Skill ให้แมตช์กับคลาสที่มีอยู่ */
.tag-win {
    color: #29c2ff;
    background-color: var(--accent-tint-bg);
}

/* Responsive: เมื่อเปิดบนมือถือ ให้ปรับกลับมาเป็นแถวเดี่ยวเรียงลงมา */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ส่วนจัดการภาพรวม Skills Section --- */
.about-skills-section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.about-skills-section h3 {
    color: var(--text-heading); /* สีตัวอักษรหลัก */
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

/* ตั้งค่าจัดเรียงกล่องหลอดพลังแบบ 2 คอลัมน์คู่กันเพื่อประหยัดพื้นที่ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}


.skill-bar-box {
    background: var(--bg-surface);
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.02);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0.5rem;
}

.skill-bar-box .tag {
    margin: 0;
    position: static;
    flex-shrink: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.skill-percentage {
    font-weight: 700;
    color: var(--accent-strong); /* สีน้ำเงินเข้ม */
    font-size: 1rem;
}

.skill-desc-text {
    font-size: 0.9rem;
    color: var(--text-muted); /* สีเทาสำหรับคำอธิบายใต้ชื่อสกิล */
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* --- ส่วนโครงสร้างหลอดระดับความสามารถ (Progress Bar) --- */
.skill-progress-bg {
    width: 100%;
    height: 8px;
    background-color: var(--accent-tint-bg); /* สีฟ้าอ่อนที่ดึงมาจากปุ่ม filter เดิมของคุณ */
    border-radius: 999px;
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    background-color: var(--accent); /* สีน้ำเงินหลักของเว็บคุณ */
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* สีเพิ่มเติมสำหรับแท็กเดี่ยวให้สอดคล้องกับคลาสที่คุณมี */
.tag-win {
    color: #29c2ff;
    background-color: var(--accent-tint-bg);
}

/* Responsive: เมื่อเปิดบนหน้าจอมือถือ ให้หดกลับมาเป็นแถวเดี่ยวเรียงลงมา */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* เทคนิคเลื่อนหน้าจอแบบมีศักยภาพ animation สูง ให้การเปลี่ยน section ดูเต็มที่และสวยมากขึ้น */
.scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 90px, 0) scale(0.92) rotateX(12deg);
    filter: blur(8px) brightness(0.75);
    transition:
        opacity 0.9s ease,
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s ease,
        box-shadow 0.9s ease;
    will-change: transform, opacity, filter;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
    filter: blur(0) brightness(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.scroll-reveal:nth-child(odd) {
    transition-delay: 0.08s;
}

.scroll-reveal:nth-child(even) {
    transition-delay: 0.14s;
}

/* --- ปุ่มคำถามตัวอย่าง (Quick Tags) --- */
.ai-quick-tags {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-surface-soft);
    border-radius: 14px;
}

.quick-tag-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    color: var(--accent);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-tag-btn:hover {
    background: var(--accent);
    color: var(--bg-surface);
    border-color: var(--accent);
    transform: translateX(4px);
}




/* header */


.header-container {
    width: 100%;
    background-color: rgba(var(--surface-rgb), 0.85);
    border-bottom: 1px solid rgba(38, 50, 72, 0.95);
    box-shadow: 0 25px 50px rgba(var(--shadow-rgb), 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-nav-con {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo h1 {
    font-size: 1.75rem;
    color: var(--accent-strong);
    letter-spacing: 0.04em;
}

.header-btn-con {
    display: flex;
    gap: 1rem;
}

.header-btn {
    list-style: none;
    background-color: var(--bg-surface);
    border: 5px solid var(--border-soft);
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.header-btn:hover {
    transform: translateY(-2px);
    background-color: var(--accent-tint-bg);
    box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.12);
}

.header-btn a {
    display: block;
    padding: 0.9rem 1.4rem;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.header-nav2-con {
    background-color: var(--accent);
    overflow: hidden;
    max-height: 200px;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    opacity: 1;
}

.nav-2-hidden {
    max-height: 0;
    opacity: 0;
}

.header-btn2-con {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-btn2 {
    list-style: none;
}

.header-btn2 a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.header-btn2 a:hover {
    color: var(--accent-tint-text);
}



.tag-skill-head {
    background-color: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    /* margin: 0.5rem 0; */
}




/* home */


.Home-container {
    display: flex;
    justify-content: space-around;
    padding: 15vh ;
}

.left-home {
    width: 50vh;
}

.text-home {
    margin-bottom: 35px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-heading);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.eyebrow .role-switcher,
.role-text {
    position: relative;
    display: inline-block;
    min-width: 10ch;
    color: var(--accent-strong);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.eyebrow .role-switcher.is-changing,
.role-text.is-changing {
    opacity: 0;
    transform: translateY(14px);
}

.eyebrow .role-switcher,
.role-text {
    animation: roleFloat 1.6s ease;
}

@keyframes roleFloat {
    0% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

.btn-home {
    display: flex;
    gap: 20px;
    
}

.btn-home-1 {
    background-color: var(--accent-strong);
    cursor: pointer;
    border: none;
    border-radius: 15px;
    font-size: 600;
    font-weight: bold;
    font-family: 'prompt',sans-serif;
    box-shadow: 10px 14px 14px #6380dc;
    padding: 24px 12px;
    transition:  transform 0.5s ease;
}

.btn-home-1:hover {
    transform: scale(1.25);
    box-shadow: 0px 0px 99px #6380dc;
}

.btn-home-1 a {
    color: var(--bg-surface);
}


/* โค้ดหลัก (ใช้กับคอม) */
.right-home img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0px 90px;
}


@media (max-width: 768px) {
  .right-home {
    display: none;
  }

  .left-home {
    width: 100%;
  }
}







/* card */



.card-mini {
    cursor: pointer;
    width: 380px;
    margin: 2rem 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(var(--shadow-rgb), 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-mini-warn {
    cursor: pointer;
    width: 380px;
    margin: 2rem 0;
    background-color: var(--danger-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(var(--shadow-rgb), 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-mini:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(var(--shadow-rgb), 0.12);
}

.card-mini img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.card-mini-warn img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-card {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 2rem;
    gap: 1.5rem;
    scroll-behavior: smooth;
}

.project-card::-webkit-scrollbar {
    height: 8px;
}

.project-card::-webkit-scrollbar-track {
    background: transparent;
}

.project-card::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb), 0.35);
    border-radius: 999px;
}



/* certificate */



.filter-btn {
    background-color: var(--accent-tint-bg);
    color: var(--accent-strong);
    border: 1px solid var(--border-soft);
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    margin-top: 3rem;
}

.filter-btn:hover {
    transform: translateY(-2px);
    background-color: var(--accent);
    color: var(--bg-surface);
    box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.18);
}

.filter-btn:active,
.filter-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(var(--accent-rgb), 0.24);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    width: min(1040px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.filter-btn-year {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-year-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-heading);
    text-decoration: none;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.filter-year-link:hover {
    transform: translateY(-2px);
    background-color: var(--accent-tint-bg);
}

.title-panel {
    margin-top: 2.5rem;
    min-height: 90px;
    background: linear-gradient(180deg, rgba(16, 26, 35, 0.85), rgba(9, 15, 22, 0.98));
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.18);
    padding: 1rem 1.5rem;
}

.title-panel > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    text-align: center;
}

.title-panel h1,
.title-panel h2 {
    margin: 0;
}

.title-panel h2 {
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    color: var(--text-muted);
    opacity: 0.8;
}

.certificates-details {
    width: min(1180px, calc(100% - 1rem));
    margin: 2rem auto 0;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(9, 15, 24, 0.82), rgba(8, 12, 18, 0.92));
    padding: 0.4rem 0.6rem 2rem;
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.18);
}

.certificates-summary {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.95rem auto 1.2rem;
    width: fit-content;
    cursor: pointer;
    padding: 0.85rem 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background: linear-gradient(180deg, rgba(11, 20, 29, 0.99), rgba(14, 23, 35, 0.97));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.certificates-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(var(--accent-rgb), 0.12);
}

.certificates-summary::-webkit-details-marker {
    display: none;
}

.certificates-summary h1 {
    margin: 0;
}

.Certificates-contrainer {
    position: relative;
    scroll-margin-top: 110px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.Certificates-year {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(980px, 100%);
    margin: 1.65rem auto 0;
    background: linear-gradient(180deg, rgba(13, 23, 38, 0.96), rgba(8, 14, 22, 0.98));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.12);
    position: relative;
    overflow: hidden;
}

.Certificates-year::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(62,165,255,0.12), transparent 45%, rgba(247,211,93,0.08));
    pointer-events: none;
}

.Certificates-year .large-heading {
    position: relative;
    z-index: 1;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.Certificates-contrainer .card-certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
    width: min(980px, 100%);
    margin: 0.95rem auto 0;
    padding: 0.15rem 0;
}

.card-certificates {
    width: 100%;
    min-height: 228px;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(19, 27, 44, 0.96), rgba(10, 15, 28, 1));
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(var(--shadow-rgb), 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.card-certificates::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(62, 165, 255, 0.08), transparent 35%, rgba(247, 211, 93, 0.08));
    z-index: -1;
}

.card-certificates:hover,
.card-certificates.is-featured {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(62, 165, 255, 0.52);
    box-shadow: 0 20px 38px rgba(var(--accent-rgb), 0.16);
}

.card-certificates.is-featured {
    animation: certificatePulse 1.2s ease;
}

.card-certificates .card-image-certificates {
    height: 156px;
    width: 100%;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.04);
}

.card-certificates .card-content-certificates {
    padding: 0.8rem 0.85rem 0.95rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-height: 86px;
}

.card-certificates .card-content-certificates h2 {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-heading);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-certificates.is-hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

.card-certificates > div[id^="open-popup-"] {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes certificatePulse {
    0% { box-shadow: 0 0 0 rgba(62,165,255,0); }
    40% { box-shadow: 0 0 0 8px rgba(62,165,255,0.12); }
    100% { box-shadow: 0 28px 60px rgba(var(--accent-rgb), 0.18); }
}




/* animation Loadling */


#loadingOverlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 1.5rem 2rem;
    border-radius: 1.25rem;
    background: rgba(var(--surface-rgb), 0.94);
    box-shadow: 0 20px 45px rgba(var(--shadow-rgb), 0.2);
    border: 1px solid rgba(var(--surface-rgb), 0.7);
}

.loading-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.02em;
}

.loading-dots {
    display: flex;
    gap: 0.35rem;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    animation: bounce 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.45;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}



/* footer */




.footer-con {
    width: 100%;
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-surface) 100%);
    border-top: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(var(--surface-rgb), 0.7);
}

.footer-maxsection {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 2rem;
}

.footer-about,
.footer-website,
.footer-contact {
    min-width: 240px;
    font-size: 1rem;
    color: var(--text-body);
}

.footer-about h3,
.footer-website h3,
.footer-contact h3 {
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-link,
.footer-meta-link {
    text-decoration: none;
}

.footer-link {
    color: var(--accent);
}

.footer-link:hover {
    color: var(--accent-strong);
}

.footer-meta-link {
    color: var(--text-muted);
    font-weight: 700;
}

.footer-alert-link {
    color: red;
    text-decoration: none;
}

.footer-highlight {
    font-weight: 600;
    font-size: large;
}




/* project */


/* Project card styles */
.card-certificates-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.card-project {
    width: 35%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(var(--shadow-rgb), 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-project:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(var(--shadow-rgb), 0.12);
}

.card-image-certificates {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-content-certificates {
    padding: 1.75rem;
    align-items: center;
    text-align: center;
}

.tag-project {
    display: flex;
    gap: 0.75rem;
    justify-content: right;
    margin-top: 1rem;
    margin-right: 2rem;
}

.tag {
    background-color: var(--accent-tint-bg);
    color: var(--accent-strong);
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.95rem;
}

.tag-html {
    color: var(--danger);
}

.tag-css {
    color: #65b3d2;
}

.tag-js {
    color: #a3e635;
}

.tag-win {
    color: #29c2ff;
}

.btn-img-project {
    background-color: var(--accent);
    color: white;
    position: absolute;
    border: none;
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: default;
    margin-top: 1rem;
    margin-left: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-img-project:hover {
    transform: translateY(-2px);
    background-color: var(--accent-strong);
    box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.18);
}

.btn-img-project:active {
    transform: translateY(-2px);
}

.btn-status-blue {
    background-color: #005bca;
}

.btn-status-orange {
    background-color: #fa6c00;
}

.btn-status-green {
    background-color: #48ff00;
}
.btn-status-red {
    background-color: var(--danger);
}




/* time */





.Time-countdown-container {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 20px 15px;
    width: 100%;
    max-width: 800px;             
    margin-left: auto;         
    margin-right: auto;
    box-sizing: border-box;
    background: rgba(var(--surface-rgb), 0.85); 
    backdrop-filter: blur(8px);
    border-radius: 16px;          
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.ผผ05); 
}

.Time-countdown-container h3 {
    margin: 0 0 15px 0;
    font-size: clamp(1rem, 3.5vw, 1.3rem); 
    color: var(--text-heading);
    text-align: center;
    font-weight: 600;
}


.Time-countdown-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;              
    gap: 8px 12px;             
    width: 100%;
    color: var(--text-heading);
}


.Time-countdown-layout h2 {
    margin: 0;
    font-size: clamp(0.75rem, 2.5vw, 1.1rem);
    font-weight: 700;
    color: var(--text-muted);             
    letter-spacing: 1px;
}

.Time-countdown-layout span {
    font-size: clamp(1.1rem, 4vw, 1.8rem); 
    font-weight: 800;
    color: var(--accent);               
    background: var(--bg-surface-soft);         
    padding: 4px 10px;
    border-radius: 8px;
    font-family: monospace;    
    min-width: 40px;
    text-align: center;
}


.Time-countdown-layout span:not(:last-child) {
    margin-right: 10px;
}


@media (max-width: 480px) {
    .Time-countdown-layout span:not(:last-child) {
        margin-right: 4px;
    }
    .Time-countdown-layout {
        gap: 6px 8px;
    }
}



/* reponsive */


body,
main {
    overflow-x: hidden;
}

.header-menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .card-con {
        width: min(92vw, 900px);
        margin: 2.25rem auto;
    }

    .card-con img {
        height: 300px;
    }

    .section-row {
        padding: 1.25rem 1.5rem;
    }

    .card-certificates-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .popup-box,
    .popup-box-certificate1,
    .popup-box-certificate-s {
        width: 92%;
        height: auto;
        max-height: 85vh;
        padding: 1.25rem;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .header-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.25rem;
        width: 2.8rem;
        height: 2.8rem;
        border: 1px solid var(--border-soft);
        border-radius: 999px;
        background: var(--bg-surface);
        padding: 0.5rem;
        cursor: pointer;
    }

    .header-menu-toggle span {
        display: block;
        width: 1.2rem;
        height: 2px;
        background: var(--accent);
        border-radius: 999px;
    }

    .header-nav-con {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.9rem 1rem;
    }

    .header-logo h1 {
        font-size: 1.3rem;
    }

    .header-btn-con {
        display: none;
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
        margin-top: 0.25rem;
    }

    .header-container.header-menu-open .header-btn-con {
        display: flex;
    }

    .header-btn {
        width: 100%;
    }

    .header-btn a {
        text-align: center;
        padding: 0.8rem 1rem;
    }

    .header-nav2-con {
        display: none;
        margin-top: 0.2rem;
        padding: 0.45rem 0 0.55rem;
        max-height: none;
    }

    .header-container.header-menu-open .header-nav2-con {
        display: block;
    }

    .header-btn2-con {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0;
    }

    .header-btn2 a {
        display: inline-block;
        padding: 0.45rem 0.7rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
    }

    .card-mini {
        width: 100%;
        max-width: 450px;
        margin: 1rem auto;
        display: block;
    }

    .project-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0.75rem 0.5rem 1rem;
        overflow-x: hidden;
    }

    .card-project,
    .card-certificates {
        width: 100%;
        max-width: 100%;
    }

    .card-certificates-container {
        gap: 1.25rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .section-title-row,
    .section-row {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .large-heading {
        font-size: clamp(1.7rem, 5.4vw, 2.4rem);
        line-height: 1.15;
        text-align: center;
    }

    h1 {
        font-size: clamp(1.6rem, 4.3vw, 2.1rem);
    }

    h2 {
        font-size: clamp(1.1rem, 3vw, 1.35rem);
    }

    .card-content,
    .card-content-certificates {
        padding: 1rem 1rem 1.25rem;
    }

    .tag-project {
        justify-content: center;
        margin-right: 0;
        flex-wrap: wrap;
        padding: 0 1rem 1rem;
    }

    .btn-img-project {
        position: static;
        margin: 1rem 0 0 1rem;
    }

    .filter-buttons {
        padding: 0 1rem;
    }

    .filter-btn {
        width: 100%;
        margin-top: 0.75rem;
    }

    .filter-btn-year {
        justify-content: center;
        margin-top: 1rem;
    }

    .popup-box,
    .popup-box-home,
    .popup-box-certificate1,
    .popup-box-certificate-s {
        width: 92%;
        height: auto;
        max-height: 85vh;
        padding: 1.1rem;
        overflow-y: auto;
        margin-left: 0;
        border-radius: 20px;
    }

    .popup-head {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .popup-main {
        padding-right: 0;
    }

    .close-popup {
        position: static;
        width: 100%;
        padding: 0.95rem 1.2rem;
        margin-top: 1rem;
    }

    .popup-image-certificate-1,
    .popup-image-certificate-s {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .card-content p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .header-btn a {
        font-size: 0.95rem;
    }

    .tag {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }

    .filter-btn {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .filter-year-link {
        padding: 0.55rem 0.8rem;
        font-size: 0.9rem;
    }
}



.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--accent-tint-text);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--highlight);
    box-shadow: 0 0 16px rgba(247,211,93,.9);
}

.Home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1220px;
    margin: 0 auto;
    padding: 7rem 2rem 5rem;
    gap: 3rem;
}

.left-home {
    width: min(100%, 620px);
}

.text-home {
    margin-bottom: 2rem;
}

.text-home h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin-bottom: 0.8rem;
    color: var(--text-heading);
}

.text-home h1 span {
    color: var(--highlight);
    text-shadow: 0 0 18px rgba(247, 211, 93, 0.5);
}

.text-home h2 {
    font-size: clamp(1.05rem, 2vw, 1.7rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 1rem;
}

.text-home p {
    max-width: 52ch;
    color: var(--text-body);
    font-size: 1.05rem;
}

.btn-home {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    list-style: none;
}

.btn-home-1 {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-radius: 999px;
    padding: 0.15rem 0.25rem;
    box-shadow: 0 20px 40px rgba(var(--accent-rgb), 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-home-1:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 28px 60px rgba(var(--accent-rgb), 0.42);
}

.btn-home-1 a {
    display: inline-block;
    color: #06121d;
    padding: 1rem 1.4rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.btn-home .header-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: none;
}

.btn-home .header-btn a {
    color: var(--text-heading);
    padding: 1rem 1.4rem;
}

.right-home {
    flex: 1;
    display: flex;
    justify-content: center;
}

.portrait-frame {
    position: relative;
    width: min(100%, 490px);
    padding: 1rem;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(247,211,93,0.28), rgba(62,165,255,0.18));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 35px 80px rgba(2, 6, 23, 0.55);
    animation: floatHero 5s ease-in-out infinite;
}

.portrait-frame::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(62,165,255,.3), rgba(247,211,93,.2), rgba(255,255,255,.06));
    blur: 14px;
    z-index: -1;
}

.right-home img {
    display: block;
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 22px;
    border: 2px solid rgba(255,255,255,0.18);
    box-shadow: 0 22px 44px rgba(0,0,0,0.4);
}

.about-flex-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1.05fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
}

.about-text-col {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.about-header {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.about-header .large-heading {
    color: var(--text-heading);
}

.about-subtitle {
    color: var(--accent-tint-text);
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.about-image-col {
    display: flex;
    justify-content: flex-start;
}

.profile-image-wrapper {
    position: relative;
    width: min(100%, 420px);
    height: 420px;
    padding: 1.1rem;
}

.profile-bg-shape {
    position: absolute;
    inset: 15% 10% 9% 12%;
    background: linear-gradient(135deg, rgba(247,211,93,0.95), rgba(62,165,255,0.9));
    border-radius: 38% 62% 58% 42% / 44% 36% 64% 56%;
    box-shadow: 0 26px 60px rgba(247,211,93,0.18);
    animation: morph 10s ease-in-out infinite;
}

.profile-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 34% 66% 58% 42% / 44% 48% 52% 56%;
    border: 6px solid rgba(255,255,255,0.12);
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.45);
    z-index: 1;
}

.about-bio {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 1.7rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 40px rgba(2,6,23,0.2);
}

.about-bio p {
    color: var(--text-body);
    font-size: 1.04rem;
    line-height: 1.9;
}

.bio-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.bio-stats div {
    padding: 1rem 0.8rem;
    border-radius: 18px;
    background: rgba(62,165,255,0.05);
    border: 1px solid rgba(62,165,255,0.16);
    text-align: center;
}

.bio-stats strong {
    display: block;
    font-size: clamp(1.3rem, 2vw, 2rem);
    color: var(--highlight);
    margin-bottom: 0.25rem;
}

.bio-stats span {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.section-row {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.6rem 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(62,165,255,0.12), rgba(247,211,93,0.1));
    border: 1px solid var(--border);
    box-shadow: 0 18px 32px rgba(2,6,23,0.18);
}

.large-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.04em;
    color: var(--text-heading);
}

.card-mini {
    width: 360px;
    background: rgba(13, 23, 38, 0.8);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 38px rgba(2,6,23,0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-mini:hover {
    transform: translateY(-8px);
    border-color: rgba(62,165,255,0.5);
    box-shadow: 0 28px 60px rgba(62,165,255,0.12);
}

.card-mini img {
    height: 260px;
}

.card-content {
    padding: 1.35rem 1.25rem 1.5rem;
}

.card-content h2 {
    color: var(--text-heading) !important;
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--text-body);
    line-height: 1.8;
}

.about-skills-section {
    max-width: 1100px;
    margin: 5rem auto 6rem;
    padding: 0 1.25rem;
}

.about-skills-section summary {
    list-style: none;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.about-skills-section summary h3 {
    display: inline-block;
    color: var(--text-heading);
    background: var(--accent);
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
}




.skill-bar-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 12px 28px rgba(2,6,23,0.1);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.skill-bar-box:hover {
    transform: translateY(-4px);
    border-color: rgba(62,165,255,0.4);
}

.skill-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255,255,255,0.08);
}

.tag-html { background: rgba(62,165,255,0.12); color: var(--accent-tint-text); }
.tag-css { background: rgba(247,211,93,0.12); color: #f8da72; }
.tag-js { background: rgba(255,255,255,0.08); color: var(--text-heading); }

.skill-percentage {
    color: var(--highlight);
    font-size: 0.88rem;
    font-weight: 700;
}

.activity-item h4 {
    margin: 0 0 0.6rem;
    font-size: 1.06rem;
    color: var(--text-heading);
    font-weight: 700;
}

.activity-item p {
    margin: 0;
    color: var(--text-body);
    line-height: 1.8;
}

.timeline-microcopy {
    text-align: center;
    margin-bottom: 1.15rem;
}

.timeline-microcopy h2 {
    color: var(--accent-strong);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.timeline-microcopy p {
    color: var(--text-muted);
}

.Time-countdown-container {
    max-width: 980px;
    margin: 1.5rem auto 0;
    padding: 2rem 1.25rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(13,23,38,0.9), rgba(11,17,28,0.92));
    border: 1px solid var(--border);
    box-shadow: 0 24px 52px rgba(2,6,23,0.26);
}

.Time-countdown-layout {
    gap: 0.85rem 1.2rem;
}

.Time-countdown-layout span {
    background: linear-gradient(180deg, rgba(62,165,255,0.12), rgba(247,211,93,0.08));
    border: 1px solid rgba(62,165,255,0.22);
    color: var(--highlight);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.header-container {
    background: rgba(9,16,25,0.74);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-btn {
    border: 1px solid rgba(62,165,255,0.26) !important;
    background: rgba(255,255,255,0.02);
}

.header-btn a {
    color: var(--text-heading);
}

.tag-skill-head {
    background: linear-gradient(135deg, rgba(62,165,255,0.16), rgba(247,211,93,0.1));
    color: var(--accent-tint-text);
    border: 1px solid rgba(62,165,255,0.22);
    box-shadow: 0 10px 22px rgba(62,165,255,0.08);
}

footer {
    margin-top: 3rem;
}

@keyframes floatHero {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes morph {
    0%, 100% { transform: rotate(0deg) scale(1); border-radius: 38% 62% 58% 42% / 44% 36% 64% 56%; }
    25% { transform: rotate(6deg) scale(1.02); border-radius: 48% 52% 62% 38% / 52% 58% 42% 48%; }
    50% { transform: rotate(-5deg) scale(1.04); border-radius: 61% 39% 58% 42% / 41% 57% 43% 59%; }
    75% { transform: rotate(4deg) scale(1.01); border-radius: 42% 58% 44% 56% / 56% 36% 64% 44%; }
}

@media (max-width: 980px) {
    .Home-container,
    .about-flex-container {
        grid-template-columns: 1fr;
        display: grid;
    }

    .right-home {
        justify-content: center;
    }

    .portrait-frame {
        max-width: 420px;
    }

    .about-image-col {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .Home-container {
        padding-top: 4.5rem;
        padding-bottom: 3.5rem;
    }

    .text-home p {
        font-size: 0.96rem;
    }

    .btn-home {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-home .header-btn,
    .btn-home-1 {
        width: 100%;
    }

    .btn-home-1 a,
    .btn-home .header-btn a {
        text-align: center;
        width: 100%;
    }

    .bio-stats {
        grid-template-columns: 1fr;
    }

    .card-mini {
        width: min(100%, 420px);
    }
}
/* .popup-box */

.overlay-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--shadow-rgb), 0.65);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup-box {
    background-color: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 28px;
    width: 1000px;
    height: 650px;
    max-width: 100%;
    border: 1px solid rgba(38, 50, 72, 0.95);
    box-shadow: 0 24px 60px rgba(var(--shadow-rgb), 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.popup-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 32px 80px rgba(var(--shadow-rgb), 0.18);
}

.popup-head {
    display: flex;
    justify-content: space-between;
    font-size: 1.75rem;
    color: var(--accent-strong);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.popup-main {
    margin-top: 1.5rem;
    padding-right: 1rem;
}
.popup-main p {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 1rem;
    line-height: 1.8;
}
.popup-main ul {
    margin: 1rem 0 1.5rem 1.25rem;
    color: var(--text-body);
    list-style: disc;
    line-height: 1.8;
}
.popup-main li {
    margin-bottom: 0.75rem;
}
.popup-main a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.popup-main a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}
.close-popup {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.close-popup:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.18);
    background-color: var(--accent-strong);
}

.popup-footer {
    margin-top: 2rem;
}

/* home */


.popup-box-home {
    background-color: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 28px;
    width: 60%;
    height: 90%;
    max-width: 100%;
    border: 1px solid rgba(38, 50, 72, 0.95);
    box-shadow: 0 24px 60px rgba(var(--shadow-rgb), 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-left: 20%;
    overflow: auto;
    /* margin-top: 5%; */
    position: relative;
}

.popup-box-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 32px 80px rgba(var(--shadow-rgb), 0.18);
}

.overlay-popup-home {
  display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--shadow-rgb), 0.65);
    justify-content: center;
    align-items: center;
    z-index: 10001;
}


.popup-card-certificates {
    display: none;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    position:fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-card-certificates img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(38, 50, 72, 0.95);
    box-shadow: 0 12px 32px rgba(var(--shadow-rgb), 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.popup-card-certificates img:hover {
    transform: translateY(-15px);
    box-shadow: 0 16px 48px rgba(var(--shadow-rgb), 0.18);
}

.hidden {
    display: none;
}

.overlay-popup-certificate {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--shadow-rgb), 0.65);
    justify-content: center;
    align-items: center;
    z-index: 10002;
}

.popup-image-certificate-1 {
    max-width: 80%;
    max-height: 80%;
    margin: 5% 0;
    object-fit: contain;
    border-radius: 12px;
}

.popup-box-certificate1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-surface);
    padding: 1.5rem 1.5rem;
    overflow: auto;
    border-radius: 28px;
    width: 60%;
    height: 75%;
    max-width: 100%;
    border: 1px solid rgba(38, 50, 72, 0.95);
    box-shadow: 0 24px 60px rgba(var(--shadow-rgb), 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.popup-box-certificate-s {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 28px;
    width: 50%;
    height: 75%;
    max-width: 100%;
    border: 1px solid rgba(38, 50, 72, 0.95);
    box-shadow: 0 24px 60px rgba(var(--shadow-rgb), 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.popup-image-certificate-s {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 30px;
}


.overlay-popup-timeline {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--shadow-rgb), 0.65);
    justify-content: center;
    align-items: center;
    z-index: 10001;
}



.popup-timeline  {
    display: flex;
    justify-content: center;
}
.popup-timeline img {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 20px;
}


