/* ==========================================================================
   Dark Glow UI Theme (Branch UI-2)
   ========================================================================== */
:root {
  --bg-color: #070a12;
  --card-bg: rgba(15, 23, 42, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --shadow-glow: 0 10px 30px -5px rgba(139, 92, 246, 0.25), 0 0 20px rgba(6, 182, 212, 0.15);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Global Reset & Dark Pitch Background */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1rem;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Color Floating Glow Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatGlow 12s infinite alternate ease-in-out;
}

.glow-1 {
  width: 450px;
  height: 450px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
}

.glow-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  animation-delay: -4s;
}

.glow-3 {
  width: 350px;
  height: 350px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-pink), transparent 70%);
  animation-delay: -8s;
  opacity: 0.25;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
  100% { transform: translate(-30px, 40px) scale(0.9); }
}

/* Mouse Follower Glow */
#cursor-glow {
  position: fixed;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 80%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: blur(35px);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

/* Container */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* Glow Card Glassmorphism System */
.glow-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
  opacity: 0.7;
}

.glow-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Profile Header */
.profile-header {
  padding: 2.75rem 2rem 2.25rem;
  text-align: center;
}

.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
}

.avatar-glow-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
  filter: blur(8px);
  opacity: 0.7;
  animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #0f172a;
}

.avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Gradient Shimmer Text */
.gradient-text {
  font-size: 1.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c084fc, #f472b6, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.35rem;
}

.glow-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* Social Buttons */
.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.facebook-glow-btn:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.5);
  transform: translateY(-3px);
}

.github-glow-btn:hover {
  background: var(--accent-purple);
  color: #ffffff;
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 1.75rem 2rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.neon-tag {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.neon-tag:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: #c084fc;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  transform: scale(1.05);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
}

.project-tags span {
  font-size: 0.75rem;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* Contact Neon Button */
.contact-section {
  text-align: center;
}

.contact-section p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.neon-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.35);
}

.neon-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.5);
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 1rem;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 1rem 0.75rem;
  }
  .profile-header, .section {
    padding: 1.5rem 1.25rem;
  }
  .gradient-text {
    font-size: 1.55rem;
  }
}
