:root {
  --bg-main: #03045e;
  --bg-surface: #023e8a;
  --text-primary: #caf0f8;
  --text-secondary: #90e0ef;
  --accent: #00b4d8;
  --accent-light: #90e0ef;
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

html {
  scroll-behavior: smooth;

}

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

body {
  font-family: Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  padding-top: 70px;
}

/* ========================= NAVBAR STYLES ========================= */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg,
      var(--bg-main) 0%,
      var(--bg-surface) 100%);
  backdrop-filter: blur(10px);
  /* border-bottom: 2px solid rgba(255, 255, 255, 0.5); */
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 180, 216, 0.5);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  max-width: 100%;
  margin: 0 auto;
  height: 80px;
}

/* Logo Section */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  padding: 2px;
  border: 2px solid var(--accent);
  transition: all 0.3s ease;
}

.navbar-logo:hover .logo-img {
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.6);
  border-color: var(--accent-light);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
  margin: 0;
  position: relative;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
  display: inline-block;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  font-family: "Poppins", sans-serif;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

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

.nav-link.active::after {
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  flex-shrink: 0;
  border: 2px solid var(--text-primary);
  padding: 5px;
  border-radius: 8px;
}

.hamburger-menu span {
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: linear-gradient(135deg,
        var(--bg-main) 0%,
        var(--bg-surface) 100%);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    gap: 0;
    padding: 2rem 0;
    border-bottom: 2px solid rgba(0, 180, 216, 0.3);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent);
  }

  .nav-link.active {
    background: rgba(0, 180, 216, 0.2);
    color: var(--accent);
    border-left: 4px solid var(--accent);
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 60px;
  }

  .navbar {
    padding: 0.8rem 1rem;
    height: 60px;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .hamburger-menu span {
    width: 24px;
    height: 2.5px;
  }

  .nav-menu {
    top: 60px;
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  .hamburger-menu {
    display: none !important;
  }

  .nav-menu {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    width: auto !important;
    background: none !important;
    flex-direction: row !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    gap: 3rem;
  }

  .nav-item {
    width: auto;
  }

  .nav-link {
    display: inline-block;
    padding: 8px 0;
    font-size: 1rem;
  }

  .nav-link::after {
    display: block;
  }

  .nav-link:hover {
    background: none;
    transform: translateY(-2px);
  }

  .nav-link.active {
    background: none;
    border-left: none;
    padding-left: 0;
  }
}

/* ========================= END NAVBAR STYLES ========================= */




#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #03045e, #0077b6);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.text {
  position: absolute;
  font-size: 40px;
  font-weight: bold;
  color: transparent;
  text-transform: capitalize;
}

.loading {
  opacity: 1;
}

.text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--text-primary);
  width: 0%;
  overflow: hidden;
  white-space: nowrap;
}

/* Active animation - Text fills from left to right */
.active::before {
  animation: fillText 3s ease-in-out forwards;
}

@keyframes fillText {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* Fade out - Preloader disappears smoothly */
#preloader.fade-out {
  opacity: 0;
  transition: opacity 1s ease-out;
  pointer-events: none;
}

@media (max-width: 480px) {
  #preloader .text {
    font-size: 25px;
  }
}

/* --------------------------------preloader end------------- */
/* 

/* ----------------------home section start-------------- */
/* home-scroll text  */

/* ========================= SERVICES SECTION ========================= */

.services-section {
  background: var(--bg-main);
  padding: 0px 50px;
  position: relative;
  margin-bottom: 50px;
}

.services-section .about-title ,    .about-title {
  margin-bottom: 20px;
  letter-spacing: 0.077rem;
  color: #fafafa;
  font-size: 4rem;
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  animation: moveInTop 2s ease-out infinite;
}

.services-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 80px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 40px;
}

.service-card {
  position: relative;
  background: linear-gradient(135deg,
      var(--bg-surface) 0%,
      rgba(2, 62, 138, 0.5) 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  animation: serviceCardFadeIn 0.6s ease-out backwards;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes serviceCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card-background {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(0, 180, 216, 0.1) 0%,
      transparent 100%);
  transition: left 0.6s ease;
  z-index: 0;
}

.service-card:hover .service-card-background {
  left: 100%;
}

.service-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-15px);
  box-shadow: 0 30px 70px rgba(0, 180, 216, 0.3);
}

.service-card-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--bg-main);
  margin-bottom: 25px;
  animation: iconFloatService 3s ease-in-out infinite;
}

.ui-ux {
  position: relative;
  width: 80px;
  height: 80px;
}

@keyframes iconFloatService {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.service-card:hover .service-icon {
  animation: none;
  transform: scale(1.2);
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  font-family: "Kanit", sans-serif;
}

.service-card>p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.service-features {
  margin-bottom: 30px;
  flex: 1;
}

.service-features h4 {
  font-size: 1rem;
  color: var(--accent);
  margin-top: 15px;
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-features ul {
  list-style: none;
  padding: 0;
}

.service-features li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.service-features li i {
  color: var(--accent);
  font-weight: 700;
}

.service-card:hover .service-features li {
  color: var(--text-primary);
  padding-left: 5px;
}

.service-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  padding-top: 25px;
  border-top: 2px solid rgba(0, 180, 216, 0.2);
}

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

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Kanit", sans-serif;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-light) 100%);
  color: var(--bg-main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.service-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 180, 216, 0.4);
}

.service-btn i {
  transition: transform 0.3s ease;
}

.service-btn:hover i {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 60px 30px;
  }



  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-card-content {
    padding: 30px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-features h4 {
    font-size: 0.9rem;
  }

  .service-features li {
    font-size: 0.9rem;
  }

  .service-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .services-section {
    padding: 50px 10px;
  }

  /* .service-card{
  background: red;
  padding: 0;
  gap: 0;
 
} */

  .services-section .about-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .services-subtitle {
    font-size: 1rem;
    margin-bottom: 50px;
  }

  .service-card-content {
    padding: 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card>p {
    font-size: 0.9rem;
  }

  .service-stats {
    gap: 15px;
    padding-top: 15px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .service-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* -----------------------------tagline section------------- */

/* -----------------------------tagline section------------- */
.tagline-section {
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* display: grid;
  grid-template-columns: 1fr 1fr; */
  gap: 40px;
  background: var(--bg-surface);
  position: relative;
  padding: 96px;
  margin: 40px 0;
}

.tagline-content {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tagline-section h2 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: start;
}

.tag-btn {
  margin: 40px 10px;
  transition: all 0.3s ease;

}

.tag-btn:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 180, 216, 0.8);
}
.btn-right-move:hover {
  transform: translate(10px, -10px);



}

.tagline-img {
  width: 350px;
  height: 350px;
  border: 3px solid white;
  position: relative;
  right: -10px;
  top: 0;
  border-radius: 50%;
  box-shadow: 0 40px 40px rgba(0, 180, 216, 0.8);

  animation: moveImage 5s ease-in-out infinite;
}

.tagline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  padding: 5px;
}

@keyframes moveImage {

  0%{
    transform: translateY(0);
    box-shadow: 0 -40px 40px rgba(0, 180, 216, 0.8);
  }

  100% {
    transform: translateY(0);
    box-shadow: 0 -40px 40px rgba(0, 180, 216, 0.8);

  }

  50% {
    transform: translateY(-30px);
    box-shadow: 0 60px 60px rgba(255, 255, 255, 0.8);
  }
}

@media (max-width: 480px) {
  .tagline-section {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    gap: 20px;
  }

  .tagline-content {
    width: 100%;
    text-align: center;
    margin: 20px 0;
  }

  .tagline-section h2 {
    font-size: 1rem;
    padding: 10px 20px;
    text-align: center;
  }

  .tag-btn {
    margin: 20px 10px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .tagline-section {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    gap: 20px;
  }

  .tagline-content {
    width: 100%;
    text-align: center;
    margin: 20px 0;
  }

  .tagline-img {
    width: 250px;
    height: 250px;
    right: 0;
    top: 0;
    box-shadow: 0 20px 30px rgba(0, 180, 216, 0.8);
  }

  .tagline-section h2 {
    font-size: 1.5rem;
    padding: 10px 20px;
    text-align: center;
  }

  .tag-btn {
    margin: 20px 10px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 1200px) {
  .tagline-section {
    padding: 60px 30px;
  }

  .tagline-img {
    width: 300px;
    height: 300px;
    right: -5px;
    top: 0;
    box-shadow: 0 30px 40px rgba(0, 180, 216, 0.8);
  }

  .tag-btn {
    margin: 10px 10px;
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}

/* ----------------------------------------------------------------------------tagline section end--------------- */

/* ========================= PROJECTS SECTION ========================= */

.projects-section {
  background: var(--bg-main);
  padding: 100px 50px;
}

.projects-section .about-title {
  margin-bottom: 60px;
  letter-spacing: 0.077rem;
  color: #fafafa;
  font-size: 4rem;
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;

}

/* Filter Buttons */
.projects-filter {
  display: flex;
  gap: 15px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.filter-btn {
  padding: 12px 30px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: left 0.4s ease;
  z-index: -1;
}

.filter-btn:hover {
  color: var(--bg-main);
  transform: translateY(-3px);
}

.filter-btn:hover::before {
  left: 0;
  top: 0;
}

.filter-btn.active {
  background: var(--accent);
  color: var(--bg-main);
  font-weight: 700;
}

.filter-btn.active::before {
  left: 0;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

/* 3D Flip Card */
.project-card {
  perspective: 1000px;
  height: 400px;
  cursor: pointer;
}

.project-card.hide {
  display: none;
  animation: fadeOut 0.3s ease;
}

.project-card.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
}

.project-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* Front Side */
.card-front {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.project-card:hover .card-front img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  /* bottom: 0px; */
  left: 0px;
  right: 0;

  background: linear-gradient(to top, rgba(19, 18, 18, 0.9), transparent);
  padding: 30px 20px 40px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  text-align: center;
}

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

.project-overlay h4 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.project-overlay .tech-stack {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* Back Side */
.card-back {
  background: linear-gradient(135deg, #0a1f3f 0%, #1a3a5f 100%);
  transform: rotateY(-180deg);
  border: 2px solid var(--accent);
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  /* text-align: center; */
}

.back-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;

}

.back-content h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.back-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
 padding-left: 10px;
}

/* Project Meta Tags */
.project-meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-left: 10px;
  
}

.tag {
  display: inline-block;
  padding: 5px ;
  background: rgba(0, 180, 216, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Card Buttons */
.card-buttons {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.btn-live,
.btn-repo {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-live:hover {
  background: var(--accent);
  color: var(--text-primary);
  border: 2px solid var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 180, 216, 0.3);
}

.btn-repo:hover {
  background: var(--text-primary);
  color: var(--bg-main);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(202, 240, 248, 0.3);
}

/* View All Button */
.projects-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.view-all-btn,
.btn-right-move , .btn-move-top {
  padding: 15px 50px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.view-all-btn::before,
.btn-right-move::before , .btn-move-top::before {

  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: 0.4s ease;
  z-index: -1;
}
.btn-move-top::before {
  top: -100%;
  left: 0;
}

.btn-move-top:hover::before {
  top: 0;
}
.btn-right-move::before {
  left: -100%;
  top: 0;
}

.btn-right-move:hover::before {
  left: 0;
}

.view-all-btn::before {
  bottom: -100%;
  left: 0;
}

.view-all-btn:hover::before {
  bottom: 0;
}

/* Optional: arrow / icon animation */
.view-all-btn svg {
  transition: transform 0.3s ease;
}

.view-all-btn:hover svg {
  transform: translateX(5px);
}

/* Button hover base */
.view-all-btn:hover,
.btn-right-move:hover {
  color: var(--bg-main);
  transform: translateY(-3px);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .project-card {
    height: 320px;
  }

  .projects-section {
    padding: 80px 40px;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-card {
    height: 280px;
  }

  .card-back {
    padding: 20px;
  }

  .back-content h3 {
    font-size: 1.2rem;
  }

  .back-content p {
    font-size: 0.85rem;
  }

  .card-buttons {
    gap: 10px;
  }

  .btn-live,
  .btn-repo {
    padding: 10px 12px;
    font-size: 0.7rem;
  }

  .projects-section {
    padding: 60px 30px;
  }

  .projects-section .about-title {
    font-size: 2.5rem;
  }

  .projects-filter {
    margin-bottom: 50px;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project-card {
    height: 250px;
  }

  .projects-section {
    padding: 50px 20px;
  }

  .projects-section .about-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .projects-filter {
    margin-bottom: 40px;
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .view-all-btn {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
}

/* ========================= CONTACT SECTION ========================= */
.contact-section {
  background: linear-gradient(135deg, #03045e 0%, #0a1f3f 100%);
  padding: 100px 50px;
  position: relative;
}

/* Contact Tagline */
.contact-tagline {
  text-align: center;
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
    animation: moveInTop 2s ease-out infinite;
}

.contact-tagline h2 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Kanit", sans-serif;
}

.contact-tagline p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Contact Container */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Contact Info Section */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-info-section h3 {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* Contact Item */
.contact-item {
  display: flex;
  gap: 25px;
  padding: 25px;
  background: rgba(0, 180, 216, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(0, 180, 216, 0.15);
  transform: translateX(10px);
}

.contact-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 180, 216, 0.2);
  border-radius: 50%;
  color: var(--accent);
}

.contact-details h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-details p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contact-details a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-details a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.response-time {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  display: block;
}

/* Social Links */
.contact-social {
  margin-top: 20px;
}

.contact-social h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--accent);
  color: var(--bg-main);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 180, 216, 0.4);
}

.social-icon.github {
  border-color: #ffffff;
  color: #ffffff;
}

.social-icon.github:hover {
  background: #ffffff;
  color: var(--bg-main);
  border-color: #ffffff;
}

.social-icon.linkedin {
  border-color: #0077b5;
  color: #0077b5;
}

.social-icon.linkedin:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.social-icon.twitter {
  border-color: #1da1f2;
  color: #1da1f2;
}

.social-icon.twitter:hover {
  background: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.social-icon.instagram {
  border-color: #e1306c;
  color: #e1306c;
}

.social-icon.instagram:hover {
  background: #e1306c;
  color: white;
  border-color: #e1306c;
}

/* Contact Form Section */
.contact-form-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-form-section h3 {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.form-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Form Group */
.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-input-wrapper {
  position: relative;
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 15px 10px;
  border: 2px solid rgba(202, 240, 248, 0.3);
  border-radius: 8px;
  background: rgba(10, 31, 63, 0.5);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(10, 31, 63, 0.8);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
      var(--accent) 0%,
      var(--accent-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.form-group input:focus~.form-focus-border,
.form-group textarea:focus~.form-focus-border {
  transform: scaleX(1);
}

/* Floating Labels */
.form-group label {
  position: absolute;
  top: 12px;
  left: 15px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  font-size: 1rem;
  color: var(--accent);
}

.form-group input:not(:placeholder-shown)~label,
.form-group input:focus~label,
.form-group textarea:not(:placeholder-shown)~label,
.form-group textarea:focus~label {
  top: -10px;
  left: 15px;
  font-size: 0.75rem;
  color: var(--accent);
  background: linear-gradient(135deg, #03045e 0%, #0a1f3f 100%);
  padding: 0 5px;
}

/* Form Error */
.form-error {
  font-size: 0.8rem;
  color: #ff6b6b;
  display: none;
  margin-top: 8px;
}

.form-error.show {
  display: block;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

/* Submit Button */
.submit-btn {
  padding: 16px 40px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-light) 100%);
  transition: left 0.4s ease;
  z-index: -1;
}

.submit-btn:hover {
  color: var(--bg-main);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 180, 216, 0.4);
}

.submit-btn:hover::before {
  left: 0;
}

.submit-btn:hover svg {
  transform: translateX(5px) rotate(180deg);
}

.submit-btn svg {
  transition: transform 0.3s ease;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* Form Status Message */
.form-status {
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
  animation: statusSlideIn 0.4s ease-out;
}

@keyframes statusSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-status.success {
  display: block;
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 2px solid #4caf50;
}

.form-status.error {
  display: block;
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
  border: 2px solid #f44336;
}

/* WhatsApp Link in Form Status */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #25d366, #20ba5a);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.whatsapp-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-link i {
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-tagline h2 {
    font-size: 2.5rem;
  }

  .contact-info-section h3,
  .contact-form-section h3 {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-section {
    padding: 60px 25px;
  }

  .contact-tagline {
    margin-bottom: 50px;
  }

  .contact-tagline h2 {
    font-size: 2rem;
  }

  .contact-tagline p {
    font-size: 0.95rem;
  }

  .contact-container {
    gap: 40px;
  }

  .contact-item {
    padding: 20px;
    gap: 15px;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
  }

  .contact-details h4 {
    font-size: 1rem;
  }

  .social-icons {
    gap: 10px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
  }

  .submit-btn {
    padding: 14px 30px;
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 12px 8px;
    font-size: 0.95rem;
  }

  .form-row {
    gap: 15px;
  }

  .contact-form {
    gap: 20px;
  }
}

/* font-size: 1.5rem;
  }
} */

@media (max-width: 640px) {
  .contact-section {
    padding: 60px 25px;
  }

  .contact-tagline {
    margin-bottom: 50px;
  }

  .contact-tagline h2 {
    font-size: 2rem;
  }

  .contact-tagline p {
    font-size: 0.95rem;
  }

  .contact-container {
    gap: 40px;
  }

  .contact-item {
    padding: 20px;
    gap: 15px;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
  }

  .contact-details h4 {
    font-size: 1rem;
  }

  .social-icons {
    gap: 10px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
  }

  .submit-btn {
    padding: 12px 30px;
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 12px 8px;
    font-size: 0.95rem;
  }
}

/* ------------------------------------------------------about section------------------------------- */



.about-container {
  background-color: var(--accent-light);
  width: 100%;
  /* height: 500px; */
  /* background-color: red; */

  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  padding: 0px 50px;
}

.about {
  padding: 100px 10%;
  background: #111;
  color: #fff;
}

/* Text */
.about-text {
  width: 50%;
}

.about-text h2 {
  font-size: 50px;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  opacity: 0.8;
}

/* Button */
.about-btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 24px;
  margin-top: 20px;
  color: #fff;
  text-decoration: none;
}

.about-btn span {
  display: block;
  transition: transform 0.4s ease;
}

.about-btn .hover-text {
  position: absolute;
  top: 100%;
  left: 0;
}

.about-btn:hover span:first-child {
  transform: translateY(-100%);
}

.about-btn:hover .hover-text {
  transform: translateY(-100%);
}

/* Image */
.about-image {
  width: 50%;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  transform: scale(1.1);
  transition: 0.6s ease;
}

.about-image:hover img {
  transform: scale(1);
}

.about-container {
  background-color: var(--bg-main);
  width: 100%;
  min-height: 500px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 20px 50px;
}

.about-left-section {
  position: relative;
  background-color: var(--bg-surface);
  width: 35%;
  border: 3px solid white;
  border-radius: 10px;
  padding: 20px;
}

.intro-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.intro-card::before {
  content: "";
  position: relative;
  width: 20px;
  height: 20px;
  background-color: #4caf50;
  border-radius: 50%;
  margin-left: 10px;
  right: -57px;
  top: 121px;
  z-index: 3;
  animation: paulse 2s ease-in-out infinite;
}

.intro-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  padding: 4px;
}

@keyframes paulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}

.intro-card h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-top: 10px;
  text-transform: uppercase;
  font-weight: 900;
}

.intro-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 5px;
  text-transform: capitalize;
}

.rating {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

.rating i {
  color: #ff6b6b;
  margin-right: 5px;
}

.profile-stats {
  display: flex;
  gap: 50px;
  margin-top: 20px;
  color: var(--text-secondary);
}

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

.profile-stats .stat-item h4 {
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: 700;
}

.profile-actions {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.profile-actions a {
  padding: 10px 20px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  /* gap: 8px; */
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
}

.profile-actions a:hover {
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  transform: translateY(-5px);
  background: var(--accent);
}

.profile-actions a:hover::before {
  left: 0;
}

.profile-actions i {
  transition: transform 0.3s ease;
  font-size: 30px;
  margin-right: 8px;
}

.profile-actions a:hover svg {
  transform: translateX(5px);
}

.social-connect {
  display: flex;
  gap: 15px;
  margin-top: 40px;
  /* background-color: red; */
  position: relative;
}

.connect-icon {
  width: 50px;
  height: 50px;
  /* background-color: orange; */
  background: rgba(0, 180, 216, 0.2);
  border: 2px solid var(--accent);

  border-radius: 50%;
  position: relative;
}

.connect-icon i {
  color: white;
  font-size: 1.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.connect-icon:hover {
  background-color: var(--accent);
  color: var(--bg-main);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 180, 216, 0.4); 
  border: 2px solid var(--text-primary);
}

/* ------------------------------------------about-left section end----------------------- */

.about-right-section {
  width: 70%;
  /* border: 3px solid white; */
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  margin-left: 20px;
}


.about-right-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-direction: column;
  padding: 30px;
  margin-left: 30px;
}

.about-right-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: justify;
  padding: 20px 0px;
}

.end-of-right-about {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.end-of-right-about h1 {
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 30px 0;
}

@media (max-width: 480px) {


  .about-container {
    flex-direction: column;
    width: 100%;
    padding: 0px 10px;
  }

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

  .about-right-section {
    width: 100%;
    padding: 10px;
  }

  .about-right-content {
    padding: 10px;
    gap: 10px;
    margin-left: 0px;
    margin: 10px 0px;
  }

  .about-right-content h1,
  .end-of-right-about h1 {
    font-size: 1.5rem;
    text-align: justify;
    margin: 10px auto;
    text-transform: capitalize;
  }

}

@media (max-width: 768px) {
  .about-section .word-row-white {
    font-size: 1rem;
  }

  .about-container {
    flex-direction: column;
    width: 100%;
    padding: 0px 10px;
  }

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

  .about-right-section {
    width: 100%;
    padding: 10px;
  }

  .about-right-content {
    padding: 10px;
    gap: 10px;
    margin-left: 0px;
    margin: 10px 0px;
  }

  .about-right-content h1,
  .end-of-right-about h1 {
    font-size: 1.5rem;
    text-align: justify;
    margin: 10px auto;
  }


}

@media (min-width: 770px) and (max-width: 955px) {
  .about-section .word-row-white {
    font-size: 1rem;
  }

  .about-container {
    flex-direction: column;
    width: 100%;
    padding: 0px 10px;
  }

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

  .about-right-section {
    width: 100%;
    padding: 10px;
  }

  .about-right-content {
    padding: 10px;
    gap: 10px;
    margin-left: 0px;
    margin: 10px 0px;
  }

  .about-right-content h1,
  .end-of-right-about h1 {
    font-size: 1.5rem;
    text-align: justify;
    margin: 10px auto;
  }


}

/* ========================= SKILLS SECTION ========================= */
.skills-section {
  background: var(--bg-main);
  padding: 100px 50px;
  position: relative;
}

.skills-section .about-title {
  margin-bottom: 80px;
  letter-spacing: 0.077rem;
  color: #fafafa;
  font-size: 4rem;
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

/* Skills Container */
.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Skill Category */
.skill-category {
  background: linear-gradient(135deg,
      var(--bg-surface) 0%,
      rgba(2, 62, 138, 0.5) 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 50px 40px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(0, 180, 216, 0.1) 0%,
      transparent 100%);
  transition: left 0.6s ease;
  z-index: 0;
}

.skill-category:hover::before {
  left: 100%;
}

.skill-category:hover {
  border-color: var(--accent-light);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 180, 216, 0.2);
}

/* Category Header */
.category-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
  color: var(--bg-main);
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.category-header h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  font-family: "Kanit", sans-serif;
}

.category-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Skills Timeline */
.skills-timeline {
  position: relative;
  z-index: 1;
}

.skills-timeline::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
      var(--accent) 0%,
      var(--accent-light) 50%,
      transparent 100%);
  border-radius: 10px;
}

/* Skill Item */
.skill-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 80px;
  animation: slideInLeft 0.6s ease-out backwards;
}

.skill-item:nth-child(1) {
  animation-delay: 0.1s;
}

.skill-item:nth-child(2) {
  animation-delay: 0.2s;
}

.skill-item:nth-child(3) {
  animation-delay: 0.3s;
}

.skill-item:nth-child(4) {
  animation-delay: 0.4s;
}

.skill-item:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.skill-item:hover .step-number {
  /* background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-light) 100%
  ); */

  transform: scale(1.2) rotate(360deg);
}

.skill-item:hover .step-content h4 {
  color: var(--accent-light);
}

/* Skill Step (Timeline Point) */
.skill-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 15px;
}

.step-number {
  width: 50px;
  height: 50px;
  min-width: 40px;
  background: linear-gradient(135deg,
      rgba(0, 180, 216, 0.2) 0%,
      rgba(0, 180, 216, 0.1) 100%);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
  transition: all 0.4s ease;
  position: relative;
  padding: 10px;
}

.step-number::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 2s ease-in-out infinite;
  padding: 5px;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Skill Progress */
.skill-progress {
  background: rgba(0, 180, 216, 0.1);
  height: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 180, 216, 0.2);
  /* width: 0%; */
}

.progress-bar {
  height: 100%;
  /* width: 100%; */
  background: linear-gradient(90deg,
      var(--accent) 0%,
      var(--accent-light) 100%);

  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  position: relative;
  animation: fillProgress 1.5s ease-out forwards;
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.5);
}

/* @keyframes fillProgress {
  from {
    width: 0 !important;
    opacity: 0;
  }
  to {
    width: inherit;
    opacity: 1;
  }
} */

.progress-label {
  font-size: 0.75rem;
  color: var(--bg-main);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-item:hover .progress-bar {
  box-shadow:
    0 0 30px rgba(0, 180, 216, 0.8),
    inset 0 0 20px rgba(0, 180, 216, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .skills-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .skill-category {
    padding: 40px 30px;
  }

  .category-header {
    margin-bottom: 50px;
  }
}

@media (max-width: 768px) {
  .skills-section {
    padding: 60px 30px;
  }

  .skills-section .about-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
  }

  .skill-category {
    padding: 30px 20px;
    border-radius: 12px;
  }

  .category-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .category-header h2 {
    font-size: 1.5rem;
  }

  .skill-item {
    padding-left: 60px;
    margin-bottom: 30px;
  }

  .step-number {
    width: 45px;
    height: 45px;
    min-width: 45px;
    font-size: 1rem;
  }

  .step-content h4 {
    font-size: 1rem;
  }

  .step-content p {
    font-size: 0.85rem;
  }

  .skills-timeline::before {
    left: -20px;
    width: 2px;
  }
}

@media (max-width: 480px) {
  .skills-section {
    padding: 50px 20px;
  }

  .skills-section .about-title {
    font-size: 2rem;
    margin-bottom: 50px;
  }

  .skill-category {
    padding: 20px 15px;
  }

  .category-header {
    margin-bottom: 40px;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .category-header h2 {
    font-size: 1.2rem;
  }

  .category-header p {
    font-size: 0.9rem;
  }

  .skill-item {
    padding-left: 50px;
    margin-bottom: 25px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 0.9rem;
  }

  .step-content h4 {
    font-size: 0.9rem;
  }

  .step-content p {
    font-size: 0.8rem;
  }

  .skills-timeline::before {
    left: 10px;
    width: 10px;
  }

  .progress-label {
    font-size: 0.65rem;
  }
}

/* ========================= EXPERIENCE & EDUCATION SECTION ========================= */
.experience-education-section {
  background: var(--bg-main);
  padding: 100px 50px;
  position: relative;
}

.experience-education-section .about-title {
  margin-bottom: 80px;
  letter-spacing: 0.077rem;
  color: #fafafa;
  font-size: 4rem;
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.experience-education-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.exp-edu-card {
  background: linear-gradient(135deg,
      var(--bg-surface) 0%,
      rgba(2, 62, 138, 0.5) 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 50px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.exp-edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(0, 180, 216, 0.1) 0%,
      transparent 100%);
  transition: left 0.6s ease;
  z-index: 0;
}

.exp-edu-card:hover::before {
  left: 100%;
}

.exp-edu-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 180, 216, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--bg-main);
  flex-shrink: 0;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

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

.card-header h2 {
  font-size: 2rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  font-family: "Kanit", sans-serif;
}

.timeline {
  position: relative;
  z-index: 1;
}

.timeline::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
      var(--accent) 0%,
      var(--accent-light) 50%,
      transparent 100%);
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 60px;
  animation: slideInLeft 0.6s ease-out backwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

.timeline-marker {
  position: absolute;
  left: -42px;
  top: 5px;
}

.marker-dot {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-light) 100%);
  border: 3px solid var(--bg-main);
  border-radius: 50%;
  position: relative;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(0, 180, 216, 0);
  }
}

.year-badge {
  display: inline-block;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-light) 100%);
  color: var(--bg-main);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 5px;
  font-weight: 700;
}

.timeline-content .company {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.responsibilities {
  list-style: none;
  padding: 0;
}

.responsibilities li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
  padding-left: 0;
  position: relative;
}

.responsibilities li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  margin-right: 8px;
}

.timeline-item:hover .marker-dot {
  animation: none;
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.8);
}

.timeline-item:hover .timeline-content h3 {
  color: var(--accent-light);
}

@media (max-width: 480) {
  .skills-timeline::before {
    content: "";
    position: absolute;
    left: 10px;
  }
}

/* ========================= WHY CHOOSE ME SECTION ========================= */
.why-choose-section {
  background: var(--bg-main);
  padding: 100px 50px;
  position: relative;
}

.why-choose-section .about-title {
  margin-bottom: 80px;
  letter-spacing: 0.077rem;
  color: #fafafa;
  font-size: 4rem;
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  animation: moveInTop 2s ease-in-out infinite;

}
@keyframes moveInTop {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }


}
.why-choose-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.why-card {
  background: linear-gradient(135deg,
      var(--bg-surface) 0%,
      rgba(2, 62, 138, 0.5) 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.6s ease-out backwards;
}

.why-card:nth-child(1) {
  animation-delay: 0.1s;
}

.why-card:nth-child(2) {
  animation-delay: 0.2s;
}

.why-card:nth-child(3) {
  animation-delay: 0.3s;
}

.why-card:nth-child(4) {
  animation-delay: 0.4s;
}

.why-card:nth-child(5) {
  animation-delay: 0.5s;
}

.why-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(0, 180, 216, 0.1) 0%,
      transparent 100%);
  transition: left 0.6s ease;
  z-index: 0;
}

.why-card:hover::before {
  left: 100%;
}

.why-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(0, 180, 216, 0.3);
}

.why-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.5rem;
  color: var(--bg-main);
  position: relative;
  z-index: 1;
  animation: iconRotate 3s linear infinite;
}

@keyframes iconRotate {

  0%,
  100% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.why-card:hover .why-card-icon {
  animation: none;
  transform: scale(1.2);
}

.why-card h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.why-feature {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.feature-badge {
  display: inline-block;
  background: rgba(0, 180, 216, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.why-card:hover .feature-badge {
  background: var(--accent);
  color: var(--bg-main);
}

@media (max-width: 480px) {
 
  .why-choose-container {
    grid-template-columns: 1fr;
  }

  .why-card {
    padding: 20px;
  }

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

/* ========================= WORKING PROCESS SECTION ========================= */
.working-process-section {
  background: var(--bg-main);
  padding: 100px 50px;
  position: relative;
}

.working-process-section .about-title {
  margin-bottom: 80px;
  letter-spacing: 0.077rem;
  color: #fafafa;
  font-size: 4rem;
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.process-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.process-step {
  background: linear-gradient(135deg,
      var(--bg-surface) 0%,
      rgba(2, 62, 138, 0.5) 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  transition: all 0.4s ease;
}

.process-step:hover {
  border-color: var(--accent-light);
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(0, 180, 216, 0.3);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Kanit", sans-serif;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--bg-main);
  animation: iconBounceProcess 2s ease-in-out infinite;
}

@keyframes iconBounceProcess {

  0%,
  100% {
    transform: translateY(0);
  }

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

.process-step:hover .step-icon {
  animation: none;
  transform: scale(1.2) rotate(360deg);
  transition: transform 0.6s ease;
}

.step-content h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.process-features {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.process-features li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.process-features li i {
  color: var(--accent);
  font-weight: 700;
}

.process-step:hover .process-features li {
  color: var(--text-primary);
}

.step-arrow {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--accent);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.process-step:hover .step-arrow {
  opacity: 1;
  right: -65px;
  animation: arrowSlide 0.6s ease;
}

@keyframes arrowSlide {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .experience-education-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .why-choose-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .process-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .step-arrow {
    display: none;
  }
}

@media (max-width: 768px) {

  .experience-education-section,
  .why-choose-section,
  .working-process-section {
    padding: 60px 30px;
  }

  .experience-education-section .about-title,
  .why-choose-section .about-title,
  .working-process-section .about-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
  }

  .exp-edu-card {
    padding: 30px;
  }

  .card-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .card-header h2 {
    font-size: 1.5rem;
  }

  .why-choose-container {
    grid-template-columns: 1fr;
  }

  .why-card {
    padding: 30px;
  }

  .why-card-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .process-container {
    grid-template-columns: 1fr;
  }

  .process-step {
    padding: 30px;
  }
}

@media (max-width: 480px) {

  .experience-education-section,
  .why-choose-section,
  .working-process-section {
    padding: 50px 20px;
  }

  .experience-education-section .about-title,
  .why-choose-section .about-title,
  .working-process-section .about-title {
    font-size: 2rem;
    margin-bottom: 50px;
  }

  .exp-edu-card,
  .why-card,
  .process-step {
    padding: 20px;
  }

  .card-header h2,
  .why-card h3,
  .step-content h3 {
    font-size: 1.2rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .why-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .step-number {
    font-size: 2rem;
  }
}

