/* ===== Optimalism Venture — hand-written stylesheet (no framework) ===== */

:root {
  --green: #228c22;
  --blue: #3f84e5;
  --dark: #1d1d1f;
  --gray: #6e6e73;
  --bg: #f5f5f7;
  --purple: #8B5CF6;
  --font: 'Museo Sans', 'Inter', 'Noto Sans Georgian', -apple-system, sans-serif;
}

/* Museo Sans only covers Latin letters cleanly — punctuation like ’ and ‑
   maps to ornament glyphs in this cut, so we restrict it to safe ranges and
   let Inter / Noto Sans Georgian handle everything else. */
@font-face {
  font-family: 'Museo Sans';
  src: url(/fonts/MuseoSans.otf) format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A, U+0020, U+0021, U+002C, U+002E, U+003A-003B, U+003F;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--dark);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 56rem; }
.center { text-align: center; }

/* ---------- animated background blobs ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(64px);
  opacity: .7;
  animation: blob 7s infinite;
}

.blob-1 { top: -10%; left: -10%; background: rgba(63, 132, 229, .10); }
.blob-2 { top: -10%; right: -10%; background: rgba(34, 140, 34, .10); animation-delay: 2s; }
.blob-3 { bottom: -20%; left: 20%; background: rgba(63, 132, 229, .10); animation-delay: 4s; }

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(.9); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -.02em;
  transition: opacity .3s;
}

.brand:hover { opacity: .7; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  position: relative;
  transition: color .3s;
}

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

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

.lang-toggle {
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray);
  background: rgba(0, 0, 0, .04);
  border: none;
  border-radius: 999px;
  padding: .4rem 1rem;
  cursor: pointer;
  transition: color .3s, background .3s;
}

.lang-toggle:hover { color: var(--blue); background: rgba(63, 132, 229, .08); }

.menu-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
  padding: .25rem;
  z-index: 60;
}

.menu-btn .icon-close { display: none; }
body.menu-open .menu-btn .icon-menu { display: none; }
body.menu-open .menu-btn .icon-close { display: block; }

.nav-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding-top: 6rem;
}

body.menu-open .nav-mobile { display: flex; }
body.menu-open { overflow: hidden; }

.nav-mobile a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
}

.nav-mobile a:hover { color: var(--blue); }
.nav-mobile .lang-toggle { font-size: 1.1rem; margin-top: 1rem; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 0;
  position: relative;
  text-align: center;
}

.hero-inner {
  max-width: 64rem;
  margin: 0 auto;
  animation: fade-up .9s ease-out both;
}

.hero-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }

.pinwheel {
  width: 13rem;
  height: 11rem;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, .15));
}

.spin-cw, .spin-ccw {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin-cw 6s ease-out infinite;
}

.spin-ccw { animation-name: spin-ccw; }

@keyframes spin-cw {
  0% { transform: rotate(0deg); }
  66%, 100% { transform: rotate(360deg); }
}

@keyframes spin-ccw {
  0% { transform: rotate(0deg); }
  66%, 100% { transform: rotate(-360deg); }
}

.hero-tagline {
  color: var(--blue);
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .02em;
  margin: 0 0 1rem;
}

.hero-headline {
  font-size: clamp(1.9rem, 7.5vw, 5.5rem);
  overflow-wrap: break-word;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.65;
  max-width: 46rem;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .15);
  transition: background .3s, transform .3s, box-shadow .3s;
}

.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .2);
}

.scroll-hint {
  margin: 2.5rem 0 1.5rem;
  color: rgba(110, 110, 115, .5);
  animation: bounce 1.5s infinite;
}

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

/* ---------- mission / about ---------- */
.about {
  padding: 6rem 0;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.eyebrow {
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.eyebrow.wide { letter-spacing: .15em; font-size: .875rem; }

.mission-text {
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.accent-green { color: var(--green); }

.pillars {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .about { padding: 8rem 0; }
}

.pillar {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1.5rem;
  transition: background .5s;
}

.pillar:hover { background: rgba(255, 255, 255, .6); }

.pillar-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s;
}

.pillar:hover .pillar-icon { transform: scale(1.1); }

.tint-blue { background: rgba(63, 132, 229, .07); color: var(--blue); }
.tint-green { background: rgba(34, 140, 34, .07); color: var(--green); }
.tint-purple { background: rgba(139, 92, 246, .07); color: var(--purple); }

.pillar h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 .75rem; }
.pillar p { font-size: .95rem; color: var(--gray); line-height: 1.6; margin: 0; }

/* ---------- portfolio ---------- */
.portfolio {
  padding: 5rem 0 6rem;
  background: #fff;
}

.section-head { margin-bottom: 4rem; }

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
}

.project {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 5rem;
  text-decoration: none;
  color: inherit;
}

.project:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .project { grid-template-columns: 7fr 5fr; margin-bottom: 8rem; }
  .project.flip .project-media { order: 2; }
  .project.flip .project-info { order: 1; padding-right: 3rem; }
  .project:not(.flip) .project-info { padding-left: 3rem; }
}

.project-card {
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  transition: transform .5s, box-shadow .5s;
}

.project:hover .project-card {
  transform: translateY(-8px);
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, .25);
}

.project-card img {
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .07));
  transition: transform .7s;
}

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

.project-info h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
  transition: color .3s;
}

.project:hover .project-info h3 { color: var(--blue); }

.project-info .ext {
  color: #9ca3af;
  opacity: 1;
  transition: opacity .3s, color .3s;
}

@media (min-width: 768px) {
  .project-info .ext { opacity: 0; color: inherit; }
  .project:hover .project-info .ext { opacity: 1; }
}

.project-info p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* ---------- footer / contact ---------- */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 5rem 0 2rem;
}

.footer-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.footer-text {
  color: #9ca3af;
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 999px;
  transition: background .3s, color .3s;
}

.btn-mail:hover { background: var(--blue); color: #fff; }

.copyright {
  margin: 5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #6b7280;
  font-size: .875rem;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}

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

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
