/* ==========================================
   TARJETA MAUXITS V3 - 3D CREATOR PORTFOLIO STYLING
   ========================================== */

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

:root {
  --bg-dark: #0C0C0C;
  --text-main: #D7E2EA;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Kanit', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: clip;
}

/* Navbar Link Smooth Hover Zoom & Cyberpunk Glow Effect */
.nav-link {
  display: inline-block;
  color: #D7E2EA;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.3s ease, text-shadow 0.3s ease;
  will-change: transform;
  cursor: pointer;
}

.nav-link:hover {
  transform: scale(1.18);
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.8), 0 0 22px rgba(182, 0, 168, 0.6);
}

/* Chrome Metal Hero Heading with External RGB Neon Shadow Glow on Hover */
.hero-heading {
  position: relative;
  display: block;
  width: 100%;
  color: #D7E2EA;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: pointer;
  z-index: 2;
}

/* Services, Contact & Photo Slide dark text on white background */
#services-section .hero-heading,
#contact-section .hero-heading,
#about-photo-slide .hero-heading {
  color: #0C0C0C;
}

/* Dynamic Smooth Transition for Services Section when Slide 2 (White) is Active */
#services-section {
  transition: border-radius 0.5s ease, margin-top 0.5s ease;
}

#services-section.slide-2-flat-top {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  margin-top: 0 !important;
}




/* External RGB Neon Shadow Layer (Behind opaque text, invisible by default) */
.hero-heading::before {
  content: attr(data-text);
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: -1;
  text-align: center;
  color: #00F0FF;
  
  filter: blur(16px) drop-shadow(0 0 25px #B600A8) drop-shadow(0 0 45px #FF007A);
  opacity: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
  pointer-events: none;
}

/* Activate External RGB Neon Shadow ONLY on Hover */
.hero-heading:hover {
  transform: scale(1.015);
}

.hero-heading:hover::before {
  opacity: 0.95;
  animation: rgbExternalShadowShift 3s linear infinite;
}

@keyframes rgbExternalShadowShift {
  0% {
    color: #00F0FF;
    filter: blur(16px) drop-shadow(0 0 25px #B600A8) drop-shadow(0 0 45px #FF007A);
  }
  33% {
    color: #B600A8;
    filter: blur(16px) drop-shadow(0 0 25px #FF007A) drop-shadow(0 0 45px #00F0FF);
  }
  66% {
    color: #FF007A;
    filter: blur(16px) drop-shadow(0 0 25px #00F0FF) drop-shadow(0 0 45px #B600A8);
  }
  100% {
    color: #00F0FF;
    filter: blur(16px) drop-shadow(0 0 25px #B600A8) drop-shadow(0 0 45px #FF007A);
  }
}

/* Pill Contact Button with Infinite Purple-to-Pink Liquid Gradient Flow */
.contact-btn {
  background: linear-gradient(90deg, #7621B0 0%, #B600A8 25%, #FF007A 50%, #B600A8 75%, #7621B0 100%, #B600A8 125%, #FF007A 150%, #B600A8 175%, #7621B0 200%);
  background-size: 200% 100%;
  animation: buttonGradientInfinite 4s linear infinite;
  box-shadow: 0px 4px 15px rgba(181, 1, 167, 0.4), 0px 0px 12px rgba(255, 0, 122, 0.3) inset;
  outline: 2px solid #FFFFFF;
  outline-offset: -3px;
  border-radius: 9999px;
  color: #FFFFFF;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.contact-btn:hover {
  transform: scale(1.06);
  box-shadow: 0px 8px 30px rgba(181, 1, 167, 0.75), 0px 0px 25px rgba(255, 0, 122, 0.6), 0px 0px 15px rgba(118, 33, 176, 0.5) inset;
  animation-duration: 2.2s;
}

@keyframes buttonGradientInfinite {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: -200% 0%;
  }
}

/* Live Project Ghost Button */
.live-project-btn {
  border: 2px solid #D7E2EA;
  color: #D7E2EA;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.live-project-btn:hover {
  background: rgba(215, 226, 234, 0.15);
  transform: translateY(-2px);
}

/* Marquee Row Container */
.marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
}

/* Character Reveal Text Animation Base */
#animated-about-text {
  white-space: pre-wrap;
}

.char-reveal {
  opacity: 0.2;
  transition: opacity 0.3s ease;
  display: inline;
}

.char-reveal.active {
  opacity: 1;
}

/* Courses & Certifications Infinite Marquee */
.courses-marquee-row {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: courses-scroll 50s linear infinite;
}

.courses-marquee-row.reverse {
  animation-direction: reverse;
}

.courses-marquee-row:hover {
  animation-play-state: paused;
}

@keyframes courses-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.course-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.15);
}

/* Custom Scrollbar for V3 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0C0C0C;
}

::-webkit-scrollbar-thumb {
  background: #2a2e38;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #BBCCD7;
}
