:root {
  --bg-dark: #000;
  --text-color: #e7e7e7;
  --text-light: #ccc;
  --primary-color: #7f42a7;
  --radius-lg: 12px;
  --radius-sm: 5px;
  --shadow-lg: 0 0 15px rgba(255, 255, 255, 0.3);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.main-content-wrapper {
  position: relative;
  z-index: 1;
}

/* --- toggle button (hamburger) --- */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

body {
  margin: 0 auto;
  padding-top: 80px;
  font-family: system-ui, sans-serif;
  background-color: black;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: #e7e7e7;
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* gradient image and layer blur efect */
.image-gradient {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
}

.layer-blur {
  position: absolute;
  top: 20%;
  right: 0;
  width: 30rem;
  max-width: 100vw;
  height: 30rem;
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 700px 15px #7c3aedaa;
  border-radius: 50%;
  transform: rotate(-30deg);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

.bg-blur-layers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blur-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

/* แต่ละจุดวางตำแหน่งและสีไม่ซ้ำ */
.spot1 {
  width: 25rem;
  height: 25rem;
  top: 10%;
  left: 5%;
  background: #7c3aed;
}

.spot2 {
  width: 20rem;
  height: 20rem;
  bottom: 15%;
  right: 10%;
  background: #aa4ade;
}

.spot3 {
  width: 18rem;
  height: 18rem;
  top: 40%;
  right: 20%;
  background: #d960fa;
}

.spot4 {
  width: 22rem;
  height: 22rem;
  bottom: 10%;
  left: 20%;
  background: #b372f4;
}

@keyframes floatBlur {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, -30px);
  }
}

.container {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

header.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(50px);
  z-index: -1;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

#check {
  display: none;
}

.icons {
  position: absolute;
  right: 20px;
  font-size: 2.3rem;
  color: white;
  cursor: pointer;
  display: none;
}

/* Responsive Menu for all screen sizes (<= 1024px) */
@media (max-width: 1024px) {
  .icons {
    display: inline-flex;
  }

  .navbar__menu {
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    width: 100%;
    background-color: rgba(0, 0, 0, 1);
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  #check:checked ~ .navbar__menu {
    height: 17rem;
  }

  .navbar__list {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
  }

  .navbar__link {
    display: block;
    font-size: 1.1rem;
    text-align: center;
  }

  .icons #menu-icon {
    display: block;
  }

  .icons #close-icon {
    display: none;
  }

  #check:checked ~ .icons #menu-icon {
    display: none;
  }

  #check:checked ~ .icons #close-icon {
    display: block;
  }
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #b084ff;
  margin-left: 8%;
}

@media (max-width: 768px) {
  .navbar__brand {
    font-size: 1.5rem;
    gap: 0.2rem;
    margin-left: 2%;
  }
}

.navbar__menu {
  display: flex;
  justify-content: center;
}

.navbar__list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  top: 0;
  margin: 0;
  padding: 0;
}

.navbar__link {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  position: relative;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.navbar__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #7f42a7, #6600c5);
  transition: width 0.3s ease;
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__link:hover,
.navbar__link.active {
  color: #c5a3ff;
  font-weight: bold;
}

#home,
#about,
#projects,
#experience,
#skills,
#contact {
  scroll-margin-top: 100px;
}

/* main content */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem 1rem;
  background: transparent;
  color: white;
  text-align: left;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-content {
  padding: 0rem 6rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 600px;
  margin-bottom: 2rem;
  color: #ccc;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
}

.hero-buttons .btn-getStart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(
    270deg,
    #7f42a7,
    #6600c5,
    #7c3aed,
    #c5a3ff,
    #7f42a7
  );
  background-size: 400% 400%;
  animation: animated-gradient 6s ease infinite;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(4px);
  overflow: hidden;
  z-index: 1;
}

.hero-buttons .btn-getStart:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.5);
}

@keyframes animated-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 992px) {
  .hero-section {
    text-align: center;
    padding: 3rem 1rem;
  }

  .hero-container {
    align-items: center;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons .btn-getStart {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

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

  .hero-buttons .btn-getStart {
    width: 100%;
    max-width: 250px;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

.section-about {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
}

.section-about .container {
  margin-bottom: 10rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 15px;
  box-sizing: border-box;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.about-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #7f42a7, #9b59b6);
  margin: 0 auto 2rem auto;
  border-radius: 999px;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: #ccc;
  font-weight: 400;
}

.highlight {
  color: #ffd700;
  font-weight: 600;
}

@media (max-width: 992px) {
  .section-about .container {
    margin: 3rem auto;
    padding: 0 1rem;
  }
}

.section-about .row {
  width: 100%;
}

.section-about .col-lg-8 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8rem;
  padding: 2rem 1rem;
  max-width: 900px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .section-about {
    padding: 1rem 0 0 0;
    margin-top: 8rem;
    flex-direction: column;
    text-align: center;
  }
  .section-title {
    font-size: 2rem;
    margin-top: 2rem;
  }

  .lead {
    font-size: 1rem;
    margin-top: 2rem;
  }
}

@media (max-width: 575.98px) {
  .section-about {
    padding: 0.5rem 0 0 0;
    margin-top: 1rem;
    flex-direction: column;
    text-align: center;
  }
  .lead {
    margin-top: 0.5rem;
    font-size: 0.95rem;
  }
}

.section-profile {
  padding: 3rem;
  background-color: transparent;
  color: white;
}

.profile-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.intro {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  min-width: 300px;
  flex-wrap: wrap;
}

.circle-img {
  width: 180px;
  height: auto;
  border-radius: 50%;
  border: 4px solid #7f42a7;
}

.text-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.text-content h1 {
  font-size: 2.5rem;
  margin: 0;
}

.job-title {
  background: linear-gradient(to right, #7c3aed, #a855f7);
  padding: 0.1rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-block;
  font-size: 1rem;
}

.profile-description {
  font-size: 1.1rem;
  max-width: 35rem;
  color: #ccc;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
  min-width: 220px;
}

.btn-resume,
.btn-link {
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.btn-resume {
  background-color: #7f42a7;
  color: white;
}

.btn-resume:hover {
  background-color: #6600c5;
}

.btn-link {
  background-color: #ffffff20;
  color: #fff;
  border: 1px solid #fff;
}

.btn-link:hover {
  background-color: #ffffff40;
}

@media (max-width: 1079px) {
  .profile-wrapper {
    margin: 0 auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  .intro {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
}

@media (max-width: 1059px) {
  .profile-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .action-buttons {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .btn-resume,
  .btn-link {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}
/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .profile-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .text-content h1 {
    font-size: 2rem;
  }

  .profile-description {
    font-size: 1rem;
  }

  .action-buttons {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
  }

  .btn-resume,
  .btn-link {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .circle-img {
    width: 120px;
    height: auto;
  }

  .text-content h1 {
    font-size: 1.5rem;
  }

  .job-title {
    font-size: 0.85rem;
  }

  .profile-description {
    font-size: 0.85rem;
  }
}

.projects-section {
  padding: 5rem 10%;
  color: var(--text-color);
  background-color: transparent;
}

.projects-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.projects-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.projects-button-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn-see-more {
  background-color: var(--primary-color);
  color: white;
  padding: 0.7rem 1.7rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-see-more:hover {
  background-color: #6600c5;
}

.project-cards {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: nowrap;
  justify-content: center;
}

.project-card {
  display: relative;
  flex-direction: column;
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  width: 25rem;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  padding-bottom: 3.5rem;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0; /* ไม่มีมุมมน */
}

.project-details {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.project-tags span {
  background-color: #333;
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.project-links {
  position: absolute;
  bottom: 1rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
}

.project-links a {
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: white;
  background-color: #24292e;
  border: 1px solid transparent;
  transition: background 0.2s ease;
}

.project-links a:hover {
  background-color: black;
}

@media (max-width: 1097px) {
  .project-cards {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .project-card {
    width: 18rem;
    padding-bottom: 3.2rem;
  }

  .project-image {
    height: 160px;
  }

  .project-title {
    font-size: 1.1rem;
  }

  .project-links a {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }
}

@media (max-width: 992px) {
  .project-cards {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
  }

  .project-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    width: 20rem;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .project-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 0; /* ไม่มีมุมมน */
  }
}

@media (max-width: 768px) {
  .project-cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .project-card {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    width: 20rem;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }
  .project-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 0; /* ไม่มีมุมมน */
  }
}

.project-links a:hover {
  color: white;
  background-color: black;
}

.btn-link.github {
  background-color: #24292e;
  color: white;
}

/* -------------------------------------------------- */
/* Project Links & Buttons Styles                     */
/* -------------------------------------------------- */

.btn-link.github {
  background-color: #24292e;
  color: white;
}
.btn-link.github:hover {
  background-color: #000;
}

/* See More style */
.btn-link.details {
  background-color: #7c3aed;
  color: white;
}

.btn-link.details:hover {
  background-color: #5b21b6;
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6); /* dark overlay */
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
  -webkit-backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: rgb(26, 26, 26);
  max-width: 700px;
  width: 80%;
  color: white;
  max-height: 90vh; /* <<< สูงสุดแค่ 90% จอ */
  overflow-y: auto; /* <<< ให้ scroll ข้างใน */
  margin: auto;
  padding: 30px;
  border-radius: 1rem;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #7f42a7;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #a86dff;
}

.modal-close {
  float: right;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.8rem;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #fff;
}

.modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #b084ff;
}

.modal-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #ccc;
}

.modal-project-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.modal-project-list li {
  margin-bottom: 1.2rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #e0e0e0;
}

/* 🖼 รูปภาพใน modal */
.modal-project-list img {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.modal-project-list img:hover {
  transform: scale(1.02);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 80%;
    margin: 10% 1rem;
    padding: 1.5rem;
  }

  .modal-content h2 {
    font-size: 1.4rem;
  }
}

.experience-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.experience-header {
  text-align: center;
  margin-bottom: 3rem;
}

.experience-header h1 {
  font-size: 2.75rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.experience-header p {
  font-size: 1rem;
  color: #bbb;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Cards Container --- */
.experience-list {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

/* --- Card --- */
.experience-card {
  margin-top: 2rem;
  background: #1e1e1e;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.experience-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #333;
}

/* --- Content --- */
.experience-card h3 {
  font-size: 1.2rem;
  color: #fff;
  padding: 1rem 1rem 0.2rem;
}

.experience-card h3 span {
  display: block;
  font-size: 0.9rem;
  color: #aaa;
  font-weight: 400;
  margin-top: 0.25rem;
}

.experience-card .date {
  font-size: 0.85rem;
  color: #888;
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}

.experience-card p {
  font-size: 0.95rem;
  color: #ccc;
  padding: 0 1rem 1rem;
  line-height: 1.6;
}

/* --- Tool Tags --- */
.experience-card .tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 1.5rem;
}

.experience-card .tools span {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: #2a2a2a;
  color: #eee;
  border: 1px solid #3c3c3c;
  border-radius: 5px;
}

/* --- Summary --- */
.experience-summary {
  margin-top: 4rem;
  background: #1a1a1a;
  border-left: 5px solid #7c3aed;
  border-radius: 12px;
  padding: 2rem;
}

.experience-summary h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

.experience-summary ul {
  padding-left: 1.5rem;
}

.experience-summary li {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 0.7rem;
}

/* Responsive */
@media (max-width: 768px) {
  .experience-card {
    display: flex;
    flex-direction: column;
    margin: 1rem;
    background: #1e1e1e;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .experience-image-wrapper {
    width: 100%;
    height: 180px;
    flex-shrink: 0;
  }

  .experience-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid #333;
  }

  .experience-details {
    text-align: left;
  }

  .experience-header h1 {
    font-size: 2rem;
    text-align: center;
  }

  .experience-header p {
    font-size: 0.95rem;
    text-align: center;
  }

  .experience-summary {
    margin: 1rem;
    background: #1a1a1a;
    border-left: 5px solid #7c3aed;
    border-radius: 12px;
    padding: 2rem;
  }

  .experience-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .experience-summary ul {
    padding-left: 1.2rem;
  }

  .tools {
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
  }

  .tools span {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
  }
}

.skills-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.skills-header {
  text-align: center;
  margin-bottom: 2rem;
}

.skills-header h1 {
  font-size: 2.5rem;
}

.skills-header p {
  margin: 0;
  font-size: 0.95rem;
  color: #aaa;
}

.skills-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.skill-card {
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.skill-card i,
.skill-card img {
  font-size: 2.5rem;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.skill-card .icon-img {
  object-fit: contain;
}

.skill-card h3 {
  margin: 0.3rem 0 0.2rem;
  font-size: 1.1rem;
}

.skill-card p {
  font-size: 0.85rem;
  color: #aaa;
}

/* Mobile & Tablet */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skill-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1rem;
  }

  .skill-card h3 {
    font-size: 1rem;
  }

  .skill-card p {
    font-size: 0.8rem;
  }
}

@media (max-width: 500px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .skill-card {
    padding: 0.5rem;
  }
}

.soft-skills-section {
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 770px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.soft-skills-section h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: white;
}

.soft-skills-section ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 1rem;
}

.soft-skills-section li {
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #7c3aed;
  border-radius: 0.5rem;
  padding: 0.8rem 1rem 0.8rem 2rem;
  transition: background 0.3s;
}

.soft-skills-section li::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 600px) {
  .soft-skills-section {
    padding: 1.5rem 1rem;
  }

  .soft-skills-section h2 {
    font-size: 1.6rem;
  }

  .soft-skills-section li {
    font-size: 0.95rem;
  }
}

#contact {
  padding: 3rem;
  background-color: #f8f8f8;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.content-contact {
  flex: 1;
  min-width: 280px;
  color: black;
}

.content-contact h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.content-contact-form {
  flex: 1;
  min-width: 280px;
  color: black;
}

form {
  display: flex;
  flex-direction: column;
}

input,
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-buttons {
  display: flex;
  gap: 1rem;
}

button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  font-weight: 200;
  cursor: pointer;
  background-color: black;
  color: white;
}

button[type="reset"] {
  background-color: #ccc;
  color: black;
}

button[type="submit"]:hover {
  background-color: #333;
}

/* Footer Styles */

footer {
  text-align: center;
  padding: 2rem;
  color: #ccc;
  background-color: #1a1a1a;
  width: 100vw;
  left: 0;
  top: 0;
  position: relative;
  box-sizing: border-box;
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.social-links {
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  color: #fff;
  font-size: 1.8rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #7f42a7;
}

/* Style for Privacy Policy link */
footer p a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer p a:hover {
  color: #fff;
  text-decoration: underline;
}

.background-3d {
  position: absolute;
  top: 0;
}
