/* Category Selector - Initializing Style (Projects Page) */
.category-selector-init {
  background: rgba(18, 18, 37, 0.82);
  border: 1.5px solid rgba(138, 43, 226, 0.22);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(138,43,226,0.08);
  padding: 2.8rem 2rem 2.2rem 2rem;
  min-height: 80px;
  min-width: 0;
  box-shadow: 0 8px 32px 0 rgba(138,43,226,0.13), 0 2px 8px 0 rgba(0,255,170,0.10);
  border: 2.5px solid rgba(0,255,170,0.13);
  background: linear-gradient(120deg, rgba(18,18,37,0.92) 60%, rgba(138,43,226,0.13) 100%);
  margin: 0 auto 2.5rem auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.2s cubic-bezier(.77,0,.18,1);
}
.init-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.25rem;
  margin-bottom: 2.1rem;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
  text-shadow: 0 0 8px var(--accent-cyan);
}
.init-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 12px 2px var(--accent-cyan);
  animation: blinkInitDot 1.1s infinite alternate;
  display: inline-block;
}
@keyframes blinkInitDot {
  0% { opacity: 0.5; box-shadow: 0 0 8px 2px var(--accent-cyan); }
  100% { opacity: 1; box-shadow: 0 0 18px 4px var(--accent-purple); }
}
.category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.category-btn {
  min-width: 160px;
  font-family: 'Orbitron', monospace;
  font-size: 1.08rem;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  color: var(--primary-dark);
  border: none;
  border-radius: 16px;
  padding: 0.9em 2.2em;
  box-shadow: 0 2px 12px 0 rgba(138,43,226,0.10);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.18s;
  position: relative;
  outline: none;
  letter-spacing: 1px;
  margin-bottom: 0.5em;
}
.category-btn.active, .category-btn:focus {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(0,255,170,0.13);
  transform: scale(1.08);
  z-index: 1;
}
.category-btn:hover:not(.active) {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-pink));
  color: var(--primary-dark);
  transform: scale(1.04);
}
@media (max-width: 700px) {
  .category-selector-init {
    padding: 1.5rem 0.7rem 1.5rem 0.7rem;
    max-width: 98vw;
    min-height: 120px;
  }
  .category-options {
    gap: 0.7rem;
    flex-wrap: wrap;
  }
  .category-btn {
    font-size: 0.98rem;
    padding: 0.7em 1.3em;
  }
/* Project Card Assembly Animation */
.project-card {
  opacity: 0;
  transform: scale(0.92) translateY(60px) rotateX(18deg);
  animation: cardAssemble 0.85s cubic-bezier(.77,0,.18,1) forwards;
  animation-delay: var(--card-delay, 0s);
}
.project-card.scrolled-in {
  opacity: 1;
  transform: scale(1) translateY(0) rotateX(0);
}
@keyframes cardAssemble {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(60px) rotateX(18deg);
    filter: blur(6px) brightness(1.2);
  }
  60% {
    opacity: 1;
    filter: blur(0.5px) brightness(1.08);
    transform: scale(1.04) translateY(-8px) rotateX(0deg);
  }
  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1) translateY(0) rotateX(0);
  }
}
}
/* Scroll Fade-in Effect */
.section,
.project-card,
.skill-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1);
}
.section.scrolled-in,
.project-card.scrolled-in,
.skill-card.scrolled-in {
  opacity: 1;
  transform: translateY(0);
}
/* Hero Section Entrance Animation */
/* Only hide hero elements before animation, not by default */

/* Hero animation: visible by default, animate in with .hero-animate */
.hero-content.hero-animate,
.hero-title.hero-animate,
.hero-subtitle.hero-animate,
.hero-buttons.hero-animate,
.hero-image.hero-animate,
.scroll-down.hero-animate {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1);
}
.hero-content,
.hero-title,
.hero-subtitle,
.hero-buttons,
.hero-image,
.scroll-down {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1);
}
/* Website Loader Styles */
.site-loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #0a0a1a 60%, #8a2be2 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(.77,0,.18,1);
}
.site-loader.hide {
  opacity: 0;
  pointer-events: none;
}
.loader-content {
  text-align: center;
}
.loader-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 32px;
  text-shadow: 0 0 18px #8a2be2, 0 0 8px #00ffaa;
}
.loader-logo span {
  color: #00ffaa;
}
.loader-bar {
  width: 220px;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 0 16px #8a2be2;
}
.loader-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00ffaa, #8a2be2, #ff00ff);
  border-radius: 8px;
  animation: loaderBarAnim 1.5s cubic-bezier(.77,0,.18,1) forwards;
}
@keyframes loaderBarAnim {
  0% { width: 0%; }
  80% { width: 95%; }
  100% { width: 100%; }
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(120deg, var(--accent-purple), var(--accent-cyan), var(--accent-green), var(--accent-pink));
  background-size: 200% 200%;
  animation: borderGradientMove 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn-project {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-pink));
  color: var(--primary-dark);
  box-shadow: 0 0 15px rgba(0,255,170,0.25);
  border: none;
  position: relative;
  z-index: 1;
}

.btn-project:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 5px 20px rgba(255, 0, 255, 0.4);
  filter: brightness(1.08);
}

.btn-project::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,255,170,0.15), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-project:hover::before {
  left: 100%;
}
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Theme Colors */
:root {
  --primary-dark: #0a0a1a;
  --secondary-dark: #121225;
  --accent-purple: #8a2be2;
  --accent-pink: #ff00ff;
  --accent-cyan: #00ffff;
  --accent-green: #00ffaa;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --neon-glow: 0 0 10px var(--accent-purple), 0 0 20px var(--accent-purple), 0 0 30px var(--accent-purple);
  --transition-speed: 0.3s;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Elements */
.background-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}


.element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 15s infinite ease-in-out;
  filter: blur(1.5px) saturate(1.2);
  transition: opacity 0.4s, filter 0.4s;
}

.element.circle {
  background: radial-gradient(circle at 60% 40%, var(--accent-purple) 60%, var(--accent-cyan) 100%, transparent 100%);
  border: none;
  box-shadow: 0 0 32px 8px var(--accent-purple), 0 0 0 0 transparent;
  width: 38px;
  height: 38px;
  top: 18%;
  left: 8%;
  animation-delay: 0s;
}

.element.triangle {
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 32px solid var(--accent-cyan);
  filter: drop-shadow(0 0 18px var(--accent-cyan));
  box-shadow: none;
  top: 68%;
  left: 78%;
  animation-delay: 2s;
}

.element.square {
  background: linear-gradient(135deg, var(--accent-green) 60%, var(--accent-pink) 100%);
  border: none;
  box-shadow: 0 0 24px 4px var(--accent-green);
  width: 22px;
  height: 22px;
  border-radius: 8px;
  top: 38%;
  left: 88%;
  animation-delay: 4s;
}

.element.large {
  transform: scale(2.2);
  filter: blur(2.5px) saturate(1.3);
}

.element.circle.large {
  width: 40px;
  height: 40px;
}

.element.triangle.large {
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 40px solid var(--accent-cyan);
}

.element.square.large {
  width: 30px;
  height: 30px;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, 20px) rotate(90deg);
  }
  50% {
    transform: translate(0, 40px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, 20px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

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

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-purple);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-pink);
}

/* Container */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 26, 0.8);
  border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 26, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  padding-left: 2rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

@media (max-width: 576px) {
  .logo-text {
    font-size: 1.5rem;
    padding-left: 1rem;
  }
}

.logo-text .neon {
  text-shadow: var(--neon-glow);
  animation: neon-pulse 2s infinite alternate;
}

@keyframes neon-pulse {
  0% {
    text-shadow: 0 0 5px var(--accent-purple), 0 0 10px var(--accent-purple);
  }
  100% {
    text-shadow: 0 0 15px var(--accent-purple), 0 0 30px var(--accent-purple), 0 0 45px var(--accent-purple);
  }
}

.navigation {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-purple);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-purple);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent-purple);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 50px;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.hero-title .line:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-title .line:nth-child(2) {
  animation-delay: 0.4s;
  color: var(--accent-purple);
  text-shadow: 0 0 10px var(--accent-purple);
}

.hero-title .line:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.hero-image {
  flex: 1;
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glitch-image {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 40px var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}

.glitch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  position: relative;
}

.glitch-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan), var(--accent-green));
  opacity: 0.7;
  mix-blend-mode: multiply;
}

.glitch-layer:nth-child(1) {
  background: linear-gradient(45deg, var(--accent-purple), transparent);
  animation: glitch-anim 2s infinite;
}

.glitch-layer:nth-child(2) {
  background: linear-gradient(45deg, var(--accent-cyan), transparent);
  animation: glitch-anim 3s infinite reverse;
}

.glitch-layer:nth-child(3) {
  background: linear-gradient(45deg, var(--accent-green), transparent);
  animation: glitch-anim 4s infinite;
}

@keyframes glitch-anim {
  0% {
    transform: translate(0);
    opacity: 0.7;
  }
  20% {
    transform: translate(-2px, 2px);
    opacity: 0.8;
  }
  40% {
    transform: translate(-2px, -2px);
    opacity: 0.6;
  }
  60% {
    transform: translate(2px, 2px);
    opacity: 0.8;
  }
  80% {
    transform: translate(2px, -2px);
    opacity: 0.7;
  }
  100% {
    transform: translate(0);
    opacity: 0.7;
  }
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-20px);
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.mouse {
  margin-top: 10px;
  width: 30px;
  height: 50px;
  border: 2px solid var(--accent-purple);
  border-radius: 20px;
  position: relative;
}

.mouse span {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 10px;
  background: var(--accent-purple);
  border-radius: 3px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    top: 10px;
    opacity: 1;
  }
  50% {
    top: 20px;
    opacity: 0.5;
  }
  100% {
    top: 30px;
    opacity: 0;
  }
}

/* Section Styles */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
}

.section-line {
  width: 100px;
  height: 2px;
  background: var(--accent-purple);
  margin: 20px auto 0;
  box-shadow: 0 0 10px var(--accent-purple);
}

/* About Section */
.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 20px;
}

.stat-item {
  text-align: center;
  flex: 1;
  padding: 20px;
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 10px;
  background: rgba(18, 18, 37, 0.5);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
  border-color: var(--accent-purple);
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-purple);
  display: block;
  margin-bottom: 5px;
}

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

.about-visual {
  flex: 1;
}

.progress-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.progress-item {
  margin-bottom: 20px;
}

.progress-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--accent-cyan);
}

.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 5px;
  width: 0;
  transition: width 2s ease-in-out;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Skills Section */
.skills-content {
  padding: 0 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-card {
  background: rgba(18, 18, 37, 0.5);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
  border-color: var(--accent-purple);
}

.skill-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.skill-card:hover::before {
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--accent-purple);
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--accent-purple);
}

.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.skill-level {
  margin-bottom: 15px;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% {
    background-position: -100px 0;
  }
  100% {
    background-position: 100px 0;
  }
}

.skill-percent {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: var(--accent-purple);
  text-shadow: 0 0 5px var(--accent-purple);
}

/* Projects Section */
.projects-content {
  padding: 0 20px;
}

.projects-button {
  text-align: center;
  margin-top: 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
.project-grid.projects-page {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .project-grid,
  .project-grid.projects-page {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
  gap: 30px;
  margin-bottom: 40px;
}






.project-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: rgba(30, 32, 48, 0.72);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18), 0 2px 8px 0 rgba(0,255,170,0.10);
  border: 2.5px solid transparent;
  background-clip: padding-box;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  min-height: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 22px;
  transition: border-radius 0.3s;
  padding: 2px;
  background: linear-gradient(120deg, var(--accent-purple), var(--accent-cyan), var(--accent-green), var(--accent-pink));
  background-size: 200% 200%;
  animation: borderGradientMove 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

@keyframes borderGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.project-card:hover {
  transform: translateY(-14px) scale(1.035) rotate(-0.5deg);
  box-shadow: 0 24px 64px 0 rgba(138, 43, 226, 0.22), 0 2px 16px 0 rgba(0,255,170,0.13);
  border-radius: 22px;
  border-radius: 22px;
}






.project-image {
  position: relative;
  overflow: hidden;
  height: 350px;
  background: linear-gradient(120deg, rgba(138,43,226,0.10) 0%, rgba(0,255,170,0.10) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 0 18px 18px;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.5s, border-radius 0.3s;
  box-shadow: 0 2px 16px 0 rgba(138,43,226,0.10);
}

.project-image img[src$=".svg"] {
  width: 80%;
  height: 80%;
  object-fit: contain;
  padding: 16px;
  background: rgba(0, 0, 0, 0.13);
  border-radius: 0 0 18px 18px;
}

.project-card:hover .project-image img {
  transform: scale(1.08) rotate(-1.5deg);
  box-shadow: 0 8px 32px 0 rgba(0,255,170,0.13);
  border-radius: 0 0 18px 18px;
}







.project-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(24, 26, 44, 0.88);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 14px 10px 14px;
  text-align: center;
  box-sizing: border-box;
  min-height: 56px;
  border-radius: 0 0 18px 18px;
  transition: border-radius 0.3s;
}

.project-card:hover .project-overlay,
.project-card:active .project-overlay {
  border-radius: 0 0 18px 18px;
  box-shadow: 0 2px 16px 0 rgba(138,43,226,0.07);
  z-index: 2;
  backdrop-filter: blur(12px);
  gap: 12px;
}

.project-overlay h3 {
  font-size: 1.28rem;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  text-shadow: 0 0 12px var(--accent-cyan);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.project-overlay p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 1.08rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
}


.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 20px;
  margin: 0 auto;
  display: inline-block;
}







/* .project-btn-wrapper removed: button is now inside .project-overlay */

.project-card {
  /* ensure vertical layout for image and button */
  flex-direction: column;
  justify-content: flex-start;
}

/* Contact Section */
.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--accent-purple);
  margin-right: 15px;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(138, 43, 226, 0.2);
  transition: all 0.3s ease;
}

.social-links img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
}

.social-links a:hover {
  background: var(--accent-purple);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.contact-form {
  flex: 1;
  background: rgba(18, 18, 37, 0.5);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 15px;
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(10, 10, 26, 0.5);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.form-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  animation: slideIn 0.3s ease;
}

.form-message.success {
  background: rgba(0, 255, 170, 0.1);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.form-message.error {
  background: rgba(255, 77, 148, 0.1);
  border: 1px solid #ff4d94;
  color: #ff4d94;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1);
  }
  .project-card.slide-in-left {
    transform: translateX(-80px);
  }
  .project-card.slide-in-right {
    transform: translateX(80px);
  }
  .project-card.scrolled-in {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer */
.footer {
  padding: 30px 0;
  border-top: 1px solid rgba(138, 43, 226, 0.2);
  text-align: center;
}

.footer-content p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.heart {
  color: #ff4d94;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  color: var(--primary-dark);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(138, 43, 226, 0.8);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-purple);
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.btn-secondary:hover {
  background: rgba(138, 43, 226, 0.2);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.5);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Interactive Cursor */


/* Glassmorphism Cursor Effect - Enhanced */
/* Glassmorphism Cursor Effect - Sleek & Circular */

/* Ring + Dot Cursor Effect */
.cursor-dot {
  width: 7px;
  height: 7px;
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  background: #a084ee;
  box-shadow: 0 0 4px 1px #a084ee44;
  transform: translate(-50%, -50%);
  transition: background 0.2s, box-shadow 0.2s;
}
.cursor-ring {
  width: 32px;
  height: 32px;
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  border: 2px solid #a084ee;
  background: transparent;
  box-shadow: 0 0 12px 2px #a084ee33;
  transform: translate(-50%, -50%) scale(1);
  transition: border 0.2s, box-shadow 0.2s, transform 0.22s cubic-bezier(.76,0,.24,1);
}
.cursor-ring-hover {
  border: 2.5px solid #7f53ac;
  box-shadow: 0 0 24px 6px #a084ee55;
  background: rgba(160,132,238,0.08);
  /* Slightly larger on hover */
}
@keyframes shimmer {
  0% { opacity: 0.7; transform: scale(1) translateX(-20%); }
  50% { opacity: 1; transform: scale(1.08) translateX(20%); }
  100% { opacity: 0.7; transform: scale(1) translateX(-20%); }
}
@keyframes cursorPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(120,80,255,0.10), 0 2px 16px 0 rgba(80, 0, 120, 0.10), 0 1.5px 8px 0 rgba(0,0,0,0.08); }
  50% { box-shadow: 0 0 0 12px rgba(120,80,255,0.13), 0 2px 16px 0 rgba(80, 0, 120, 0.10), 0 1.5px 8px 0 rgba(0,0,0,0.08); }
}
@keyframes cursorPulseHover {
  0%, 100% { box-shadow: 0 0 0 8px rgba(120,80,255,0.10), 0 4px 32px 0 rgba(80, 0, 120, 0.18), 0 2.5px 16px 0 rgba(0,0,0,0.12), 0 0 24px 8px rgba(120, 80, 255, 0.18); }
  50% { box-shadow: 0 0 0 20px rgba(120,80,255,0.18), 0 4px 32px 0 rgba(80, 0, 120, 0.18), 0 2.5px 16px 0 rgba(0,0,0,0.12), 0 0 32px 12px rgba(120, 80, 255, 0.22); }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.95);
    padding: 20px;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
  }
  
  .navigation.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 15px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stats {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 100px 0 30px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Editorial design-workbench treatment for the hero visual. */
.hero {
  background: radial-gradient(circle at 82% 45%, rgba(255, 194, 129, 0.08), transparent 34%);
}
.hero-content { gap: clamp(48px, 7vw, 110px); }
.hero-text { max-width: 650px; }
.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(3.4rem, 6vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 0.96;
  text-transform: none;
  margin-bottom: 28px;
}
.hero-title .line:nth-child(2) { color: #f3b38a; text-shadow: none; }
.hero-kicker {
  color: #f3b38a;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-kicker span { color: #8fd8ce; margin: 0 8px; }
.hero-subtitle {
  color: rgba(240, 236, 232, 0.72);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 30px;
}
.design-board {
  width: min(100%, 570px);
  aspect-ratio: 1.08;
  position: relative;
  overflow: hidden;
  color: #26302d;
  background-color: #e8e3d8;
  background-image: linear-gradient(rgba(47, 67, 66, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 67, 66, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid rgba(232, 227, 216, 0.55);
  box-shadow: 18px 20px 0 rgba(243, 179, 138, 0.12), 0 24px 60px rgba(0, 0, 0, 0.28);
  transform: rotate(1.5deg);
}
.board-label, .flow-title { font-family: 'Orbitron', sans-serif; font-size: 0.58rem; letter-spacing: 1.5px; }
.board-label { position: absolute; top: 22px; left: 26px; color: #687572; }
.level-sketch { position: absolute; top: 66px; left: 30px; width: 51%; height: 48%; border: 1px solid rgba(38, 48, 45, 0.65); transform: rotate(-3deg); }
.sketch-room { position: absolute; border: 1px solid #516963; }
.room-one { inset: 16% 43% 43% 8%; }
.room-two { inset: 42% 12% 15% 31%; }
.room-three { inset: 10% 10% 54% 61%; }
.sketch-path { position: absolute; left: 20%; top: 67%; width: 62%; border-top: 1px dashed #da8069; transform: rotate(-18deg); }
.sketch-node { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #da8069; }
.node-one { left: 17%; top: 25%; }
.node-two { left: 48%; top: 53%; }
.node-three { right: 16%; top: 25%; }
.flow-diagram { position: absolute; left: 30px; bottom: 38px; width: 52%; }
.flow-title { display: block; color: #687572; margin-bottom: 12px; }
.flow-row { display: flex; align-items: center; gap: 7px; font-size: 0.62rem; font-weight: 600; }
.flow-row span { padding: 7px 8px; border: 1px solid #718781; background: rgba(255,255,255,0.28); }
.flow-row i { width: 14px; border-top: 1px solid #da8069; position: relative; }
.flow-row i::after { content: ''; position: absolute; right: -1px; top: -4px; border-left: 4px solid #da8069; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.concept-card { position: absolute; right: 29px; top: 72px; width: 31%; padding: 10px; background: #f5f0e8; box-shadow: 5px 6px 0 rgba(38, 48, 45, 0.12); transform: rotate(4deg); }
.concept-card > span { display: block; margin-top: 8px; font-family: 'Orbitron', sans-serif; font-size: 0.46rem; letter-spacing: 1px; color: #687572; }
.concept-image { height: 110px; overflow: hidden; position: relative; background: linear-gradient(145deg, #203a42 0 46%, #d47d65 46% 56%, #f1c39b 56%); }
.concept-image::before { content: ''; position: absolute; width: 55%; height: 80%; right: -10%; bottom: -22%; border-radius: 50% 50% 0 0; background: #10262e; transform: rotate(-16deg); }
.concept-image span { position: absolute; width: 24px; height: 24px; top: 22px; left: 25px; border: 1px solid #f6d4b1; border-radius: 50%; }
.sticky-note { position: absolute; padding: 12px 14px; font-family: 'Rajdhani', sans-serif; font-size: 0.9rem; line-height: 1.05; box-shadow: 3px 5px 8px rgba(38, 48, 45, 0.15); }
.note-yellow { right: 28px; bottom: 58px; background: #f0d98f; transform: rotate(-5deg); }
.note-blue { right: 24%; bottom: 18px; background: #b5d7d4; transform: rotate(3deg); }
.annotation { position: absolute; color: #c46755; font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; font-style: italic; }
.annotation-one { top: 28px; right: 28px; transform: rotate(-8deg); }
.annotation-two { left: 57%; top: 54%; transform: rotate(-7deg); }

@media (max-width: 992px) {
  .hero-image { width: min(100%, 620px); height: auto; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 3.2rem; }
  .hero-subtitle { font-size: 1rem; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.6rem; }
  .design-board { width: 108%; margin-left: -4%; }
  .concept-image { height: 84px; }
  .scroll-down { display: none; }
  .flow-diagram { width: 47%; }
  .sticky-note { font-size: 0.72rem; padding: 9px 10px; }
  .note-yellow { right: 10px; bottom: 52px; }
  .note-blue { right: 10px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .design-board { transform: none; }
}

/* Warm editorial theme */
:root {
  --primary-dark: #F6F4EF;
  --secondary-dark: #FFFDFC;
  --accent-purple: #C86A3A;
  --accent-pink: #C86A3A;
  --accent-cyan: #2E5E4E;
  --accent-green: #2E5E4E;
  --text-primary: #1E1E1E;
  --text-secondary: #58677C;
  --neon-glow: none;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #1E1E1E;
  background-color: #F6F4EF;
  background-image: radial-gradient(rgba(30, 30, 30, 0.055) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}

.site-loader {
  background: #1E1E1E;
}

.background-elements {
  opacity: 0.18;
}

.element {
  opacity: 0.08;
  filter: none;
  box-shadow: none;
}

.element.circle { background: #C86A3A; }
.element.triangle { border-bottom-color: #58677C; filter: none; }
.element.square { background: #2E5E4E; }

::-webkit-scrollbar-track { background: #F6F4EF; }
::-webkit-scrollbar-thumb { background: #C86A3A; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #2E5E4E; }

.header,
.header.scrolled {
  background: rgba(246, 244, 239, 0.92);
  border-bottom: 1px solid rgba(30, 30, 30, 0.1);
  backdrop-filter: blur(14px);
}

.logo-text {
  font-family: 'DM Sans', sans-serif;
  color: #1E1E1E;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: none;
}

.logo-text span { color: #C86A3A; }
.logo-text .neon { text-shadow: none; animation: none; }
.nav-link { font-family: 'DM Sans', sans-serif; color: #58677C; }
.nav-link::after { background: #C86A3A; }
.nav-link:hover, .nav-link.active { color: #C86A3A; }
.menu-toggle span { background: #C86A3A; }

.hero { background: none; }
.hero-title,
.section-title {
  font-family: 'Newsreader', Georgia, serif;
  color: #1E1E1E;
  letter-spacing: 0;
}
.hero-title .line:nth-child(2) { color: #C86A3A; }
.hero-kicker { color: #2E5E4E; font-family: 'DM Sans', sans-serif; }
.hero-kicker span { color: #C86A3A; }
.hero-subtitle { color: #58677C; }

.section-title::after,
.section-line { background: #C86A3A; box-shadow: none; }
.about-text p,
.contact-info p,
.project-overlay p,
.footer-content p { color: #58677C; }

.stat-item,
.skill-card,
.contact-form {
  background: rgba(255, 253, 252, 0.82);
  border: 1px solid rgba(30, 30, 30, 0.11);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 30, 30, 0.05);
}
.stat-item:hover,
.skill-card:hover { box-shadow: 0 16px 30px rgba(30, 30, 30, 0.09); border-color: rgba(200, 106, 58, 0.55); }
.stat-number,
.skill-icon,
.skill-percent,
.contact-info h3 { color: #C86A3A; text-shadow: none; }
.stat-label,
.skill-card h3,
.progress-item h3 { color: #2E5E4E; }
.skill-card::before,
.skill-card:hover::before { display: none; }
.progress-bar,
.skill-bar { background: rgba(88, 103, 124, 0.14); }
.progress-fill,
.skill-progress { background: #2E5E4E; }
.progress-fill::after,
.skill-progress::after { display: none; }

.project-card {
  background: #FFFDFC;
  border: 1px solid rgba(30, 30, 30, 0.11);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(30, 30, 30, 0.08);
}
.project-card::before { display: none; }
.project-card:hover { box-shadow: 0 20px 38px rgba(30, 30, 30, 0.12); border-radius: 8px; }
.project-image { background: #E9E5DE; }
.project-image img,
.project-card:hover .project-image img { box-shadow: none; }
.project-overlay { background: rgba(255, 253, 252, 0.94); border-radius: 0 0 8px 8px; }
.project-overlay h3 { color: #1E1E1E; text-shadow: none; font-family: 'DM Sans', sans-serif; }

.contact-item { color: #58677C; }
.contact-item i { color: #C86A3A; }
.social-links a { background: rgba(46, 94, 78, 0.1); }
.social-links a:hover { background: #2E5E4E; box-shadow: 0 8px 18px rgba(46, 94, 78, 0.18); }
.form-group input,
.form-group textarea {
  background: #FFFDFC;
  border: 1px solid rgba(30, 30, 30, 0.16);
  color: #1E1E1E;
  font-family: 'DM Sans', sans-serif;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #C86A3A; box-shadow: 0 0 0 3px rgba(200, 106, 58, 0.12); }
.form-message.success { background: rgba(46, 94, 78, 0.08); border-color: #2E5E4E; color: #2E5E4E; }
.form-message.error { background: rgba(200, 106, 58, 0.08); border-color: #C86A3A; color: #C86A3A; }

.footer { border-top: 1px solid rgba(30, 30, 30, 0.1); }
.heart { color: #C86A3A; }
.btn { font-family: 'DM Sans', sans-serif; border-radius: 4px; }
.btn-primary { background: #C86A3A; color: #FFFDFC; box-shadow: none; }
.btn-primary:hover { background: #A9532C; box-shadow: 0 8px 18px rgba(200, 106, 58, 0.2); }
.btn-primary::before { display: none; }
.btn-secondary { color: #2E5E4E; border: 1px solid #2E5E4E; box-shadow: none; }
.btn-secondary:hover { background: #2E5E4E; color: #FFFDFC; box-shadow: 0 8px 18px rgba(46, 94, 78, 0.18); }

.cursor,
.cursor-follower { border-color: rgba(200, 106, 58, 0.6); box-shadow: none; }
.cursor-follower { background: rgba(200, 106, 58, 0.08); }
.cursor-dot { background: #C86A3A; box-shadow: none; }
.cursor-ring { border-color: #C86A3A; box-shadow: none; }
.cursor-ring-hover { border-color: #2E5E4E; box-shadow: none; background: rgba(46, 94, 78, 0.08); }

/* Project previews read as compact case studies instead of gallery cards. */
.project-card {
  overflow: hidden;
  transform: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 38px rgba(30, 30, 30, 0.12);
}
.project-image {
  height: 250px;
}
.project-image img,
.project-card:hover .project-image img {
  border-radius: 0;
  transform: none;
}
.project-overlay {
  top: 0;
  bottom: auto;
  height: 100%;
  min-height: 0;
  padding: 28px;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  background: rgba(30, 30, 30, 0.86);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  border-radius: 0;
}
.project-card:hover .project-overlay,
.project-card:focus-within .project-overlay {
  opacity: 1;
  transform: translateY(0);
  gap: 8px;
}
.project-overlay p { color: #FFFDFC; font-size: 1rem; line-height: 1.5; }
.design-note-label {
  color: #F1B18A;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.6px;
}
.project-case-study {
  padding: 28px 28px 30px;
  background: #FFFDFC;
}
.project-case-study h3 {
  margin-bottom: 12px;
  color: #1E1E1E;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 22px;
  color: #2E5E4E;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.4;
}
.project-meta span + span { position: relative; }
.project-meta span + span::before {
  content: '/';
  position: absolute;
  left: -9px;
  color: #C86A3A;
}
.project-challenge {
  min-height: 86px;
  margin-bottom: 22px;
  color: #58677C;
  font-size: 0.95rem;
  line-height: 1.6;
}
.project-challenge strong {
  display: block;
  margin-bottom: 5px;
  color: #C86A3A;
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.design-decisions {
  padding: 16px 0 14px;
  border-top: 1px solid rgba(30, 30, 30, 0.12);
  border-bottom: 1px solid rgba(30, 30, 30, 0.12);
  margin-bottom: 22px;
}
.design-decisions > span {
  display: block;
  margin-bottom: 10px;
  color: #1E1E1E;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.design-decisions p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0;
  color: #58677C;
  font-size: 0.82rem;
  line-height: 1.4;
}
.design-decisions b { min-width: 58px; color: #2E5E4E; font-size: 0.7rem; text-transform: uppercase; }
.design-decisions i { color: #C86A3A; font-style: normal; }
.project-case-study .btn-small {
  padding: 9px 14px;
  border: 1px solid #2E5E4E;
  color: #2E5E4E;
  font-size: 0.68rem;
  letter-spacing: 0.7px;
}
.project-case-study .btn-small:hover { background: #2E5E4E; color: #FFFDFC; }

@media (max-width: 576px) {
  .project-image { height: 220px; }
  .project-case-study { padding: 24px 20px 24px; }
  .project-case-study h3 { font-size: 1.6rem; }
  .project-challenge { min-height: 0; }
}

/* Design capability cards favor practice language over technical metrics. */
.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.skill-card {
  min-height: 210px;
  padding: 26px 26px 28px;
  text-align: left;
  border-radius: 6px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover { transform: translateY(-5px); }
.skill-card::after { display: none; }
.skill-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
  color: #C86A3A;
  font-size: 0.75rem;
  text-shadow: none;
}
.capability-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
  border-bottom: 1px solid #C86A3A;
  color: #C86A3A;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.skill-card h3 {
  margin-bottom: 12px;
  color: #1E1E1E;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}
.skill-card p {
  max-width: 31ch;
  color: #58677C;
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 576px) {
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: 0; }
}

/* Design Journal: quiet editorial notes with generous internal spacing. */
.design-journal {
  position: relative;
}
.margin-note-journal {
  top: 108px;
  right: 4%;
  color: #2E5E4E;
  transform: rotate(3deg) translateX(8px);
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 20px;
}
.journal-entry {
  min-height: 370px;
  padding: 28px 28px 30px;
  background: #FFFDFC;
  border: 1px solid rgba(30, 30, 30, 0.12);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(30, 30, 30, 0.045);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.journal-entry:nth-child(2) { transform: translateY(16px); }
.journal-entry:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 32px rgba(30, 30, 30, 0.09);
}
.journal-entry:nth-child(2):hover { transform: translateY(11px); }
.journal-entry-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 42px;
  color: #C86A3A;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.journal-entry-header span:last-child { color: #58677C; font-weight: 500; }
.journal-entry h3 {
  max-width: 13ch;
  min-height: 70px;
  margin-bottom: 14px;
  color: #1E1E1E;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.08;
}
.journal-arrow {
  margin-bottom: 14px;
  color: #C86A3A;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1;
}
.journal-entry > p,
.journal-subentry {
  color: #58677C;
  font-size: 0.96rem;
  line-height: 1.7;
}
.journal-tag {
  display: inline-block;
  margin-top: 30px;
  padding-top: 9px;
  border-top: 1px solid rgba(200, 106, 58, 0.5);
  color: #2E5E4E;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.journal-sketch {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 16px;
  color: #2E5E4E;
}
.journal-sketch > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 52px;
  padding: 8px 7px;
  border: 1px solid rgba(46, 94, 78, 0.45);
  font-size: 0.65rem;
  text-align: center;
}
.journal-sketch span { color: #1E1E1E; font-weight: 700; }
.journal-sketch b { color: #58677C; font-size: 0.62rem; font-weight: 400; }
.journal-sketch i { color: #C86A3A; font-style: normal; }
.journal-arrow-small { margin: 0 0 10px; font-size: 0.95rem; }
.journal-subentry { margin-bottom: 14px; }
.journal-subentry strong {
  display: block;
  margin-bottom: 4px;
  color: #2E5E4E;
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .journal-grid { grid-template-columns: 1fr; }
  .journal-entry,
  .journal-entry:nth-child(2) { transform: none; }
  .journal-entry:hover,
  .journal-entry:nth-child(2):hover { transform: translateY(-4px); }
}

@media (max-width: 576px) {
  .journal-grid { padding: 0; }
  .journal-entry { min-height: 0; padding: 24px 22px 26px; }
  .journal-entry-header { margin-bottom: 32px; }
  .journal-entry h3 { font-size: 1.6rem; }
  .journal-sketch { gap: 4px; }
  .journal-sketch > div { min-width: 0; flex: 1; padding: 7px 4px; }
}

/* Notebook-inspired marks stay decorative and do not affect document flow. */
.section,
.section-header { position: relative; }
.section-line { display: none; }
.notebook-mark {
  position: absolute;
  width: 180px;
  height: 18px;
  left: 50%;
  bottom: -12px;
  overflow: visible;
  transform: translateX(-50%) rotate(-1deg);
}
.notebook-mark path {
  fill: none;
  stroke: #C86A3A;
  stroke-linecap: round;
  stroke-width: 1.6;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  opacity: 0.72;
}
.section.scrolled-in .notebook-mark path {
  animation: drawNotebookLine 1.1s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes drawNotebookLine {
  to { stroke-dashoffset: 0; }
}

.margin-note {
  position: absolute;
  z-index: 1;
  color: #58677C;
  font-family: 'Caveat', cursive;
  font-size: 1.18rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.section.scrolled-in .margin-note { opacity: 0.78; transform: rotate(-4deg) translateX(0); }
.margin-note-about { top: 108px; right: 5%; transform: rotate(-4deg) translateX(8px); }
.margin-note-skills { top: 108px; left: 4%; transform: rotate(3deg) translateX(-8px); color: #2E5E4E; }
.margin-note-projects { top: 108px; right: 4%; transform: rotate(3deg) translateX(8px); }
.margin-note-contact { top: 108px; left: 4%; transform: rotate(-4deg) translateX(-8px); color: #2E5E4E; }

.section-header::before,
.section-header::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid #C86A3A;
  opacity: 0.58;
  transform: rotate(18deg);
}
.section-header::before { top: 14px; left: calc(50% - 150px); border-radius: 50%; }
.section-header::after { bottom: 10px; right: calc(50% - 150px); border-left: 0; border-bottom: 0; }

.skill-card,
.project-card { position: relative; }
.skill-card::after {
  content: '✦';
  position: absolute;
  top: 14px;
  right: 16px;
  color: #C86A3A;
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  opacity: 0.62;
  transform: rotate(12deg);
}
.project-card:nth-child(2)::after {
  content: '↗';
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 3;
  color: #FFFDFC;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  opacity: 0.8;
  transform: rotate(-10deg);
}

.annotation,
.sticky-note { font-family: 'Caveat', cursive; }

@media (max-width: 768px) {
  .margin-note { display: none; }
  .section-header::before { left: calc(50% - 128px); }
  .section-header::after { right: calc(50% - 128px); }
}

@media (prefers-reduced-motion: reduce) {
  .notebook-mark path { stroke-dashoffset: 0; animation: none; }
  .margin-note { opacity: 0.78; transform: none; transition: none; }
}

/* Typography-led editorial pass. */
body {
  font-family: 'Sora', 'General Sans', sans-serif;
  line-height: 1.75;
}
h1,
h2,
h3,
.hero-title,
.section-title,
.journal-entry h3,
.project-case-study h3 {
  font-family: 'Clash Display', 'General Sans', sans-serif;
  letter-spacing: 0;
}
.logo-text { font-family: 'Clash Display', 'General Sans', sans-serif; }
.nav-link,
.btn,
.hero-kicker,
.design-note-label { font-family: 'General Sans', 'Sora', sans-serif; }
.hero-title {
  font-size: clamp(3.8rem, 7vw, 7.2rem);
  line-height: 0.94;
}
.hero-subtitle,
.about-text p,
.project-case-study,
.journal-entry > p,
.journal-subentry,
.skill-card p,
.contact-info p { line-height: 1.8; }
.section { padding-top: 140px; padding-bottom: 140px; }
.section-header {
  margin-bottom: 82px;
  text-align: left;
}
.section-title {
  left: 0;
  transform: none;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.98;
}
.notebook-mark {
  left: 0;
  transform: rotate(-1deg);
}
.section-header::before { left: min(38vw, 420px); }
.section-header::after { right: auto; left: min(45vw, 520px); }
.section.scrolled-in .notebook-mark path { animation-duration: 0.35s; }

.page-annotation {
  position: absolute;
  z-index: 1;
  color: #58677C;
  font-family: 'Caveat', cursive;
  font-size: 1.18rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.section.scrolled-in .page-annotation { opacity: 0.7; transform: rotate(-3deg) translateY(0); }
.annotation-about { top: 45%; right: 5%; transform: rotate(-3deg) translateY(7px); }
.annotation-skills { top: 18%; right: 7%; transform: rotate(3deg) translateY(7px); color: #2E5E4E; }
.annotation-journal { top: 18%; left: 4%; transform: rotate(-4deg) translateY(7px); }
.annotation-projects { top: 18%; left: 4%; transform: rotate(2deg) translateY(7px); color: #2E5E4E; }
.annotation-contact { top: 18%; right: 6%; transform: rotate(-3deg) translateY(7px); }

.hero-content.hero-animate,
.hero-title.hero-animate,
.hero-subtitle.hero-animate,
.hero-buttons.hero-animate,
.hero-image.hero-animate,
.scroll-down.hero-animate,
.hero-content,
.hero-title,
.hero-subtitle,
.hero-buttons,
.hero-image,
.scroll-down {
  transition-duration: 0.35s;
}
.skill-card,
.project-card,
.journal-entry,
.stat-item,
.btn { transition-duration: 0.35s; }
.project-image img,
.project-card:hover .project-image img {
  filter: grayscale(0.2) saturate(0.88);
  transition: filter 0.35s ease, transform 0.35s ease;
}
.project-card:hover .project-image img { filter: grayscale(0) saturate(1); transform: scale(1.02); }
.design-board .sticky-note {
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero-image.hero-animate .design-board .sticky-note { opacity: 1; }
.hero-image.hero-animate .note-yellow { transform: rotate(-5deg) translateY(0); }
.hero-image.hero-animate .note-blue { transform: rotate(3deg) translateY(0); }
.note-yellow { transform: rotate(-5deg) translateY(8px); }
.note-blue { transform: rotate(3deg) translateY(8px); }
.background-elements .element { animation: none; }

@media (max-width: 768px) {
  .section { padding-top: 100px; padding-bottom: 100px; }
  .section-header { margin-bottom: 64px; }
  .hero-title { font-size: 3.4rem; }
  .page-annotation { display: none; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.7rem; }
  .section-title { max-width: 100%; font-size: 2.35rem; overflow-wrap: anywhere; }
  .contact-item { min-width: 0; }
  .contact-item span { min-width: 0; overflow-wrap: anywhere; }
  .element.square.large { left: auto; right: 34px; }
}

/* Final journal consistency pass. */
.notebook-mark,
.section-header::before,
.section-header::after { display: none; }
.section-title::after { height: 2px; background: #C86A3A; box-shadow: none; }
.section-header { margin-bottom: 58px; }
.section { padding-top: clamp(88px, 9vw, 132px); padding-bottom: clamp(88px, 9vw, 132px); }
body { font-size: clamp(0.94rem, 0.2vw + 0.82rem, 1.08rem); }
.hero-subtitle { font-size: clamp(0.98rem, 0.3vw + 0.84rem, 1.12rem); }
.skill-card p,
.project-research-content,
.journal-entry > p,
.journal-subentry { font-size: clamp(0.84rem, 0.18vw + 0.76rem, 0.96rem); }
.journal-more { margin-top: 34px; text-align: left; }
.journal-expand {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid rgba(200, 106, 58, 0.35);
  background: transparent;
  color: #2E5E4E;
  cursor: pointer;
  font-family: 'General Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: left;
}
.journal-expand span { color: #C86A3A; font-size: 1rem; }
.journal-expanded { padding-top: 8px; }
.journal-expanded p { color: #58677C; font-size: 0.9rem; line-height: 1.7; }
.journal-entry { min-height: 0; }
.contact-invitation { flex: 1; padding: 34px; background: #FFFDFC; border: 1px solid rgba(30, 30, 30, 0.12); border-radius: 6px; }
.contact-note { color: #C86A3A; font-family: 'Caveat', cursive; font-size: 1.2rem; }
.contact-invitation h3 { margin: 22px 0 16px; color: #1E1E1E; font-family: 'Clash Display', sans-serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; line-height: 0.98; }
.contact-invitation p { max-width: 36ch; color: #58677C; line-height: 1.7; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.projects-index .category-selector-init { background: #FFFDFC; border: 1px solid rgba(30, 30, 30, 0.12); border-radius: 6px; box-shadow: none; padding: 24px; animation: none; }
.projects-index .init-title { color: #2E5E4E; font-family: 'General Sans', sans-serif; text-shadow: none; font-size: 0.82rem; }
.projects-index .init-dot { width: 8px; height: 8px; background: #C86A3A; box-shadow: none; animation: none; }
.projects-index .category-btn { min-width: 0; padding: 10px 16px; background: transparent; color: #2E5E4E; border: 1px solid rgba(46, 94, 78, 0.35); border-radius: 4px; font-family: 'General Sans', sans-serif; font-size: 0.78rem; box-shadow: none; }
.projects-index .category-btn.active,
.projects-index .category-btn:hover { background: #2E5E4E; color: #FFFDFC; }
.projects-index .project-card { border-radius: 6px; border: 1px solid rgba(30, 30, 30, 0.12); box-shadow: 0 12px 28px rgba(30, 30, 30, 0.07); }

.journal-page { max-width: 1100px; margin: 0 auto; padding: 150px 20px 80px; }
.journal-page-heading { max-width: 700px; margin-bottom: 70px; }
.journal-page-heading h1 { margin: 18px 0; color: #1E1E1E; font-family: 'Clash Display', sans-serif; font-size: clamp(3.2rem, 7vw, 7rem); font-weight: 500; line-height: 0.9; }
.journal-page-heading p { max-width: 48ch; color: #58677C; line-height: 1.8; }
.journal-archive { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.journal-archive-entry { min-height: 300px; padding: 30px; background: #FFFDFC; border: 1px solid rgba(30, 30, 30, 0.12); border-radius: 6px; box-shadow: 0 12px 28px rgba(30, 30, 30, 0.045); }
.journal-archive-entry h2 { max-width: 15ch; margin: 38px 0 20px; color: #1E1E1E; font-family: 'Clash Display', sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 500; line-height: 1; }
.journal-archive-entry p { max-width: 44ch; color: #58677C; line-height: 1.75; }
.resume-page { max-width: 1000px; margin: 0 auto; padding: 150px 20px 100px; }
.resume-heading { max-width: 680px; margin: 28px 0 80px; }
.resume-heading h1 { margin: 18px 0; color: #1E1E1E; font-family: 'Clash Display', sans-serif; font-size: clamp(3.5rem, 8vw, 7.5rem); font-weight: 500; line-height: 0.9; }
.resume-heading p { max-width: 46ch; color: #58677C; line-height: 1.8; }
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 42px; }
.resume-grid section { padding: 30px; background: #FFFDFC; border: 1px solid rgba(30, 30, 30, 0.12); border-radius: 6px; }
.resume-grid h2 { margin-top: 28px; color: #1E1E1E; font-family: 'Clash Display', sans-serif; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 500; line-height: 1.12; }
.project-admin { max-width: 980px; margin: 0 auto; padding: 130px 24px 80px; }
.project-admin h1 { margin: 18px 0; color: #1E1E1E; font-family: 'Clash Display', sans-serif; font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 500; line-height: .9; }
.project-admin > label { display: grid; max-width: 420px; gap: 8px; margin: 30px 0 22px; color: #2E5E4E; font-size: .75rem; font-weight: 600; }
.project-admin select, .project-admin input, .project-admin textarea { width: 100%; padding: 12px; border: 1px solid rgba(30,30,30,.16); border-radius: 4px; background: #FFFDFC; color: #1E1E1E; font: inherit; }
.project-admin form { display: grid; gap: 16px; padding: 30px; background: #FFFDFC; border: 1px solid rgba(30,30,30,.12); border-radius: 6px; }
.project-admin form > label { display: grid; gap: 7px; color: #2E5E4E; font-size: .76rem; font-weight: 600; }
.project-admin small { color: #58677C; font-weight: 400; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.admin-form-grid label { display: grid; gap: 7px; color: #2E5E4E; font-size: .76rem; font-weight: 600; }
.project-admin .admin-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.project-admin #projectStatus { min-height: 24px; color: #2E5E4E; }
@media (max-width: 650px) { .project-admin { padding: 110px 20px 60px; } .admin-form-grid { grid-template-columns: 1fr; } }

/* Compact closing page and centered journal reading controls. */
.footer { min-height: 0; padding: 88px 5% 38px; }
.footer-content h2 { font-size: clamp(3.4rem, 7vw, 6.5rem); }
.footer-content > p { margin-bottom: 30px; font-size: clamp(0.9rem, 0.2vw + 0.82rem, 1rem); }
.footer-content small { margin-top: 36px; }
.journal-more { text-align: center; }
.journal-modal-backdrop[hidden] { display: none; }
.journal-modal-backdrop { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(30, 30, 30, 0.28); backdrop-filter: blur(10px); }
.journal-modal { position: relative; width: min(680px, 100%); max-height: min(80vh, 680px); overflow: auto; padding: 42px; background: #FFFDFC; border: 1px solid rgba(30, 30, 30, 0.15); border-radius: 6px; box-shadow: 0 24px 70px rgba(30, 30, 30, 0.18); animation: journalModalIn 0.25s ease both; }
@keyframes journalModalIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.journal-modal-close { position: absolute; top: 14px; right: 18px; border: 0; background: transparent; color: #C86A3A; cursor: pointer; font-size: 1.7rem; line-height: 1; }
.journal-modal .journal-entry { box-shadow: none; border: 0; padding: 0; }
.journal-modal .journal-expand { display: none; }
.journal-modal .journal-expanded { display: block; }
.journal-modal-open { overflow: hidden; }
.journal-admin { max-width: 760px; margin: 0 auto; padding: 140px 24px 80px; }
.journal-admin h1 { margin: 18px 0; color: #1E1E1E; font-family: 'Clash Display', sans-serif; font-size: clamp(3rem, 7vw, 6rem); font-weight: 500; line-height: .92; }
.admin-warning { max-width: 58ch; margin-bottom: 38px; color: #58677C; line-height: 1.7; }
.journal-admin form { display: grid; gap: 18px; padding: 30px; background: #FFFDFC; border: 1px solid rgba(30,30,30,.12); border-radius: 6px; }
.journal-admin label { display: grid; gap: 8px; color: #2E5E4E; font-size: .75rem; font-weight: 600; }
.journal-admin input, .journal-admin textarea { width: 100%; padding: 12px; border: 1px solid rgba(30,30,30,.16); border-radius: 4px; background: #F6F4EF; color: #1E1E1E; font: inherit; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
#adminStatus { min-height: 24px; margin-top: 18px; color: #2E5E4E; }

@media (max-width: 576px) {
  .footer { min-height: 0 !important; padding: 54px 20px 26px; }
  .footer-kicker { margin-bottom: 18px; }
  .footer-content h2 { margin-bottom: 18px; font-size: 3.2rem; }
  .journal-modal { padding: 32px 24px; }
}

@media (max-width: 700px) {
  .journal-archive { grid-template-columns: 1fr; }
  .journal-page { padding: 120px 20px 60px; }
  .contact-invitation { padding: 26px 22px; }
  .resume-page { padding: 120px 20px 60px; }
  .resume-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .page-annotation { opacity: 0.7; transform: none; transition: none; }
  .design-board .sticky-note { opacity: 1; transition: none; }
  .project-image img,
  .project-card:hover .project-image img { transition: none; }
}

/* Journal index navigation. */
.header {
  position: fixed;
  padding: 18px 0 16px;
  background: rgba(246, 244, 239, 0.86);
  border-bottom: 1px solid rgba(30, 30, 30, 0.16);
  box-shadow: 0 1px 0 rgba(255, 253, 252, 0.75);
  backdrop-filter: blur(16px);
}
.header.scrolled {
  padding: 12px 0 11px;
  background: rgba(246, 244, 239, 0.94);
}
.logo-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 2rem;
  color: #1E1E1E;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.logo-lockup:hover { transform: translateY(-1px); }
.logo-text {
  display: block;
  padding-left: 0;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
}
.logo-subtitle {
  color: #58677C;
  font-family: 'Caveat', cursive;
  font-size: 1.08rem;
  line-height: 1.1;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.navigation { align-items: center; }
.nav-list { gap: clamp(16px, 2.4vw, 34px); }
.nav-link {
  display: inline-block;
  padding: 8px 0 10px;
  color: #58677C;
  font-family: 'General Sans', 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.nav-link::after {
  bottom: 3px;
  width: 100%;
  height: 5px;
  background: none;
  border-bottom: 1px solid #C86A3A;
  border-radius: 50%;
  opacity: 0;
  transform: scaleX(0) rotate(-2deg);
  transform-origin: left center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #1E1E1E;
  transform: translateY(-1px);
}
.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1) rotate(-2deg);
}
.menu-toggle span { transition: background 0.3s ease, transform 0.3s ease; }

@media (max-width: 768px) {
  .logo-lockup { padding-left: 1rem; }
  .logo-text { font-size: 1.35rem; }
  .logo-subtitle { font-size: 0.95rem; }
  .navigation {
    top: 100%;
    padding: 18px 20px 22px;
    background: rgba(246, 244, 239, 0.97);
    border-top: 1px solid rgba(30, 30, 30, 0.08);
    border-bottom: 1px solid rgba(30, 30, 30, 0.12);
    box-shadow: 0 12px 24px rgba(30, 30, 30, 0.06);
    backdrop-filter: blur(16px);
  }
  .nav-list { gap: 5px; }
  .nav-link { padding: 9px 0; }
}

/* Chapter markers create pauses between the journal's larger movements. */
.chapter-marker {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
  color: #58677C;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.section.scrolled-in .chapter-marker { opacity: 1; transform: translateY(0); }
.chapter-marker span {
  position: relative;
  color: #C86A3A;
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  line-height: 1;
  transform: rotate(-3deg);
}
.chapter-marker span::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -6px;
  bottom: -4px;
  height: 5px;
  border-bottom: 1px solid #C86A3A;
  border-radius: 50%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease 0.12s;
}
.section.scrolled-in .chapter-marker span::after { transform: scaleX(1); }
.chapter-marker strong {
  color: #1E1E1E;
  font-family: 'Clash Display', 'General Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.4px;
}

/* Research pages use one dominant visual and a quiet process margin. */
.project-grid {
  grid-template-columns: 1fr;
  gap: 52px;
}
.project-research-page {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(300px, 1fr) minmax(160px, 0.55fr);
  min-height: 470px;
  overflow: visible;
  border-radius: 8px;
  background: #FFFDFC;
  border: 1px solid rgba(30, 30, 30, 0.12);
  box-shadow: 0 14px 34px rgba(30, 30, 30, 0.07);
}
.project-research-page:hover { transform: translateY(-5px); }
.project-research-visual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: #E9E5DE;
  border-radius: 8px 0 0 8px;
}
.research-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) saturate(0.84);
}
.research-sketch,
.research-prototype { opacity: 0; }
.research-final { opacity: 1; }
.project-research-page:hover .research-sketch { animation: researchSketch 1.6s ease forwards; }
.project-research-page:hover .research-prototype { animation: researchPrototype 1.6s ease forwards; }
.project-research-page:hover .research-final { animation: researchFinal 1.6s ease forwards; }
@keyframes researchSketch {
  0%, 9% { opacity: 0; }
  18%, 38% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes researchPrototype {
  0%, 38% { opacity: 0; }
  49%, 69% { opacity: 1; }
  82%, 100% { opacity: 0; }
}
@keyframes researchFinal {
  0%, 68% { opacity: 1; }
  78%, 85% { opacity: 0; }
  96%, 100% { opacity: 1; }
}
.research-stage {
  position: absolute;
  left: 22px;
  bottom: 20px;
  padding: 6px 8px;
  background: rgba(255, 253, 252, 0.9);
  color: #2E5E4E;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.project-research-content { padding: 42px 34px 38px; }
.research-kicker {
  display: block;
  margin-bottom: 20px;
  color: #C86A3A;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.project-research-content h3 {
  margin-bottom: 24px;
  color: #1E1E1E;
  font-family: 'Clash Display', 'General Sans', sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 0.95;
}
.research-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 34px;
  padding: 14px 0;
  border-top: 1px solid rgba(30, 30, 30, 0.12);
  border-bottom: 1px solid rgba(30, 30, 30, 0.12);
}
.research-meta dt,
.research-block strong {
  margin-bottom: 4px;
  color: #C86A3A;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.research-meta dd { color: #58677C; font-size: 0.8rem; line-height: 1.45; }
.research-block { margin-bottom: 18px; }
.research-block strong { display: block; }
.research-block p { color: #58677C; font-size: 0.84rem; line-height: 1.6; }
.project-research-content .btn-small { margin-top: 10px; }
.research-notes {
  position: relative;
  min-height: 100%;
  padding: 38px 22px;
  border-left: 1px solid rgba(30, 30, 30, 0.1);
  background-image: radial-gradient(rgba(46, 94, 78, 0.11) 0.7px, transparent 0.7px);
  background-size: 15px 15px;
}
.research-sticky {
  position: absolute;
  top: 48px;
  right: 16px;
  padding: 14px 12px;
  background: #F0D98F;
  color: #1E1E1E;
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow: 3px 5px 8px rgba(30, 30, 30, 0.1);
  transform: rotate(4deg);
}
.research-sketch-mark {
  position: absolute;
  top: 180px;
  left: 32px;
  width: 90px;
  height: 70px;
  border: 1px solid rgba(46, 94, 78, 0.65);
  transform: rotate(-5deg);
}
.research-sketch-mark i { position: absolute; display: block; border: 1px solid #2E5E4E; }
.research-sketch-mark i:nth-child(1) { inset: 10px 35px 34px 12px; }
.research-sketch-mark i:nth-child(2) { inset: 31px 10px 12px 35px; }
.research-sketch-mark i:nth-child(3) { inset: 12px 10px 35px 52px; }
.research-flow {
  position: absolute;
  bottom: 105px;
  left: 22px;
  color: #58677C;
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  transform: rotate(-3deg);
}
.research-flow b { color: #C86A3A; font-weight: 400; }
.research-annotation {
  position: absolute;
  right: 18px;
  bottom: 50px;
  color: #2E5E4E;
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  transform: rotate(-7deg);
}

@media (max-width: 900px) {
  .project-research-page { grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr); }
  .research-notes { grid-column: 1 / -1; min-height: 150px; border-top: 1px solid rgba(30, 30, 30, 0.1); border-left: 0; }
  .research-sticky { top: 25px; right: 15%; }
  .research-sketch-mark { top: 28px; left: 36%; }
  .research-flow { top: 54px; left: 54%; bottom: auto; }
  .research-annotation { top: 58px; right: 8%; bottom: auto; }
}

@media (max-width: 576px) {
  .chapter-marker { gap: 10px; margin-bottom: 20px; }
  .chapter-marker strong { font-size: 0.76rem; }
  .project-research-page { display: block; }
  .project-research-visual { min-height: 280px; border-radius: 8px 8px 0 0; }
  .project-research-content { padding: 30px 22px 32px; }
  .research-meta { grid-template-columns: 1fr; gap: 10px; }
  .research-notes { min-height: 175px; border-radius: 0 0 8px 8px; }
  .research-sticky { right: 12%; }
  .research-sketch-mark { left: 18%; }
  .research-flow { left: 49%; }
  .research-annotation { right: 7%; }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-marker,
  .chapter-marker span::after { transition: none; }
  .project-research-page:hover .research-sketch,
  .project-research-page:hover .research-prototype,
  .project-research-page:hover .research-final { animation: none; }
}

/* Final journal page and shared line-art language. */
.footer {
  position: relative;
  min-height: 70vh;
  padding: 150px 5% 48px;
  border-top: 1px solid rgba(30, 30, 30, 0.14);
  background-color: #F6F4EF;
  background-image: radial-gradient(rgba(46, 94, 78, 0.08) 0.7px, transparent 0.7px);
  background-size: 20px 20px;
  text-align: left;
}
.footer-content { max-width: 760px; }
.footer-kicker {
  display: inline-block;
  margin-bottom: 28px;
  color: #C86A3A;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  transform: rotate(-3deg);
}
.footer-content h2 {
  max-width: 8ch;
  margin-bottom: 26px;
  color: #1E1E1E;
  font-family: 'Clash Display', 'General Sans', sans-serif;
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.88;
}
.footer-content > p {
  margin-bottom: 46px;
  color: #58677C;
  font-size: 1.05rem;
  line-height: 1.8;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 30, 30, 0.14);
}
.footer-links a {
  position: relative;
  color: #2E5E4E;
  font-family: 'General Sans', 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 4px;
  border-bottom: 1px solid #C86A3A;
  border-radius: 50%;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.footer-links a:hover { color: #C86A3A; transform: translateY(-2px); }
.footer-links a:hover::after { opacity: 1; transform: scaleX(1); }
.footer-content small {
  display: block;
  margin-top: 64px;
  color: #58677C;
  font-size: 0.68rem;
  letter-spacing: 0.8px;
}
.line-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.contact-item .line-icon { color: #C86A3A; margin-right: 15px; }
.h-detail-icon .line-icon { width: 28px; height: 28px; color: currentColor; }

@media (max-width: 576px) {
  .footer { min-height: 76vh; padding: 110px 20px 36px; }
  .footer-content h2 { font-size: 4.3rem; }
  .footer-content > p { margin-bottom: 36px; font-size: 0.95rem; }
  .footer-links { gap: 18px 24px; }
  .footer-content small { margin-top: 48px; }
}

/* Final footer sizing override after legacy footer rules. */
.footer { min-height: 0; padding: 66px 5% 34px; }
.footer-content h2 { font-size: clamp(3.2rem, 7vw, 6.5rem); }
@media (max-width: 576px) {
  .footer { min-height: 0 !important; padding: 48px 20px 24px; }
  .footer-kicker { margin-bottom: 14px; }
  .footer-content h2 { margin-bottom: 16px; font-size: 3.1rem; }
  .footer-content > p { margin-bottom: 24px; }
  .footer-content small { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-links a,
  .footer-links a::after { transition: none; }
}

/* Progressive section reveal: title, notes, illustration, then content. */
.section.reveal-ready .section-header,
.section.reveal-ready .chapter-marker {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.section.reveal-ready.scrolled-in .section-header,
.section.reveal-ready.scrolled-in .chapter-marker {
  opacity: 1;
  transform: translateY(0);
}
.section.reveal-ready .margin-note,
.section.reveal-ready .page-annotation { opacity: 0; }
.section.reveal-ready.annotations-revealed .margin-note,
.section.reveal-ready.annotations-revealed .page-annotation { opacity: 0.7; }
.section.reveal-ready .design-board,
.section.reveal-ready .research-notes,
.section.reveal-ready .skill-icon,
.section.reveal-ready .notebook-mark {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.section.reveal-ready.illustrations-revealed .design-board,
.section.reveal-ready.illustrations-revealed .research-notes,
.section.reveal-ready.illustrations-revealed .skill-icon,
.section.reveal-ready.illustrations-revealed .notebook-mark {
  opacity: 1;
  transform: translateY(0);
}
.section.reveal-ready .about-content,
.section.reveal-ready .skills-content,
.section.reveal-ready .journal-grid,
.section.reveal-ready .projects-content,
.section.reveal-ready .contact-content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.section.reveal-ready.content-revealed .about-content,
.section.reveal-ready.content-revealed .skills-content,
.section.reveal-ready.content-revealed .journal-grid,
.section.reveal-ready.content-revealed .projects-content,
.section.reveal-ready.content-revealed .contact-content {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .cursor,
  .cursor-follower,
  .cursor-dot,
  .cursor-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .section.reveal-ready .section-header,
  .section.reveal-ready .chapter-marker,
  .section.reveal-ready .design-board,
  .section.reveal-ready .research-notes,
  .section.reveal-ready .skill-icon,
  .section.reveal-ready .notebook-mark,
  .section.reveal-ready .about-content,
  .section.reveal-ready .skills-content,
  .section.reveal-ready .journal-grid,
  .section.reveal-ready .projects-content,
  .section.reveal-ready .contact-content { opacity: 1; transform: none; transition: none; }
  .section.reveal-ready .margin-note,
  .section.reveal-ready .page-annotation { opacity: 0.7; }
}

@media (max-width: 768px) {
  .site-loader { width: 100%; max-width: 100%; }
}

html { overflow-x: hidden; }
