@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --text-muted: #888888;
  --border-color: rgba(255, 255, 255, 0.08);
  --selection-bg: rgba(255, 255, 255, 0.1);
  --transition-bezier: cubic-bezier(0.76, 0, 0.24, 1);
  --transition-speed: 0.6s;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Hide scrollbar for Lenis smooth scroll */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

::-webkit-scrollbar {
  display: none !important;
  width: 0px;
}

::selection {
  background: var(--selection-bg);
  color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Page Transition / Wrapper */
.page-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.main-wrapper {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--transition-bezier), transform 1s var(--transition-bezier);
}

.main-wrapper.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.heading-display {
  font-size: clamp(4rem, 11vw, 15rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-align: center;
  text-transform: uppercase;
}

/* Global Navigation (for subpages) */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  transition: transform 0.4s var(--transition-bezier);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.8rem;
  z-index: 1001;
}

/* Clip Text Hover Animation */
.clip-reg {
  position: relative;
  overflow: hidden;
  height: 1.5em;
  display: flex;
  flex-direction: column;
}

.clip-reg .text-reg {
  display: block;
  height: 1.5em;
  line-height: 1.5em;
  transition: transform var(--transition-speed) var(--transition-bezier);
}

.nav-links a:hover .clip-reg .text-reg,
.nav-links a.active .clip-reg .text-reg,
.grid-item:hover .clip-reg .text-reg,
.btn-line:hover .clip-reg .text-reg {
  transform: translateY(-100%);
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.nav-links a.active, .nav-links a:hover {
  color: #ffffff;
}

/* HOMEPAGE - Celozaslonski portal */
.section.is--hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  overflow: hidden;
}

/* Grid Panel system */
.main-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.grid-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 2.5rem;
  border-right: 1px solid var(--border-color);
  background: rgba(5, 5, 5, 0.45);
  transition: background-color 0.5s ease;
  cursor: pointer;
}

.grid-item:last-child {
  border-right: none;
}

.grid-item:hover {
  background: rgba(255, 255, 255, 0.01);
}

.grid-item__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.grid-item:hover .grid-item__bg {
  opacity: 1;
}

.panel-number {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.panel-title-wrap {
  margin-top: auto;
}

.panel-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--transition-bezier), transform 0.5s var(--transition-bezier);
}

.grid-item:hover .panel-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Large Center Display Titles */
.hero-title-w {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-title-list {
  position: relative;
  width: 100%;
  height: 15vw;
}

.hero-title__name, .hero-title-list__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s var(--transition-bezier), transform 0.5s var(--transition-bezier);
}

/* Character split styling for stagger slide-up */
.hero-title-clip {
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.hero-title__name.active, .hero-title-list__item.active {
  opacity: 0.08; /* Very clean background presence */
  transform: scale(1);
}

/* SUBPAGE GENERAL LAYOUT */
.subpage-container {
  padding-top: 90px; /* offset nav */
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
}

.page-header {
  padding: 8rem 4rem 4rem 4rem;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: clamp(3rem, 6vw, 7rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.6;
}

/* Horizontal structure for content */
.section-content {
  width: 100%;
}

/* Services Page list */
.services-list {
  display: flex;
  flex-direction: column;
  padding: 0 4rem;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  padding: 7rem 0;
  border-bottom: 1px solid var(--border-color);
}

.service-row:last-child {
  border-bottom: none;
}

.service-left {
  padding-right: 3rem;
}

.service-left h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.service-right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-right p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #d8d8d8;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.features-list li {
  font-size: 1.05rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.features-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
}

/* Projects Page Grid (Clean thin line separation) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.project-item {
  background: var(--bg-color);
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  transition: background-color 0.4s var(--transition-bezier);
}

.project-item:hover {
  background: #0b0b0b;
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #111111;
  border: 1px solid var(--border-color);
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  background: linear-gradient(135deg, #090909, #151515);
  transition: transform 1.2s var(--transition-bezier), color 0.5s ease;
}

.project-item:hover .project-img-placeholder {
  transform: scale(1.05);
  color: rgba(255, 255, 255, 0.05);
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.project-item h3 {
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.project-item p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing Page Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pricing-column {
  background: var(--bg-color);
  padding: 6rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 680px;
  transition: background-color 0.4s var(--transition-bezier);
}

.pricing-column:hover {
  background: #0b0b0b;
}

.pricing-column.popular {
  background: #090909;
  position: relative;
}

.pricing-column.popular:hover {
  background: #0e0e0e;
}

.popular-badge {
  position: absolute;
  top: 2.5rem;
  right: 3rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.pricing-column h3 {
  font-size: 1.8rem;
  letter-spacing: -0.01em;
}

.pricing-column .pricing-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  line-height: 1.5;
}

.price-large {
  font-size: clamp(3.5rem, 5vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 3rem 0;
  line-height: 1;
}

.price-large span {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  margin-bottom: 3.5rem;
}

.pricing-features li {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pricing-features li::before {
  content: '→';
  color: #ffffff;
}

/* Contact Page Layout */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1px;
  background: var(--border-color);
  border-bottom: 1px solid var(--border-color);
  flex-grow: 1;
}

.contact-panel {
  background: var(--bg-color);
  padding: 7rem 4rem;
}

.contact-panel.info-panel {
  border-right: 1px solid var(--border-color);
}

.contact-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.contact-panel .lead-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 4rem;
}

.info-item {
  margin-bottom: 2.5rem;
}

.info-item h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.info-item p {
  font-size: 1.5rem;
  font-weight: 500;
}

/* Underline floating inputs */
.form-field {
  position: relative;
  margin-bottom: 3.5rem;
}

.form-field input, .form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.8rem 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 1.1rem;
  transition: border-color 0.4s var(--transition-bezier);
}

.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-bottom-color: #ffffff;
}

.form-field label {
  position: absolute;
  left: 0;
  top: 0.8rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  transition: transform 0.4s var(--transition-bezier), color 0.4s var(--transition-bezier);
}

/* Floating behavior */
.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-2rem) scale(0.8);
  transform-origin: left;
  color: #ffffff;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* Sleek line button */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1.2rem 2.5rem;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  border-radius: 50px;
  overflow: hidden;
  transition: background-color 0.4s var(--transition-bezier), color 0.4s var(--transition-bezier);
}

.btn-line:hover {
  background-color: #ffffff;
  color: #000000;
}

/* Footer style */
footer.section.is--footer {
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding: 5rem 4rem;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.footer-logo-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: #ffffff;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 991px) {
  .nav-wrapper {
    padding: 0 2rem;
    height: 80px;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    padding-bottom: 100px;
    gap: 2.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.6s var(--transition-bezier), opacity 0.6s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-links a {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
  }
  
  /* Homepage Panels on Mobile (Vertical stack) */
  .main-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 1fr);
    height: 100vh;
  }
  
  .grid-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    flex-direction: row;
    align-items: center;
  }
  
  .grid-item:last-child {
    border-bottom: none;
  }
  
  .panel-title-wrap {
    margin-top: 0;
    margin-left: 2rem;
  }
  
  .panel-desc {
    display: none; /* Hide on mobile to save space */
  }
  
  .hero-title-w {
    display: none; /* Hide display overlay on mobile */
  }
  
  /* Subpages */
  .page-header {
    padding: 6rem 2rem 3rem 2rem;
  }
  
  .services-list {
    padding: 0 2rem;
  }
  
  .service-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 0;
  }
  
  .projects-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-panel {
    padding: 4rem 2rem;
  }
  
  footer.section.is--footer {
    padding: 4rem 2rem 2rem 2rem;
  }
}

@media (max-width: 640px) {
  .projects-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .project-item, .pricing-column {
    min-height: auto;
    padding: 4rem 2rem;
  }
  
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .footer-columns {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
  }
}