@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://db.onlinewebfonts.com/c/384a6031928e262848e4e7ef80037466?family=Kudryashev+Display+Sans');

:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --surface: rgba(255,255,255,0.75);
  --surface-hover: rgba(255,255,255,0.92);
  --surface-raised: #ffffff;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #94a3b8;
  --primary: #22c55e;
  --primary-light: rgba(34,197,94,0.08);
  --primary-hover: #16a34a;
  --primary-glow: rgba(34,197,94,0.15);
  --accent: #22c55e;
  --muted-accent: #cbd5e1;
  --border: rgba(17,24,39,0.08);
  --border-hover: rgba(17,24,39,0.14);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,0.04);
  --shadow: 0 1px 3px rgba(17,24,39,0.06), 0 1px 2px rgba(17,24,39,0.04);
  --shadow-md: 0 4px 16px rgba(17,24,39,0.06);
  --shadow-lg: 0 8px 32px rgba(17,24,39,0.08);
  --shadow-xl: 0 16px 48px rgba(17,24,39,0.1);
  --shadow-glow: 0 4px 24px rgba(34,197,94,0.15);
  --shadow-glow-lg: 0 8px 40px rgba(34,197,94,0.12);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);
  --glass-bg: rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.18);
  --glass-shadow: 0 8px 32px rgba(17,24,39,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Glassmorphism Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,247,251,0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(17,24,39,0.05);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
}
.nav-left { display: flex; align-items: center; justify-content: flex-start; }

/* ── Premium VT Monogram Logo ── */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 50px; width: auto; display: block; }
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.logo-svg {
  width: 38px; height: 38px;
  display: block;
}
.logo:hover .logo-mark {
  transform: scale(1.04);
}
.logo-sym {
  opacity: 0;
  animation: logo-fade 0.5s ease 0.15s forwards;
}
@keyframes logo-fade {
  to { opacity: 1; }
}

/* ── Navigation ── */
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; justify-content: center; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  padding: 8px 18px; border-radius: 8px;
  transition: all var(--transition);
  position: relative;
  font-family: 'Kudryashev Display Sans', Georgia, serif;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; border-radius: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(17,24,39,0.03); }
.nav-links a:hover::after { width: 20px; }

.nav-right { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(17,24,39,0.04); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px; margin-left: auto; margin-right: -10px;
  font-size: 0.68rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: var(--transition);
  letter-spacing: 0.3px;
}
.lang-toggle span {
  padding: 2px 8px; border-radius: 5px; transition: var(--transition);
}
.lang-toggle span.active { background: var(--primary); color: white; box-shadow: 0 1px 6px rgba(34,197,94,0.2); }
.lang-toggle span:not(.active) { color: var(--text-muted); }
.lang-toggle:hover { border-color: var(--border-hover); }

.nav-social { display: flex; align-items: center; gap: 1px; }
.nav-social-link {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.nav-social-link:hover {
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}
.nav-social-link .ns-icon {
  width: 13px; height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; padding: 6px; border-radius: 8px; transition: background var(--transition); }
.mobile-menu-btn:hover { background: rgba(17,24,39,0.04); }

/* ── Hero Entrance── */
.hero-content > * {
  opacity: 0;
  animation: hero-fade-up 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-content .hero-name-wrap { animation-delay: 0.2s; }
.hero-content .hero-title { animation-delay: 0.35s; }
.hero-content .hero-text { animation-delay: 0.5s; }
.hero-content .hero-actions { animation-delay: 0.65s; }
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Section Reveal ── */
.section {
  max-width: 1200px; margin: 0 auto; padding: 100px 32px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.section.visible { opacity: 1; transform: translateY(0); }

.section-alt {
  max-width: 100%; margin: 0 auto; padding: 0;
  background: var(--bg-alt);
  position: relative;
}
.section-alt .section-inner {
  max-width: 1200px; margin: 0 auto; padding: 100px 32px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.section-alt .section-inner.visible { opacity: 1; transform: translateY(0); }

.section-header { margin-bottom: 40px; }
.section-header.center { text-align: center; }
.section-label {
  font-size: 0.7rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 14px;
  display: block;
}
.section-title {
  font-size: 2rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.6px; line-height: 1.1;
  font-family: 'Kudryashev Display Sans', Georgia, serif;
}
.section-desc { font-size: 0.95rem; color: var(--text-secondary); margin-top: 14px; max-width: 560px; line-height: 1.7; }
.section-header.center .section-desc { margin: 14px auto 0; }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f2f7 0%, #f5f7fb 30%, #ffffff 60%, #edf7f0 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -8%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(34,197,94,0.05) 0%, rgba(34,197,94,0.02) 30%, transparent 60%);
  pointer-events: none;
  animation: hero-float-1 12s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.04) 0%, rgba(34,197,94,0.015) 30%, transparent 55%);
  pointer-events: none;
  animation: hero-float-2 15s ease-in-out infinite;
}
@keyframes hero-float-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}
@keyframes hero-float-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -15px); }
}

/* Floating hero shapes */
.hero-shape {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%;
}
.hero-shape-1 {
  width: 120px; height: 120px;
  border: 1px solid rgba(34,197,94,0.06);
  top: 12%; left: 5%;
  animation: float-drift 18s ease-in-out infinite;
}
.hero-shape-2 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(34,197,94,0.03) 0%, transparent 60%);
  bottom: 10%; right: 12%;
  filter: blur(30px);
  animation: float-drift 20s ease-in-out infinite reverse;
}
.hero-shape-3 {
  width: 80px; height: 80px;
  border: 1.5px solid rgba(34,197,94,0.04);
  top: 55%; left: 60%;
  animation: float-drift 14s ease-in-out infinite;
}
.hero-shape-4 {
  width: 200px; height: 200px;
  background: radial-gradient(circle at 60% 40%, rgba(34,197,94,0.03) 0%, transparent 50%);
  top: 20%; right: 20%;
  filter: blur(40px);
  animation: float-drift 22s ease-in-out infinite reverse;
}
.hero-shape-5 {
  width: 50px; height: 50px;
  border: 1px solid rgba(34,197,94,0.05);
  bottom: 30%; left: 30%;
  animation: float-drift 16s ease-in-out infinite;
}
@keyframes float-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10px, -15px) rotate(2deg); }
  66% { transform: translate(-8px, 10px) rotate(-1deg); }
}

.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 72px;
  padding: 0 32px;
}
.hero-content { max-width: 580px; flex-shrink: 0; position: relative; margin-left: 8px; }
.hero h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 200;
  letter-spacing: 0.5px; line-height: 1.2; margin-bottom: 18px;
  white-space: nowrap; font-family: 'Kudryashev Display Sans', Georgia, serif;
}
.hero h1 .highlight {
  color: var(--primary); font-weight: 400;
}
.hero h1 .cap-dark {
  color: var(--text); font-weight: 400;
}
.hero-title {
  font-size: 1rem; color: var(--text-secondary); font-weight: 500;
  margin-bottom: 16px; line-height: 1.55;
  letter-spacing: -0.15px;
  font-family: 'Kudryashev Display Sans', Georgia, serif;
}
.hero-text {
  font-size: 1rem; color: var(--text-muted); line-height: 1.8;
  max-width: 480px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Hero Visual ── */
.hero-visual {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px; height: 300px;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, rgba(34,197,94,0.06) 0%, transparent 60%);
  filter: blur(20px);
  animation: hero-glow-pulse 4s ease-in-out infinite;
}
@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.hero-photo-wrap {
  position: relative;
  width: 180px; height: 180px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1), box-shadow 0.6s cubic-bezier(0.4,0,0.2,1);
  animation: hero-float 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(34,197,94,0.25)) drop-shadow(0 0 50px rgba(34,197,94,0.12));
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-photo-wrap:hover {
  transform: scale(1.05);
}

.hero-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  object-position: center 25%;
  box-shadow:
     0 4px 20px rgba(17,24,39,0.08),
     0 0 0 4px rgba(34,197,94,0.2),
     0 0 30px rgba(34,197,94,0.2);
  position: relative;
  z-index: 1;
  transition: box-shadow var(--transition);
}
.hero-photo-wrap:hover .hero-photo {
  box-shadow:
    0 8px 32px rgba(17,24,39,0.1),
    0 0 0 3px rgba(34,197,94,0.12),
    0 0 50px rgba(34,197,94,0.1);
}

/* ── Hero Visual Centerpiece ── */
.hero-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 240px; height: 240px;
  border: 1px solid rgba(34,197,94,0.05);
  border-radius: 50%;
  animation: ring-breathe 8s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
@keyframes ring-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

.hero-glass-card {
  position: absolute;
  top: 15px; right: -5px;
  width: 130px; padding: 14px 16px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(17,24,39,0.04), 0 0 0 1px rgba(255,255,255,0.5);
  animation: glass-lift 7s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}
@keyframes glass-lift {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
}
.hero-glass-card .hgc-label {
  font-size: 0.55rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.hero-glass-card .hgc-value {
  font-size: 1rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.4px;
}
.hero-glass-card .hgc-sub {
  font-size: 0.7rem; color: var(--text-secondary);
  margin-top: 2px;
}
.hero-glass-card .hgc-bar {
  width: 100%; height: 3px;
  background: rgba(34,197,94,0.08);
  border-radius: 4px; margin-top: 8px;
  overflow: hidden;
}
.hero-glass-card .hgc-bar-fill {
  height: 100%; width: 72%;
  background: linear-gradient(90deg, var(--primary), #4ade80);
  border-radius: 4px;
  animation: bar-pulse 4s ease-in-out infinite;
}
@keyframes bar-pulse {
  0%, 100% { width: 72%; }
  50% { width: 88%; }
}

.hero-diamond {
  position: absolute;
  bottom: 35px; left: -10px;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(34,197,94,0.07);
  transform: rotate(45deg);
  border-radius: 4px;
  animation: diamond-drift 9s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
  background: rgba(34,197,94,0.01);
}
@keyframes diamond-drift {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.6; }
  50% { transform: rotate(45deg) translate(6px, -10px); opacity: 1; }
}

.hero-badge {
  position: absolute;
  bottom: 8px; right: 5px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34,197,94,0.1);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.68rem; font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.2px;
  box-shadow: 0 2px 12px rgba(34,197,94,0.06);
  animation: badge-float 4s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}
@keyframes badge-float {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 12px rgba(34,197,94,0.06); }
  50% { transform: scale(1.04); box-shadow: 0 4px 20px rgba(34,197,94,0.1); }
}

/* ── Premium Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 12px;
  font-size: 0.9rem; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(17,24,39,0.08), 0 4px 12px rgba(17,24,39,0.06);
}
.btn-primary::before {
  background: linear-gradient(135deg, rgba(34,197,94,0.08) 0%, rgba(34,197,94,0.02) 100%);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.15), 0 8px 28px rgba(17,24,39,0.08);
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-secondary {
  background: rgba(255,255,255,0.8);
  color: #111827;
  border: 1px solid rgba(17,24,39,0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(17,24,39,0.04);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(17,24,39,0.16);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(17,24,39,0.06);
}
.btn-sm { padding: 10px 22px; font-size: 0.84rem; border-radius: 10px; }

.btn-primary::after {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.04) 50%, transparent 70%);
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}
.btn-primary:hover::after {
  transform: translateX(100%) rotate(45deg);
}

/* ── About ── */
.about-content { max-width: 700px; margin: 0 auto; }
.about-content p {
  color: var(--text-secondary); margin-bottom: 22px;
  font-size: 0.95rem; line-height: 1.85;
  max-width: 640px;
}

/* ── Skills ── */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}
.skill-category h3 {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 18px;
  font-family: 'Kudryashev Display Sans', Georgia, serif;
}
.skill-items { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-item {
  background: rgba(243,244,246,0.7); border: 1px solid rgba(17,24,39,0.06);
  padding: 8px 22px; border-radius: 10px;
  font-size: 0.85rem; font-weight: 500; color: var(--text);
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.skill-item:hover {
  border-color: rgba(34,197,94,0.2);
  background: rgba(34,197,94,0.04);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.06);
}

.soft-skills {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 24px; justify-content: center;
}
.soft-skill {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(17,24,39,0.06);
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.soft-skill:hover {
  border-color: rgba(34,197,94,0.2);
  color: var(--text);
  background: rgba(34,197,94,0.04);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.06);
}
.soft-skills-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 20px; }

.learning-section { max-width: 700px; margin: 0 auto; padding-top: 56px; }
.learning-content {
  display: flex; align-items: center; gap: 20px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(17,24,39,0.06);
  border-radius: 16px; padding: 24px 28px;
  transition: all 0.4s ease;
  box-shadow: 0 1px 3px rgba(17,24,39,0.04);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.learning-content:hover {
  border-color: rgba(34,197,94,0.15);
  box-shadow: 0 12px 32px rgba(17,24,39,0.06);
  transform: translateY(-3px);
}
.learning-icon { font-size: 1.4rem; flex-shrink: 0; opacity: 0.6; }
.learning-info { flex: 1; }
.learning-label {
  font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 10px;
}
.learning-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.learning-tag {
  font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
  background: rgba(243,244,246,0.7); border: 1px solid rgba(17,24,39,0.06);
  padding: 5px 14px; border-radius: 8px;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.learning-tag:hover {
  border-color: rgba(34,197,94,0.2); color: var(--primary);
  background: rgba(34,197,94,0.04);
}

/* ── Hero Name Wrap ── */
.hero-name-wrap {
  position: relative;
  display: inline-block;
}
.hn-shape { display: none; }

/* ── Project Cards ── */
.projects-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.project-category {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px; border-radius: 6px;
  font-size: 0.65rem; font-weight: 600;
  color: var(--text); letter-spacing: 0.2px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 1px 6px rgba(17,24,39,0.04);
}


.project-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(17,24,39,0.06);
  border-radius: 18px; overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(17,24,39,0.04);
  backdrop-filter: blur(8px);
  position: relative;
}
.project-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(34,197,94,0.02) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.project-card:hover::after {
  opacity: 1;
}
.project-card:hover {
  border-color: rgba(34,197,94,0.12);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(17,24,39,0.06), 0 4px 16px rgba(34,197,94,0.04);
}
.project-card-img-wrap {
  position: relative; overflow: hidden;
  height: 200px; background: #f3f4f6;
}
.project-card-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,0.02) 0%, transparent 40%);
  pointer-events: none;
}
.project-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.project-card:hover .project-card-img { transform: scale(1.06); }
.project-card-body { padding: 22px 26px 26px; flex: 1; display: flex; flex-direction: column; position: relative; z-index: 1; }
.project-card-body h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 10px; font-family: 'Kudryashev Display Sans', Georgia, serif; }
.project-card-body p {
  color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6;
  margin-bottom: 14px; flex: 1;
}
.project-tech {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.project-tech span {
  background: rgba(243,244,246,0.7); border: 1px solid rgba(17,24,39,0.06);
  padding: 4px 14px; border-radius: 8px;
  font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
  backdrop-filter: blur(4px);
}
.project-actions { display: flex; gap: 10px; margin-top: auto; }

/* ── CV Section ── */
.cv-content { max-width: 700px; margin: 0 auto; text-align: center; }
.cv-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }
.cv-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 18px; }

/* ── Premium Contact Cards ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; max-width: 800px; margin: 0 auto;
}
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(17,24,39,0.06);
  border-radius: 16px; padding: 22px 26px;
  text-decoration: none; color: var(--text);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 3px rgba(17,24,39,0.03);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.contact-link:hover {
  border-color: rgba(34,197,94,0.12);
  background: rgba(255,255,255,0.9);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(17,24,39,0.06);
}
.contact-link .cl-icon {
  width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; background: rgba(243,244,246,0.7);
  border-radius: 12px; flex-shrink: 0; font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.contact-link:hover .cl-icon { transform: scale(1.08); }
.contact-link .cl-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; font-family: 'Kudryashev Display Sans', Georgia, serif; }
.contact-link .cl-info span { font-size: 0.8rem; color: var(--text-secondary); }

/* ── Footer ── */
footer {
  text-align: center; padding: 48px 32px;
  color: var(--text-muted); font-size: 0.82rem;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17,24,39,0.06), transparent);
}
footer:hover { color: var(--text-secondary); }
.footer-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 16px;
}
.footer-logo-img { height: 26px; width: auto; display: block; opacity: 0.8; }
.footer-logo-text {
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-secondary); letter-spacing: -0.2px;
  font-family: 'Kudryashev Display Sans', Georgia, serif;
}

.lang-en, .lang-no { display: none; }
.lang-en.active, .lang-no.active { display: block; }

/* ── Shared Project Detail ── */
.project-detail-page {
  max-width: 1200px; margin: 0 auto; padding: 100px 32px 64px;
}
.project-detail-header {
  display: flex; gap: 36px; align-items: flex-start; margin-bottom: 36px;
}
.project-detail-header .project-header-img {
  width: 100%; max-width: 340px; border-radius: 14px;
  flex-shrink: 0; border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(17,24,39,0.04);
}
.project-detail-header h1 {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 8px;
}
.project-detail-header p {
  color: var(--text-secondary); margin-bottom: 12px;
}
.project-detail-meta {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px;
}
.project-detail-meta .meta-item { display: flex; flex-direction: column; gap: 2px; }
.project-detail-meta .meta-item .meta-label {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted);
}
.project-detail-meta .meta-item .meta-value {
  font-size: 0.85rem; color: var(--text); font-weight: 500;
}
.back-link {
  display: inline-block; margin-bottom: 20px;
  font-size: 0.85rem; color: var(--text-secondary);
  text-decoration: none; transition: var(--transition);
}
.back-link:hover { color: var(--primary); }

.project-features { list-style: none; padding: 0; margin: 12px 0 16px; }
.project-features li {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 4px; padding-left: 16px; position: relative;
}
.project-features li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}

/* ── CV Page ── */
.cv-page {
  max-width: 800px; margin: 0 auto; padding: 100px 32px 40px;
}
.cv-page h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.cv-page .cv-subtitle { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.95rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(245,247,251,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(17,24,39,0.06);
    flex-direction: column; padding: 14px; gap: 4px; margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 16px; }
  .nav-right { gap: 4px; }
  .nav-social { display: none; }
  .lang-toggle { margin-left: 0; }
  .mobile-menu-btn { display: block; }
  .hero { min-height: auto; padding: 100px 20px 60px; }
  .hero-inner { flex-direction: column-reverse; gap: 40px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-text { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero h1 { font-size: clamp(2rem, 7vw, 2.6rem); white-space: normal; }
  .hero-visual { width: 220px; height: 220px; margin: 0 auto; }
  .hero-photo-wrap { width: 150px; height: 150px; }
  .hero-glass-card { display: none; }
  .hero-diamond { width: 24px; height: 24px; bottom: 25px; left: 0; }
  .hero-badge { font-size: 0.6rem; padding: 4px 10px; bottom: 5px; right: 0; }
  .hero-ring { width: 180px; height: 180px; }
  .section { padding: 60px 20px; }
  .section-alt .section-inner { padding: 60px 20px; }
  .projects-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-card-img-wrap { height: 180px; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-detail-header { flex-direction: column; }
  .project-detail-header .project-header-img { max-width: 100%; }
}

/* ── Print ── */
.cv-print {
  max-width: 210mm; margin: 0 auto; padding: 20px;
  font-size: 11px; line-height: 1.5;
}
.cv-print h1 { font-size: 20px; font-weight: 700; }
.cv-print h2 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary);
  border-bottom: 1px solid var(--border); padding-bottom: 4px;
  margin: 16px 0 8px;
}
.cv-print .cv-header { display: flex; gap: 24px; margin-bottom: 16px; }
.cv-print .cv-sidebar { width: 200px; flex-shrink: 0; }
.cv-print .cv-main { flex: 1; }
.cv-print .cv-section { margin-bottom: 12px; }
.cv-print .cv-section h3 { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.cv-print .cv-item { margin-bottom: 8px; }
.cv-print .cv-item-title { font-weight: 600; }
.cv-print .cv-item-meta { color: var(--text-secondary); font-size: 10px; }
.cv-print .cv-item-desc { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }
.cv-print .skill-tag { display: inline-block; background: #f3f4f6; border: 1px solid var(--border); padding: 2px 8px; border-radius: 3px; font-size: 9px; margin: 2px; }
