/* ========================================
   MODERN PORTFOLIO - UNIQUE DESIGN
   ======================================== */

:root {
  /* Color System */
  --color-bg: #0a0a0a;
  --color-surface: #131313;
  --color-surface-elevated: #1a1a1a;
  --color-text: #ffffff;
  --color-text-muted: #a0a0a0;
  --color-text-subtle: #6b6b6b;
  --color-accent: #00ff88;
  --color-accent-dim: #00cc6a;
  --color-border: #2a2a2a;
  
  /* Typography */
  --font-display: 'Archivo', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  mix-blend-mode: difference;
}

.cursor-outline {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s var(--ease-out);
  mix-blend-mode: difference;
}

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

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  animation: slideDown 0.6s var(--ease-out);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  gap: 0.25rem;
}

.logo-bracket {
  color: var(--color-text-subtle);
}

.logo-text {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-out);
}

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

.nav-link:hover::before {
  width: 100%;
}

.nav-link-highlight {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-accent);
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.nav-link-highlight::before {
  display: none;
}

.nav-link-highlight:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl) var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.3), transparent);
  top: -10%;
  left: -10%;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 136, 255, 0.2), transparent);
  bottom: -10%;
  right: -10%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(30px, -30px);
  }
  66% {
    transform: translate(-20px, 20px);
  }
}

.noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s var(--ease-out);
}

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

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s var(--ease-out) 0.1s backwards;
}

.label-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-md);
}

.title-line {
  display: block;
  overflow: hidden;
}

.word {
  display: inline-block;
  animation: slideUp 0.8s var(--ease-out) backwards;
}

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

.title-line:nth-child(2) .word {
  animation-delay: 0.3s;
}

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

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.word.highlight {
  color: var(--color-accent);
  position: relative;
}

.word.highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.15em;
  background: var(--color-accent);
  opacity: 0.2;
}

.hero-description {
  max-width: 500px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s var(--ease-out) 0.5s backwards;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s var(--ease-out) 0.6s backwards;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent);
  display: block;
  line-height: 1;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  margin-top: 0.25rem;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.7s backwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
  font-family: var(--font-display);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 1;
  animation: fadeInRight 1s var(--ease-out) 0.3s backwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.visual-frame {
  position: relative;
  padding: 2rem;
}

.frame-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--color-accent);
}

.tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}

.bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}

.br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

.code-window {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.window-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.window-dots {
  display: flex;
  gap: 0.5rem;
}

.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
}

.window-dots span:nth-child(1) {
  background: #ff5f56;
}

.window-dots span:nth-child(2) {
  background: #ffbd2e;
}

.window-dots span:nth-child(3) {
  background: #27c93f;
}

.window-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.window-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
}

.window-body pre {
  margin: 0;
}

.code-keyword {
  color: #ff79c6;
}

.code-variable {
  color: #8be9fd;
}

.code-operator {
  color: #ff79c6;
}

.code-tag {
  color: #50fa7b;
}

.code-attr {
  color: #f1fa8c;
}

.code-string {
  color: #f1fa8c;
}

.floating-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: fadeIn 1s ease 1.5s backwards;
}

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

.tech-tag {
  padding: 0.5rem 1rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  animation: tagFloat 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes tagFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  animation: fadeIn 1s ease 2s backwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% {
    transform: translateY(0);
    opacity: 0;
  }
  50% {
    transform: translateY(20px);
    opacity: 1;
  }
}

/* ========================================
   SECTIONS
   ======================================== */

section {
  padding: var(--spacing-xl) var(--spacing-lg);
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.section-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-border);
  line-height: 1;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-border), transparent);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.work-section {
  background: var(--color-surface);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

.project-item {
  position: relative;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-item:hover {
  transform: translateY(-12px);
  border-color: var(--color-accent);
  box-shadow: 0 25px 50px rgba(0, 255, 136, 0.15);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  letter-spacing: 0.05em;
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.project-item:hover .project-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.overlay-icon {
  font-size: 2.5rem;
  display: block;
  animation: popIn 0.5s var(--ease-out);
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.overlay-text {
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.project-status {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.status-development {
  background: rgba(255, 165, 0, 0.15);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.status-live {
  background: rgba(0, 255, 136, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-github {
  background: rgba(136, 136, 136, 0.15);
  color: #a0a0a0;
  border: 1px solid rgba(136, 136, 136, 0.3);
}

.project-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.project-item:hover .project-title {
  color: var(--color-accent);
}

.project-description {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  padding: 0.4rem 0.8rem;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
}

.project-tech .tech-tag:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.project-links {
  flex: 1;
}

.project-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.05em;
}

.project-link:hover {
  transform: translateX(4px);
  opacity: 0.8;
}

.project-stats {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  font-weight: 600;
}

.stat-item {
  display: inline-block;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.intro-section {
  padding: var(--spacing-xl) var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

/* subtle scan-line bg accent */
.intro-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 48px,
    rgba(0, 255, 136, 0.018) 48px,
    rgba(0, 255, 136, 0.018) 49px
  );
  pointer-events: none;
}

.intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---- LEFT COLUMN ---- */

.intro-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.eyebrow-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.intro-heading {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  color: var(--color-text);
}

.intro-heading-accent {
  color: var(--color-accent);
  display: inline-block;
  position: relative;
}

/* animated underline stroke */
.intro-heading-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform-origin: left;
  transform: scaleX(0);
  animation: drawLine 0.8s var(--ease-out) 0.6s forwards;
}

@keyframes drawLine {
  to { transform: scaleX(1); }
}

.intro-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  max-width: 480px;
}

.intro-body strong {
  color: var(--color-text);
  font-weight: 700;
}

.intro-traits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.75rem 0 2.25rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 0.75rem;
}

.intro-traits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.trait-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.intro-traits li strong {
  color: var(--color-text);
}

.intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
  transition: gap 0.3s ease, opacity 0.3s ease;
}

.intro-cta:hover {
  gap: 0.85rem;
  opacity: 0.8;
}

/* ---- RIGHT COLUMN ---- */

.intro-photo-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-frame-wrapper {
  position: relative;
  width: 360px;
  height: 420px;
}

/* Rotating rings */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 255, 136, 0.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spinRing 20s linear infinite;
  pointer-events: none;
}

.ring-1 {
  width: 105%;
  height: 105%;
  animation-duration: 25s;
}

.ring-2 {
  width: 115%;
  height: 115%;
  border-color: rgba(0, 136, 255, 0.15);
  animation-direction: reverse;
  animation-duration: 18s;
}

@keyframes spinRing {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Corner bracket decorations */
.photo-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 3;
}

.photo-bracket.tl { top: 0; left: 0; border-top: 2px solid var(--color-accent); border-left: 2px solid var(--color-accent); }
.photo-bracket.tr { top: 0; right: 0; border-top: 2px solid var(--color-accent); border-right: 2px solid var(--color-accent); }
.photo-bracket.bl { bottom: 0; left: 0; border-bottom: 2px solid var(--color-accent); border-left: 2px solid var(--color-accent); }
.photo-bracket.br { bottom: 0; right: 0; border-bottom: 2px solid var(--color-accent); border-right: 2px solid var(--color-accent); }

/* Photo container */
.photo-img-wrap {
  position: absolute;
  inset: 12px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  z-index: 2;
}

.intro-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s var(--ease-out);
  filter: grayscale(15%);
}

.photo-img-wrap:hover .intro-photo {
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* Fallback avatar if photo missing */
.photo-fallback-avatar {
  display: none;
  position: absolute;
  inset: 0;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-surface);
  align-items: center;
  justify-content: center;
}

.photo-img-wrap.photo-placeholder .photo-fallback-avatar {
  display: flex;
}

/* Gradient tint overlay on photo */
.photo-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    transparent 60%,
    rgba(0, 255, 136, 0.08) 100%
  );
  pointer-events: none;
}

/* Status badge - bottom left */
.photo-badge {
  position: absolute;
  bottom: -14px;
  left: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Role chip - top right */
.photo-chip {
  position: absolute;
  top: -14px;
  right: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.chip-icon {
  font-weight: 700;
  letter-spacing: -0.05em;
}

/* Parallax scroll effect handled in JS */

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .intro-inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .intro-photo-col {
    order: -1;
  }

  .photo-frame-wrapper {
    width: 280px;
    height: 330px;
  }
}

@media (max-width: 480px) {
  .photo-frame-wrapper {
    width: 240px;
    height: 290px;
  }
}


/* ========================================
   LEADERSHIP TIMELINE
   ======================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 255, 136, 0.1);
  border-color: var(--color-accent);
}

.leadership-card-banner {
  position: relative;
}

.leadership-banner {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.leadership-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.8), transparent);
}

.leadership-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leadership-body .card-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
}

.leadership-body .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.leadership-body .card-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.leadership-body time {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
  background: var(--color-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.about-text .lead {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.about-text p {
  margin-bottom: var(--spacing-md);
}

.skills-grid {
  display: grid;
  gap: var(--spacing-md);
}

.skill-category {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-elevated);
  transform: translateY(-4px);
}

.skill-category h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-items span {
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  font-weight: 500;
}

.skill-items span:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
  background: var(--color-surface);
  text-align: center;
  position: relative;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-section .section-number {
  display: block;
  margin-bottom: 1rem;
}

.contact-section .section-title {
  margin-bottom: var(--spacing-lg);
}

.contact-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: var(--spacing-md) 0 var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 450px;
  margin: 0 auto;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: 700;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.02em;
}

.contact-link:hover {
  background: var(--color-bg);
  border-color: var(--color-accent);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.link-arrow {
  color: var(--color-accent);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.contact-link:hover .link-arrow {
  transform: translateX(5px);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

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

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  gap: 0.25rem;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

.footer-right {
  display: flex;
  gap: var(--spacing-md);
}

.footer-right a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: var(--color-accent);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .hero-visual {
    order: -1;
  }

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

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

@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .nav {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .nav-links {
    gap: var(--spacing-sm);
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .section-line {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  .contact-links {
    width: 100%;
  }
}
