@font-face {
  font-family: 'Dufay';
  src: url('fonts/Dufay.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Beneg';
  src: url('fonts/Beneg.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'AtelierduSoleil';
  src: url('fonts/AtelierduSoleil.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'BlackFlag';
  src: url('fonts/BlackFlag.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'RomanNewTimes';
  src: url('fonts/RomanNewTimes.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* WebKit browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1b1026; /* very dark purple */
}

::-webkit-scrollbar-thumb {
  background-color: #5b3b8a; /* muted purple */
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #6f4bb0; /* slightly brighter on hover */
}

::-webkit-scrollbar-corner {
  background: transparent;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #5b3b8a #1b1026;
}
body {
  font-family: 'Times New Roman', Times, serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
}
/* Complex Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at top, #1a0a2e, #0a0a0a), radial-gradient(ellipse at bottom, #0a1a2e, #0a0a0a);
}
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.wave-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  z-index: -1;
  overflow: hidden;
}
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(transparent, rgba(138, 43, 226, 0.1));
  animation: wave 10s linear infinite;
}
.wave:nth-child(2) {
  animation: wave 15s linear infinite;
  opacity: 0.5;
}
@keyframes wave {
  0% { transform: translateX(0) translateZ(0) scaleY(1); }
  50% { transform: translateX(-25%) translateZ(0) scaleY(0.8); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}
.geometric-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.shape {
  position: absolute;
  border: 2px solid rgba(138, 43, 226, 0.2);
  animation: float 20s infinite ease-in-out;
}
.shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  border-radius: 50%;
  animation-delay: 0s;
}
.shape:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 15%;
  transform: rotate(45deg);
  animation-delay: -5s;
}
.shape:nth-child(3) {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 20%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: -10s;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-50px) rotate(180deg);
    opacity: 0.6;
  }
}
/* Background Logo */
.hero-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  opacity: 0.05;
  z-index: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-bg-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-bg-logo.fade-out {
  opacity: 0;
}
/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.3);
  border-bottom: 1px solid rgba(138, 43, 226, 0.2);
  transition: all 0.3s;
}
nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 5px 10px rgba(138, 43, 226, 0.3);
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo-svg-container {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-svg-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 20px rgba(138, 43, 226, 0.4));
}
.logo {
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(90deg, #8a2be2, #430c4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8a2be2, #410424);
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}
/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 50px;
}
.hero-content {
  text-align: center;
  max-width: 900px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s forwards 0.5s;
  position: relative;
  z-index: 1;
}
.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1s forwards 0.3s, heroFloat 4s ease-in-out infinite;
  opacity: 0;
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(138, 43, 226, 0.6));
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero h1 {
  font-size: 80px;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #561068, #8d14ff, #00c3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.hero p {
  font-size: 24px;
  color: #aaa;
  margin-bottom: 40px;
  letter-spacing: 1px;
}
.cta-button {
  padding: 15px 40px;
  font-size: 16px;
  background: linear-gradient(0deg, transparent, #8a2be2);
  border: none;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.5s;
  letter-spacing: 1px;
}
.cta-button:hover {
  box-shadow: 0 75px 150px rgba(138, 43, 226, 0.5);
}
/* About Section */
.about {
  padding: 150px 50px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.section-title {
  font-size: 60px;
  margin-bottom: 30px;
  text-align: center;
  background: linear-gradient(135deg, #fff, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s;
  font-weight: 900;
}
.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #888;
  max-width: 700px;
  margin: 0 auto 80px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s 0.2s;
}
.section-title.visible,
.section-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}
.about-container:nth-child(even) .about-image-container {
  order: 2;
}
.about-container:nth-child(even) .about-content {
  order: 1;
}
.about-image-container {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s;
}
.about-image-container.visible {
  opacity: 1;
  transform: translateY(0);
}
.about-image-wrapper {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(138, 43, 226, 0.3);
}
.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.3), transparent);
  animation: shimmer 3s infinite;
  z-index: 1;
}
@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}
.about-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8) contrast(1.1);
  transition: all 0.5s;
}
.about-image-wrapper:hover img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.2);
}
.about-decoration {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 3px solid rgba(138, 43, 226, 0.3);
  border-radius: 30px;
  z-index: -1;
}
.about-decoration.top-left {
  top: -20px;
  left: -20px;
}
.about-decoration.bottom-right {
  bottom: -20px;
  right: -20px;
  border-color: rgba(255, 20, 147, 0.3);
}
.about p {
  font-size: 24px;
}
.about-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s 0.2s;
}
.about-content.visible {
  opacity: 1;
  transform: translateY(0);
}
.about-label {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(138, 43, 226, 0.2);
  border: 1px solid rgba(138, 43, 226, 0.4);
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #ff1493;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.about-content h3 {
  font-size: 36px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}
.about-content p {
  color: #aaa;
  line-height: 1.9;
  font-size: 24px;
  margin-bottom: 25px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.stat {
  padding: 20px;
  background: rgba(138, 43, 226, 0.1);
  border-radius: 15px;
  border-left: 4px solid #8a2be2;
  transition: all 0.3s;
}
.stat:hover {
  transform: translateX(10px);
  background: rgba(138, 43, 226, 0.2);
}
.stat-number {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #8a2be2, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}
.stat-label {
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* Projects Showcase Section */
.projects-showcase {
  padding: 150px 50px 100px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.projects-showcase.hidden {
  display: none;
}
.projects-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 100px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s;
}
.projects-intro.visible {
  opacity: 1;
  transform: translateY(0);
}
.projects-intro p {
  font-size: 24px;
  color: #aaa;
  line-height: 1.8;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin-top: 80px;
}
.project-card {
  background: rgb(30, 25, 36, 0.9);
  border: 2px solid rgba(138, 43, 226, 0.3);
  border-radius: 8px;
  padding: 40px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px) scale(1);
	
	box-sizing: border-box;
  border-image: url(assets/thai_border.png) 1000 / 80px / 10px round;
}
.project-card[data-project="theruinedcrypt"] {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.05), rgba(255, 255, 255, 0.03));
}
.project-card[data-project="quantum"] {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.05), rgba(255, 255, 255, 0.03));
}
.project-card[data-project="prism"] {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.05), rgba(255, 255, 255, 0.03));
}
.project-card[data-project="vertex"] {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.05), rgba(255, 255, 255, 0.03));
}
.project-card[data-project="echo"] {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.05), rgba(255, 255, 255, 0.03));
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.project-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}
.project-card:hover::before {
  opacity: 1;
}
.project-card:hover {
  transform: translateY(-10px) scale(1.0);
  border-color: rgba(138, 43, 226, 0.8);
  box-shadow: 0 25px 70px rgba(138, 43, 226, 0.4);
}
.project-card.active {
  border-color: #ff1493;
  background: rgba(255, 20, 147, 0.1);
  box-shadow: 0 25px 70px rgba(255, 20, 147, 0.4);
}
.project-logo-img {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
	transform: rotateY(180deg);
}
.project-logo-img img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.5);
  transition: all 0.5s;
}
.project-card:hover .project-logo-img {
  transform: rotateY(0deg) scale(1.1);
}
.project-card:hover .project-logo-img img {
  filter: brightness(1) invert(0) opacity(1);
}
.project-info {
  text-align: center;
}
.project-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.project-category {
  font-size: 14px;
  color: #ff1493;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.project-brief {
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
}
/* Project Details Section */
.project-details-section {
  padding: 100px 50px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 600px;
  display: none;
}
.project-details-section.visible {
  display: block;
  animation: slideIn 0.8s forwards;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.project-header {
  text-align: center;
  margin-bottom: 80px;
}
.project-logo-large {
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 2px rgba(149, 83, 211, 0.4);
  transition: 0.5s ease-out;
}
.project-logo-large:hover {
  background: rgba(53, 0, 122, 0.3);
}
.project-logo-large:hover img {
  width: 90%;
  height: 90%;
}

.project-logo-large img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: 0.25s ease-out;
}
.project-details-section h2 {
  font-size: 56px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #8a2be2, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.project-tagline {
  font-size: 20px;
  color: #aaa;
  margin-bottom: 40px;
}
.project-description {
  font-size: 18px;
  line-height: 1.9;
  color: #bbb;
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}
.project-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}
.feature {
  padding: 35px;
  background: rgba(138, 43, 226, 0.1);
  border-radius: 20px;
  border-left: 5px solid #8a2be2;
  transition: all 0.4s;
  animation: fadeInFeature 0.6s forwards;
  opacity: 0;
}
.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }
@keyframes fadeInFeature {
  to {
    opacity: 1;
  }
}
.feature:hover {
  transform: translateX(10px);
  background: rgba(138, 43, 226, 0.2);
  border-left-color: #ff1493;
}
.feature h4 {
  color: #ff1493;
  margin-bottom: 12px;
  font-size: 20px;
}
.feature p {
  color: #bbb;
  font-size: 15px;
  line-height: 1.7;
}
.back-button {
  display: inline-block;
  margin-top: 60px;
  margin-right: 50px;
  margin-left: 50px;
  padding: 12px 35px;
  background: rgba(138, 43, 226, 0.2);
  border: 2px solid #8a2be2;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}
.back-button:hover {
  background: rgba(138, 43, 226, 0.4);
}
/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}
.scroll-indicator::before {
  content: 'v';
  font-size: 30px;
  color: #8a2be2;
}
@media (max-width: 968px) {
  .about-container {
    grid-template-columns: 1fr;
  }
  
  .about-container:nth-child(even) .about-image-container {
    order: 1;
  }
  .about-container:nth-child(even) .about-content {
    order: 2;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* Footer */
footer {
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid rgba(138, 43, 226, 0.3);
  padding: 80px 50px 30px;
  position: relative;
}
.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-section h3 {
  font-size: 20px;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #fff, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-about {
  max-width: 400px;
}
.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.footer-logo-svg {
  width: 40px;
  height: 40px;
}
.footer-logo-svg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-logo-text {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(135deg, #8a2be2, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}
.footer-about p {
  color: #888;
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 14px;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-link {
  width: 40px;
  height: 40px;
  background: rgba(138, 43, 226, 0.2);
  border: 1px solid rgba(138, 43, 226, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s;
}
.social-link:hover {
  background: rgba(138, 43, 226, 0.4);
  border-color: #8a2be2;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-block;
}
.footer-links a:hover {
  color: #ff1493;
  transform: translateX(5px);
}
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(138, 43, 226, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom p {
  color: #666;
  font-size: 13px;
}
.footer-bottom-links {
  display: flex;
  gap: 30px;
}
.footer-bottom-links a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}
.footer-bottom-links a:hover {
  color: #8a2be2;
}