/* Dean D. & Milosh J. — Team Portfolio */

:root {
  --bg: #050508;
  --bg-elevated: #0c0c12;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --gradient: linear-gradient(135deg, #6366f1 0%, #22d3ee 50%, #f472b6 100%);
  --radius: 16px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Intro — one merged page (Our Voice + Team) */
.intro-page {
  position: relative;
  z-index: 2;
  padding: 6.5rem 2rem 4rem;
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, transparent 35%),
    linear-gradient(180deg, transparent 55%, rgba(34, 211, 238, 0.04) 100%);
}

.intro-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.intro-hero-block {
  margin-bottom: 2.5rem;
}

.forging-headline {
  margin: 0 0 1.75rem;
  padding: 1.75rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(34, 211, 238, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.forging-headline.demo-clicked {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18), 0 12px 40px rgba(99, 102, 241, 0.28);
}

.forging-headline p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-melting-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 1rem 0 0;
  text-align: center;
  border-radius: 0;
  background: none;
  border: none;
  padding: 0;
}

.intro-page .slogan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0;
  align-items: stretch;
}

.intro-team-bar {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.25vw, 0.92rem);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: #7c6bae;
  background: rgba(91, 75, 138, 0.1);
  border: 1px solid rgba(91, 75, 138, 0.35);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.intro-team-bar:hover {
  border-color: rgba(124, 107, 174, 0.55);
  box-shadow: 0 8px 28px rgba(91, 75, 138, 0.15);
}

.intro-page .voice-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.intro-page .slogan-card {
  padding: 1.15rem 1.35rem;
}

.intro-page .slogan-main {
  padding: 1.5rem;
}

.intro-page .slogan-main p {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
}

.intro-divider {
  height: 1px;
  margin: 3.5rem auto;
  max-width: 200px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0.5;
}

.intro-team {
  text-align: center;
}

.intro-team .team-cards {
  text-align: left;
}

@media (max-width: 768px) {
  .intro-melting-title {
    font-size: clamp(0.95rem, 3.8vw, 1.2rem);
    line-height: 1.35;
  }

  .intro-page .slogan-grid {
    grid-template-columns: 1fr;
  }

  .intro-team-bar {
    font-size: clamp(0.82rem, 3.5vw, 0.95rem);
    padding: 0.75rem 1rem;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
  top: 0 !important;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

#siteAudio {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Canvas & cursor glow */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow { opacity: 1; }

/* Demo cursor — intro “click” on forging headline */
.demo-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10050;
  width: 32px;
  height: 32px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-2px, -2px);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  will-change: left, top;
}

.demo-cursor.is-active {
  opacity: 1;
  visibility: visible;
}

.demo-cursor.is-clicking .demo-cursor-icon {
  transform: scale(0.78);
}

.demo-cursor-icon {
  display: block;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  transition: transform 0.1s ease;
  transform-origin: 4px 4px;
}

.demo-cursor-ripple {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.95);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.demo-cursor.is-clicking .demo-cursor-ripple {
  animation: demo-cursor-ripple 0.5s ease-out forwards;
}

@keyframes demo-cursor-ripple {
  0% {
    opacity: 1;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(3.6);
  }
}

body.demo-cursor-lock,
body.demo-cursor-lock * {
  cursor: none !important;
}

@media (pointer: coarse) {
  .demo-cursor {
    display: none !important;
  }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  --nav-pad-y: 1.25rem;
  padding: var(--nav-pad-y) 2rem;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s, background 0.3s;
}

.nav.scrolled { background: rgba(5, 5, 8, 0.92); }

.nav-logo {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  margin-block: calc(-1 * var(--nav-pad-y));
  flex-shrink: 0;
  z-index: 101;
}

.nav-logo-img {
  display: block;
  height: calc(var(--nav-pad-y) * 2 + 44px);
  width: auto;
  max-width: min(52vw, 300px);
  object-fit: contain;
  object-position: left center;
  transform: scale(1.06);
  transform-origin: left center;
  background: transparent;
}

.intro-brand-text {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.intro-brand-text span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-lang {
  position: relative;
  flex-shrink: 0;
  margin-left: 0.85rem;
  z-index: 110;
}

.nav-lang .lang-select-btn {
  min-width: 0;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
}

.nav-lang .lang-dropdown {
  top: calc(100% + 0.4rem);
  bottom: auto;
  left: 0;
  right: auto;
  min-width: 148px;
  max-height: min(60vh, 280px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  transform: translateY(-6px);
}

.nav-lang.lang-select-wrap.open .lang-dropdown,
.nav-lang.open .lang-dropdown {
  transform: translateY(0);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin-left: auto;
}

.nav-links > li {
  list-style: none;
}

.nav-dropdown {
  position: relative;
}

.nav-drop-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.nav-drop-btn:hover,
.nav-dropdown.open .nav-drop-btn {
  color: var(--text);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 280px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: rgba(12, 12, 18, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  z-index: 200;
}

.nav-dropdown-menu li {
  list-style: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-drop-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  transition: background 0.2s;
}

.nav-drop-link::after {
  display: none !important;
}

.nav-drop-link:hover {
  background: rgba(99, 102, 241, 0.12);
}

.drop-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.drop-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.nav-active {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { border-color: var(--accent); background: rgba(99, 102, 241, 0.1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  z-index: 2;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 900px;
  text-align: center;
}

.hero-pitch {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.hero-pitch strong {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.25rem;
}

.hero-tag {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .line { display: block; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 0.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-2);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* 3D hover — strong tilt on interactive items */
.tilt-3d,
.nav-links a {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tilt-3d {
  position: relative;
}

/* Voice — standalone page */
.voice-page .voice-fullpage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 7rem 2rem 3rem;
}

.voice-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.voice-title {
  font-family: var(--font-display);
  font-size: clamp(1.575rem, 3.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.05;
  color: #7c6bae;
}

.voice-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.voice-container {
  max-width: 1100px;
}

.voice-grid {
  margin-bottom: 3rem;
}

.voice-back {
  text-align: center;
  padding-bottom: 2rem;
}

/* Marquee — removed from index, styles kept minimal */
.marquee-section {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0;
  border-block: 1px solid var(--border);
  overflow: hidden;
  background: rgba(99, 102, 241, 0.03);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  animation: marquee 120s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.marquee-dot {
  color: var(--accent-2);
  font-size: 0.65rem;
  flex-shrink: 0;
  opacity: 0.6;
}

.marquee-track span:not(.marquee-text):not(.marquee-dot) {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
}

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

/* Slogans grid */
.slogans {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.04) 0%, transparent 100%);
}

.slogan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.slogan-card {
  position: relative;
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.slogan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
}

.slogan-card p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.slogan-main {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(34, 211, 238, 0.06) 100%);
  border-color: rgba(99, 102, 241, 0.25);
}

.slogan-main p {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sections */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.section-tag.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-title.center { text-align: center; }

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-lead.center {
  text-align: center;
  margin-inline: auto;
}

/* Team cards */
.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  perspective: 1400px;
}

.team-card {
  position: relative;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.team-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.team-card:hover .card-glow { opacity: 1; }

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Profiles */
.profile {
  background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.02) 50%, transparent 100%);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.profile-grid.reverse { direction: rtl; }
.profile-grid.reverse > * { direction: ltr; }

.profile-orbit {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: orbitSpin 20s linear infinite;
}

.ring-2 {
  inset: 15%;
  border-color: rgba(99, 102, 241, 0.2);
  animation-duration: 15s;
  animation-direction: reverse;
}

.ring-3 {
  inset: 30%;
  border-color: rgba(34, 211, 238, 0.15);
  animation-duration: 10s;
}

.milosh-orbit .ring-1 { border-color: rgba(244, 114, 182, 0.2); }
.milosh-orbit .ring-2 { border-color: rgba(244, 114, 182, 0.15); }

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

.profile-initials {
  position: absolute;
  inset: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.4);
}

/* Art avatar clips from CV photos */
.avatar-clip {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, #6366f1, #22d3ee, #f472b6, #6366f1);
  animation: avatarRing 6s linear infinite;
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.35);
}

.milosh-clip {
  background: conic-gradient(from 120deg, #f472b6, #6366f1, #22d3ee, #f472b6);
  box-shadow: 0 0 50px rgba(244, 114, 182, 0.3);
}

@keyframes avatarRing {
  to { filter: hue-rotate(360deg); }
}

.avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.08) saturate(1.15) brightness(1.02);
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.digital-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(99, 102, 241, 0.18) 0%, rgba(5, 5, 8, 0.95) 65%);
}

.avatar-symbol {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.45));
  animation: symbolPulse 4s ease-in-out infinite;
}

.milosh-clip .avatar-symbol {
  filter: drop-shadow(0 0 16px rgba(244, 114, 182, 0.4));
}

@keyframes symbolPulse {
  0%, 100% { transform: scale(1) translateZ(0); opacity: 0.95; }
  50% { transform: scale(1.06) translateZ(8px); opacity: 1; }
}

.dean-clip .avatar-photo {
  object-position: center 20%;
}

.milosh-clip .avatar-photo {
  object-position: center 15%;
  filter: contrast(1.12) saturate(1.2) brightness(0.95);
}

.profile-visual:hover .avatar-photo {
  transform: scale(1.1);
}

.avatar-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 40%,
    transparent 60%,
    rgba(99, 102, 241, 0.12) 100%
  );
  pointer-events: none;
  mix-blend-mode: overlay;
}

.avatar-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.08), transparent);
  animation: avatarScan 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes avatarScan {
  0%, 100% { top: -40%; opacity: 0; }
  50% { top: 100%; opacity: 1; }
}

.milosh-orbit .profile-initials {
  background: linear-gradient(135deg, #f472b6, #6366f1);
  box-shadow: 0 0 60px rgba(244, 114, 182, 0.35);
}

.profile-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.profile-tagline {
  font-size: 1.2rem;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.profile-milosh .profile-tagline { color: var(--accent-3); }

.profile-highlights {
  margin-bottom: 1.5rem;
}

.profile-highlights li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.profile-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.profile-highlights strong { color: var(--text); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.chip {
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Domain grid */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 1rem;
  perspective: 1400px;
}

.domain-item {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.domain-item:hover {
  transform: scale(1.03);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
}

.domain-item-dev {
  border-color: rgba(99, 102, 241, 0.22);
}

.domain-item-design {
  border-color: rgba(244, 114, 182, 0.22);
}

.domain-item-dev:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.domain-item-design:hover {
  border-color: rgba(244, 114, 182, 0.5);
  box-shadow: 0 8px 32px rgba(244, 114, 182, 0.12);
}

/* Contact */
.contact-inner {
  position: relative;
  padding: 4rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  text-align: center;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.contact-team-label {
  margin: 1.75rem 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-align: center;
}

.contact-team-mail {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  color: var(--text);
  word-break: break-word;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.contact-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(136, 136, 160, 0.75);
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.06);
}

.contact-send-btn {
  margin-top: 0.35rem;
  align-self: center;
  min-width: 160px;
  padding: 0.85rem 1.75rem;
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.2));
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.contact-send-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.25);
}

.contact-send-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-form-status {
  min-height: 1.35em;
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form-status.is-ok {
  color: #34d399;
}

.contact-form-status.is-err {
  color: #f87171;
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .profile-grid {
    gap: 2.5rem;
  }

  .profile-orbit {
    width: min(280px, 70vw);
    height: min(280px, 70vw);
  }

  .forging-headline {
    padding: 1.35rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .intro-page {
    padding: 5.5rem 1rem 5.5rem;
  }

  .nav {
    --nav-pad-y: 0.85rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-logo-img {
    max-width: min(58vw, 200px);
    transform: scale(1.02);
  }

  .nav-lang {
    margin-left: 0.45rem;
  }

  .nav-lang .lang-select-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }

  .nav-lang .lang-dropdown {
    min-width: 132px;
    font-size: 0.75rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(78vw, 260px);
    height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    transition: right 0.4s;
    gap: 0;
    margin-left: 0;
    padding: 4.25rem 0.85rem 1rem;
    overflow-y: auto;
    z-index: 100;
  }

  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; z-index: 101; }

  .nav-links > li {
    margin: 0;
    padding: 0;
  }

  .nav-links > li > a,
  .nav-drop-btn {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.25;
    padding: 0.4rem 0.55rem;
  }

  .nav-cta {
    text-align: center !important;
    margin-top: 0.35rem;
    padding: 0.4rem 0.75rem !important;
  }

  .nav-dropdown-menu {
    position: static;
    left: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin: 0.15rem 0 0.25rem;
    padding: 0.2rem;
    min-width: 0;
    width: 100%;
    display: none;
    box-shadow: none;
    background: var(--surface);
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    transform: none;
  }

  .nav-drop-link {
    padding: 0.4rem 0.55rem;
    gap: 0.1rem;
  }

  .drop-name {
    font-size: 0.88rem;
  }

  .drop-role {
    font-size: 0.62rem;
  }

  .profile-grid,
  .profile-grid.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .profile-content { order: 2; }
  .profile-visual { order: 1; }

  .profile-orbit {
    width: min(240px, 72vw);
    height: min(240px, 72vw);
  }

  .hero-stats { gap: 1.5rem; }

  .section-lead {
    font-size: 1rem;
  }

  .contact-inner {
    padding: 2.5rem 1.25rem;
  }

  .contact-team-mail {
    font-size: 0.95rem;
  }

  .contact-send-btn {
    width: 100%;
    max-width: 280px;
  }

  .chip-row {
    gap: 0.5rem;
  }

  .footer {
    padding: 1.5rem 1rem 6.5rem;
  }

  /* Manje “kartice” efekata na touch — čitljivije */
  .tilt-3d:hover {
    transform: none;
  }
}

/* Corner widgets — audio (right) & language (left) */
.corner-widget {
  position: fixed;
  bottom: 1.25rem;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.75rem 1rem 0.65rem;
  background: rgba(5, 5, 8, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.corner-widget-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  color: #243570;
  text-align: center;
  margin: 0;
  white-space: nowrap;
}

.audio-player {
  right: 1.25rem;
}


/* Language picker — opens upward */
.lang-select-wrap {
  position: relative;
}

.lang-select-btn {
  width: 100%;
  min-width: 148px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(124, 107, 174, 0.45);
  border-radius: 999px;
  background: rgba(91, 75, 138, 0.15);
  color: #7c6bae;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lang-select-btn:hover,
.lang-select-wrap.open .lang-select-btn {
  background: rgba(124, 107, 174, 0.25);
  border-color: rgba(124, 107, 174, 0.65);
  color: #a894d4;
}

.lang-chevron {
  font-size: 0.65rem;
  line-height: 1;
  transition: transform 0.2s;
}

.lang-select-wrap.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.4rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: rgba(12, 12, 18, 0.96);
  border: 1px solid rgba(124, 107, 174, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  max-height: 220px;
  overflow-y: auto;
}

.lang-select-wrap.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown li {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-dropdown li:hover,
.lang-dropdown li.active {
  background: rgba(124, 107, 174, 0.18);
  color: #a894d4;
}

/* Hide default Google Translate UI */
.google-translate-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos {
  display: none !important;
}

.goog-te-gadget {
  font-size: 0 !important;
  color: transparent !important;
}

.goog-te-gadget .goog-te-combo {
  opacity: 0;
  position: absolute;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.skiptranslate iframe {
  visibility: hidden !important;
  height: 0 !important;
}

/* Background audio player */
.audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.audio-play-btn {
  font-size: 0.72rem;
  letter-spacing: 0;
}

.audio-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(124, 107, 174, 0.45);
  border-radius: 50%;
  background: rgba(91, 75, 138, 0.15);
  color: #7c6bae;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.audio-btn:hover {
  background: rgba(124, 107, 174, 0.25);
  border-color: rgba(124, 107, 174, 0.65);
  color: #a894d4;
}

.audio-slider {
  width: 96px;
  height: 4px;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.audio-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7c6bae;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(124, 107, 174, 0.45);
}

.audio-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7c6bae;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(124, 107, 174, 0.45);
}

.audio-vol-label {
  min-width: 2.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  /* Audio kontrole manje (~72%) — language je u headeru */
  .corner-widget.audio-player {
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    right: max(0.35rem, env(safe-area-inset-right));
    left: auto;
    padding: 0.35rem 0.45rem 0.3rem;
    gap: 0.28rem;
    border-radius: 12px;
    transform: scale(0.72);
    transform-origin: bottom right;
  }

  .corner-widget-label {
    font-size: 0.7rem;
    white-space: nowrap;
    line-height: 1.15;
  }

  .audio-controls {
    gap: 0.22rem;
  }

  .audio-btn {
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }

  .audio-slider {
    width: 48px;
    height: 3px;
  }

  .audio-slider::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
  }

  .audio-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
  }

  .audio-vol-label {
    min-width: 1.5rem;
    font-size: 0.58rem;
  }
}

@media (max-width: 480px) {
  .intro-page {
    padding: 5rem 0.85rem 5.5rem;
  }

  .forging-headline {
    padding: 1.1rem 0.9rem;
  }

  .forging-headline p {
    font-size: clamp(1.1rem, 5.2vw, 1.45rem);
  }

  .intro-page .slogan-card {
    padding: 1rem 1.05rem;
  }

  .team-card {
    padding: 1.35rem;
  }

  .domain-item {
    padding: 1rem;
    font-size: 0.85rem;
  }

  .corner-widget,
  .audio-player {
    transform: scale(0.58);
    padding: 0.28rem 0.38rem 0.25rem;
    gap: 0.2rem;
  }

  .corner-widget-label {
    font-size: 0.62rem;
  }

  .audio-btn {
    width: 20px;
    height: 20px;
    font-size: 0.85rem;
  }

  .audio-slider {
    width: 40px;
  }

  .audio-vol-label {
    display: none;
  }

  .profile-highlights li {
    font-size: 0.9rem;
  }

  .footer {
    padding-bottom: 4.5rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .corner-widget,
  .audio-player {
    transform: scale(0.5);
  }

  .corner-widget-label {
    display: none;
  }

  .nav-lang .lang-select-btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.65rem;
  }

  .nav-logo-img {
    max-width: min(52vw, 150px);
  }

  .footer {
    padding-bottom: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
