/**
 * index.css – Tattoo Projects-inspired bold design
 * Color palette preserved: navy #1A3263, blue #547792, gold #FAB95B, beige #E8E2DB
 */

/* ========== PRELOADER ========== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--color-dark);
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease;
}

.preloader.done {
  opacity: 0;
  pointer-events: none;
}

.preloader-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

.preloader-cell {
  background: var(--color-dark);
  border: 1px solid rgba(84, 119, 146, 0.08);
  opacity: 1;
  transition: opacity 0.5s ease;
}

.preloader-cell.fade {
  opacity: 0;
}

.preloader-logo {
  position: relative;
  z-index: 1;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-logo img {
  width: 120px;
  height: auto;
  filter: brightness(1.2);
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ========== CUSTOM CURSOR ========== */
.cursor,
.cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-accent);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hover {
  width: 16px;
  height: 16px;
  background: var(--color-accent);
}

.cursor-follower.hover {
  width: 60px;
  height: 60px;
  border-color: var(--color-accent);
}

@media (pointer: coarse) {
  .cursor, .cursor-follower { display: none; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-svg,
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 50, 99, 0.7);
  z-index: 1;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  padding: 0 40px;
  width: 100%;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
}

.kicker-line {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
}

.kicker-text {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 32px 0;
  letter-spacing: -0.02em;
}

.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 8px;
}

.word {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
  will-change: transform, opacity;
}

.accent-word {
  color: var(--color-accent);
  font-style: italic;
}

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ========== BUTTONS ========== */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--color-accent);
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(250, 185, 91, 0.4);
  color: var(--color-dark);
  text-decoration: none;
}

.btn-glow:hover::before {
  transform: translateX(100%);
}

.btn-glow i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.btn-glow:hover i {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 36px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

/* ========== SECTION BASE ========== */
.section {
  padding: 120px 0;
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.label-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

.label-line {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.label-text {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.section-title-center {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 64px auto;
  line-height: 1.7;
}

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

.body-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ========== ABOUT SECTION ========== */
.section-about {
  background: var(--bg-page);
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(26, 50, 99, 0.06);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.tag i {
  color: var(--color-accent);
  font-size: 0.9rem;
}

/* ========== SERVICES (HIGHLIGHTS) ========== */
.section-services {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-card {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.4s ease;
}

.service-card:last-child {
  border-right: none;
}

.service-card:hover {
  background: rgba(26, 50, 99, 0.03);
}

.service-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--color-mid);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
}

.service-line {
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin-top: 32px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-line {
  transform: scaleX(1);
}

/* ========== VISUAL BREAK / PARALLAX ========== */
.section-visual-break {
  padding: 0;
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.parallax-img-wrap {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
}

.parallax-img-wrap img,
.parallax-img-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-wide {
  width: 100%;
  height: 100%;
}

/* ========== WHY SECTION ========== */
.section-why {
  background: var(--color-dark);
  color: #fff;
}

.section-why .section-title {
  color: #fff;
}

.section-why .label-text {
  color: rgba(255, 255, 255, 0.5);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.why-cta {
  margin-top: 48px;
}

.why-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-item {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: padding-left 0.4s ease;
}

.why-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.why-item:hover {
  padding-left: 12px;
}

.why-item-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  padding-top: 4px;
  flex-shrink: 0;
}

.why-item-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.why-item-content p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* ========== PARTNERS MARQUEE ========== */
.section-partners {
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}

.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-page), transparent);
}

.marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-page), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  flex-shrink: 0;
  width: 200px;
  height: 100px;
  margin: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.partner-logo-box:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.marquee-item img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ========== CTA SECTION ========== */
.section-cta {
  background: var(--color-dark);
  text-align: center;
  padding: 160px 40px;
  overflow: hidden;
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 48px 0;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.rotating-text-wrap {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.15em;
  width: 5.5em;
}

.rotating-text {
  display: block;
  position: relative;
}

.rotate-word {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--color-accent);
  font-style: italic;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rotate-word.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== QUICK LINKS ========== */
.section-links {
  background: var(--bg-page);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px;
  text-decoration: none;
  color: var(--text-primary);
  border-right: 1px solid var(--border);
  transition: background 0.3s ease, padding-left 0.4s ease;
  position: relative;
}

.link-card:last-child {
  border-right: none;
}

.link-card:hover {
  background: rgba(26, 50, 99, 0.04);
  padding-left: 52px;
  text-decoration: none;
  color: var(--text-primary);
}

.link-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.link-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.link-arrow {
  color: var(--color-accent);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========== REVEAL ANIMATIONS (base states) ========== */
[data-fade-up] {
  opacity: 0;
  transform: translateY(40px);
}

[data-fade-up].revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .about-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 36px 0;
  }

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

  .links-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .link-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section-container {
    padding: 0 24px;
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-glow,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-scroll-indicator {
    left: 24px;
    bottom: 24px;
  }

  .section-title,
  .section-title-center {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .cta-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .rotating-text-wrap {
    width: 5em;
  }

  .section-cta {
    padding: 100px 0;
  }

  .marquee-item {
    width: 160px;
    height: 80px;
    margin: 0 16px;
  }

  .marquee-wrap::before,
  .marquee-wrap::after {
    width: 40px;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .word {
    transform: none !important;
    opacity: 1 !important;
  }

  [data-fade-up] {
    opacity: 1 !important;
    transform: none !important;
  }

  .cursor, .cursor-follower {
    display: none;
  }
}
