/*
  ═══════════════════════════════════════════════════════
  FERUZA PORTFOLIO — International Split-Screen Glassmorphism
  Colors: Obsidian Slate Black × Premium Mint Teal & Silver
  ═══════════════════════════════════════════════════════
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Syne:wght@700;800&family=Bona+Nova:ital,wght@0,400;0,700;1,400&display=swap');

/* ─── DESIGN TOKENS (Premium UI/UX Compliant) ─── */
:root {
  --bg: #030611; /* Deep Slate Obsidian Black */
  --bg-card: rgba(255, 255, 255, 0.03); /* Premium Glassmorphism */
  --border: rgba(255, 255, 255, 0.08); /* Transparent thin glass border */
  --border-hover: rgba(0, 191, 165, 0.45); /* Active teal glow border */
  
  --text-primary: #ffffff; /* Maximum contrast headers */
  --text-secondary: rgba(255, 255, 255, 0.85); /* Readability body text */
  --text-muted: #94a3b8; /* Slate 400 (Contrast neutral grey) */
  
  --accent: #00bfa5; /* Dynamic Mint Teal */
  --cyan: #00e5ff; /* Cyan highlight */
  --purple: #a855f7;
  
  --font-main: 'Outfit', sans-serif;
  --font-title: 'Plus Jakarta Sans', sans-serif; /* Cleaner typography */
  --font-serif: 'Bona Nova', serif;
  
  --radius: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

/* ─── DYNAMIC BACKGROUNDS (MOVING AURORA) ─── */
.canvas-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #02040a;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Animated floating aurora clouds */
.aurora-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: screen;
}

.aurora-1 {
  top: -10%; left: 8%;
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, rgba(0, 191, 165, 0.22), transparent 70%);
  animation: float-aurora-1 25s infinite alternate ease-in-out;
}

.aurora-2 {
  bottom: -15%; right: 5%;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15), transparent 70%);
  animation: float-aurora-2 30s infinite alternate ease-in-out;
}

.aurora-3 {
  top: 35%; left: 30%;
  width: 35vw; height: 35vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14), transparent 70%);
  animation: float-aurora-3 28s infinite alternate ease-in-out;
}

@keyframes float-aurora-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, -8vh) scale(1.15); }
}

@keyframes float-aurora-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10vw, 12vh) scale(1.1); }
}

@keyframes float-aurora-3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(12vw, 8vh) scale(0.9); }
}

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

/* ─── WRAPPER ─── */
.wrapper {
  width: 100%;
  max-width: 1100px;
  min-height: 100vh;
  padding: 4rem 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* ─── TOP BAR (FLOATING LANGUAGE SWITCHER) ─── */
.top-bar {
  position: fixed;
  top: 2.5rem;
  right: 3rem;
  z-index: 1000;
}

/* Language selector */
.lang-switcher {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  padding: 4px 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.lang-switcher:hover {
  border-color: rgba(0, 191, 165, 0.5); /* Smooth neon green border */
  box-shadow: 0 0 15px rgba(0, 191, 165, 0.25); /* Subtle neon glow */
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.lang-btn:hover:not(.active) {
  color: var(--accent);
  background: rgba(255,255,255,0.02);
}

/* ─── SPLIT LAYOUT GRID ─── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4.5rem;
  width: 100%;
  align-items: start;
}

/* ─── LEFT PANEL (STICKY IDENTITY CENTERING) ─── */
.left-panel {
  position: sticky;
  top: 4rem;
  z-index: 10;
}

.left-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center; /* Centering children along vertical center axis */
  text-align: center;
  width: 100%;
}

/* Hero Section details */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

/* ─── 3D INTERACTIVE GLASS CUBE (CENTERPIECE) ─── */
.glass-cube-wrapper {
  width: 150px;
  height: 150px;
  perspective: 800px;
  margin: 0 auto 28px; /* Bottom spacing for badge breathing room */
  cursor: grab;
}

.glass-cube-wrapper:active {
  cursor: grabbing;
}

.glass-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, -12deg)) rotateY(var(--ry, 18deg));
  transition: transform 0.12s ease-out;
  animation: cube-slow-spin 12s linear infinite;
}

/* Continuously rotating floating animation */
@keyframes cube-slow-spin {
  0% {
    transform: rotateX(calc(var(--rx, -12deg) - 5deg)) rotateY(calc(var(--ry, 18deg) + 0deg)) translateY(0px);
  }
  50% {
    transform: rotateX(calc(var(--rx, -12deg) + 5deg)) rotateY(calc(var(--ry, 18deg) + 180deg)) translateY(-8px);
  }
  100% {
    transform: rotateX(calc(var(--rx, -12deg) - 5deg)) rotateY(calc(var(--ry, 18deg) + 360deg)) translateY(0px);
  }
}

/* All faces share these glass properties */
.cube-face {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 30px rgba(0, 255, 200, 0.04);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* Dynamic specular highlight reflecting pointer movement */
.cube-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120px circle at var(--cx, 50%) var(--cy, 50%), rgba(255, 255, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.glass-cube-wrapper:hover .cube-face::after {
  opacity: 1;
}

/* Neon edge glow inside each face */
.face-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 20px rgba(0, 255, 200, 0.06),
    inset 0 0 60px rgba(0, 136, 255, 0.04);
  pointer-events: none;
  animation: face-pulse 4s ease-in-out infinite alternate;
}

@keyframes face-pulse {
  0% { box-shadow: inset 0 0 20px rgba(0, 255, 200, 0.06), inset 0 0 60px rgba(0, 136, 255, 0.04); }
  100% { box-shadow: inset 0 0 35px rgba(0, 255, 200, 0.12), inset 0 0 80px rgba(0, 136, 255, 0.08); }
}

/* Face transforms — build a 3D cube */
.cube-front  { transform: translateZ(75px); }
.cube-back   { transform: rotateY(180deg) translateZ(75px); }
.cube-left   { transform: rotateY(-90deg) translateZ(75px); }
.cube-right  { transform: rotateY(90deg) translateZ(75px); }
.cube-top    { transform: rotateX(90deg) translateZ(75px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(75px); }

/* Neon edge borders per face */
.cube-front  { border-color: rgba(0, 255, 200, 0.2); }
.cube-back   { border-color: rgba(0, 136, 255, 0.15); }
.cube-left   { border-color: rgba(0, 255, 200, 0.1); }
.cube-right  { border-color: rgba(0, 136, 255, 0.1); }
.cube-top    { border-color: rgba(0, 255, 200, 0.12); }
.cube-bottom { border-color: rgba(0, 136, 255, 0.08); }

/* SVG "NF" monogram on the front face */
.cube-f-svg {
  width: 85%;
  height: 85%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.5s var(--ease);
}

/* Hover intensifies the glow and adds glass refraction scale/blur */
.glass-cube-wrapper:hover .cube-face {
  border-color: rgba(0, 255, 200, 0.3);
  box-shadow: inset 0 0 40px rgba(0, 255, 200, 0.1);
  transition: all 0.5s var(--ease);
}

.glass-cube-wrapper:hover .cube-f-svg {
  transform: translate(-50%, -50%) scale(1.08);
}



.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.header-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
}

.edge-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.05);
}

.pulse-dot {
  width: 7px; height: 7px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-badge 2s infinite alternate;
}

@keyframes pulse-badge {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 191, 165, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(0, 191, 165, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 191, 165, 0); }
}

/* Elegant & Clean typography for name */
.main-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 600; /* Lighter weight for premium minimalism */
  line-height: 1.25;
  letter-spacing: 0.02em; /* Wider spacing to prevent squishing */
  color: #ffffff;
  transition: text-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.main-title:hover {
  text-shadow: 0 0 25px rgba(0, 191, 165, 0.35);
  transform: translateY(-1px);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 50%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.profile-subtitle {
  font-family: var(--font-main);
  font-size: 0.82rem; /* Elegant, smaller, premium text */
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.profile-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
}

/* Social Row inside Left Panel (Perfect Center Alignment - Horizontal Row) */
.socials-row-inline {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px; /* Spaced out exactly 16px */
  width: 100%;
  max-width: 280px;
  margin: 1.15rem auto 0; /* Centered in container with breathing room */
}

.social-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.4s var(--spring);
  position: relative;
  box-sizing: border-box;
}

.social-btn-inline i {
  font-size: 1.15rem;
  transition: transform 0.4s var(--ease);
}

.social-btn-inline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--hover-color, var(--accent));
  box-shadow: 
    0 0 15px var(--hover-color, rgba(0, 255, 200, 0.4)),
    0 0 5px rgba(0, 191, 165, 0.2);
  transform: translateY(-2px);
}

.social-btn-inline:hover i {
  transform: scale(1.15) rotate(-6deg);
}

/* Premium CSS Tooltip (Obsidian/Glass style) */
.social-btn-inline::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(3, 6, 17, 0.95);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.social-btn-inline::after {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(3, 6, 17, 0.95) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  z-index: 10;
}

.social-btn-inline:hover::before,
.social-btn-inline:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ─── RIGHT PANEL (SCROLLABLE CONTENT) ─── */
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.content-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
  cursor: pointer;
}

.content-card:hover {
  border-color: var(--border-hover);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(0, 191, 165, 0.15); /* Soft neon-green/blue glow */
  transform: translateY(-4px) scale(1.01); /* Soft slide-up elevation */
}

/* 3D Glass Reflection Sheen */
.content-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--sheen-x, 0) var(--sheen-y, 0), rgba(255, 255, 255, 0.045), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

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

.card-inner {
  position: relative;
  padding: 2.5rem 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
  box-sizing: border-box;
}

/* ─── PORTFOLIO LINK CARD ─── */
.link-content {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.icon-circle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: all 0.5s var(--spring);
}

.content-card:hover .icon-circle {
  background: var(--accent);
  border-color: transparent;
  color: #020705;
  transform: scale(1.1) rotate(-6deg);
}

.shadow-green {
  box-shadow: 0 0 15px rgba(0, 191, 165, 0.15);
}



.text-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.text-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.arrow-icon {
  margin-left: auto;
  margin-right: 0.5rem; /* Padded inward slightly */
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: transform 0.4s var(--ease);
}

.content-card:hover .arrow-icon {
  transform: translate(4px, -4px);
  color: var(--accent);
}

/* ─── CONTACT CARD (FORM) ─── */
.contact-inner {
  justify-content: flex-start;
  gap: 1.5rem;
}

.contact-header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.shadow-purple {
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.12);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(40, 60, 75, 0.6); /* Ochroq shisha fon */
  border: 1px solid rgba(255, 255, 255, 0.32); /* Yaqqol ko'rinadigan border */
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.35s var(--ease);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #b0c0d4; /* Yuqori kontrast placeholder */
}

/* Neon Focus Glow matches Submit Button accent */
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: rgba(2, 16, 20, 0.9);
  box-shadow: 0 0 25px rgba(0, 191, 165, 0.4); /* Neon focus glow */
}

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

.submit-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  color: #020705;
  border: none;
  border-radius: 100px;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 191, 165, 0.2);
}

.submit-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: 0.6s;
}

.submit-btn:hover::after { left: 120%; }

.submit-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 255, 200, 0.5);
}

.submit-btn:active { transform: translateY(0); }

/* Toast inside form */
.toast {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  animation: toastFade 0.4s var(--ease);
}

.toast.show { display: flex; }
.toast.ok {
  background: rgba(0, 191, 165, 0.08);
  border: 1px solid rgba(0, 191, 165, 0.15);
  color: var(--accent);
}
.toast.err {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

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

/* Tooltips */
.tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s var(--ease);
  z-index: 10;
}

.social-btn-inline:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── MAGIC HOVER GLOW EFFECT ─── */
.magic-hover-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 191, 165, 0.07), transparent 45%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

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

/* ─── BORDER BEAM EFFECT (DO NOT TOUCH OR REMOVE PURPLE BEAM) ─── */
.border-beam {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 1;
}

.border-beam::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0%, var(--accent) 8%, var(--purple) 18%, transparent 30%);
  border-radius: calc(var(--radius) + 1px);
  animation: rotate-beam 5s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: source-out;
  padding: 1.2px; /* Super thin */
}

.purple-beam::before {
  background: conic-gradient(from 180deg at 50% 50%, transparent 0%, var(--purple) 8%, var(--accent) 18%, transparent 30%);
  animation: rotate-beam 6.5s linear infinite; /* Asymmetric speed */
}

@keyframes rotate-beam {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── FOOTER ─── */
.footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
}

/* ─── PREMIUM ENTRANCE PRELOADER ─── */
#preloader {
  position: fixed;
  inset: 0;
  background: #020409;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.8s var(--ease);
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

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

.preloader-logo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
}

.preloader-counter {
  font-family: var(--font-main);
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
}

.preloader-bar-container {
  width: 240px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 0.05s linear;
}

/* ─── INTERACTIVE CUSTOM CURSOR ─── */
#custom-cursor {
  position: fixed;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(0, 191, 165, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

#custom-cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
}

#custom-cursor.cursor-hover {
  width: 46px;
  height: 46px;
  background-color: rgba(0, 191, 165, 0.06);
  border-color: var(--accent);
}

#custom-cursor-dot.cursor-hover-dot {
  background-color: #ffffff;
  transform: translate(-50%, -50%) scale(1.8);
}

/* Hide on touch devices */
@media (hover: none) and (pointer: coarse) {
  #custom-cursor, #custom-cursor-dot {
    display: none !important;
  }
}

/* ─── REVEAL SEQUENCE ANIMATIONS (FADE-IN UP TIMING) ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

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

/* ─── RESPONSIVE ─── */
/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  body {
    display: flex !important;
    flex-direction: column !important; /* Stack top-bar and wrapper vertically */
    align-items: center !important;
    justify-content: flex-start !important;
    overflow-y: auto;
    height: auto;
  }
  .top-bar {
    position: relative !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    display: flex !important;
    justify-content: flex-end !important; /* Align to the right edge of wrapper */
    width: 100% !important;
    max-width: 1100px !important;
    padding: 1.5rem 2rem 0 !important;
    margin: 0 auto !important;
    z-index: 1000 !important;
  }
  .wrapper {
    width: 100% !important;
    height: auto;
    padding: 1rem 2rem 4rem !important; /* Reduced top padding since switcher takes vertical flow space */
  }
}

@media (max-width: 900px) {
  .top-bar {
    justify-content: center !important; /* Centered on stacked mobile layout */
    padding: 1.5rem 1rem 0 !important;
  }
  .wrapper {
    padding: 0 1.25rem 4rem !important;
  }
  .split-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3.5rem !important;
    width: 100% !important;
  }
  .left-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    position: static !important;
  }
  .left-panel-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 1.75rem !important;
  }
  .profile-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 32px !important; /* Cube hero starts at least 32px below the lang switcher */
  }
  .glass-cube-wrapper {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 28px !important; /* Ensure the 3D cube is centered */
    display: block !important;
  }
  .glass-cube-wrapper .cube-face {
    width: 120px !important;
    height: 120px !important;
  }
  .cube-front  { transform: translateZ(60px) !important; }
  .cube-back   { transform: rotateY(180deg) translateZ(60px) !important; }
  .cube-left   { transform: rotateY(-90deg) translateZ(60px) !important; }
  .cube-right  { transform: rotateY(90deg) translateZ(60px) !important; }
  .cube-top    { transform: rotateX(90deg) translateZ(60px) !important; }
  .cube-bottom { transform: rotateX(-90deg) translateZ(60px) !important; }
  
  .lang-switcher {
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
  }
  .hero-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  .footer {
    margin-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .border-beam::before {
    display: none;
  }
  #preloader {
    display: none !important;
  }
}



/* Scrollbar */
.form-textarea::-webkit-scrollbar {
  width: 4px;
}
.form-textarea::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}
