body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #333;
    margin: 0;
    padding: 0;
    transition: background 0.5s ease, color 0.5s ease;
}

.theme-light {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #333;
}


.theme-blue {
    background: linear-gradient(135deg, #90be6d 0%, #6aa84f 100%);
    color: #fff;
}

/* ธีม green */
.theme-green {
    background: linear-gradient(135deg, #43aa8b 0%, #32936f 100%);
    color: #fff;
}

/* ธีม purple */
.theme-purple {
    background: linear-gradient(135deg, #577590 0%, #3f4e6b 100%);
    color: #fff;
}

.main-container {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

.theme-selector {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    padding-top: 10px;
 
}

.theme-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-dot:hover {
    transform: scale(1.25);
    border-color: #60a5fa;
    box-shadow: 0 6px 14px rgba(96, 165, 250, 0.6);
}


.theme-dot.active {
    border-color: #2563eb;
    box-shadow: 0 0 10px #2563eb;
    transform: scale(1.3);
}

/* Theme background styles */
.dark-mode {
    background-color: #121212;

}

.yellow-mode {
    background-color: #f9c74f;

}

.blue-mode {
    background-color: #90be6d;

}

.red-mode {
    background-color: #f94144;

}


/********************* CSS detail-profile-content Content*************************/
.detail-profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 15px;
    margin-top: 15px;
    margin-bottom: 15px;

}

.detail-content-education {
    grid-row: 1 / span 2;
    grid-column: 1 / 2;
    background: white;
   
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.detail-content-skill {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    background: white;
    padding: 30px;
    border-radius: 10px;
    height: auto;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.detail-content-education {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 99%;
    box-sizing: border-box;
}

.section-title {
    font-size: 28px;
    color: #222;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    margin-top: 30px;
}

.education-timeline {
    position: relative;
    padding-left: 40px;
}

.education-entry {
    position: relative;
    margin-bottom: 100px;
}

.badge-studying {
    background-color: #3498db;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 10px;
}



.edu-content {
    background: #f4f8fb;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.edu-content h3 {
    margin-top: 0;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.edu-content p {
    font-size: 15px;
    color: #444;
    margin: 4px 0;
}


.skill-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;

}
.main-section-title {
  font-size: 24px;
  color: #2c3e50;
  border-left: 6px solid #16a085;
  padding-left: 20px;
  margin-bottom: 16px;
  font-weight: bold;
}

.sub-title {
    font-size: 20px;
    margin: 20px 0 15px;  
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    display: inline-block;  
    padding-left: 14px;  
}

.sub-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 6px;
    background: #d88314;
    border-radius: 3px;
}




.skill-group {
    margin-bottom: 40px;
}

.skill-group h4 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #2c3e50;
    border-left: 20px solid #d88314;
    padding-left: 20px;
}

.sub-group h5 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: #34495e;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #f7f7f7;
    margin-bottom: 10px;
    font-size: 16px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.skill-item i {
    font-size: 20px;
    color: #555;
    width: 24px;
    text-align: center;
}

.skill-item:hover {
    background-color: #e0e0e0;
}

.skill-item.html i {
    color: #e34c26;
}

.skill-item.css i {
    color: #2965f1;
}

.skill-item.js i {
    color: #f7df1e;
}

.skill-item.python i {
    color: #3572A5;
}

.skill-item.django i {
    color: #092e20;
}

.skill-item.node i {
    color: #68a063;
}

.skill-item.sql i {
    color: #f28500;
}

.skill-item.git i {
    color: #f34f29;
}

.skill-item.ts i {
    color: #007acc;
}

.skill-item.angular i {
    color: #dd1b16;
}

.skill-item.flutter i {
    color: #02569B;
}

.skill-item.figma i {
    color: #a259ff;
}

.skill-item.matlab i {
    color: #0076a8;
}

.skill-item.ai i {
    color: #8e44ad;
}

.skill-item.responsive i {
    color: #16a085;
}

.skill-item.responsive:hover {
    background: linear-gradient(to right, #d0f0ec, #e0f7fa);
    color: #333;
}

.work-experience {
    margin-top: 50px;
    /* max-width: 700px; */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
    color: #222;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 15px;
    margin-bottom: 30px;
}
.con-contact {
    margin: 50px auto 30px;
    width: 100%;
  
    padding: 25px;
    font-family: 'Poppins', sans-serif;
    color: #222;
    background: linear-gradient(145deg, #f9f9f9, #eaeaea);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.con-contact h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
}

.slider-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #f8f8f8;
    border-radius: 12px;
    text-decoration: none;
    color: #444;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-item i {
    font-size: 1.3rem;
    color: #4a90e2;
    transition: color 0.3s ease;
}

.contact-item:hover {
    background: #4a90e2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.contact-item:hover i {
    color: #fff;
}


.work-experience h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #2c3e50;
    border-left: 6px solid #3498db;
    padding-left: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.job {
    background: linear-gradient(135deg, #ffffff, #ffffff);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.15);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.job:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #d1e7ff, #a3cef1);
}

.job h3 {
    color: #2980b9;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.job p strong {
    color: #34495e;
}

@media (max-width: 480px) {
    .work-experience {
        padding: 0 10px;
    }

    .work-experience h2 {
        font-size: 1.5rem;
    }

    .job {
        padding: 15px 18px;
    }

    .job h3 {
        font-size: 1.2rem;
    }
}



.detail-content-contact {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #f5f5f5;
    /* background-color: #ffffff; */
    /* background: linear-gradient(135deg, #4caf50, #43a047); */
    padding: 24px;
    border-radius: 20px;
    width: 100%;
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); */
    align-items: stretch;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background-color: #970d0d;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(6px);
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: hidden;
}

.contact-item i {
    font-size: 20px;
    color: #555;
    min-width: 24px;
    text-align: center;
}

.contact-item span {
    flex-grow: 1;
    text-align: left;
    color: #555;
    white-space: normal;
    word-break: break-word;
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
}

/* ========== Desktop ขนาดกลาง (1024px) ========== */
@media screen and (max-width: 1024px) {
    .detail-profile-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .detail-content-education {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .detail-content-skill {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .detail-content-contact {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .skill-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== Tablet (768px) ========== */
@media screen and (max-width: 768px) {
    .detail-profile-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 10px;
    }

    .detail-content-education,
    .detail-content-skill,
    .detail-content-contact {
        padding: 20px;
    }

    .skill-list {
        grid-template-columns: 1fr;
    }

    .contact-list {
        padding: 16px;
    }

    .edu-dot {
        width: 24px;
        height: 24px;
        left: -32px;
        top: 70px;
    }

    .education-entry {
        margin-bottom: 80px;
    }

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

/* ========== Mobile (480px) ========== */
@media screen and (max-width: 480px) {
    .detail-profile-content {
        padding: 10px;
    }

    .skill-item,
    .contact-item {
        font-size: 14px;
        padding: 10px 12px;
    }

    .skill-item i,
    .contact-item i {
        font-size: 18px;
    }

    .edu-dot {
        width: 20px;
        height: 20px;
        left: -28px;
        top: 60px;
    }

    .edu-content h3 {
        font-size: 18px;
    }

    .edu-content p {
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}


/********************* END CSS detail-profile-content Content*************************/



.download-btn {
    align-self: center;
    display: inline-block;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #feb47b, #ff7e5f);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --------- ส่วน Expertise --------- */
.main-container .detail-profile-content-left {
    background-color: #f94144;
    border-radius: 15px;
}

.main-container .detail-profile-content-left .expertise-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 20px;
}

.main-container .detail-profile-content-left .expertise-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

.main-container .detail-profile-content-left .expertise-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.main-container .detail-profile-content-left .expertise-card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-container .detail-profile-content-left .expertise-card i {
    font-size: 3em;
    color: #4CAF50;
    margin-bottom: 15px;
}

.main-container .detail-profile-content-left .expertise-card h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.main-container .detail-profile-content-left .expertise-card p {
    font-size: 1em;
    color: #666;
}

.main-container .detail-profile-content-left .expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --------- ส่วน Contact --------- */
.detail-profile-content-right {
    background-color: #1e3a8a;
    color: white;
    text-align: center;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    margin: auto;
}

.detail-profile-content-right h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
}

.detail-profile-content-right p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* ส่วน Contact List */

/* .contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(6px) scale(1.03);
  }
   */


/************************* CSS content for class detail-detail-portfolio **************************/
.detail-detail-portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 15px;

    height: auto;
}

.detail-detail-portfolio-one {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.detail-detail-portfolio-one>h2 {
    margin: 0 0 20px;
    font-size: 1.8rem;
    color: #333;
}

.project-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px;
    max-height: calc(500px - 30px * 2 - 20px - 10px);
    overflow-y: auto;
}

.project-item {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-left: 6px solid #007BFF;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}


.company-info,
.project-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.icon {
    font-size: 1.2rem;
    color: #007BFF;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.project-name {
    font-size: 1rem;
    color: #444;
}

/* 6. ปุ่ม Next Page ปักที่ท้าย container */
.next-button {
    margin-top: auto;
    /* ยึดติดล่าง flex container */
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.next-button:hover {
    background-color: #0056b3;
}

/* 7. Responsive: บนหน้าจอเล็ก ให้เอียงเป็น column เดียว */
@media (max-width: 768px) {
    .detail-detail-portfolio-one {
        max-height: none;
        /* ยกเลิกล็อกความสูง ถ้าต้องการให้ยาวได้ตามเนื้อหา */
        padding: 20px;
    }

    .project-list {
        padding: 0 16px;
    }
}

/* .detail-detail-portfolio-one {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}


.project-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    margin: 0 auto;
    background-color: #970d0d;
  }

  .project-item {
    background: #ffffff;
    /* border-left: 6px solid #007BFF; */
/* border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: all 0.3s ease;
  }
   */
.project-item:hover {
    background-color: #f9f9f9;
    transform: scale(1.02);
}

.project-entries {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-entries li {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}

.company-info,
.project-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
}

.icon {
    font-size: 1.2rem;
    color: #007BFF;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.project-name {
    font-size: 1.05rem;
    color: #555;
}

*/ .detail-detail-portfolio-one .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.slider-container:hover .nav-btn {
    opacity: 1;
    pointer-events: auto;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.nav-left {
    left: 10px;
}

.nav-right {
    right: 10px;
}

.detail-detail-portfolio-two {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 30px;
    padding: 8px 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.detail-detail-portfolio-two:hover .nav-btn,
.slider:hover .nav-btn {
    opacity: 1;
    pointer-events: auto;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.nav-left {
    left: 0;
}

.nav-right {
    right: 0;
}


h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.certificate-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.cer-general,
.cer-matlab {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.cer-general img,
.cer-matlab img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.cer-general img:hover,
.cer-matlab img:hover {
    transform: scale(1.05);
}

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

.congrate,
.ordian {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 20px;
}

.congrate img,
.ordian img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.congrate img:hover,
.ordian img:hover {
    transform: scale(1.05);
}




.detail-detail-portfolio-three {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.slider {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 30px;
    padding: 8px 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: background 0.3s ease;
    pointer-events: none;
}

.detail-detail-portfolio-three:hover .nav-btn,
.slider:hover .nav-btn {
    opacity: 1;
    pointer-events: auto;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.nav-left {
    left: 0;
}

.nav-right {
    right: 0;
}

.certificate-gallery {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    width: 100%;
    height: auto;
    display: block;
}

button {
    position: absolute;
    top: 50%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
}

.prev {
    left: 10px;
    transform: translateY(-50%);
}

.next {
    right: 10px;
    transform: translateY(-50%);
}

button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Responsive for Tablets (iPad) */
@media screen and (max-width: 1024px) {
    .detail-detail-portfolio {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-list li {
        width: 180px;
        height: 280px;
    }

    .cer-general img,
    .cer-matlab img {
        max-width: 250px;
    }

    .congrate img,
    .ordian img {
        width: 180px;
    }
}

/* Responsive for Mobile (iPhone) */
@media screen and (max-width: 768px) {
    .detail-detail-portfolio {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }

    .detail-detail-portfolio-one,
    .detail-detail-portfolio-two,
    .detail-detail-portfolio-three {
        padding: 20px;
    }

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

    .project-list li {
        width: 90%;
        height: auto;
    }

    .cer-general,
    .cer-matlab,
    .congrate,
    .ordian {
        flex-direction: column;
        align-items: center;
    }

    .cer-general img,
    .cer-matlab img,
    .congrate img,
    .ordian img {
        max-width: 90%;
        width: 100%;
    }

    .nav-btn,
    button.prev,
    button.next {
        font-size: 20px;
        padding: 10px;
    }
}

/* Responsive for Extra Small Devices (≤480px) */
@media screen and (max-width: 480px) {
    .detail-detail-portfolio {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .detail-detail-portfolio-one,
    .detail-detail-portfolio-two,
    .detail-detail-portfolio-three {
        padding: 15px;
    }

    h2 {
        font-size: 20px;
    }

    .project-list li {
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .cer-general img,
    .cer-matlab img,
    .congrate img,
    .ordian img {
        max-width: 100%;
        width: 100%;
        border-radius: 8px;
    }

    .nav-btn,
    button.prev,
    button.next {
        font-size: 18px;
        padding: 8px;
    }
}

/* .detail-detail-portfolio-one {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 30px;
    padding: 8px 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.nav-left {
    left: 0;
}

.nav-right {
    right: 0;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider {
    overflow: hidden;
    width: 100%;
}

.project-list {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.5s ease-in-out;
}

.project-list li {
    width: 100%;
    margin-right: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-list li:hover {
    transform: translateY(-5px);
} */


.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    width: 80%;
    justify-content: center;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.contact-item i {
    font-size: 1.5em;
}

.card-custom {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.greeting-wrapper h1 {
    font-family: 'Russo One', sans-serif;
    font-size: 3rem;
    color: #444;
    margin-bottom: 20px;
}

.intro-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.custom-carousel {
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: #fff;
    position: relative;
}

.left-column,
.right-column {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
}

.right-column {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    background: #f4f4f4;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #f0f4f8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 6px;
}

.right-column p {
    line-height: 1.6;
    font-size: 1rem;
    color: #2c3e50;
    letter-spacing: 0.02em;
}

.left-column .carousel .carousel-inner .carousel-item img {
    object-fit: contain;
}

.profile-pic {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: #f0f0f0;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
}

.profile-pic:hover {
    transform: scale(1.03);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    transition: background-color 0.3s;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
}

.custom-indicators {
    bottom: 10px;
}

.custom-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #999;
    opacity: 0.7;
    border: none;
    transition: opacity 0.3s, transform 0.3s;
}

.custom-indicators .active {
    background-color: #333;
    opacity: 1;
    transform: scale(1.2);
}

h5 {
    font-size: 1.5em;
    color: #555;
    margin: 20px 0 10px;
}

.theme-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.theme-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer {
    margin-top: 50px;
    text-align: center;
    color: #fff;
    font-size: 1rem;
}

.dark-mode {
    background: #333 !important;
    color: #fff !important;
}

.dark-mode .card-custom {
    background: #444;
    color: #fff;
}


/*************** css next page ********************/


.next-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
    text-decoration: none;
    padding: 0.9rem 1.6rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.next-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5);
}

.next-button svg {
    width: 1em;
    height: 1em;
    fill: white;
    transition: transform 0.3s ease;
}

.next-button:hover svg {
    transform: translateX(6px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}