:root {
      --light-bg: #f5f5f5;
      --light-text: #111;
      --dark-bg: #0d0d0d;
      --dark-text: #fff;
    }

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--dark-text);
  transition: background 0.3s, color 0.3s;
}

.dark-mode {
  background-color: var(--light-bg);
  color: var(--light-text);
}

.fullpage-hero {
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: radial-gradient(ellipse at center, #111 0%, #000 100%);
}

.dark-mode .fullpage-hero {
  background: radial-gradient(ellipse at center, #f5f5f5 0%, #eaeaea 100%);
}

.typing {
  background: radial-gradient(circle at 100%,
      #E8C6FF,
      #D08DFF 50%,
      #E8C6FF 75%, 
      #D08DFF 75%);
  font-weight: 600;
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #E0B4FF;
  width: 0;
  animation: typing 3s steps(20) forwards, blink 0.8s infinite, animatedTextGradient 1.5s linear infinite;
}

@keyframes typing {
  to {
    width: 9.4ch;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

section {
  padding: 30px 20px;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

section.active {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  background: radial-gradient(circle at 100%,
      #E0B4FF,
      #D08DFF 50%,
      #E0B4FF 75%,
      #D08DFF 75%);
  font-weight: 600;
  background-size: 200% auto;
  background-clip: text;
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(270deg, #D08DFF, #E8C6FF, #54FFE9);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 4s ease infinite, animatedTextGradient 5s linear infinite;
}

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

.card {
  position: relative;
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  margin-top: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 0;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px #000000;
}

.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
 /* background: linear-gradient(90deg, #ff0080, #7928ca, #2afadf, #ff0080);*/
  background-size: 400% 400%;
  z-index: -1;
  border-radius: 14px;
  animation: borderAnimation 10s linear infinite;
}

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

.dark-mode .card {
  background-color: #fff;
  color: #000;
  box-shadow: 0 0 10px rgba(150, 150, 150, 0.3);
}

.card a {
  margin-right: 10px;
  transition: transform 0.3s, color 0.3s;
  
}

.card vi:hover {
  transform: scale(1.2);
}

.card div p {
  padding-top: 5px;
}

.fab.fa-whatsapp { color: #25D366; }
.fab.fa-telegram { color: #00AAFF; }
.fab.fa-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fas.fa-angles-right { color: none;   background: radial-gradient(circle at 100%,
      #FFFFFF,
      #7DFF63 50%,
      #03FF00 75%,
      #03FF00 75%);
  font-weight: 600;
  background-size: 200% auto;
  background-clip: text;
  gap: 1px;
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animatedTextGradient 1.5s linear infinite;
}

.fab.fa-python { color: #EFFF07; }
.fab.fa-html5 { color: #FF4F23; }
.fab.fa-css3-alt { color: #4269FF; }
.fab.fa-js-square { color: #f0db4f; }
/*.fas.fa-video { color: #FF0E05; }
 .fas.fa-lightbulb { color: #15f2fa;}*/

#darkToggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  background-color: transparent;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  transition: background-color 0.4s, color 0.4s, transform 0.3s;
}

#darkToggle.active {
  color: #D08DFF;
  background-color: #f5f5f5;
}

#darkToggle:hover {
  transform: scale(1.1);
}

#darkToggle i {
  transition: transform 0.5s;
}

#darkToggle.active i {
  transform: rotate(360deg);
}

#backToTop {
  position: fixed;
  bottom: 20px;
  /* left: 326px; */
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10%;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  background-color: #d79fff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  /*box-shadow: 0 0 10px #E8C6FF;*/
  transform: scale(0);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#backToTop:hover {
  transform: scale(1.1);
}

#backToTop.show {
  transform: scale(1);
  opacity: 1;
}
.footer {
  margin: 0.7em 0 0.4em 0;
  text-align: center;
}

.footer p {
  font-size: 15px;
  opacity: 0.8;
}

.footer p a {
  background: radial-gradient(circle at 100%,
      #FFFFFF,
      #FF3A3A 50%,
      #FF5252 75%,
      #FF3A3A 75%);
    font-weight: 600;
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animatedTextGradient 1.5s linear infinite;
}
@keyframes animatedTextGradient {
  to {
    background-position: -200% center;
  }
}

a {
  text-decoration: none;
  color: #d69dff;
  }

 .aratthai {
    font-size: 15px;
    display: flex;
  }
