/* ============================================================
   index-main.css — รวม CSS หลักของหน้า index (extract จาก index.php)
   ลำดับ rule เหมือนเดิมทุกอย่าง ห้ามสลับ
   ============================================================ */

/* ---- block 1 ---- */
    .motherday-bg{position:fixed;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:99;}
    .motherday-bg span{position:absolute;bottom:-60px;display:block;opacity:0;animation:rise linear infinite;}
    @keyframes rise{
      0%{transform:translateY(0) rotate(0deg);opacity:0;}
      10%{opacity:.55;}
      85%{opacity:.55;}
      100%{transform:translateY(-120vh) rotate(340deg);opacity:0;}
    }

/* ---- block 2 ---- */
    .theme-toggle {
      position: fixed;
      right: 15px;
      bottom: 60px;
      z-index: 998;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: none;
      cursor: pointer;
      background: #149ddd;
      color: #fff;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 3px 10px rgba(0,0,0,0.25);
      transition: all 0.3s;
    }
    .theme-toggle:hover { background: #37b3ed; }

    /* ======= Sidebar / menu: modern redesign ======= */
    #header {
      background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
      border-right: 1px solid #e3e8f0;
    }

    /* language pill toggle */
    #header .lang-toggle {
      display: flex;
      width: 150px;
      margin: 16px auto 0;
      padding: 3px;
      background: #e8edf5;
      border-radius: 30px;
    }
    #header .lang-toggle .lang-btn {
      flex: 1;
      text-align: center;
      font-size: 13px;
      font-weight: 600;
      padding: 6px 0;
      border-radius: 30px;
      color: #5b6472;
      text-decoration: none;
      transition: all 0.25s ease;
      line-height: 1.4;
    }
    #header .lang-toggle .lang-btn.lang-active {
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      color: #ffffff;
      box-shadow: 0 3px 10px rgba(20, 157, 221, 0.4);
    }
    #header .lang-toggle .lang-btn:not(.lang-active):hover {
      color: #149ddd;
      background: #dde5f0;
    }

    /* profile */
    #header .profile { padding-bottom: 4px; }
    #header .profile-avatar {
      width: 132px;
      height: 132px;
      margin: 18px auto 0;
      padding: 4px;
      border-radius: 50%;
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      box-shadow: 0 8px 24px rgba(20, 157, 221, 0.35);
    }
    #header .profile-avatar img {
      width: 100% !important;
      height: 100%;
      margin: 0 !important;
      object-fit: cover;
      border: 4px solid #ffffff !important;
      border-radius: 50% !important;
      display: block;
    }
    #header .profile h1 { font-size: 21px; margin-top: 10px; }
    #header .profile h1 a,
    #header .profile h1 a:hover {
      color: #182033;
    }
    #header .profile-role {
      font-family: "Poppins", sans-serif;
      font-size: 12.5px;
      font-weight: 500;
      color: #8b93a7;
      margin: 2px 0 10px;
    }

    /* social row */
    #header .profile-social {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 9px;
      flex-wrap: wrap;
      padding: 0 10px;
    }
    #header .profile-social a {
      display: inline-flex;
      transition: transform 0.25s ease;
    }
    #header .profile-social a:hover { transform: translateY(-3px); }
    #header .profile-social img.socialstyle {
      width: 34px;
      height: 34px;
      min-width: 34px;
      max-width: 34px;
      aspect-ratio: 1 / 1;
      border-radius: 9999px !important;
      object-fit: cover;
      transition: box-shadow 0.25s ease;
    }
    #header .profile-social a:hover img.socialstyle {
      box-shadow: 0 6px 14px rgba(20, 40, 80, 0.25);
    }

    /* nav menu */
    .nav-menu { padding: 16px 0 30px; }
    .nav-menu a {
      display: flex;
      align-items: center;
      border-radius: 12px;
      padding: 9px 12px;
      margin-bottom: 6px;
      color: #5b6472;
      font-weight: 500;
      font-size: 14.5px;
      transition: all 0.25s ease;
    }
    .nav-menu a i {
      font-size: 17px;
      width: 32px;
      height: 32px;
      margin-right: 10px;
      padding: 0 !important;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 9px;
      background: #e8edf5;
      color: #5b6472;
      transition: all 0.25s ease;
      flex: 0 0 32px;
    }
    .nav-menu a:hover {
      background: linear-gradient(135deg, rgba(55, 179, 237, 0.18), rgba(20, 157, 221, 0.12));
      color: #149ddd;
      text-decoration: none;
    }
    .nav-menu a:hover i {
      background: rgba(20, 157, 221, 0.18);
      color: #149ddd;
      transform: translateY(-3px) scale(1.14);
      filter: drop-shadow(0 5px 9px rgba(20, 157, 221, 0.45));
    }
    .nav-menu .active {
      color: #ffffff;
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      box-shadow: 0 6px 16px rgba(20, 157, 221, 0.35);
      text-decoration: none;
    }
    .nav-menu .active i {
      background: rgba(255, 255, 255, 0.22);
      color: #ffffff;
    }
    .nav-menu li:hover > a:not(.active) { text-decoration: none; }

    /* dark mode sidebar */
    body.dark-mode #header {
      background: linear-gradient(180deg, #10141f 0%, #0b0f18 100%);
      border-right: 1px solid #222b3a;
    }
    body.dark-mode #header .lang-toggle { background: #1c2330; border-color: #2a3242; }
    body.dark-mode #header .lang-toggle .lang-btn { color: #d5dbe8; font-weight: 600; }
    body.dark-mode #header .lang-toggle .lang-btn:not(.lang-active):hover {
      background: #222b3a;
      color: #58b3f0;
    }
    body.dark-mode #header .profile-avatar img { border-color: #10141f !important; }
    body.dark-mode #header .profile h1 a,
    body.dark-mode #header .profile h1 a:hover { color: #f0f2f7; }
    body.dark-mode #header .profile-role { color: #8b93a7; }
    body.dark-mode .nav-menu a { color: #aeb6c6; }
    body.dark-mode .nav-menu a i { background: #1c2330; color: #8b93a7; }
    body.dark-mode .nav-menu a:hover { background: rgba(20, 157, 221, 0.16); color: #7fc3f5; }
    body.dark-mode .nav-menu a:hover i { background: rgba(20, 157, 221, 0.30); color: #7fc3f5; }

    /* sidebar scrollbar (แก้แถบสีท้ายเมนู) */
    #header { scrollbar-width: thin; scrollbar-color: #c3cddb transparent; }
    #header::-webkit-scrollbar { width: 6px; }
    #header::-webkit-scrollbar-track { background: transparent; }
    #header::-webkit-scrollbar-thumb { background: #c3cddb; border-radius: 3px; }
    body.dark-mode #header { scrollbar-color: #2a3242 transparent; }
    body.dark-mode #header::-webkit-scrollbar-thumb { background: #2a3242; }

    /* status block at bottom of menu */
    #header .d-flex.flex-column { min-height: 100%; }
    #header { padding-bottom: 16px !important; }
    #header .menu-status {
      margin-top: auto;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      margin-bottom: 12px;
      background: #eef6ff;
      border: 1px solid #d7e9f8;
      border-radius: 12px;
    }
    #header .menu-status .status-dot {
      flex: 0 0 10px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #22c55e;
      box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
      animation: statusPulse 2s ease-in-out infinite;
    }
    @keyframes statusPulse {
      0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
      50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
    }
    #header .menu-status .status-text {
      display: flex;
      flex-direction: column;
      line-height: 1.35;
    }
    #header .menu-status .status-label {
      font-family: "Poppins", sans-serif;
      font-size: 11.5px;
      font-weight: 600;
      color: #149ddd;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    #header .menu-status .status-date {
      font-size: 13px;
      font-weight: 600;
      color: #182033;
    }
    body.dark-mode #header .menu-status {
      background: #16202e;
      border: 1px solid #22304a;
    }
    body.dark-mode #header .menu-status .status-label { color: #58b3f0; }
    body.dark-mode #header .menu-status .status-date { color: #f0f2f7; }

    /* base */
    body.dark-mode {
      background: #11151c;
      color: #c9cedb;
    }
    body.dark-mode #main,
    body.dark-mode .resume,
    body.dark-mode .skills,
    body.dark-mode .about,
    body.dark-mode .portfolio,
    body.dark-mode .services,
    body.dark-mode .testimonials,
    body.dark-mode .contact,
    body.dark-mode .facts,
    body.dark-mode .awards,
    body.dark-mode .section-bg {
      background: #11151c;
      color: #c9cedb;
    }

    /* headings */
    body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
    body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
      color: #f0f2f7;
    }

    /* cards / boxes */
    body.dark-mode .resume-item,
    body.dark-mode .portfolio-wrap,
    body.dark-mode .portfolio-item,
    body.dark-mode .portfolio-details,
    body.dark-mode .count-box,
    body.dark-mode .icon-box,
    body.dark-mode .card,
    body.dark-mode .skill-box,
    body.dark-mode .timeline {
      background: #1c2330;
      color: #c9cedb;
      border-color: #2a3242;
    }

    /* section title accent line */
    body.dark-mode .section-title,
    body.dark-mode .resume-title {
      color: #f0f2f7;
    }

    /* resume */
    body.dark-mode .resume .resume-item {
      border-color: #2a3242;
    }
    body.dark-mode .resume-item h4 { color: #7fb9e8; }
    body.dark-mode .resume-item h5 {
      background: rgba(20,157,221,0.18);
      color: #a9d4f5;
    }
    body.dark-mode .resume-item::before {
      background: #1c2330;
      border-color: #149ddd;
    }

    /* facts numbers / text */
    body.dark-mode .facts .count-box span { color: #f0f2f7; }
    body.dark-mode .facts .count-box p,
    body.dark-mode .facts .count-box a { color: #a9c4e8; }
    body.dark-mode .facts .count-box a:hover { color: #149ddd; }

    /* progress bars */
    body.dark-mode .progress-bar-wrap,
    body.dark-mode .progress { background: #2a3242; }

    /* ======= Skills: modern dimensional cards ======= */
    .skills .progress {
      display: block;
      height: auto;
      background: #ffffff;
      border: 1px solid #e3e8f0;
      border-radius: 14px;
      padding: 16px 18px 18px;
      margin: 0 0 16px 0;
      box-shadow: 0 4px 14px rgba(20, 40, 80, 0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .skills .progress:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 26px rgba(20, 40, 80, 0.16);
      border-color: #149ddd;
    }
    .skills .progress .skill {
      margin: 0 0 10px 0;
      color: #182033;
    }
    .skills .progress .skill .val {
      float: right;
      color: #149ddd;
      font-weight: 700;
      background: rgba(20, 157, 221, 0.12);
      padding: 2px 10px;
      border-radius: 20px;
      font-size: 12px;
      line-height: 18px;
    }
    .skills .progress-bar-wrap {
      background: #e8eef7;
      height: 10px;
      border-radius: 50px;
      overflow: hidden;
    }
    .skills .progress-bar {
      height: 10px;
      border-radius: 50px;
      background: linear-gradient(90deg, #37b3ed, #149ddd);
    }
    .skills .row.skills-content > [class*="col-"] {
      padding-left: 10px;
      padding-right: 10px;
    }
    .skills .row.skills-content {
      margin-left: -10px;
      margin-right: -10px;
    }
    body.dark-mode .skills .progress {
      background: #1c2330;
      border: 1px solid #2a3242;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    }
    body.dark-mode .skills .progress:hover {
      box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
      border-color: #149ddd;
    }
    body.dark-mode .skills .progress .skill { color: #f0f2f7; }
    body.dark-mode .skills .progress .skill .val {
      color: #a9d4f5;
      background: rgba(20, 157, 221, 0.2);
    }
    body.dark-mode .skills .progress-bar-wrap { background: #2a3242; }

    /* ======= Skills: dev-icons tile grid ======= */
    .skills .dev-icons {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin: 8px 0 26px 0;
      padding: 0;
      list-style: none;
    }
    .skills .dev-icons .list-inline-item {
      margin: 0;
    }
    .skills .dev-icons .list-inline-item img {
      width: 46px;
      height: 46px;
      object-fit: contain;
      padding: 9px;
      background: #ffffff;
      border: 1px solid #e3e8f0;
      border-radius: 12px;
      box-shadow: 0 3px 10px rgba(20, 40, 80, 0.08);
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }
    .skills .dev-icons .list-inline-item img:hover {
      transform: translateY(-4px) scale(1.06);
      box-shadow: 0 10px 22px rgba(20, 40, 80, 0.18);
      border-color: #149ddd;
    }
    body.dark-mode .skills .dev-icons .list-inline-item img {
      background: #1c2330;
      border: 1px solid #2a3242;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    }
    body.dark-mode .skills .dev-icons .list-inline-item img:hover {
      box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
      border-color: #149ddd;
    }

    /* ======= Skills: subheading cards (computer skills / other) ======= */
    .skills .subheading {
      font-size: 19px;
      font-weight: 700;
      font-family: "Poppins", sans-serif;
      color: #182033;
      margin: 6px 0 16px 0;
      padding-left: 14px;
      border-left: 4px solid #149ddd;
      line-height: 1.3;
    }
    body.dark-mode .skills .subheading { color: #f0f2f7; }

    .skills .skills-mini-sub {
      font-size: 15px;
      margin: 20px 0 10px 0;
      padding-left: 14px;
      border-left: 4px solid #149ddd;
    }
    body.dark-mode .skills .skills-mini-sub { color: #f0f2f7; }

    .skills .fa-ul {
      background: #ffffff;
      border: 1px solid #e3e8f0;
      border-radius: 14px;
      padding: 10px 14px;
      list-style: none;
      margin-left: 0;
      box-shadow: 0 4px 14px rgba(20, 40, 80, 0.08);
      overflow: hidden;
    }
    .skills .fa-ul > li {
      position: relative;
      padding: 10px 12px 10px 34px;
      margin: 0;
      border-bottom: 1px dashed #e6ebf3;
      transition: background 0.2s ease, transform 0.2s ease;
      color: #3a455c;
      line-height: 1.5;
    }
    .skills .fa-ul > li:last-child { border-bottom: none; }
    .skills .fa-ul > li:hover {
      background: #f2f8fe;
      transform: translateX(4px);
    }
    .skills .fa-ul > li::before {
      content: "\2713";
      position: absolute;
      left: 10px;
      top: 9px;
      width: 18px;
      height: 18px;
      line-height: 18px;
      text-align: center;
      font-size: 11px;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      border-radius: 50%;
    }
    .skills .fa-ul > li .fa-li { display: none; }
    body.dark-mode .skills .fa-ul {
      background: #1c2330;
      border: 1px solid #2a3242;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    }
    body.dark-mode .skills .fa-ul > li {
      color: #c9cedb;
      border-bottom-color: #2a3242;
    }
    body.dark-mode .skills .fa-ul > li:hover { background: #222b3a; }

    /* ======= Resume: modern dimensioned cards ======= */
    .resume .resume-item {
      display: block;
      position: relative;
      background: #ffffff;
      border: 1px solid #e3e8f0;
      border-left: 4px solid #149ddd;
      border-radius: 14px;
      padding: 18px 20px;
      margin: 0 0 16px 0;
      box-shadow: 0 4px 14px rgba(20, 40, 80, 0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .resume .resume-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 26px rgba(20, 40, 80, 0.16);
    }
    .resume .resume-item::before { display: none; }
    .resume .resume-item h4 { color: #182033; }
    .resume .resume-item h5 {
      background: rgba(20, 157, 221, 0.12);
      color: #0f6fa3;
      border-radius: 20px;
    }
    .resume .resume-item p,
    .resume .resume-item ul li { color: #3a455c; }
    body.dark-mode .resume .resume-item {
      background: #1c2330;
      border-color: #2a3242;
      border-left-color: #149ddd;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    }
    body.dark-mode .resume .resume-item:hover {
      box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
    }
    body.dark-mode .resume .resume-item h4 { color: #7fb9e8; }
    body.dark-mode .resume .resume-item h5 {
      background: rgba(20, 157, 221, 0.18);
      color: #a9d4f5;
    }
    body.dark-mode .resume .resume-item p,
    body.dark-mode .resume .resume-item ul li { color: #c9cedb; }

    /* portfolio filters */
    .portfolio #portfolio-flters li {
      padding: 10px 15px;
      margin-bottom: 0;
      line-height: 1.4;
    }
    body.dark-mode div#portfolio-flters,
    body.dark-mode .portfolio #portfolio-flters {
      background: #1c2330;
      border-radius: 50px;
      padding: 2px 15px;
    }
    body.dark-mode #portfolio-flters li {
      background: transparent;
      color: #ffffff;
      border: none;
      box-shadow: none;
    }
    body.dark-mode #portfolio-flters li:hover,
    body.dark-mode #portfolio-flters li.filter-active {
      background: transparent;
      color: #149ddd;
      border-color: transparent;
      box-shadow: none;
      transform: none;
    }
    body.dark-mode .portfolio .portfolio-wrap::before {
      background: rgba(5,10,18,0.6);
    }

    /* services icons */
    body.dark-mode .services .icon-box:hover .icon {
      background: #1c2330;
      border-color: #149ddd;
    }
    body.dark-mode .services .icon-box:hover .icon i { color: #149ddd; }
    body.dark-mode .services .title a { color: #f0f2f7; }
    body.dark-mode .services .title a:hover { color: #149ddd; }

    /* testimonials */
    body.dark-mode .testimonials .testimonial-item h3 { color: #f0f2f7; }
    body.dark-mode .testimonials .testimonial-item h4 { color: #8b93a7; }
    body.dark-mode .testimonials .testimonial-item p {
      background: #1c2330;
      color: #c9cedb;
      box-shadow: 0 2px 15px rgba(0,0,0,0.5);
    }
    body.dark-mode .testimonials .testimonial-item p::after { border-top-color: #1c2330; }
    body.dark-mode .swiper-pagination-bullet { background-color: #1c2330; }

    /* testimonials light mode (แบบเดียวกับ dark mode) */
    .testimonials-slider {
      padding-top: 14px;
      padding-bottom: 10px;
      margin-top: -14px;
      margin-bottom: -10px;
    }
    .testimonials .testimonial-item {
      background: #ffffff;
      padding: 34px 30px;
      border-radius: 18px;
      border: 1px solid #e3e8f0;
      box-shadow: 0 10px 30px rgba(20, 40, 80, 0.10);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .testimonials .swiper-slide .testimonial-item { height: 100%; }
    .testimonials .testimonial-item:hover {
      transform: translateY(-4px);
      border-color: #37b3ed;
      box-shadow: 0 0 0 3px rgba(55, 179, 237, 0.30), 0 16px 40px rgba(20, 40, 80, 0.16);
    }
    .testimonials .testimonial-item:active {
      transform: scale(0.98);
      border-color: #37b3ed;
      box-shadow: 0 0 0 3px rgba(55, 179, 237, 0.35), 0 10px 30px rgba(20, 40, 80, 0.12);
    }
    .testimonials .testimonial-item h3 { color: #12203a; }
    .testimonials .testimonial-item h4 { color: #6b7689; }
    .testimonials .testimonial-item p {
      background: #f2f6fb;
      color: #3a455c;
      box-shadow: none;
      border: 1px solid #e6ecf5;
    }
    .testimonials .testimonial-item p::after { border-top-color: #f2f6fb; }
    .testimonials .testimonial-img {
      border: 3px solid #e3e8f0;
      box-shadow: 0 0 0 4px rgba(20,157,221,0.18), 0 4px 12px rgba(20,40,80,0.15);
      filter: none;
    }
    .swiper-pagination-bullet { background-color: #dbe4f0; }

    /* contact info boxes */
    body.dark-mode .contact .info { background: #1c2330; }
    body.dark-mode .contact .info h4 { color: #f0f2f7; }
    body.dark-mode .contact .info p,
    body.dark-mode .contact .info span { color: #c9cedb; }

    /* forms */
    body.dark-mode .form-control,
    body.dark-mode input,
    body.dark-mode textarea,
    body.dark-mode select {
      background: #1c2330;
      color: #c9cedb;
      border-color: #2a3242;
    }
    body.dark-mode .form-control:focus,
    body.dark-mode input:focus,
    body.dark-mode textarea:focus {
      background: #1c2330;
      color: #f0f2f7;
      border-color: #149ddd;
    }
    body.dark-mode .form-control::placeholder { color: #8b93a7; }

    /* generic text */
    body.dark-mode p,
    body.dark-mode li,
    body.dark-mode span,
    body.dark-mode .resume-item p,
    body.dark-mode .resume-item li,
    body.dark-mode .descrition,
    body.dark-mode .description {
      color: #c9cedb;
    }
    body.dark-mode .muted,
    body.dark-mode .text-muted,
    body.dark-mode .small { color: #8b93a7 !important; }
    body.dark-mode a { color: #58b3f0; }
    body.dark-mode a:hover { color: #7fc3f5; }
    body.dark-mode .btn-outline { border-color: #2a3242; color: #c9cedb; }
    body.dark-mode hr, body.dark-mode .border { border-color: #2a3242; }

    /* testimonial / inspiration images - keep perfectly round */
    body.dark-mode .testimonials .testimonial-img,
    .testimonials .testimonial-item .testimonial-img {
      border-radius: 50%;
      object-fit: cover;
      aspect-ratio: 1 / 1;
      width: 90px;
      height: 90px;
    }
    body.dark-mode .testimonials .testimonial-img {
      border: 3px solid #2a3242;
      box-shadow: 0 0 0 4px rgba(20,157,221,0.25), 0 4px 12px rgba(0,0,0,0.5);
      filter: brightness(1.05) saturate(0.95);
    }
    body.dark-mode .testimonials .testimonial-item {
      background: #1c2330;
      padding: 34px 30px;
      border-radius: 18px;
      border: 1px solid #2a3242;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    body.dark-mode .testimonials .testimonial-item:hover {
      transform: translateY(-4px);
      border-color: #37b3ed;
      box-shadow: 0 0 0 3px rgba(55, 179, 237, 0.30), 0 16px 40px rgba(0, 0, 0, 0.6);
    }
    body.dark-mode .testimonials .testimonial-item:active {
      transform: scale(0.98);
      border-color: #37b3ed;
      box-shadow: 0 0 0 3px rgba(55, 179, 237, 0.35), 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    body.dark-mode .testimonials .testimonial-item p {
      border: 1px solid #262d3d;
    }
    body.dark-mode .testimonials .testimonial-item p::after { border-top-color: #1c2330; }

/* ---- block 3 ---- */
    .services .icon-box {
      background: #ffffff;
      border: 1px solid #e3e8f0;
      border-radius: 12px;
      margin: 6px 8px 20px 8px;
      padding: 26px 26px 24px 26px;
      box-shadow: 0 4px 14px rgba(20, 40, 80, 0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
      overflow: hidden;
      position: relative;
      box-sizing: border-box;
      min-height: 240px;
    }
    .services .icon-box .title,
    .services .icon-box .description {
      margin-left: 0;
      margin-right: 0;
      padding-left: 0;
      padding-right: 0;
    }
    .services .icon-box .description { line-height: 1.8; }
    #awards .row {
      display: grid !important;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 20px;
      margin: 0 !important;
    }
    #awards .row > [class*="col-"] {
      padding-left: 0;
      padding-right: 0;
      width: auto;
      max-width: none;
      flex: none;
    }
    /* padding ของตัวการ์ดต้องชนะการ reset ของ grid */
    #awards .row > .icon-box {
      margin: 0 !important;
      padding: 26px 26px 24px 26px !important;
    }
    /* การ์ดใบสุดท้ายที่เหลือครึ่งแถว ยืดเต็มแถว */
    #awards .row > [class*="col-"]:nth-child(odd):last-child {
      grid-column: 1 / -1;
    }
    .services .icon-box:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(20, 40, 80, 0.16);
      border-color: #149ddd;
    }
    .services .icon-box .icon {
      float: none;
      margin-bottom: 16px;
      background: #eaf6ff;
      border: 1px solid #bfe0f7;
      width: 56px;
      height: 56px;
    }
    .services .icon-box .title,
    .services .icon-box .title a {
      margin-left: 0;
      color: #182033 !important;
    }
    .services .icon-box .description {
      margin-left: 0;
      color: #5a6478 !important;
    }

    body.dark-mode .services .icon-box {
      background: #1c2330;
      border: 1px solid #2a3242;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    }
    body.dark-mode .services .icon-box:hover {
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
      border-color: #149ddd;
    }
    body.dark-mode .services .icon-box .icon {
      background: rgba(20, 157, 221, 0.18);
      border-color: #2f4d6a;
    }
    body.dark-mode .services .icon-box .title,
    body.dark-mode .services .icon-box .title a {
      color: #ffffff !important;
    }

    /* ======= Resume: spacing from top/bottom edges ======= */
    .resume .resume-item:first-of-type {
      margin-top: 18px;
    }
    .resume .resume-item:last-of-type {
      padding-bottom: 18px;
    }

body.dark-mode .swiper-wrapper { background: #1c2330 !important; }
    body.dark-mode .timeline .timeline-image a {
      background: #149ddd;
      color: #ffffff;
    }
    body.dark-mode .timeline .timeline-image a:hover {
      background: #37b3ed;
    }

/* ---- block 4 ---- */
    .about-cards {
      display: flex;
      flex-wrap: wrap;
      gap: 24px;
      align-items: stretch;
      margin-top: 6px;
    }
    /* ให้ About ห่างจาก HOME */
    .about { padding-top: 120px !important; }
    .about-cards .about-photo-col { flex: 0 0 320px; max-width: 320px; }
    .about-cards .about-info-col { flex: 1 1 480px; min-width: 300px; }
    .about-card {
      background: #ffffff;
      border: 1px solid #e3e8f0;
      border-radius: 16px;
      padding: 20px;
      box-shadow: 0 6px 20px rgba(20, 40, 80, 0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
      height: 100%;
    }
    .about-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 14px 30px rgba(20, 40, 80, 0.16);
      border-color: #149ddd;
    }
    .about-photo-card {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      overflow: hidden;
    }
    .about-photo-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .about-photo-card img {
      width: 100%;
      border-radius: 12px;
      object-fit: cover;
      box-shadow: 0 6px 18px rgba(20, 40, 80, 0.18);
      border: 3px solid rgba(20, 157, 221, 0.18);
    }
    .about-info-card h3 {
      font-family: "Poppins", sans-serif;
      font-weight: 700;
      font-size: 24px;
      color: #182033;
      margin: 0 0 4px 0;
    }
    .about-info-card .about-tagline {
      font-style: italic;
      color: #149ddd;
      font-size: 15px;
      font-weight: 600;
      margin: 0 0 14px 0;
      padding-left: 14px;
      border-left: 4px solid #149ddd;
    }
    .about-info-card .about-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .about-info-card .about-list > li {
      position: relative;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 11px 12px;
      margin: 0 0 8px 0;
      background: #f5f9ff;
      border: 1px solid #e9eef7;
      border-radius: 12px;
      color: #3a455c;
      line-height: 1.5;
      transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    }
    .about-info-card .about-list > li:hover {
      background: #eef6ff;
      transform: translateX(4px);
      border-color: #149ddd;
    }
    .about-info-card .about-list > li i {
      font-size: 16px;
      color: #fff;
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      border-radius: 50%;
      width: 26px;
      height: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 26px;
    }
    .about-info-card .about-list > li strong {
      color: #182033;
      font-weight: 700;
      font-family: "Poppins", sans-serif;
      white-space: nowrap;
    }
    .about-info-card .about-list > li span { color: #3a455c; }
    .about-info-card .about-list > li a { color: #149ddd; text-decoration: none; }
    .about-info-card .about-list > li a:hover { color: #0f6fa3; }
    .about-info-card .about-desc {
      margin: 14px 0 0 0;
      padding: 14px 16px;
      background: #f5f9ff;
      border: 1px solid #e9eef7;
      border-radius: 12px;
      color: #3a455c;
      line-height: 1.7;
      font-size: 15px;
      border-left: 4px solid #149ddd;
    }
    .about-download { margin-top: 26px; }
    .about-download-btn {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 12px 26px;
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      color: #fff;
      border: none;
      border-radius: 50px;
      font-family: "Poppins", sans-serif;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 6px 18px rgba(20, 157, 221, 0.35);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .about-download-btn i { font-size: 18px; }
    .about-download-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(20, 157, 221, 0.45);
    }
    .about-download-btn:active { transform: translateY(0); }

    /* portfolio - modern filter pills */
    .portfolio #portfolio-flters {
      background: #ffffff;
      border: 1px solid #e3e8f0;
      box-shadow: 0 4px 14px rgba(20, 40, 80, 0.08);
      display: inline-flex;
      gap: 4px;
      padding: 6px;
    }
    .portfolio #portfolio-flters li {
      background: transparent;
      color: #3a455c;
      border-radius: 50px;
      padding: 9px 18px;
      transition: all 0.25s ease;
    }
    .portfolio #portfolio-flters li:hover,
    .portfolio #portfolio-flters li.filter-active {
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      color: #ffffff;
      box-shadow: 0 6px 14px rgba(20, 157, 221, 0.35);
      transform: none;
    }

    /* portfolio - modern cards */
    .portfolio .portfolio-container {
      background: transparent;
      padding: 20px;
    }
    .portfolio .portfolio-container .portfolio-item {
      box-sizing: border-box;
      background: transparent;
      padding: 0 10px 20px;
      width: calc(100% - 40px);
    }
    @media (min-width: 577px) {
      .portfolio .portfolio-container .portfolio-item { width: calc(50% - 20px); }
    }
    @media (min-width: 769px) {
      .portfolio .portfolio-container .portfolio-item { width: calc(33.33333333% - 13.33333333px); }
    }
    .portfolio .portfolio-wrap {
      border-radius: 16px;
      border: 1px solid #e3e8f0;
      background: #ffffff;
      box-shadow: 0 6px 20px rgba(20, 40, 80, 0.08);
      aspect-ratio: 4 / 3;
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .portfolio .portfolio-wrap:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 34px rgba(20, 40, 80, 0.18);
      border-color: #149ddd;
    }
    .portfolio .portfolio-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.5s ease;
    }
    .portfolio .portfolio-wrap:hover img { transform: scale(1.07); }
    .portfolio .portfolio-wrap::before {
      background: linear-gradient(180deg, rgba(10, 16, 26, 0) 30%, rgba(10, 16, 26, 0.82) 100%);
      opacity: 0;
    }
    .portfolio .portfolio-wrap:hover::before { opacity: 1; }
    .portfolio .portfolio-info {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 4;
      display: grid;
      grid-template-columns: 1fr auto;
      grid-template-rows: auto auto;
      align-items: center;
      column-gap: 12px;
      padding: 16px 18px 24px;
      transform: translateY(10px);
      opacity: 0;
      transition: transform 0.35s ease, opacity 0.35s ease;
    }
    .portfolio .portfolio-wrap:hover .portfolio-info {
      transform: translateY(0);
      opacity: 1;
    }
    .portfolio .portfolio-info h4 {
      grid-column: 1;
      grid-row: 1;
      margin: 0 0 2px 0;
      font-family: "Poppins", sans-serif;
      font-size: 16px;
      font-weight: 700;
      color: #ffffff;
    }
    .portfolio .portfolio-info p {
      grid-column: 1;
      grid-row: 2;
      margin: 0;
      font-size: 13px;
      color: #bcd2e8;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .portfolio .portfolio-wrap .portfolio-links {
      position: static;
      grid-column: 2;
      grid-row: 1 / span 2;
      align-self: center;
      justify-content: center;
      gap: 8px;
      margin: 0;
      background: transparent;
      bottom: auto;
      left: auto;
      right: auto;
    }
    .portfolio .portfolio-wrap .portfolio-links a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.95);
      color: #149ddd;
      font-size: 18px;
      text-decoration: none;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    }
    .portfolio .portfolio-wrap .portfolio-links a:hover {
      transform: translateY(-2px);
      background: #149ddd;
      color: #ffffff;
    }
    .portfolio .portfolio-wrap .portfolio-links a + a { border-left: none; }

    @media (max-width: 575px) {
      .portfolio .portfolio-wrap { aspect-ratio: 1 / 1; }
    }

    /* contact - modern cards */
    .contact .contact-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 6px;
    }
    .contact .contact-card {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 20px;
      background: #ffffff;
      border: 1px solid #e3e8f0;
      border-radius: 16px;
      box-shadow: 0 6px 20px rgba(20, 40, 80, 0.08);
      text-decoration: none;
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .contact .contact-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 14px 30px rgba(20, 40, 80, 0.16);
      border-color: #149ddd;
    }
    .contact .contact-icon {
      flex: 0 0 54px;
      width: 54px !important;
      height: 54px !important;
      max-width: 54px;
      min-width: 54px;
      aspect-ratio: 1 / 1;
      border-radius: 9999px !important;
      display: flex;
      align-items: center;
      justify-content: center;
      align-self: center;
      font-size: 24px;
      color: #fff;
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      box-shadow: 0 6px 16px rgba(20, 157, 221, 0.32);
    }
    .contact .contact-icon i {
      display: inline-flex;
      width: 24px;
      height: 24px;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }
    .contact .contact-card:nth-child(1) .contact-icon { background: linear-gradient(135deg, #37b3ed, #149ddd); }
    .contact .contact-card:nth-child(2) .contact-icon { background: linear-gradient(135deg, #34d399, #0ea5e9); }
    .contact .contact-card:nth-child(3) .contact-icon { background: linear-gradient(135deg, #a78bfa, #6366f1); }
    .contact .contact-body h4 {
      font-family: "Poppins", sans-serif;
      font-size: 16px;
      font-weight: 700;
      color: #182033;
      margin: 0 0 2px 0;
    }
    .contact .contact-body p {
      font-size: 15px;
      font-weight: 600;
      color: #149ddd;
      margin: 0 0 2px 0;
      word-break: break-word;
    }
    .contact .contact-body span {
      font-size: 13px;
      color: #8b93a7;
    }

    .contact .contact-cta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-top: 24px;
      padding: 22px 26px;
      border-radius: 16px;
      border: 1px solid #e3e8f0;
      background: #f5f9ff;
    }
    .contact .contact-cta-text h3 {
      margin: 0 0 4px 0;
      font-family: "Poppins", sans-serif;
      font-size: 20px;
      font-weight: 700;
      color: #182033;
    }
    .contact .contact-cta-text p { margin: 0; color: #3a455c; font-size: 14px; }
    .contact .contact-cta-actions { display: flex; gap: 10px; }
    .contact .contact-social {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      aspect-ratio: 1 / 1;
      border-radius: 9999px !important;
      font-size: 20px;
      color: #fff;
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      text-decoration: none;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .contact .contact-social:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 18px rgba(20, 157, 221, 0.35);
    }
    .contact .contact-social .contact-line { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }
    .contact .contact-cta-btn {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 12px 24px;
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      color: #fff;
      border: none;
      border-radius: 50px;
      font-family: "Poppins", sans-serif;
      font-size: 15px;
      font-weight: 600;
      text-decoration: none;
      box-shadow: 0 6px 18px rgba(20, 157, 221, 0.35);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .contact .contact-cta-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(20, 157, 221, 0.45);
    }

    @media (max-width: 992px) {
      .contact .contact-cards { grid-template-columns: 1fr; }
      .contact .contact-cta { justify-content: center; text-align: center; }
    }

/* ======= Footer (premium) ======= */
    #footer {
      position: static !important;
      left: auto !important;
      bottom: auto !important;
      width: 100% !important;
      z-index: 1 !important;
      padding: 0 !important;
      margin-top: 40px;
      background: linear-gradient(120deg, #0b1c33 0%, #123a5c 60%, #149ddd 145%);
      color: #dcebf9;
      font-size: 14px;
    }
    #footer .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 24px 26px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 20px;
    }
    #footer .footer-brand { display: flex; align-items: center; gap: 13px; }
    #footer .footer-avatar {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }
    #footer .footer-id { display: flex; flex-direction: column; line-height: 1.4; }
    #footer .footer-name { font-family: "Poppins", sans-serif; font-weight: 700; color: #ffffff; font-size: 15px; }
    #footer .footer-role { font-size: 12px; color: #9fc6e8; }
    #footer .footer-social { display: flex; justify-content: center; gap: 12px; }
    #footer .footer-social a { display: inline-flex; transition: transform 0.25s ease; }
    #footer .footer-social a:hover { transform: translateY(-3px); }
    #footer .footer-social img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
    #footer .footer-copy { display: flex; align-items: center; gap: 10px; color: #cfe3f5; font-size: 12.5px; flex-wrap: wrap; justify-content: flex-end; }
    #footer .footer-copy .counter-img { display: inline-block; background: #ffffff; padding: 2px 6px; border-radius: 6px; height: 24px; width: auto; }
    #footer a { color: inherit; }
    @media (max-width: 1199px) and (min-width: 768px) {
      #footer .footer-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
      }
      #footer .footer-brand { grid-column: 1 / -1; }
      #footer .footer-copy { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
    }
    @media (max-width: 767px) {
      #footer .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
      #footer .footer-brand { grid-column: auto; flex-direction: column; text-align: center; }
      #footer .footer-copy { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
    }
    body.dark-mode #footer { background: linear-gradient(120deg, #070c14 0%, #0d1b2c 60%, #0f3050 145%); }

    body.dark-mode .about-card {
      background: #1c2330;
      border: 1px solid #2a3242;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    }
    body.dark-mode .about-card:hover {
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
      border-color: #149ddd;
    }
    body.dark-mode .about-photo-card img { border: 3px solid rgba(20, 157, 221, 0.25); }
    body.dark-mode .about-info-card h3 { color: #f0f2f7; }
    body.dark-mode .about-info-card .about-list > li {
      background: #222b3a;
      border: 1px solid #2a3242;
      color: #c9cedb;
    }
    body.dark-mode .about-info-card .about-list > li:hover { background: #283348; border-color: #149ddd; }
    body.dark-mode .about-info-card .about-list > li strong { color: #f0f2f7; }
    body.dark-mode .about-info-card .about-list > li span { color: #c9cedb; }
    body.dark-mode .about-info-card .about-desc {
      background: #222b3a;
      border: 1px solid #2a3242;
      color: #c9cedb;
    }

    /* contact - dark mode */
    body.dark-mode .contact .contact-card {
      background: #1c2330;
      border: 1px solid #2a3242;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    }
    body.dark-mode .contact .contact-card:hover {
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
      border-color: #149ddd;
    }
    body.dark-mode .contact .contact-body h4 { color: #f0f2f7; }
    body.dark-mode .contact .contact-body span { color: #8b93a7; }
    body.dark-mode .contact .contact-cta {
      background: #1c2330;
      border: 1px solid #2a3242;
    }
    body.dark-mode .contact .contact-cta-text h3 { color: #f0f2f7; }
    body.dark-mode .contact .contact-cta-text p { color: #c9cedb; }

    /* portfolio - dark mode */
    body.dark-mode .portfolio #portfolio-flters {
      background: #1c2330;
      border: 1px solid #2a3242;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    }
    body.dark-mode .portfolio #portfolio-flters li {
      background: transparent;
      color: #c9cedb;
    }
    body.dark-mode .portfolio #portfolio-flters li:hover,
    body.dark-mode .portfolio #portfolio-flters li.filter-active {
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      color: #ffffff;
      box-shadow: 0 6px 14px rgba(20, 157, 221, 0.35);
    }
    body.dark-mode .portfolio .portfolio-container { background: transparent; }
    body.dark-mode .portfolio .portfolio-item { background: transparent; }
    body.dark-mode .portfolio .portfolio-wrap {
      background: #1c2330;
      border: 1px solid #2a3242;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    }
    body.dark-mode .portfolio .portfolio-wrap:hover {
      box-shadow: 0 16px 34px rgba(0, 0, 0, 0.6);
      border-color: #149ddd;
    }
    body.dark-mode .portfolio .portfolio-info h4 { color: #ffffff; }
    body.dark-mode .portfolio .portfolio-info p { color: #bcd2e8; }
    body.dark-mode .portfolio .portfolio-wrap .portfolio-links a {
      background: rgba(255, 255, 255, 0.95);
      color: #149ddd;
    }
    body.dark-mode .portfolio .portfolio-wrap .portfolio-links a:hover {
      background: #149ddd;
      color: #ffffff;
    }
    body.dark-mode .portfolio .portfolio-wrap .portfolio-links a { width: 38px; height: 38px; border-radius: 50%; }

/* ---- block 5 ---- */
    .page-loader {
      position: fixed;
      inset: 0;
      z-index: 99999;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(10, 14, 20, 0.62);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      opacity: 1;
      visibility: visible;
      transition: opacity 0.4s ease, visibility 0.4s ease;
      font-family: "Poppins", sans-serif;
    }
    .page-loader.page-loader-hide {
      opacity: 0;
      visibility: hidden;
    }
    .page-loader-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
      padding: 36px 50px;
      background: #ffffff;
      border-radius: 22px;
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
      animation: pageLoaderPop 0.35s ease;
    }
    @keyframes pageLoaderPop {
      from { transform: scale(0.85); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    .page-loader-spinner {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      border: 4px solid rgba(20, 157, 221, 0.18);
      border-top-color: #149ddd;
      animation: pageLoaderSpin 0.9s linear infinite;
    }
    @keyframes pageLoaderSpin { to { transform: rotate(360deg); } }
    .page-loader-name {
      font-size: 17px;
      font-weight: 700;
      color: #182033;
      letter-spacing: 0.3px;
    }
    .page-loader-text {
      font-size: 13px;
      font-weight: 500;
      color: #6b7688;
      letter-spacing: 0.6px;
    }
    body.dark-mode .page-loader { background: rgba(0, 0, 0, 0.72); }
    body.dark-mode .page-loader-box { background: #1c2330; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8); }
    body.dark-mode .page-loader-name { color: #f0f2f7; }
    body.dark-mode .page-loader-text { color: #8b93a7; }

/* ---- block 6 ---- */
    #facts .count-box {
      position: relative;
      background: #ffffff;
      border: 1px solid #e3e8f0;
      border-radius: 18px;
      padding: 26px 20px 24px;
      text-align: center;
      height: 100%;
      box-shadow: 0 6px 20px rgba(20, 40, 80, 0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
      overflow: hidden;
    }
    #facts .count-box::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #37b3ed, #149ddd);
    }
    #facts .count-box:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 30px rgba(20, 40, 80, 0.16);
      border-color: #149ddd;
    }
    #facts .count-box .stat-icon {
      width: 62px;
      height: 62px;
      margin: 0 auto 16px auto;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      box-shadow: 0 8px 18px rgba(20, 157, 221, 0.35);
    }
    #facts .count-box .stat-icon i {
      float: none;
      font-size: 26px;
      color: #ffffff;
      line-height: 1;
    }
    #facts .count-box span.purecounter,
    #facts .count-box span.stat-value {
      float: none;
      margin: 0;
      font-size: 44px;
      line-height: 1;
      font-weight: 700;
      color: #182033;
      font-family: "Poppins", sans-serif;
      display: block;
    }
    #facts .count-box .stat-label {
      margin: 12px 0 0 0;
      padding: 0;
      font-family: "Poppins", sans-serif;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.5;
      color: #3a455c;
    }
    body.dark-mode #facts .count-box {
      background: #1c2330;
      border-color: #2a3242;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    }
    body.dark-mode #facts .count-box:hover {
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
      border-color: #149ddd;
    }
    body.dark-mode #facts .count-box span.purecounter,
    body.dark-mode #facts .count-box span.stat-value {
      color: #f0f2f7;
    }
    body.dark-mode #facts .count-box .stat-label {
      color: #c9cedb;
    }

/* ---- block 7 ---- */
    /* ======= Hero (HOME) premium redesign ======= */
    #hero {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(1100px 560px at 85% -10%, rgba(55, 179, 237, 0.28), transparent 60%),
        radial-gradient(900px 520px at -10% 110%, rgba(99, 102, 241, 0.22), transparent 60%),
        linear-gradient(160deg, #0c1728 0%, #10141f 55%, #0b0f18 100%) !important;
      overflow: hidden;
    }
    html, body { overflow-x: hidden; }
    /* hero + footer อยู่ในพื้นที่เนื้อหา (หักเมนูซ้าย 300px เฉพาะจอใหญ่) */
    body > #hero {
      margin-left: 300px;
      width: calc(100% - 300px);
    }
    body > #footer {
      margin-left: 300px !important;
      width: calc(100% - 300px) !important;
    }
    @media (max-width: 1199px) {
      body > #hero,
      body > #footer {
        margin-left: 0 !important;
        width: 100% !important;
      }
    }
    #hero:before { content: none; }
    /* รูปพื้นหลังแบบ macOS — เบลอลางๆ ใต้ชั้น glass / ชัดเมื่อโดนนอกการ์ด */
    #hero .hero-photo {
      position: absolute;
      inset: -40px;
      z-index: 0;
      background: url('https://sittiporn-suks.com/iPortfolio/img/bg/bg.jpg') center/cover no-repeat;
      filter: blur(18px) saturate(1.2) brightness(0.7);
      transform: scale(1.1);
      transition: filter 0.7s ease, transform 1s ease;
      will-change: filter, transform;
    }
    /* โดนนอกการ์ด → ภาพชัดขึ้น */
    #hero.photo-clear .hero-photo {
      filter: blur(4px) saturate(1.15) brightness(0.85);
      transform: scale(1.04);
    }
    /* เมาส์อยู่บนการ์ด → เบลอลึก */
    #hero:has(.hero-container:hover) .hero-photo,
    #hero.photo-touch .hero-photo {
      filter: blur(26px) saturate(1.3) brightness(0.5);
      transform: scale(1.18);
    }
    .hero-bg-glow {
      position: absolute;
      width: 420px;
      height: 420px;
      border-radius: 50%;
      filter: blur(90px);
      opacity: 0.28;
      pointer-events: none;
      z-index: 1;
      animation: heroGlowFloat 9s ease-in-out infinite alternate;
    }
    .hero-glow-1 { top: -120px; right: -80px; background: #149ddd; }
    .hero-glow-2 { bottom: -140px; left: -100px; background: #6366f1; animation-delay: 3s; }
    @keyframes heroGlowFloat {
      from { transform: translate(0, 0) scale(1); }
      to { transform: translate(-50px, 40px) scale(1.2); }
    }
    #hero .hero-container {
      background: rgba(255, 255, 255, 0.055);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 26px;
      padding: 48px 56px;
      margin: 0 18px;
      max-width: 760px;
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
      text-align: center;
    }
    #hero .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 16px;
      border-radius: 50px;
      background: rgba(20, 157, 221, 0.16);
      border: 1px solid rgba(55, 179, 237, 0.4);
      color: #7dd6ff;
      font-size: 13.5px;
      font-weight: 600;
      letter-spacing: 0.6px;
      margin-bottom: 18px;
    }
    #hero .hero-badge i { color: #7df9ff; }
    #hero h1 {
      font-family: "Poppins", sans-serif;
      font-size: clamp(32px, 5.5vw, 52px);
      font-weight: 700;
      margin: 0 0 12px 0;
      background: linear-gradient(90deg, #ffffff 20%, #7df9ff 55%, #37b3ed 85%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: 0.5px;
    }
    #hero p { font-size: 19px; color: #c9d6e8; margin-bottom: 26px; }
    #hero p .typed, #hero p .typed-cursor { color: #7df9ff; }
    #hero .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
    #hero .hero-btn {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 12px 28px;
      border-radius: 50px;
      font-weight: 600;
      font-size: 15px;
      text-decoration: none;
      transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }
    #hero .hero-btn-primary {
      background: linear-gradient(135deg, #37b3ed, #149ddd);
      color: #ffffff;
      box-shadow: 0 8px 22px rgba(20, 157, 221, 0.45);
    }
    #hero .hero-btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 14px 30px rgba(20, 157, 221, 0.6);
      color: #ffffff;
    }
    #hero .hero-btn-ghost {
      background: linear-gradient(135deg, #22c55e, #16a34a);
      border: 1px solid rgba(34, 197, 94, 0.45);
      color: #ffffff;
      box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
    }
    #hero .hero-btn-ghost:hover {
      background: linear-gradient(135deg, #16a34a, #15803d);
      border-color: rgba(34, 197, 94, 0.7);
      transform: translateY(-3px);
      color: #ffffff;
      box-shadow: 0 10px 24px rgba(34, 197, 94, 0.5);
    }
    body.dark-mode #hero .hero-btn-ghost {
      background: linear-gradient(135deg, #1eb85f, #15903f);
      border-color: rgba(34, 197, 94, 0.5);
      color: #ffffff;
    }
    #hero .hero-scroll {
      position: absolute;
      bottom: 34px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 3;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.22);
      color: #7df9ff;
      font-size: 18px;
      animation: heroBounce 1.8s ease-in-out infinite;
      transition: background 0.25s ease;
    }
    #hero .hero-scroll:hover { background: rgba(20, 157, 221, 0.4); color: #ffffff; }
    @keyframes heroBounce {
      0%, 100% { transform: translate(-50%, 0); }
      50% { transform: translate(-50%, 10px); }
    }
    @media (max-width: 768px) {
      #hero .hero-container { padding: 34px 24px; border-radius: 20px; }
      #hero .hero-badge { font-size: 12px; }
    }
    body.dark-mode #hero .hero-container {
      background: rgba(255, 255, 255, 0.045);
      border-color: rgba(255, 255, 255, 0.10);
    }

    /* รูปโปรไฟล์ในเมนู - pop เงาแบบการ์ด */
    #header .profile-avatar { cursor: pointer; }
    #header .profile-avatar img {
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    #header .profile-avatar:hover img {
      transform: translateY(-4px) scale(1.06);
      box-shadow: 0 0 0 4px rgba(20, 157, 221, 0.28), 0 12px 26px rgba(20, 40, 80, 0.35);
    }
    .about-photo-card { cursor: pointer; }
    .about-photo-card img {
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .about-photo-card:hover img {
      transform: translateY(-4px) scale(1.02);
      box-shadow: 0 0 0 4px rgba(20, 157, 221, 0.28), 0 14px 30px rgba(20, 40, 80, 0.30);
    }

    /* Animation ยินดีตอนรับเต็มจอ */
    .welcome-overlay {
      position: fixed;
      inset: 0;
      z-index: 100000;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 22px;
      background: radial-gradient(circle at center, rgba(12, 22, 38, 0.90), rgba(4, 10, 18, 0.97));
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.45s ease, visibility 0.45s ease;
      cursor: pointer;
      overflow: hidden;
    }
    .welcome-overlay.show { opacity: 1; visibility: visible; }
    .welcome-avatar { position: relative; width: 180px; height: 180px; }
    .welcome-avatar img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid rgba(255, 255, 255, 0.14);
      transform: scale(0.4);
      opacity: 0;
      transition: transform 0.6s cubic-bezier(0.18, 1.4, 0.4, 1), opacity 0.5s ease;
    }
    .welcome-overlay.show .welcome-avatar img { transform: scale(1); opacity: 1; }
    .welcome-ring {
      position: absolute;
      inset: -16px;
      border-radius: 50%;
      background: conic-gradient(from var(--wr, 0deg),
        transparent 0deg 30deg,
        #37b3ed 80deg,
        #7df9ff 110deg,
        transparent 160deg,
        transparent 200deg,
        #6366f1 260deg,
        transparent 320deg);
      -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
      mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
      animation: welcomeSpin 1.5s linear infinite;
      filter: drop-shadow(0 0 12px rgba(55, 179, 237, 0.8));
      opacity: 0;
      transition: opacity 0.6s ease 0.2s;
    }
    .welcome-overlay.show .welcome-ring { opacity: 1; }
    @property --wr { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
    @keyframes welcomeSpin { to { --wr: 360deg; } }
    .welcome-hello {
      font-family: "Poppins", sans-serif;
      font-size: 34px;
      font-weight: 700;
      background: linear-gradient(90deg, #7df9ff, #37b3ed, #6366f1, #37b3ed, #7df9ff);
      background-size: 250% auto;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: welcomeText 0.7s ease 0.25s both, welcomeShine 3s linear 1s infinite;
      letter-spacing: 1px;
    }
    .welcome-name {
      font-family: "Poppins", sans-serif;
      font-size: 21px;
      font-weight: 600;
      color: #eaf4ff;
      letter-spacing: 2px;
      animation: welcomeText 0.7s ease 0.5s both;
    }
    .welcome-hint {
      font-size: 12.5px;
      color: #7c8aa5;
      letter-spacing: 1.5px;
      animation: welcomeText 0.7s ease 0.75s both;
    }
    @keyframes welcomeText {
      from { opacity: 0; transform: translateY(22px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes welcomeShine { to { background-position: 250% center; } }
    /* ประกายดาวเบาๆ */
    .welcome-overlay::before, .welcome-overlay::after {
      content: '';
      position: absolute;
      width: 380px;
      height: 380px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(55, 179, 237, 0.16), transparent 65%);
      animation: welcomeFloat 6s ease-in-out infinite alternate;
      pointer-events: none;
    }
    .welcome-overlay::before { top: -100px; left: -100px; }
    .welcome-overlay::after { bottom: -120px; right: -120px; animation-delay: 2.5s; }
    @keyframes welcomeFloat {
      from { transform: translate(0, 0) scale(1); }
      to { transform: translate(40px, 30px) scale(1.25); }
    }

    /* ไอคอนทักษะ - คลิกเปิดเว็บทางการ */
    .skills a[href] { display: inline-block; transition: transform 0.2s ease, filter 0.2s ease; cursor: pointer; }
    .skills a[href]:hover { transform: translateY(-4px) scale(1.12); filter: drop-shadow(0 6px 10px rgba(20, 157, 221, 0.35)); }

    /* ไฟนีออนวิ่งรอบการ์ดเมื่อโดนคลิก */
    /* ไฟวิ่งรอบการ์ด Hero เมื่อเมาส์ชี้ */
    #hero .hero-container { position: relative; }
    #hero .hero-container::after {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 26px;
      padding: 2.5px;
      background: conic-gradient(from var(--neon-ang),
        transparent 0deg 250deg,
        rgba(55, 179, 237, 0.15) 280deg,
        #37b3ed 315deg,
        #7df9ff 335deg,
        rgba(125, 249, 255, 0.6) 350deg,
        transparent 360deg);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask-composite: exclude;
      opacity: 0;
      pointer-events: none;
    }
    #hero .hero-container:hover::after {
      opacity: 1;
      animation: neon-run-ang 1.4s linear infinite;
    }
    #hero .hero-container:hover { animation: neon-glow 1.4s ease-out infinite; }

    @property --neon-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
    .neon-onclick { position: relative; }
    .neon-onclick.neon-run { z-index: 3; }
    .neon-onclick.neon-run::after {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 16px;
      padding: 2.5px;
      background: conic-gradient(from var(--neon-ang),
        transparent 0deg 250deg,
        rgba(55, 179, 237, 0.15) 280deg,
        #37b3ed 315deg,
        #7df9ff 335deg,
        rgba(125, 249, 255, 0.6) 350deg,
        transparent 360deg);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask-composite: exclude;
      animation: neon-run-ang 1.1s ease-out forwards;
      pointer-events: none;
    }
    @keyframes neon-run-ang { from { --neon-ang: 0deg; } to { --neon-ang: 360deg; } }
    .neon-onclick.neon-run { animation: neon-glow 1.1s ease-out; }
    @keyframes neon-glow {
      0% { box-shadow: 0 0 0 rgba(55, 179, 237, 0); }
      30% { box-shadow: 0 0 22px rgba(55, 179, 237, 0.55); }
      100% { box-shadow: 0 0 0 rgba(55, 179, 237, 0); }
    }
    /* portfolio-wrap มี overflow:hidden — ให้ไฟวิ่งอยู่ในกรอบ */
    .portfolio-wrap.neon-run::after,
    .testimonials .testimonial-item.neon-run::after {
      inset: 0;
      border-radius: 12px;
      padding: 3px;
    }
    .testimonials .testimonial-item.neon-run::after { border-radius: 18px; }
    .nav-menu a.neon-run { z-index: 3; }
    .nav-menu a.neon-run::after { border-radius: 12px; }

    /* ไฟวิ่งตอน hover — การ์ดสกิล / รูปโปรไฟล์เมนู / การ์ด about */
    .skills-content .progress,
    #header .profile-avatar,
    .about-photo-card { position: relative; }
    .skills-content .progress::after,
    #header .profile-avatar::after,
    .about-photo-card::after {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 14px;
      padding: 2.5px;
      background: conic-gradient(from var(--neon-ang),
        transparent 0deg 250deg,
        rgba(55, 179, 237, 0.15) 280deg,
        #37b3ed 315deg,
        #7df9ff 335deg,
        rgba(125, 249, 255, 0.6) 350deg,
        transparent 360deg);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask-composite: exclude;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }
    #header .profile-avatar::after { border-radius: 50%; }
    .about-photo-card::after { border-radius: 16px; }
    .skills-content .progress:hover::after,
    #header .profile-avatar:hover::after,
    .about-photo-card:hover::after {
      opacity: 1;
      animation: neon-run-ang 1.4s linear infinite;
    }
    .skills-content .progress:hover { z-index: 3; }

    /* GitHub icon (font icon) in social rows */
    #header .profile-social i.social-gh, #header .profile-social i.social-li,
    #footer .footer-social i.gh-ico, #footer .footer-social i.li-ico {
      display: inline-flex; align-items: center; justify-content: center;
      border-radius: 9999px; background: #ffffff; border: 1px solid #d7dce4;
      color: #24292f; transition: box-shadow .25s ease;
    }
    #header .profile-social i.social-gh, #header .profile-social i.social-li { width: 34px; height: 34px; font-size: 26px; }
    #footer .footer-social i.gh-ico, #footer .footer-social i.li-ico { width: 32px; height: 32px; font-size: 24px; }
    #header .profile-social a:hover i.social-gh, #header .profile-social a:hover i.social-li,
    #footer .footer-social a:hover i.gh-ico, #footer .footer-social a:hover i.li-ico { box-shadow: 0 6px 14px rgba(20, 40, 80, 0.25); }
    body.dark-mode #header .profile-social i.social-gh, body.dark-mode #header .profile-social i.social-li,
    body.dark-mode #footer .footer-social i.gh-ico, body.dark-mode #footer .footer-social i.li-ico { background: #161b22; border-color: #30363d; color: #e6edf3; }

    /* LinkedIn glyph optical size balance */
    .contact .contact-social i.bxl-linkedin { font-size: 23px; }
    #header .profile-social i.social-li { font-size: 30px; }
    #footer .footer-social i.li-ico { font-size: 28px; }
