/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Manrope', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  cursor: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Syne', sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  border: none;
  background: none;
  cursor: none;
  font-family: inherit;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition:
    transform 0.15s ease-out,
    width 0.15s,
    height 0.15s;
}
.custom-cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.08s ease-out;
}
.custom-cursor.hover {
  transform: scale(1.5);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}
.loading-content {
  text-align: center;
}
.loading-content .loading-wordmark-text {
  font-size: 3.75rem;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s 0.2s backwards;
}
.loading-bar-wrap {
  width: 16rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto 1rem;
  overflow: hidden;
}
.loading-bar {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width 0.3s ease;
}
#loading-percent {
  margin-top: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
  animation: fadeInUp 0.6s 0.4s backwards;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9998;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s;
}
.back-to-top.visible {
  opacity: 1;
  transform: scale(1);
}
.back-to-top:hover {
  transform: scale(1.1);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  animation: slideDown 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  height: 4rem;
  filter: brightness(0) invert(1);
}
@media (min-width: 768px) {
  .logo {
    height: 5rem;
  }
}

.menu-btn {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  z-index: 200;
}
.menu-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}
.menu-btn span {
  width: 1.25rem;
  height: 2px;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
}
.menu-btn.active span:nth-child(2) {
  transform: rotate(-45deg) translateY(-6px);
}

.btn-primary {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: #fff;
  color: #000;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.3s;
}
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

/* Dropdown Menu - Z-INDEX POVEĆAN */
.menu-dropdown {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.menu-dropdown.active {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}
.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.menu-panel {
  position: absolute;
  left: 50%;
  top: 6rem;
  transform: translateX(-50%) scale(0.95);
  width: calc(100% - 3rem);
  max-width: 28rem;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.menu-dropdown.active .menu-panel {
  transform: translateX(-50%) scale(1);
}

.menu-link {
  display: block;
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.menu-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-100%);
  transition: transform 0.3s;
}
.menu-link:hover::before {
  transform: translateX(0);
}
.menu-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}
.menu-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.menu-social {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1rem;
}
.menu-social a {
  flex: 1;
  padding: 0.75rem 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}
.menu-social a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: scale(1.05);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.orb {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(80px);
  background: rgba(255, 255, 255, 0.05);
}
.orb-1 {
  left: 25%;
  top: 25%;
  animation: float 8s ease-in-out infinite;
}
.orb-2 {
  right: 25%;
  bottom: 25%;
  animation: float 10s ease-in-out infinite 1s;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100px 100px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
}
.hero-tag {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  animation: fadeInUp 1s 0.2s backwards;
}
.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s 0.4s backwards;
}
.gradient {
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 3rem;
  max-width: 42rem;
  animation: fadeInUp 1s 0.6s backwards;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s 0.8s backwards;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #fff;
  color: #000;
  border-radius: 0.5rem;
  transition: all 0.3s;
}
.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}
.btn-outline {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  transition: all 0.3s;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* Features */
.features {
  padding: 8rem 1.5rem;
}
.features h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 5rem;
}
.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  transition: all 0.5s;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}
.icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}
.feature-card p {
  color: rgba(255, 255, 255, 0.6);
}

/* CTA */
.cta {
  padding: 8rem 1.5rem;
}
.cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 5rem;
}
.cta h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}
.cta p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
}
.btn-outline-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  transition: all 0.3s;
}
.btn-outline-lg:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 3rem;
}
.footer h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.footer h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer a,
.footer span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}
.footer a:hover {
  color: #fff;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(20px, -20px) scale(1.2);
    opacity: 0.5;
  }
}
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Scroll Reveal - VIŠE VARIJANTI */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }
}

/* Featured Work (homepage) */
.home-work-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 3rem;
}
.home-project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.home-project-img {
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}
.home-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.home-project-card:hover .home-project-img img {
  transform: scale(1.08);
}
.home-project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.home-project-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
.concept-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  z-index: 2;
}

/* Tighter section spacing to avoid excessive stacked whitespace
   when placing several content sections back to back */
.section-tight {
  padding: 5rem 1.5rem !important;
}

/* Small tracked label, matching the about page's section-tag style */
.home-section-tag {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Why Velarivo: two-column card grid */
.why-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 3rem;
}
.why-card {
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.why-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-6px);
}
.why-number {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}
.why-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.why-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.why-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}
.why-link:hover {
  border-color: #fff;
}

/* How We Work: 4-step mini process grid */
.process-mini-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 3rem;
}
.process-mini-number {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 0.75rem;
}
.process-mini-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.process-mini-item p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Global mobile safety net: prevents any grid on this stylesheet from
   forcing a column wider than a small phone screen, and reins in
   oversized inline hero headings on very small devices. */
@media (max-width: 480px) {
  main div[style*='grid-template-columns'] {
    grid-template-columns: 1fr !important;
  }
  main h1[style*='font-size: 4rem'] {
    font-size: 2.5rem !important;
  }
  main h1[style*='font-size:4rem'] {
    font-size: 2.5rem !important;
  }
  .why-grid,
  .process-mini-grid,
  .home-work-grid {
    grid-template-columns: 1fr !important;
  }
}
.plan-box {
  cursor: pointer;
  transition: 0.3s;
}
.plan-box {
  display: flex;
  justify-content: left;
  gap: 10px;
  margin: 25px 0;
  flex-wrap: wrap;
}
.plan-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.plan-box {
  min-width: 95px;
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.75;
  transition: 0.25s;
}

.plan-box:hover {
  transform: translateY(-6px);
  border-color: #8a6cff;
}

.plan-box.active {
  border: 1px solid #8a6cff;
  box-shadow: 0 0 30px rgba(138, 108, 255, 0.35);
}
