/* ─────────────────────────────────────────────────────────────
   PETCH PORTFOLIO — STYLE.CSS
   Futuristic Tech Design | Dark Mode | Neon Accents
───────────────────────────────────────────────────────────── */

/* ══ CSS Variables ══════════════════════════════════════════ */
:root {
  --bg-primary:    #050510;
  --bg-secondary:  #0a0a1e;
  --bg-card:       #0d0d25;
  --bg-glass:      rgba(13, 13, 37, 0.6);

  --cyan:          #00d4ff;
  --cyan-dim:      rgba(0, 212, 255, 0.12);
  --cyan-glow:     0 0 20px rgba(0,212,255,0.5), 0 0 60px rgba(0,212,255,0.2);

  --purple:        #7c3aed;
  --purple-light:  #a855f7;
  --purple-dim:    rgba(124, 58, 237, 0.15);
  --purple-glow:   0 0 20px rgba(124,58,237,0.5);

  --pink:          #f472b6;
  --green:         #10b981;

  --text-primary:  #f0f4ff;
  --text-secondary:#8b9cc8;
  --text-muted:    #4a5580;

  --border:        rgba(0, 212, 255, 0.15);
  --border-hover:  rgba(0, 212, 255, 0.45);

  --nav-h:         70px;
  --transition:    all 0.35s cubic-bezier(0.4,0,0.2,1);
  --font-tech:     'Orbitron', sans-serif;
  --font-body:     'Rajdhani', 'Sarabun', sans-serif;
  --font-th:       'Sarabun', sans-serif;
}

/* ══ Reset & Base ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; text-shadow: var(--cyan-glow); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

::selection { background: rgba(0,212,255,0.25); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 10px; }

/* ══ Utility ════════════════════════════════════════════════ */
.hidden { display: none !important; }
.neon-text {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan), 0 0 20px rgba(0,212,255,0.4);
}

/* ══════════════════════════════════════════════════════════════
   ENTRY SCREEN
══════════════════════════════════════════════════════════════ */
.entry-screen {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary);
  overflow: hidden;
}

#matrix-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.18;
}

.entry-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(0,212,255,0.05) 0%, transparent 70%);
}

.entry-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  animation: entryFadeIn 1.2s ease forwards;
}

@keyframes entryFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Entry Logo Rings */
.entry-logo-wrap {
  position: relative; width: 130px; height: 130px;
  display: flex; align-items: center; justify-content: center;
}

.entry-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid transparent;
}
.ring-1 {
  width: 130px; height: 130px;
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,212,255,0.4), inset 0 0 15px rgba(0,212,255,0.1);
  animation: spinRing 6s linear infinite;
}
.ring-2 {
  width: 105px; height: 105px;
  border-color: var(--purple-light);
  border-style: dashed;
  animation: spinRing 10s linear infinite reverse;
}
.ring-3 {
  width: 80px; height: 80px;
  border-color: var(--pink);
  animation: spinRing 4s linear infinite;
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.entry-initials {
  font-family: var(--font-tech);
  font-size: 2rem; font-weight: 900;
  color: var(--cyan);
  text-shadow: var(--cyan-glow);
  z-index: 1;
  letter-spacing: 4px;
}

/* Entry Text */
.entry-greeting {
  font-family: var(--font-th);
  color: var(--text-secondary); font-size: 1rem;
  letter-spacing: 3px;
}

.entry-name {
  font-family: var(--font-tech);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900; color: var(--text-primary);
  letter-spacing: 6px; line-height: 1.1;
}

/* Glitch Effect */
.glitch {
  position: relative;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; width: 100%;
  font-family: inherit; font-size: inherit; font-weight: inherit;
  letter-spacing: inherit;
}
.glitch::before {
  color: var(--cyan);
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  color: var(--pink);
  animation: glitch2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%,89%,91%,100% { transform: translate(0); opacity: 0; }
  90% { transform: translate(-3px, 1px); opacity: 0.8; }
}
@keyframes glitch2 {
  0%,84%,86%,100% { transform: translate(0); opacity: 0; }
  85% { transform: translate(3px, -1px); opacity: 0.8; }
}

.entry-subtitle {
  font-family: var(--font-body); color: var(--text-secondary);
  font-size: 1.1rem; letter-spacing: 2px;
}

.entry-divider {
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple-light), transparent);
}

.entry-desc {
  font-family: var(--font-th); color: var(--text-secondary);
  font-size: 0.9rem; letter-spacing: 2px;
}

/* Enter Button */
.enter-btn {
  position: relative; padding: 14px 44px;
  font-family: var(--font-tech); font-size: 0.9rem;
  font-weight: 700; letter-spacing: 3px; color: var(--cyan);
  background: transparent;
  overflow: hidden; transition: var(--transition);
  margin-top: 0.5rem;
}
.enter-btn:hover { color: #fff; background: var(--cyan-dim); }
.enter-btn:hover .btn-text { text-shadow: var(--cyan-glow); }

.btn-border {
  position: absolute; background: var(--cyan);
  transition: var(--transition);
}
.btn-border-top    { top: 0; left: 0; width: 0; height: 1px; transition-delay: 0.3s; }
.btn-border-right  { top: 0; right: 0; width: 1px; height: 0; transition-delay: 0.2s; }
.btn-border-bottom { bottom: 0; right: 0; width: 0; height: 1px; transition-delay: 0.1s; }
.btn-border-left   { bottom: 0; left: 0; width: 1px; height: 0; transition-delay: 0s; }

.enter-btn:hover .btn-border-top    { width: 100%; }
.enter-btn:hover .btn-border-right  { height: 100%; }
.enter-btn:hover .btn-border-bottom { width: 100%; }
.enter-btn:hover .btn-border-left   { height: 100%; }

/* Initial borders (static corners) */
.enter-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 1px solid rgba(0,212,255,0.3);
}

.btn-text {
  display: flex; align-items: center; gap: 8px;
}
.btn-icon { width: 18px; height: 18px; }

/* Scroll hint dots */
.entry-scroll-hint {
  display: flex; gap: 8px; margin-top: 0.5rem;
}
.entry-scroll-hint span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); opacity: 0.4;
  animation: blink 1.4s infinite;
}
.entry-scroll-hint span:nth-child(2) { animation-delay: 0.2s; }
.entry-scroll-hint span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100%{opacity:0.2} 40%{opacity:1} }

/* ══════════════════════════════════════════════════════════════
   TRANSITION OVERLAY
══════════════════════════════════════════════════════════════ */
.transition-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg-primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.transition-overlay.active {
  opacity: 1; pointer-events: all;
}

.transition-lines { display: flex; gap: 6px; }
.tl {
  width: 4px; height: 60px;
  background: var(--cyan);
  border-radius: 2px;
  animation: tlAnim 0.8s ease infinite alternate;
}
.tl1 { animation-delay: 0s; }
.tl2 { animation-delay: 0.15s; background: var(--purple-light); }
.tl3 { animation-delay: 0.3s; background: var(--pink); }
@keyframes tlAnim {
  from { transform: scaleY(0.3); opacity: 0.4; }
  to   { transform: scaleY(1); opacity: 1; }
}

.transition-text {
  font-family: var(--font-tech);
  color: var(--cyan); letter-spacing: 6px; font-size: 1rem;
}
.dots { animation: dotsAnim 1.2s infinite; }
@keyframes dotsAnim {
  0%  { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

/* ══════════════════════════════════════════════════════════════
   PORTFOLIO WRAPPER
══════════════════════════════════════════════════════════════ */
.portfolio {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.portfolio.show {
  opacity: 1; transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(5,5,16,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5,5,16,0.95);
  box-shadow: 0 4px 30px rgba(0,212,255,0.08);
}

.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-tech); font-size: 1.1rem;
  font-weight: 700; color: var(--text-primary);
  letter-spacing: 2px; text-shadow: none;
  transition: var(--transition);
}
.nav-logo:hover { color: var(--cyan); }
.logo-bracket { color: var(--cyan); }
.logo-dot     { color: var(--purple-light); }
.logo-dev     { color: var(--purple-light); }

.nav-links {
  display: flex; gap: 2rem;
}
.nav-link {
  font-family: var(--font-tech); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 2px;
  color: var(--text-secondary);
  position: relative; padding-bottom: 4px;
  transition: var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--cyan), var(--purple-light));
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--cyan); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px; transition: var(--transition);
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS — SHARED
══════════════════════════════════════════════════════════════ */
.section {
  min-height: 100vh; padding: 6rem 0;
  position: relative;
}

.section-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center; margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--font-tech);
  color: var(--cyan); font-size: 0.8rem;
  letter-spacing: 4px; display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-th);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--text-primary);
  margin-bottom: 1rem; line-height: 1.2;
}
.title-accent {
  font-family: var(--font-tech);
  color: var(--cyan);
  font-size: 0.7em; display: block;
  letter-spacing: 4px; margin-top: 4px;
}

.section-line {
  width: 80px; height: 2px; margin: 0 auto;
  background: linear-gradient(90deg, var(--cyan), var(--purple-light));
  border-radius: 2px;
  position: relative;
}
.section-line::before {
  content: ''; position: absolute;
  top: -2px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* Reveal Animation */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease calc(var(--delay, 0s)),
              transform 0.7s ease calc(var(--delay, 0s));
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════════ */
.hero-section {
  padding-top: calc(var(--nav-h) + 4rem);
  display: flex; align-items: center;
  overflow: hidden;
}

#particles-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.5;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  width: 100%; display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}

/* Hero Left */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green); border-radius: 100px;
  padding: 6px 16px; font-size: 0.8rem;
  letter-spacing: 1px; margin-bottom: 1.5rem;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,0.2)}
  50%{box-shadow:0 0 0 8px rgba(16,185,129,0)}
}

.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: blink 1.4s infinite;
}

.hero-title {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin-bottom: 1rem;
}
.hero-greeting {
  font-family: var(--font-th); font-size: 1.1rem;
  color: var(--text-secondary); font-weight: 400;
}
.hero-name {
  font-family: var(--font-th); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; color: var(--text-primary); line-height: 1.1;
}
.hero-name-en {
  font-family: var(--font-tech); font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--cyan); letter-spacing: 4px; font-weight: 400;
}

.hero-roles {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-tech); font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--purple-light); margin-bottom: 1.5rem;
}
.role-prefix, .role-suffix { color: var(--text-muted); }
.typed-role { color: var(--cyan); min-width: 200px; }
.role-cursor {
  color: var(--cyan); font-weight: 100;
  animation: blink 1s infinite;
}

.hero-desc {
  font-family: var(--font-th); font-size: 1.05rem;
  color: var(--text-secondary); line-height: 1.8;
  max-width: 480px; margin-bottom: 2rem;
}

/* Buttons */
.hero-btns {
  display: flex; gap: 1rem; margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex; align-items: center;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff; border-radius: 4px;
  font-family: var(--font-tech); font-size: 0.85rem;
  font-weight: 700; letter-spacing: 2px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.5);
  color: #fff;
}

.btn-secondary {
  display: inline-flex; align-items: center;
  padding: 12px 32px;
  border: 1px solid var(--cyan);
  color: var(--cyan); border-radius: 4px;
  font-family: var(--font-tech); font-size: 0.85rem;
  font-weight: 700; letter-spacing: 2px;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: var(--cyan-dim);
  transform: translateY(-2px);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}

/* Social Links */
.hero-social {
  display: flex; gap: 1rem;
}
.social-link {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 15px rgba(0,212,255,0.2);
  transform: translateY(-3px);
}

/* ── Profile Visual ── */
.hero-right {
  display: flex; align-items: center; justify-content: center;
}

.profile-container {
  position: relative; width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}

.profile-outer-ring {
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, var(--cyan), var(--purple-light), var(--pink), var(--cyan));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 2px));
  animation: spinRing 8s linear infinite;
}

.profile-hex-ring {
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 1px dashed rgba(0,212,255,0.3);
  animation: spinRing 20s linear infinite reverse;
}

.profile-inner {
  width: 260px; height: 260px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(0,212,255,0.4);
  box-shadow:
    0 0 30px rgba(0,212,255,0.3),
    0 0 80px rgba(0,212,255,0.1),
    inset 0 0 30px rgba(0,212,255,0.05);
  position: relative; z-index: 1;
}

.profile-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: saturate(1.1) contrast(1.05);
  transition: transform 0.5s ease;
}
.profile-img:hover { transform: scale(1.05); }

.profile-scan-line {
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  z-index: 2; border-radius: 50%;
  animation: scanLine 3s linear infinite;
  opacity: 0.6;
}
@keyframes scanLine {
  0%   { top: 20px; opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { top: 295px; opacity: 0; }
}

.profile-corner {
  position: absolute; width: 20px; height: 20px; z-index: 3;
}
.profile-corner::before, .profile-corner::after {
  content: ''; position: absolute;
  background: var(--cyan);
}
.pc1 { top: 10px; left: 10px; }
.pc1::before { top:0;left:0; width:2px;height:12px; }
.pc1::after  { top:0;left:0; width:12px;height:2px; }

.pc2 { top: 10px; right: 10px; }
.pc2::before { top:0;right:0; width:2px;height:12px; }
.pc2::after  { top:0;right:0; width:12px;height:2px; }

.pc3 { bottom: 10px; left: 10px; }
.pc3::before { bottom:0;left:0; width:2px;height:12px; }
.pc3::after  { bottom:0;left:0; width:12px;height:2px; }

.pc4 { bottom: 10px; right: 10px; }
.pc4::before { bottom:0;right:0; width:2px;height:12px; }
.pc4::after  { bottom:0;right:0; width:12px;height:2px; }

.profile-tag {
  position: absolute; bottom: -5px; left: 50%;
  transform: translateX(-50%);
  background: rgba(5,5,16,0.9);
  border: 1px solid var(--cyan);
  padding: 4px 16px; border-radius: 100px;
  display: flex; align-items: center; gap: 8px;
  z-index: 4;
  box-shadow: 0 0 15px rgba(0,212,255,0.3);
}
.tag-name {
  font-family: var(--font-tech); color: var(--cyan);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
}
.tag-id { color: var(--text-muted); font-size: 0.7rem; }

.profile-orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.15);
}
.orbit-1 {
  width: 360px; height: 360px;
  animation: spinRing 12s linear infinite;
}
.orbit-2 {
  width: 420px; height: 420px;
  animation: spinRing 18s linear infinite reverse;
}
.orbit-dot {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  margin-top: -4px;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.65rem;
  letter-spacing: 3px; font-family: var(--font-tech);
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-8px)} }

.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--text-muted);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--cyan); border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(12px);opacity:0} }

/* ══════════════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════════════ */
.about-section {
  background:
    radial-gradient(ellipse 60% 50% at 0% 50%, rgba(124,58,237,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(0,212,255,0.06) 0%, transparent 60%),
    var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.about-card-wide { grid-column: 1 / -1; }

.about-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.about-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.about-card:hover::before { opacity: 1; }

.about-card-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.card-icon-wrap {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan-dim);
  color: var(--cyan); flex-shrink: 0;
}
.card-icon-wrap svg { width: 22px; height: 22px; }
.about-card-header h3 {
  font-family: var(--font-th); font-size: 1.1rem;
  font-weight: 600; color: var(--text-primary);
}

.about-info-list { display: flex; flex-direction: column; gap: 0.75rem; }
.info-item {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 1rem;
}
.info-item:last-child { border-bottom: none; padding-bottom: 0; }
.info-label {
  font-size: 0.85rem; color: var(--text-muted);
  font-family: var(--font-th); flex-shrink: 0;
}
.info-value {
  font-size: 0.95rem; color: var(--text-primary);
  font-family: var(--font-th); text-align: right;
  word-break: break-word;
}
.info-value a { color: var(--cyan); }

.trait-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.trait-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem;
  transition: var(--transition);
}
.trait-item:hover {
  border-color: var(--border-hover);
  background: var(--cyan-dim);
}
.trait-icon { font-size: 1.8rem; flex-shrink: 0; }
.trait-text strong {
  display: block; color: var(--text-primary);
  font-family: var(--font-th); font-size: 0.95rem;
  margin-bottom: 4px;
}
.trait-text p {
  color: var(--text-muted); font-size: 0.82rem;
  font-family: var(--font-th); line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   SKILLS SECTION
══════════════════════════════════════════════════════════════ */
.skills-section {
  background: var(--bg-primary);
  position: relative;
}
.skills-section::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
}

.skills-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}

.skill-category {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  backdrop-filter: blur(10px);
}

.skill-cat-title {
  font-family: var(--font-th); font-size: 1.1rem;
  font-weight: 600; color: var(--text-primary);
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px;
}
.cat-icon { font-size: 1.3rem; }

/* Skill Bars */
.skill-bars { display: flex; flex-direction: column; gap: 1.2rem; }

.skill-bar-item {}
.skill-bar-info {
  display: flex; justify-content: space-between;
  margin-bottom: 6px;
  font-family: var(--font-th); font-size: 0.9rem;
  color: var(--text-secondary);
}
.skill-pct { color: var(--cyan); font-family: var(--font-tech); font-size: 0.8rem; }

.skill-bar-track {
  height: 6px; background: rgba(255,255,255,0.05);
  border-radius: 10px; overflow: hidden;
}
.skill-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--purple-light));
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.skill-bar-fill::after {
  content: ''; position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* Hex Skills */
.skill-hexgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.hex-skill {
  aspect-ratio: 1;
  background: var(--cyan-dim);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); cursor: default;
}
.hex-skill:hover {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.15);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}
.hex-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px; padding: 0.5rem;
}
.hex-icon { font-size: 1.6rem; }
.hex-label {
  font-family: var(--font-th); font-size: 0.75rem;
  color: var(--text-secondary); text-align: center; line-height: 1.3;
}
.hex-skill:hover .hex-label { color: var(--cyan); }

/* ══════════════════════════════════════════════════════════════
   HOBBIES SECTION
══════════════════════════════════════════════════════════════ */
.hobbies-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,0.04) 0%, transparent 60%),
    var(--bg-secondary);
}

.hobbies-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}

.hobby-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem 1.5rem;
  text-align: center; position: relative;
  overflow: hidden; transition: var(--transition);
  backdrop-filter: blur(10px);
  cursor: default;
}

.hobby-glow {
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,212,255,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}

.hobby-card:hover { transform: translateY(-8px); border-color: var(--border-hover); }
.hobby-card:hover .hobby-glow { opacity: 1; }

.hobby-emoji {
  font-size: 2.8rem; margin-bottom: 0.5rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}
.hobby-card:nth-child(2) .hobby-emoji { animation-delay: 0.5s; }
.hobby-card:nth-child(3) .hobby-emoji { animation-delay: 1s; }
.hobby-card:nth-child(4) .hobby-emoji { animation-delay: 1.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.hobby-icon-wrap {
  width: 52px; height: 52px; margin: 0 auto 1rem;
  border: 1px solid var(--border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); background: var(--cyan-dim);
  transition: var(--transition);
}
.hobby-card:hover .hobby-icon-wrap {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,212,255,0.25);
}
.hobby-icon-wrap svg { width: 26px; height: 26px; }

.hobby-card h3 {
  font-family: var(--font-th); font-size: 1.1rem;
  font-weight: 600; color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.hobby-card p {
  font-family: var(--font-th); font-size: 0.85rem;
  color: var(--text-muted); line-height: 1.6;
  margin-bottom: 1rem;
}
.hobby-tag {
  display: inline-block;
  background: var(--purple-dim);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--purple-light); border-radius: 100px;
  font-size: 0.72rem; padding: 4px 12px;
  font-family: var(--font-body);
}

/* ══════════════════════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════════════════════ */
.contact-section { background: var(--bg-primary); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}

.contact-intro {
  font-family: var(--font-th); font-size: 1.1rem;
  color: var(--text-secondary); line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-cards { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.25rem;
  transition: var(--transition);
  color: var(--text-primary);
  cursor: pointer;
}
.contact-card:hover {
  border-color: var(--border-hover);
  background: var(--cyan-dim);
  transform: translateX(6px);
  color: var(--text-primary);
}

.contact-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--cyan-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); flex-shrink: 0; border: 1px solid var(--border);
}
.contact-card-icon svg { width: 20px; height: 20px; }

.contact-card-info {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.cc-label {
  font-size: 0.75rem; color: var(--text-muted);
  font-family: var(--font-th);
}
.cc-value {
  font-size: 0.9rem; color: var(--text-primary);
  font-family: var(--font-th); word-break: break-word;
}
.contact-arrow { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.contact-card:hover .contact-arrow { color: var(--cyan); transform: translateX(4px); }

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  backdrop-filter: blur(10px);
}

.form-header { margin-bottom: 1.5rem; }
.form-header h3 {
  font-family: var(--font-th); font-size: 1.2rem;
  font-weight: 600; color: var(--text-primary); margin-bottom: 4px;
}
.form-header p {
  font-family: var(--font-th); font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group { position: relative; margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-family: var(--font-th);
  font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; color: var(--text-primary);
  font-family: var(--font-th); font-size: 0.95rem;
  outline: none; transition: var(--transition);
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
  background: rgba(0,212,255,0.03);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff; border-radius: 8px;
  font-family: var(--font-th); font-size: 1rem; font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.5);
}

.form-success {
  margin-top: 1rem;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green); border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-th); font-size: 0.9rem;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.footer-container {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.footer-logo {
  font-family: var(--font-tech); font-size: 1rem;
  font-weight: 700; letter-spacing: 2px;
  color: var(--text-primary);
}
.footer-text {
  font-family: var(--font-th); font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-sub {
  font-family: var(--font-tech); font-size: 0.7rem;
  color: var(--text-muted); letter-spacing: 2px;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-container  { grid-template-columns: 1fr; text-align: center; }
  .hero-left       { order: 2; display: flex; flex-direction: column; align-items: center; }
  .hero-right      { order: 1; }
  .hero-desc       { text-align: center; }
  .profile-container { width: 260px; height: 260px; }
  .profile-inner   { width: 210px; height: 210px; }
  .orbit-1         { width: 300px; height: 300px; }
  .orbit-2         { width: 350px; height: 350px; }
  .hobbies-grid    { grid-template-columns: repeat(2, 1fr); }
  .skills-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(5,5,16,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 1rem 2rem; border-bottom: 1px solid var(--border); }
  .nav-link::after { display: none; }
  .nav-hamburger { display: flex; }

  .about-grid      { grid-template-columns: 1fr; }
  .about-card-wide { grid-column: auto; }
  .trait-grid      { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .hobbies-grid    { grid-template-columns: 1fr 1fr; }

  .section { padding: 4rem 0; }
  .hero-section { padding-top: calc(var(--nav-h) + 2rem); min-height: auto; padding-bottom: 4rem; }
  .profile-container { width: 220px; height: 220px; }
  .profile-inner   { width: 180px; height: 180px; }
  .orbit-1         { width: 260px; height: 260px; }
  .orbit-2         { width: 310px; height: 310px; }
}

@media (max-width: 480px) {
  .hobbies-grid  { grid-template-columns: 1fr; }
  .skill-hexgrid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns     { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .entry-name    { font-size: 1.6rem; }
  .enter-btn     { padding: 12px 28px; }
}
