/* ============================================
   MURIM DEVELOPER PORTFOLIO
   Martial Arts Cultivation Theme
   Pure Black & White Aesthetic
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg: #000000;
  --bg-card: #0a0a0a;
  --bg-card-hover: #111111;
  --border: #1a1a1a;
  --border-hover: #333333;
  --text: #ffffff;
  --text-secondary: #999999;
  --text-muted: #555555;
  --glow: rgba(255, 255, 255, 0.1);
  --glow-strong: rgba(255, 255, 255, 0.25);
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

@media (hover: none) {
  body { cursor: auto; }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #333333;
}

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

/* Selection */
::selection {
  background: #ffffff;
  color: #000000;
}

::-moz-selection {
  background: #ffffff;
  color: #000000;
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  margin-left: -4px;
  margin-top: -4px;
  will-change: transform;
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, margin 0.3s;
  mix-blend-mode: difference;
  margin-left: -17.5px;
  margin-top: -17.5px;
  will-change: transform;
}

.cursor-trail.cursor-hover {
  width: 50px;
  height: 50px;
  margin-left: -25px;
  margin-top: -25px;
  border-color: rgba(255, 255, 255, 0.3);
}

@media (hover: none) {
  .cursor-dot,
  .cursor-trail {
    display: none;
  }
}

/* --- Fog Overlay --- */
.fog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.fog {
  position: absolute;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.015) 20%,
    transparent 40%
  );
  animation: fogDrift linear infinite;
}

.fog-1 {
  top: 0;
  animation-duration: 45s;
  opacity: 0.5;
}

.fog-2 {
  top: 30%;
  animation-duration: 35s;
  animation-delay: -15s;
  opacity: 0.3;
}

.fog-3 {
  top: 60%;
  animation-duration: 55s;
  animation-delay: -25s;
  opacity: 0.4;
}

@keyframes fogDrift {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* --- Particle Canvas --- */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: white;
  text-decoration: none;
  transition: text-shadow var(--transition);
}

.nav-logo:hover {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a.active {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: white;
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: white;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.02) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 80px 24px 0;
  z-index: 5;
  position: relative;
}

.hero-badge,
.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: 2px;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* Typing area */
.typing-area,
.hero-typing {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.typing-prefix {
  color: var(--text-secondary);
}

.typing-text {
  color: white;
  font-family: var(--font-heading);
}

.typing-cursor {
  color: white;
  animation: blink 1s step-end infinite;
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.btn {
  padding: 14px 32px;
  border-radius: 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: white;
  color: black;
  border: 1px solid white;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-outline,
.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid var(--border-hover);
}

.btn-outline:hover,
.btn-secondary:hover {
  border-color: white;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Hero socials */
.hero-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 32px;
}

.social-icon,
.hero-socials a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-icon:hover,
.hero-socials a:hover {
  border-color: white;
  color: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* Hero divider */
.hero-divider {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.divider-line {
  width: 80px;
  height: 1px;
  background: var(--border-hover);
}

.divider-diamond {
  width: 8px;
  height: 8px;
  border: 1px solid var(--text-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  display: inline-block;
}

/* --- Section Styles (Shared) --- */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 3px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 60px;
}

.section-line {
  width: 60px;
  height: 1px;
  background: white;
  margin: 16px auto 20px;
  position: relative;
}

.section-line::before,
.section-line::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid white;
  transform: rotate(45deg);
  top: -3.5px;
}

.section-line::before {
  left: -20px;
}

.section-line::after {
  right: -20px;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.about-portrait {
  position: relative;
}

.portrait-frame {
  aspect-ratio: 3 / 4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;  /* remove any background */
  border: none;             /* remove the original border */
}

.portrait-placeholder {
  font-size: 4rem;
  color: var(--text-muted);
}

/* Corner accents */
.portrait-corner {
  position: absolute;
  width: 24px;
  height: 24px;
}

.portrait-corner-tl {
  top: -1px;
  left: -1px;
  border-top: 1px solid white;
  border-left: 1px solid white;
}

.portrait-corner-tr {
  top: -1px;
  right: -1px;
  border-top: 1px solid white;
  border-right: 1px solid white;
}

.portrait-corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 1px solid white;
  border-left: 1px solid white;
}

.portrait-corner-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid white;
  border-right: 1px solid white;
}

.about-content p,
.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-stats {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}

.stat-card,
.stat-tablet {
  flex: 1;
  padding: 20px;
  border: 1px solid var(--border);
  text-align: center;
  background: var(--bg-card);
  transition: all var(--transition);
}

.stat-card:hover,
.stat-tablet:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-status {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

/* --- Skills Section --- */
.skill-category {
  margin-bottom: 40px;
}

.skill-category-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
}

.skills-row,
.skill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 32px;
}

.skill-icon,
.skill-scroll {
  width: 60px;
  height: 60px;
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.4s;
  cursor: default;
}

.skill-icon:hover,
.skill-scroll:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.skill-icon img,
.skill-scroll img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(70%);
  transition: filter var(--transition);
}

.skill-icon:hover img,
.skill-scroll:hover img {
  filter: grayscale(0%);
}

/* Tooltip */
.skill-icon[data-tooltip]::after,
.skill-scroll[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: black;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.skill-icon:hover::after,
.skill-scroll:hover::after {
  opacity: 1;
  bottom: calc(100% + 14px);
}

/* Hover text label below skill icon */
.skill-icon[data-tooltip]::before,
.skill-scroll[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-family: var(--font-heading);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.skill-icon:hover::before,
.skill-scroll:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Projects Section --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.project-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.4s;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
}

.project-image,
.project-top {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}

.project-image::after,
.project-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom, transparent, #000000);
  pointer-events: none;
}

.project-top i,
.project-overlay {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.project-info,
.project-body {
  padding: 24px;
}

.project-info h3,
.project-body h3,
.project-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.project-info p,
.project-body p,
.project-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tags span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-link,
.project-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.project-link:hover,
.project-links a:hover {
  color: white;
}

/* --- Experience Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-hover), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 8px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--border-hover);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
}

.timeline-dot::after {
  content: '';
  width: 5px;
  height: 5px;
  background: white;
  transform: rotate(0deg);
}

.timeline-content,
.timeline-card {
  border: 1px solid var(--border);
  padding: 28px;
  background: var(--bg-card);
  transition: all var(--transition);
}

.timeline-content:hover,
.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.04);
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid var(--border);
}

.timeline-content h3,
.timeline-card h3,
.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.timeline-content h4,
.timeline-card p.timeline-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 400;
}

.timeline-content p,
.timeline-card p,
.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* --- Contact Section --- */
.contact-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 60px;
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 16px;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-card i {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.contact-card h3,
.contact-card h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.contact-card a,
.contact-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.contact-socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.contact-socials a:hover {
  border-color: white;
  color: white;
}

/* Contact form */
.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-full,
.btn-submit {
  width: 100%;
}

.form-status {
  margin-top: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.form-status.success {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.05);
}

.form-status.error {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

input.error,
textarea.error {
  border-color: rgba(239, 68, 68, 0.5) !important;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: white;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  border-color: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text {
  position: relative;
  display: inline-block;
}

.reveal-text::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-text.visible::after {
  width: 0;
}

/* --- Utility --- */
.gradient-text {
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Keyframes --- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.05); }
}

/* ============================================
   ADVANCED MARTIAL ARTS EFFECTS
   ============================================ */

/* --- Cinematic Intro Overlay --- */
.cinematic-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cinematic-line {
  position: absolute;
  background: white;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cinematic-overlay.phase-1 .cinematic-line {
  width: 60%;
  height: 2px;
}

.cinematic-overlay.phase-2 .cinematic-line {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.cinematic-overlay.phase-3 {
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* --- Qi Aura Canvas --- */
.qi-aura-canvas {
  position: absolute;
  top: -30px;
  left: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  pointer-events: none;
  z-index: -1;
}

.portrait-frame {
  position: relative;
}

/* --- Sword Slash Effect --- */
.slash-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
  opacity: 0;
}

.slash-effect.active {
  opacity: 1;
}

.slash-line {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  transform: rotate(-30deg);
  transform-origin: left center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.3);
}

.slash-effect.active .slash-line {
  animation: swordSlash 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes swordSlash {
  0% { width: 0; opacity: 1; }
  60% { width: 120%; opacity: 1; }
  100% { width: 120%; opacity: 0; }
}

.slash-flare {
  position: absolute;
  top: 50%;
  left: -5%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, white, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.slash-effect.active .slash-flare {
  animation: slashFlare 0.4s ease-out forwards;
}

@keyframes slashFlare {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(3); }
}

/* --- Energy Ripple on Buttons --- */
.energy-ripple {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  animation: rippleExpand 0.6s ease-out forwards;
  z-index: 100;
}

@keyframes rippleExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

/* --- Ink Splatter --- */
.ink-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 10;
  animation: inkSplat 0.8s ease-out forwards;
}

@keyframes inkSplat {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  20% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  60% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* --- Scroll Progress Gauge --- */
.scroll-gauge {
  position: fixed;
  top: 0;
  right: 0;
  width: 2px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.05);
  z-index: 999;
}

.scroll-gauge-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.6));
  transition: height 0.1s linear;
  position: relative;
}

.scroll-gauge-fill::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  background: white;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.gauge-marker {
  position: absolute;
  right: 0;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateX(-50%) rotate(45deg) translateY(-50%);
  left: 50%;
}

/* --- Skill Activation Flash --- */
.skill-scroll.activating {
  animation: skillFlash 0.4s ease-out;
}

@keyframes skillFlash {
  0% { box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0); }
  30% { box-shadow: inset 0 0 20px 5px rgba(255, 255, 255, 0.3), 0 0 25px rgba(255, 255, 255, 0.15); }
  100% { box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 rgba(255, 255, 255, 0); }
}

.skill-scroll.activating::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: borderSweep 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes borderSweep {
  0% {
    clip-path: inset(0 100% 100% 0);
    opacity: 1;
  }
  50% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
}

/* --- Section Position (for slash overlay) --- */
.section {
  position: relative;
  overflow: hidden;
}

/* --- Responsive: Tablet & Below --- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #000000;
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 1.2rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .scroll-gauge {
    display: none;
  }

  .cinematic-overlay {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    max-width: 250px;
    margin: 0 auto;
  }

  .portrait-frame {
    aspect-ratio: 1 / 1;
    width: 160px;
    margin: 0 auto;
  }

  .about-stats {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .section {
    padding: 80px 0;
  }
}

/* --- Responsive: Small Mobile --- */
@media (max-width: 480px) {
  .about-stats {
    flex-direction: column;
  }

  .stat-card,
  .stat-tablet {
    width: 100%;
  }

  .skill-icon,
  .skill-scroll {
    width: 48px;
    height: 48px;
  }
}