/* ========================================
   CSS VARIABLES (Theme Tokens)
   ======================================== */

:root {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --text-primary: #000000;
  --text-secondary: #374151;
  --text-muted: #52525b;
  --accent: #3395ff;
  --accent-hover: #1e88ff;
  --secondary: rgb(99, 102, 241);
  --danger: rgb(239, 68, 68);
  --success: rgb(16, 185, 129);
  --warning: rgb(245, 158, 11);
  --info: rgb(59, 130, 246);
  --gradient-primary: linear-gradient(135deg, #3395ff 0%, rgb(99, 102, 241) 100%);
  --navbar-bg: rgba(255, 255, 255, 0.35);
  --navbar-border: rgba(255, 255, 255, 0.3);
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.05);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --section-border: rgba(0, 0, 0, 0.1);
  --section-bg: rgba(255, 255, 255, 0.7);
  --input-bg: rgba(0, 0, 0, 0.05);
  --input-border: rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 22px;
  --glass-bg-deep: rgba(255, 255, 255, 0.8);
  --blob-color-1: rgba(44, 108, 188, 0.4);
  --blob-color-2: rgba(113, 195, 247, 0.35);
  --blob-color-3: rgba(246, 246, 246, 0.25);
}

.dark {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --navbar-bg: rgba(0, 0, 0, 0.5);
  --navbar-border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(0, 0, 0, 0.6);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --section-border: rgba(255, 255, 255, 0.1);
  --section-bg: rgba(255, 255, 255, 0.03);
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.08);
  --glass-bg-deep: rgba(10, 10, 12, 0.6);
  --blob-color-1: rgba(255, 255, 255, 0.12);
  --blob-color-2: rgba(255, 255, 255, 0.1);
  --blob-color-3: rgba(255, 255, 255, 0.08);
}

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

*, *::before, *::after {
  margin: 0;
  box-sizing: border-box;
}

html, body {
  overscroll-behavior-y: contain;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  overflow: hidden;
}

input, textarea, [contenteditable="true"] {
  user-select: text;
}

::selection {
  background: rgba(59, 130, 246, 0.3);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: var(--text-muted);
  border-radius: 20px;
  opacity: 0.3;
}

/* ========================================
   LOADER
   ======================================== */

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  position: relative;
  width: 60px;
  height: 60px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

.loader-ring-2 {
  inset: 8px;
  border-top-color: var(--secondary);
  animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   PAGE TRANSITION CURTAIN
   ======================================== */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-primary);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: none;
  pointer-events: none;
}

.curtain-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  font-family: 'Caveat', cursive;
  font-size: clamp(40px, 10vw, 100px);
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
}

/* ========================================
   ANIMATED BACKGROUND BLOBS
   ======================================== */

.blob-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
}

.blob-1 { width: 600px; height: 600px; background: var(--blob-color-1); top: -200px; left: -200px; animation: blob-float-1 18s ease-in-out infinite; }
.blob-2 { width: 500px; height: 500px; background: var(--blob-color-2); top: 20%; right: -150px; animation: blob-float-2 22s ease-in-out infinite; }
.blob-3 { width: 400px; height: 400px; background: var(--blob-color-3); bottom: -100px; left: 30%; animation: blob-float-3 16s ease-in-out infinite; }
.blob-4 { width: 350px; height: 350px; background: var(--blob-color-1); top: 60%; right: 20%; animation: blob-float-4 20s ease-in-out infinite; }
.blob-5 { width: 450px; height: 450px; background: var(--blob-color-2); bottom: 20%; left: 10%; animation: blob-float-5 14s ease-in-out infinite; }
.blob-6 { width: 300px; height: 300px; background: var(--blob-color-3); top: 40%; left: 50%; animation: blob-float-6 24s ease-in-out infinite; }

@keyframes blob-float-1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(80px, 60px) scale(1.05); } 66% { transform: translate(-40px, 80px) scale(0.95); } }
@keyframes blob-float-2 { 0%, 100% { transform: translate(0, 0) scale(1); } 40% { transform: translate(-80px, 100px) scale(1.1); } 70% { transform: translate(60px, -60px) scale(0.9); } }
@keyframes blob-float-3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, -80px) scale(1.08); } }
@keyframes blob-float-4 { 0%, 100% { transform: translate(0, 0) scale(1); } 35% { transform: translate(-70px, -50px) scale(1.06); } 75% { transform: translate(50px, 70px) scale(0.94); } }
@keyframes blob-float-5 { 0%, 100% { transform: translate(0, 0) scale(1); } 45% { transform: translate(90px, -70px) scale(1.07); } }
@keyframes blob-float-6 { 0%, 100% { transform: translate(0, 0) scale(1); } 60% { transform: translate(-60px, 90px) scale(1.05); } }

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

.app {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.section-active {
  opacity: 1;
  transform: translateX(0) translateY(0);
  z-index: 2;
}

.section-hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: translateY(100vh);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.page-padding {
  padding-left: clamp(16px, 5vw, 80px);
  padding-right: clamp(16px, 5vw, 80px);
}

.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.relative { position: relative; }
.pt-20 { padding-top: 80px; }
.pb-32 { padding-bottom: 128px; }
.pb-40 { padding-bottom: 160px; }
.hidden-mobile { display: none; }

@media (min-width: 768px) {
  .hidden-mobile { display: grid; }
}

.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

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

.hero {
  position: relative;
  overflow: hidden;
}

.wall-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(0,0,0,0.015) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(0,0,0,0.015) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.008) 2px, transparent 2px);
  background-size: 20px 20px, 20px 20px, 40px 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .hero-left {
    align-items: flex-start;
    text-align: left;
  }
}

.handwriting-wrapper {
  position: relative;
  z-index: 20;
}

.handwriting-top {
  margin-bottom: -40px;
  margin-left: 0;
  transform: rotate(-6deg);
  transform-origin: left center;
}

.handwriting-bottom {
  margin-top: -50px;
  align-self: flex-end;
  margin-right: -10px;
  transform: rotate(-3deg);
  transform-origin: right center;
}

@media (min-width: 768px) {
  .handwriting-top { margin-left: -20px; margin-bottom: -40px; }
  .handwriting-bottom { margin-right: -20px; margin-top: -50px; }
}

.handwriting-svg { overflow: visible; }

.hero-name {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  line-height: 0.8;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 560px;
  margin: 0;
  position: relative;
  z-index: 10;
}

.name-row { display: flex; }

.name-first {
  font-size: clamp(3.2rem, 10vw, 6rem);
  letter-spacing: -0.05em;
  align-self: flex-start;
  margin-left: -5px;
}

.name-last {
  font-size: clamp(3.2rem, 10vw, 6rem);
  letter-spacing: -0.05em;
  align-self: flex-end;
  margin-right: -5px;
  margin-top: clamp(-16px, -2.5vw, -40px);
}

@media (min-width: 768px) {
  .name-first { margin-left: -15px; }
  .name-last { margin-right: -15px; }
}

.name-char {
  display: inline-block;
  will-change: transform, opacity;
}

.dot-grid {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateX(-32px) translateY(96px);
  grid-template-columns: repeat(3, 12px);
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--info);
  opacity: 0.4;
}

.badge-wrapper {
  margin-top: 80px;
  position: relative;
  z-index: 5000;
}

@media (min-width: 768px) {
  .badge-wrapper { margin-top: 80px; margin-left: 16px; }
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 40px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: all 0.3s ease;
}

.available-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(51, 149, 255, 0.2);
}

.badge-pulse-wrap {
  position: relative;
  width: 12px;
  height: 12px;
}

.badge-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  z-index: 2;
}

.badge-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-right {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

@media (min-width: 768px) { .hero-right { margin-top: 0; } }

.hero-image-float {
  position: relative;
  display: inline-block;
  max-width: 100%;
  will-change: transform;
}

.deco-box {
  position: absolute;
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
}

.deco-box-tl { top: -24px; left: -24px; z-index: 0; }
.deco-box-br { bottom: -24px; right: -24px; z-index: 0; }

.image-panel {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  z-index: 10;
}

.image-container {
  position: relative;
  width: clamp(200px, 40vw, 320px);
  aspect-ratio: 4/5;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

.img-skeleton {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  transition: opacity 1s ease;
}

.img-skeleton.loaded {
  opacity: 0;
  pointer-events: none;
}

.shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 1.4s infinite ease-in-out;
}

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

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 1.5s ease;
  display: block;
}

.img-num {
  position: absolute;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.img-num-left {
  left: -32px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  display: none;
}

@media (min-width: 640px) { .img-num-left { display: block; } }

.img-num-bottom {
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  animation: scroll-hint-bounce 2s ease-in-out infinite;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

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

.about-page { position: relative; z-index: 2; }

.about-max-w {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.about-header { margin-bottom: 48px; }

.about-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: -8px;
  margin-left: 8px;
}

.about-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 0.9;
  margin: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 768px) {
  .about-content { grid-template-columns: 1fr 1fr; }
}

.about-name-block {
  margin-bottom: 24px;
}

.about-full-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.1;
}

.about-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.about-bio {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-highlight {
  color: var(--accent);
  font-weight: 700;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.about-tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(51, 149, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(51, 149, 255, 0.2);
  letter-spacing: 0.02em;
}

.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-stat {
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(51, 149, 255, 0.15);
}

.about-stat-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ========================================
   STACK SECTION
   ======================================== */

.stack-page { position: relative; z-index: 2; }

.stack-max-w {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.stack-header { margin-bottom: 56px; }

.stack-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: -8px;
  margin-left: 8px;
}

.stack-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 0.9;
  margin: 0;
}

.stack-grid-outer {
  position: relative;
  display: inline-grid;
  width: 100%;
  border: 1px dashed var(--text-muted);
}

.stack-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-right: 1px dashed var(--text-muted);
  border-bottom: 1px dashed var(--text-muted);
  position: relative;
  cursor: default;
  transition: background 0.2s ease;
}

.stack-cell:hover { background: rgba(51, 149, 255, 0.05); }

.stack-cell img, .stack-cell svg {
  transition: all 0.3s ease;
  opacity: 0.55;
  filter: grayscale(100%);
}

.stack-cell:hover img, .stack-cell:hover svg {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.grid-marker {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--text-primary);
  transition: background 0.3s ease;
  z-index: 5;
}
.gm-tl { top: -5px; left: -5px; }
.gm-tr { top: -5px; right: -5px; }
.gm-bl { bottom: -5px; left: -5px; }
.gm-br { bottom: -5px; right: -5px; }

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

@media (min-width: 768px) { .social-row { justify-content: flex-start; } }

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--accent);
  background: rgba(51, 149, 255, 0.1);
  transform: scale(1.1);
}

.social-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.social-link:hover .social-tooltip { opacity: 1; }

/* ========================================
   COREX AI SECTION
   ======================================== */

.corex-page { position: relative; z-index: 2; }

.corex-max-w {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.corex-header { margin-bottom: 40px; }

.corex-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: -8px;
  margin-left: 8px;
}

.corex-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 0.9;
  margin: 0;
}

.corex-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.corex-intro p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.corex-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .corex-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .corex-grid { grid-template-columns: repeat(3, 1fr); }
}

.corex-card {
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
  overflow: hidden;
}

.corex-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(51, 149, 255, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.corex-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(51, 149, 255, 0.12);
  border-color: rgba(51, 149, 255, 0.3);
}

.corex-card:hover::before { opacity: 1; }

.corex-card-main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 32px 28px;
}

@media (min-width: 640px) {
  .corex-card-main { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .corex-card-main { grid-column: span 1; display: block; }
}

.corex-card-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corex-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.corex-card-img-main {
  width: 90px;
  height: 90px;
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .corex-card-img-main { margin-bottom: 20px; }
}

.corex-card-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.corex-card-main .corex-card-name {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

@media (min-width: 1024px) {
  .corex-card-main .corex-card-name { margin-bottom: 10px; }
}

.corex-card-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.corex-badge-flagship {
  background: linear-gradient(135deg, rgba(51, 149, 255, 0.9), rgba(99, 102, 241, 0.9));
  color: white;
}

.corex-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

.projects-page { position: relative; z-index: 2; }

.projects-max-w {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.projects-header { margin-bottom: 56px; }

.projects-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: -8px;
  margin-left: 8px;
}

.projects-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 0.9;
  margin: 0;
}

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

@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(40px);
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border-color: var(--accent);
}

.project-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--section-bg);
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrap img { transform: scale(1.05); }

.project-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(51, 149, 255, 0.9);
  color: white;
  backdrop-filter: blur(8px);
}

.project-body { padding: 20px; }

.project-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--section-bg);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

/* ========================================
   VISION SECTION
   ======================================== */

.vision-page {
  position: relative;
  z-index: 2;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
}

.vision-max-w {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.vision-header { margin-bottom: 48px; }

.vision-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: -8px;
  margin-left: 8px;
}

.vision-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 0.9;
  margin: 0;
}

.vision-quote-mark {
  font-family: 'Archivo Black', sans-serif;
  font-size: 6rem;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 8px;
  user-select: none;
}

.vision-statement {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.65;
  border: none;
  padding: 0;
  margin-bottom: 20px;
  font-style: normal;
}

.vision-author {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 48px;
}

.vision-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .vision-pillars { grid-template-columns: repeat(3, 1fr); }
}

.vision-pillar {
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  transition: all 0.3s ease;
}

.vision-pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(51, 149, 255, 0.1);
  border-color: rgba(51, 149, 255, 0.25);
}

.vision-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(51, 149, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.vision-pillar-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.vision-pillar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   COMPETITIONS SECTION
   ======================================== */

.comp-page { position: relative; z-index: 2; }

.comp-max-w {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.comp-header { margin-bottom: 40px; }

.comp-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: -8px;
  margin-left: 8px;
}

.comp-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 0.9;
  margin: 0;
}

.comp-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.comp-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.comp-tab:hover {
  color: var(--text-primary);
  border-color: rgba(51, 149, 255, 0.3);
}

.comp-tab-active {
  background: linear-gradient(135deg, rgba(51, 149, 255, 0.15), rgba(99, 102, 241, 0.1));
  color: var(--accent);
  border-color: rgba(51, 149, 255, 0.35);
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-list-hidden { display: none; }

.comp-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
}

.comp-item:hover {
  transform: translateX(6px);
  border-color: rgba(51, 149, 255, 0.3);
  box-shadow: 0 8px 30px rgba(51, 149, 255, 0.08);
}

.comp-item-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  gap: 0;
  flex-shrink: 0;
}

.comp-item-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.comp-dot-hack {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.comp-item-line {
  width: 2px;
  flex: 1;
  background: var(--card-border);
  margin-top: 6px;
  min-height: 20px;
}

.comp-item-body {
  padding: 18px 20px 18px 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  flex: 1;
}

.comp-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
}

.comp-item-org {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
}

.comp-item-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(51, 149, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(51, 149, 255, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.comp-badge-special {
  background: rgba(16, 185, 129, 0.12);
  color: rgb(16, 185, 129);
  border-color: rgba(16, 185, 129, 0.25);
}

.comp-badge-hack {
  background: rgba(245, 158, 11, 0.12);
  color: rgb(245, 158, 11);
  border-color: rgba(245, 158, 11, 0.25);
}

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

.contact-page {
  position: relative;
  z-index: 2;
  flex-direction: column;
}

.contact-max-w {
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.contact-header { margin-bottom: 40px; }

.contact-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: -8px;
  margin-left: 8px;
}

.contact-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 0.9;
  margin: 0;
}

.contact-form {
  border-radius: var(--radius-2xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.form-input, .form-textarea {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(51, 149, 255, 0.15);
}

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

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--gradient-primary);
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 149, 255, 0.4);
}

/* ========================================
   BOTTOM NAVBAR
   ======================================== */

.navbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: max-content;
  max-width: 95%;
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 28px;
  background: var(--navbar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--navbar-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
}

.dark .navbar-inner { box-shadow: 0 8px 32px rgba(0,0,0,0.4); }

.nav-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: var(--navbar-border);
  margin: 0 4px;
}

.nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.nav-btn.nav-active {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.nav-tooltip {
  position: fixed;
  bottom: calc(24px + 42px + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg-deep);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  z-index: 60;
}

.nav-btn:hover .nav-tooltip { opacity: 1; }

@media (max-width: 640px) {
  .navbar-inner { gap: 2px; padding: 8px 12px; border-radius: 20px; }
  .nav-btn { width: 36px; height: 36px; border-radius: 10px; }
  .nav-btn svg { width: 16px; height: 16px; }
  .nav-divider { height: 20px; margin: 0 2px; }
}

/* Secret tab */
.secret-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 14px 8px;
  min-width: 44px;
  min-height: 44px;
  z-index: 40;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.secret-tab:hover {
  background: rgba(255,255,255,0.2);
  color: var(--text-primary);
  transform: translateY(-50%) translateX(-4px);
}

/* ========================================
   TELEGRAM BOTS SECTION
   ======================================== */

.tg-page { position: relative; z-index: 2; }

.tg-max-w {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.tg-header { margin-bottom: 40px; }

.tg-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #2AABEE;
  margin-bottom: -8px;
  margin-left: 8px;
}

.tg-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 0.88;
  margin: 0;
}

.tg-intro {
  max-width: 640px;
  margin-bottom: 40px;
}

.tg-intro p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.75;
}

.tg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .tg-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .tg-grid { grid-template-columns: repeat(4, 1fr); }
}

.tg-card {
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.tg-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2AABEE, rgba(99, 102, 241, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(42, 171, 238, 0.12);
  border-color: rgba(42, 171, 238, 0.3);
}

.tg-card:hover::after { opacity: 1; }

.tg-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tg-icon-ai       { background: rgba(42, 171, 238, 0.12); color: #2AABEE; }
.tg-icon-auto     { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.tg-icon-analytics{ background: rgba(99, 102, 241, 0.12); color: rgb(99, 102, 241); }
.tg-icon-integration { background: rgba(16, 185, 129, 0.12); color: #10b981; }

.tg-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.tg-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tg-feature-list li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.tg-feature-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #2AABEE;
  font-weight: 700;
}

.tg-tech-bar {
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tg-tech-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.tg-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tg-tech-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(42, 171, 238, 0.1);
  color: #2AABEE;
  border: 1px solid rgba(42, 171, 238, 0.2);
}

/* ========================================
   CONTACT SOCIALS
   ======================================== */

.contact-socials {
  margin-top: 24px;
}

.contact-socials-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.contact-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.contact-social-wa {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.2);
}
.contact-social-wa:hover { background: rgba(37, 211, 102, 0.2); }

.contact-social-fb {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.2);
}
.contact-social-fb:hover { background: rgba(24, 119, 242, 0.2); }

.contact-social-ig {
  background: rgba(225, 48, 108, 0.12);
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.2);
}
.contact-social-ig:hover { background: rgba(225, 48, 108, 0.2); }

.contact-social-li {
  background: rgba(10, 102, 194, 0.12);
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.2);
}
.contact-social-li:hover { background: rgba(10, 102, 194, 0.2); }

/* ========================================
   SHIMMER (skeleton) ANIMATION
   ======================================== */

@keyframes shimmer-fast {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
