/* =============================================
   Shared styles for 2D- and 3D-grafika gallery
   ============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --nav-height: 80px;
  --dark-blue: #23596d;
  --title: #00fff9;
  --text: #f1f1f1;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #f1f1f1;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #23596d;
  animation: colorCycle 6s ease-in-out infinite;
}

@keyframes colorCycle {

  0% {

    background-color: #66b3ff;

  }

  25% {

    background-color: #66d9ff;

  }

  50% {

    background-color: #66e7f0;

  }

  75% {

    background-color: #66d9ff;

  }

  100% {

    background-color: #66b3ff;

  }

}

body::-webkit-scrollbar {
  display: none;
}

body {
  scrollbar-width: none;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  z-index: 100;
  background: rgba(13, 13, 13, 0);
  backdrop-filter: blur(8px);
}

.logo {
  font-weight: 700;
  font-size: 1.7rem;
  color: #00fff9;
  position: relative;
  cursor: default;
}

.logo-text {
  font-family: 'Playfair Display', serif;
}

.logo-tooltip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--dark-blue);
  color: #f1f1f1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 120;
}

.logo:focus .logo-tooltip,
.logo:hover .logo-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0px);
}

.logo-mark {
  width: 40px;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 4px;
  object-fit: cover;
}

.nav-links {
  list-style: none;
  display: flex;
  font-size: 1.2rem;
  gap: 2rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: #f1f1f1;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00fff9;
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}

.hamburger-box { display: inline-block; width: 30px; height: 18px; position: relative; }
.hamburger-inner { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: #fff; display: block; transform: translateY(-50%); transition: all .25s ease; }
.hamburger-inner::before, .hamburger-inner::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: #fff; display: block; transition: all .25s ease; }
.hamburger-inner::before { top: -8px; }
.hamburger-inner::after { bottom: -8px; }

.hamburger.active .hamburger-inner { background: transparent; }
.hamburger.active .hamburger-inner::before { transform: translateY(8px) rotate(45deg); }
.hamburger.active .hamburger-inner::after { transform: translateY(-8px) rotate(-45deg); }

/* LINKS */
a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

a:hover {
  color: #f0b90b;
  transform: translateY(-2px);
}

a:hover::after {
  width: 100%;
}

.navbar a {
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
  color: #00fff9;
  transform: translateY(-2px);
}

/* BUBBLES */
.bubbles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bubble-group {
  position: absolute;
  width: 100%;
  height: 100%;
}

.bubble-group[data-group="1"] { top: 90%; }
.bubble-group[data-group="2"] { top: 65%; }
.bubble-group[data-group="3"] { top: 50%; }
.bubble-group[data-group="4"] { top: 35%; }
.bubble-group[data-group="5"] { top: 10%; }

.bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-filter: blur(1px);
  pointer-events: auto;
  transition: transform 0.3s ease-out;
}

/* LANDING */
.landing {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: space-between;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--title);
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 1.1rem;
  opacity: 0.75;
}

/* DARK OVERLAY — sits above the animated body background but below the bubbles */
.dark-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 0;
}

/* GALLERY */
.gallery-section {
  position: relative;
  padding: calc(var(--nav-height) + 2rem) 8% 3rem;
  z-index: 2;
  width: 100%;
}

.gallery {
  position: relative;
  z-index: 10;
  columns: 3 260px;
  gap: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  background: rgba(13, 13, 13, 0.35);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
}

.scroll-track {
  width: 4px;
  height: 120px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  position: relative;
}

.scroll-knob {
  width: 12px;
  height: 12px;
  background: #00fff9;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.1s linear;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .gallery {
    columns: 1;
  }

  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1rem;
    position: fixed;
    top: var(--nav-height);
    right: 12px;
    background: var(--dark-blue);
    padding: 1rem 1.4rem;
    border-radius: 12px;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    transform: translateY(-10px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .hamburger {
    display: block;
  }

  .scroll-indicator {
    display: none;
  }
}

footer {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background-color: var(--dark-blue);
  color: #f1f1f1;
}
