/* ========================================
   RESET / GLOBAL
======================================== */

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background: white;
}

:root {
  --ticker-height: 34px;
}

/* ========================================
   TICKERS
======================================== */

.ticker {
  width: 100%;
  height: var(--ticker-height);
  background: black;
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 14px;
  letter-spacing: 2px;
  padding-right: 18px;
}

.transition-ticker-section {
  background: black;
}

/* ========================================
   LANDING / HERO SECTION
======================================== */

.landing-section {
  position: relative;
  width: 100%;
  height: calc(100svh - var(--ticker-height));
  min-height: 600px;
  overflow: hidden;
  perspective: 1200px;
}

.landing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.05);
  transform-origin: center center;
}

/* ========================================
   CENTER LOGO
======================================== */

.center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transform-style: preserve-3d;
}

.center-logo img {
  width: clamp(260px, 40vw, 650px);
  height: auto;
  display: block;
  transform-style: preserve-3d;
}

.logo-slagord {
  margin-top: 20px;
  color: white;
  font-size: 18px;
  letter-spacing: 3px;
  text-align: center;
}

/* ========================================
   NAVBAR
======================================== */

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  background: transparent;
  opacity: 0;
  transform: translateY(-30px);
  transition:
    transform 0.6s ease,
    opacity 0.6s ease,
    background 0.35s ease,
    backdrop-filter 0.35s ease;
}

.navbar.show {
  opacity: 1;
  transform: translateY(0);
}

.navbar.scrolled {
  background: transparent;
  backdrop-filter: none;
}

.nav-logo {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 60;
}

.nav-logo img {
  width: 110px;
  height: auto;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-logo.logo-click img {
  transform: scale(0.92);
}

.nav-logo.home-active {
  position: absolute;
}

.nav-logo.home-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 62%;
  height: 1px;
  background: white;
  opacity: 0.95;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 90px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -4px;
  left: 0;
  background: white;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  font-weight: 700 !important;
}

/* ========================================
   HAMBURGER BUTTON
======================================== */

.menu-toggle {
  display: none;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 32px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  z-index: 70;
  opacity: 1;
  transition: opacity 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
}

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:focus-visible,
.menu-toggle:active {
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 11px;
}

.menu-toggle span:nth-child(3) {
  top: 22px;
}

.menu-toggle.active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

.menu-overlay {
  display: none;
}

/* ========================================
   CAROUSEL
======================================== */

.slider-section {
  padding: 0 0 24px;
  background: white;
  overflow: hidden;
}

.slider-wrap {
  position: relative;
}

.carousel {
  overflow: hidden;
  padding: 0 10%;
  touch-action: pan-y;
  cursor: grab;
}

.carousel.is-dragging {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 0;
  will-change: transform;
}

.slide {
  flex: 0 0 52%;
  padding: 0;
  background: white;
  user-select: none;
  -webkit-user-drag: none;
}

.slide-frame {
  position: relative;
  overflow: hidden;
  border-left: 1px solid #e3e3e3;
  border-right: 1px solid #e3e3e3;
  background: white;
}

.slide img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.slide:hover img {
  transform: scale(1.018);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: black;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  transition:
    background 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.slider-btn:hover {
  background: white;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.97);
}

.slider-btn.prev {
  left: 24px;
}

.slider-btn.next {
  right: 24px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: #d0d0d0;
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}

.carousel-dot:hover {
  background: #a8a8a8;
}

.carousel-dot.active {
  background: black;
  transform: scale(1.15);
}

/* ========================================
   WORK CTA UNDER CAROUSEL
======================================== */

.work-cta-section {
  padding: 42px 10% 60px;
  background: white;
}

.work-cta-box {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  border: 1px solid #d9d9d9;
  padding: 48px 24px 44px;
  text-align: center;
  background: #ffffff;
}

.work-cta-box h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
  color: black;
}

.work-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  background: black;
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.cta-button-secondary {
  background: white;
  color: black;
  border: 1px solid black;
}

/* ========================================
   CONTENT ROWS
======================================== */

.content-section {
  padding: 30px 10% 100px;
  background: white;
}

.content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 110px;
}

.content-row:last-child {
  margin-bottom: 0;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

.content-text {
  flex: 0.85;
}

.content-text h2 {
  font-size: 36px;
  margin: 0 0 18px 0;
}

.content-text p {
  font-size: 18px;
  line-height: 1.8;
  max-width: 560px;
  margin: 0;
  color: #222;
}

/* ========================================
   EXPERIENCE STATS
======================================== */

.experience-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.experience-stat-box {
  min-width: 120px;
  padding: 16px 16px 14px;
  border: 1px solid #d9d9d9;
  background: transparent;
}

.experience-stat-box strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
  color: black;
}

.experience-stat-box span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

/* ========================================
   SOFTWARE LOGOS
======================================== */

.software-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.software-logos img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.software-logos img:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.content-image {
  flex: 1.15;
}

.content-image img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

/* ========================================
   REVEAL ON SCROLL
======================================== */

.reveal-up {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   BACK TO TOP
======================================== */

.back-to-top {
  display: block;
  text-align: center;
  margin: 100px 0 60px 0;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: black;
  opacity: 0.85;
  font-weight: 500;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.back-to-top::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: black;
  margin: 0 auto 12px auto;
  opacity: 0.6;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  background: black;
  color: white;
  padding: 48px 56px;
  margin: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  align-items: start;
  gap: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
}

.footer-column p,
.footer-column a {
  margin: 0 0 6px 0;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.footer-column a:hover {
  opacity: 0.8;
}

.footer-logo {
  align-self: start;
  justify-self: end;
}

.footer-logo img {
  width: 140px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-logo {
    justify-self: start;
    margin-top: 20px;
  }

  .nav-logo {
    left: 32px;
  }

  .nav-logo img {
    width: 96px;
  }

  .nav-links {
    gap: 64px;
  }

  .slide {
    flex: 0 0 68%;
  }

  .slide img {
    height: 520px;
  }

  .content-row {
    gap: 52px;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {
  :root {
    --ticker-height: 30px;
  }

  .ticker-text {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .landing-section {
    min-height: 560px;
  }

  .navbar {
    top: 38px;
    left: 0;
    width: 100%;
    padding: 0;
    justify-content: flex-end;
    align-items: center;
    z-index: 80;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .navbar.show {
    opacity: 1;
    transform: none;
  }

  .nav-logo {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-logo img {
    width: 88px;
  }

  .menu-toggle {
    display: block;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
  }

  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 60;
  }

  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    position: absolute;
    top: 38px;
    right: 20px;
    width: 220px;
    margin: 0;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    border-radius: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 85;
  }

  .nav-links.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    text-shadow: none;
    color: black;
  }

  .nav-links a::after {
    display: none;
  }

  .center-logo {
    width: 100%;
    padding: 0 24px;
    text-align: center;
  }

  .center-logo img {
    width: min(72vw, 340px);
    max-width: 340px;
    margin: 0 auto;
    transform: none !important;
  }

  .logo-slagord {
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 1.8px;
    line-height: 1.4;
    padding: 0 12px;
  }

  .slider-section {
    padding: 0 0 18px;
  }

  .carousel {
    padding: 0 8%;
  }

  .slide {
    flex: 0 0 88%;
  }

  .slide img {
    height: 380px;
  }

  .slider-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .slider-btn.prev {
    left: 12px;
  }

  .slider-btn.next {
    right: 12px;
  }

  .carousel-dots {
    gap: 8px;
    margin-top: 14px;
  }

  .carousel-dot {
    width: 9px;
    height: 9px;
  }

  .work-cta-section {
    padding: 24px 16px 40px;
  }

  .work-cta-box {
    padding: 34px 18px 32px;
  }

  .work-cta-box h2 {
    font-size: 30px;
    letter-spacing: -0.6px;
  }

  .work-cta-buttons {
    gap: 12px;
    margin-top: 22px;
  }

  .cta-button {
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
  }

  .content-section {
    padding: 10px 8% 80px;
  }

  .content-row,
  .content-row.reverse {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    margin-bottom: 70px;
  }

  .content-text,
  .content-image {
    width: 100%;
    flex: unset;
  }

  .content-text h2 {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .content-text p {
    font-size: 16px;
    line-height: 1.75;
    max-width: 100%;
  }

  .content-image img {
    max-height: none;
  }

  .back-to-top {
    margin: 70px 0 44px 0;
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .site-footer {
    padding: 36px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-column h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .footer-column p,
  .footer-column a {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 4px;
  }

  .footer-logo {
    justify-self: start;
    margin-top: 6px;
  }

  .footer-logo img {
    width: 78px;
  }
}

@media (max-width: 480px) {
  .navbar {
    top: 34px;
  }

  .nav-logo {
    left: 16px;
  }

  .nav-logo img {
    width: 78px;
  }

  .menu-toggle {
    right: 16px;
    width: 28px;
    height: 22px;
  }

  .menu-toggle span:nth-child(2) {
    top: 10px;
  }

  .menu-toggle span:nth-child(3) {
    top: 20px;
  }

  .menu-toggle.active span:nth-child(1),
  .menu-toggle.active span:nth-child(3) {
    top: 10px;
  }

  .nav-links {
    top: 34px;
    right: 16px;
    width: 200px;
  }

  .ticker-text {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .landing-section {
    min-height: 500px;
  }

  .center-logo {
    padding: 0 18px;
  }

  .center-logo img {
    width: min(78vw, 280px);
    max-width: 280px;
  }

  .logo-slagord {
    font-size: 10px;
    letter-spacing: 1.4px;
    margin-top: 12px;
  }

  .slide {
    flex: 0 0 92%;
  }

  .slide img {
    height: 300px;
  }

  .slider-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .work-cta-box h2 {
    font-size: 24px;
  }

  .site-footer {
    padding: 30px 20px;
  }

  .footer-column h3 {
    font-size: 16px;
  }

  .footer-column p,
  .footer-column a {
    font-size: 14px;
  }

  .footer-logo img {
    width: 68px;
  }
}

/* ========================================
   PAGE LOADER
======================================== */

body.is-loading {
  overflow: hidden;
}

#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

#pageLoader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  position: absolute;
  top: calc(50% + 17px);
  left: 50%;
  z-index: 6;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transform-style: preserve-3d;
  text-align: center;
}

.page-loader-logo {
  width: clamp(260px, 40vw, 650px);
  height: auto;
  display: block;
  transform-style: preserve-3d;
  animation: loaderLogoReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-loader-text {
  margin-top: 20px;
  color: white;
  font-size: 18px;
  letter-spacing: 3px;
  text-align: center;
  animation: loaderTextReveal 1.2s ease both;
}

/* ========================================
   LOADER ANIMATION
======================================== */

@keyframes loaderLogoReveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loaderTextReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   LOADER MOBILE
======================================== */

@media (max-width: 768px) {
  .page-loader-inner {
    width: 100%;
    padding: 0 24px;
  }

  .page-loader-logo {
    width: min(72vw, 340px);
    max-width: 340px;
    margin: 0 auto;
    transform: none !important;
  }

  .page-loader-text {
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 1.8px;
    line-height: 1.4;
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .page-loader-inner {
    width: 100%;
    padding: 0 18px;
  }

  .page-loader-logo {
    width: min(78vw, 280px);
    max-width: 280px;
    margin: 0 auto;
  }

  .page-loader-text {
    margin-top: 12px;
    font-size: 10px;
    letter-spacing: 1.4px;
  }
}