/* 🔧 Updated: 2025-10-25 — Mourning Theme (Dark Mode with Desaturated Colors) */

body {
  margin: 0;
  background: linear-gradient(to bottom, #000000, #111111);
  font-family: 'Sarabun', sans-serif;
  color: white;
}

/* 🔷 GLOBAL OVERRIDE FOR MOURNING THEME */
body, body * {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  font-family: 'Sarabun', sans-serif;
  box-shadow: none;
  transition: all 0.3s ease;
}

/* 🔷 IMAGE OVERRIDE */
img {
  filter: grayscale(70%) brightness(80%) contrast(100%) saturate(60%);
  opacity: 0.85;
  border: 0px solid rgba(255,255,255,0.4);
  border-radius: 0px;
  box-shadow: 0 0 0px rgba(255,255,255,0.1);
}

/* 🔷 HEADER */
.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}

.logo span {
  color: #cccccc;
  font-weight: 300;
}

.navbar-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.navbar-nav .nav-link {
  color: white;
  font-weight: 300;
  transition: 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #bbbbbb;
}

/* 🔷 RESPONSIVE NAVBAR */
.navbar-toggler {
  border: none;
  background-color: transparent;
}

@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* 🔷 SECTION */
section {
  padding: 80px 20px;
}

/* 🔷 HERO */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero-subtext {
  font-size: 1.2rem;
  font-weight: 300;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 40px;
  letter-spacing: 0.2px;
}

/* 🔷 SECTION TITLE */
.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #aaaaaa;
  text-align: center;
  margin-bottom: 40px;
}

/* 🔧 Override primary button for mourning theme */
.btn-primary {
  background-color: #444 !important;
  border: none !important;
  color: white !important;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background-color: #666 !important;
}


/* 🔷 PROJECT GRID */
#projectGrid .card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  backdrop-filter: blur(8px);
  padding: 20px;
  margin-bottom: 20px;
  color: white;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
}

#projectGrid .card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

/* 🔷 INFO CARD */
.info-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  padding: 30px 20px;
  color: white;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.3);
  transition: 0.3s ease;
}

.info-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.info-card h5 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #cccccc;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 1.1rem;
  font-weight: 300;
  color: #dddddd;
  margin: 0;
}

.info-card .highlight {
  font-weight: bold;
  font-size: 1.3rem;
  color: #ffffff;
}

/* 🔷 MODAL */
.modal-content {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.modal-body h5 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #cccccc;
}

.modal-body p {
  font-size: 1rem;
  font-weight: 300;
  color: #dddddd;
}

/* 🔷 CONTACT FORM */
.contact-form label {
  font-weight: 300;
  margin-bottom: 6px;
  color: #dddddd;
}

.contact-form input,
.contact-form textarea {
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 8px;
  padding: 10px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

/* 🔄 ICON ROTATION */
.project-icon {
  transition: transform 0.6s ease;
}

.project-icon:hover {
  transform: rotate(360deg);
}

/* 🎉 EMOJI STREAM EFFECT */
.effect-stream {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  pointer-events: none;
}

.info-card:hover .effect-stream,
.info-card.touch-active .effect-stream {
  animation: streamEffect 0.8s ease-out infinite;
  opacity: 1;
}

@keyframes streamEffect {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -80%) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -120%) scale(0.8);
    opacity: 0;
  }
}

/* 🔷 GLASS CARD */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
/* 🔧 Fix oversized icons in project cards */
#projectGrid .card img,
.project-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 16px;
}

/* 🔧 Modal Glassmorphism Background */
.modal-content.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* 🔧 Form Labels and Inputs */
.modal-content label {
  color: #dddddd;
}

.modal-content input,
.modal-content textarea {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
  color: #aaaaaa;
}
