/* ========================================
   RESET & BASE STYLES
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "n27", "Titillium Web", sans-serif;
  line-height: 1.2;
  color: #0f0f23;
  background: #e0e0e0;
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
}

a {
  color: #4e7999;
}

/* ========================================
   HEADER
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 3rem 0;
  transition: all 0.3s ease;
}

.header__container {
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.header__logo,
.header__tagline {
  flex: 1;
}

.header__tagline {
  margin-left: 88px;
  display: flex;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 500;
  color: #0f0f23;
  letter-spacing: 0.1em;
}

.tagline {
  color: rgba(15, 15, 35, 0.7);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ========================================
   MAIN LAYOUT
======================================== */
.main {
  display: flex;
  height: 100vh;
  width: 100%;
  position: relative;
}

/* ========================================
   IMAGE PANEL (Desktop Only)
======================================== */
.image-panel {
  width: calc(50% - 40px);
  height: calc(100vh - 40px);
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
}

.image-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.image-slide--active {
  opacity: 1;
}

.image-slide__content {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(0.8) contrast(1.1);
  transition: filter 1.5s ease;
}

/* ========================================
   IMAGE NAVIGATION
======================================== */
.image-nav {
  position: fixed;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.image-nav::before {
  content: "";
  width: 2px;
  height: 80px;
  background: rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.image-nav__dot {
  width: 12px;
  height: 2px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 0;
}

.image-nav__dot::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -1px;
  width: 2px;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
}

.image-nav__dot--active {
  background: #0f0f23;
  transform: scaleX(1.5);
}

.image-nav__dot:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scaleX(1.2);
}

/* ========================================
   CONTENT PANEL
======================================== */
.content-panel {
  width: 50%;
  margin-left: 50%;
  position: relative;
  z-index: 2;
}

.content-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ========================================
   CONTENT SECTIONS
======================================== */
.content-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.content-section__body {
  max-width: 640px;
  width: 100%;
  padding: 0 3rem;
  text-align: left;
}

/* ========================================
   SECTION IMAGES (Mobile Only)
======================================== */
.content-section__image {
  display: none;
  width: 100%;
  height: 40vh;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.content-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-only {
  display: none;
}

/* ========================================
   SECTION NUMBERS
======================================== */
.section-number {
  font-size: 22vw;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.03);
  position: absolute;
  transform: translateY(-50%);
}

/* ========================================
   TYPOGRAPHY
======================================== */
.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.9;
  margin-bottom: 2rem;
  letter-spacing: -0.05em;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.2s ease 0.5s forwards;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease 1s forwards;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.2s ease forwards;
}

.section-text {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 500px;
  margin: 0;
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease 0.3s forwards;
}

/* ========================================
   SCROLL HINT
======================================== */
.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
  cursor: pointer;
  z-index: 100;
}

.scroll-hint__text {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-hint__arrow {
  width: 1px;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
  animation: scrollPulse 2s infinite;
}

.scroll-hint__arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.7);
  transform: rotate(45deg);
}

/* ========================================
   STATS GRID
======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  max-width: 500px;
  margin-left: 0;
  margin-right: 0;
}

.stat-item {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease forwards;
}

.stat-item:nth-child(1) {
  animation-delay: 0.6s;
}
.stat-item:nth-child(2) {
  animation-delay: 0.8s;
}
.stat-item:nth-child(3) {
  animation-delay: 1s;
}

.stat-item__number {
  font-size: 3rem;
  font-weight: 200;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-item__label {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========================================
   SERVICES
======================================== */
.services-list {
  margin-top: 3rem;
  max-width: 500px;
  margin-left: 0;
  margin-right: 0;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInLeft 1.2s ease forwards;
}

.service-item:nth-child(1) {
  animation-delay: 0.6s;
}
.service-item:nth-child(2) {
  animation-delay: 0.8s;
}

.service-item__number {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
  min-width: 2.5rem;
}

.service-item__content {
  flex: 1;
}

.service-item__title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.service-item__description {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.5;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
  .header__container {
    padding: 0 2rem;
  }

  .content-section__body {
    padding: 0 2rem;
  }

  .image-nav {
    right: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-item {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 1024px) {
  .main {
    flex-direction: column;
  }

  .image-panel {
    display: none;
  }

  .content-panel {
    width: 100%;
    margin-left: 0;
  }

  .content-scroll {
    scroll-snap-type: none;
  }

  .content-section {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    min-height: auto;
    padding: 2rem 0;
  }

  .mobile-only {
    display: block;
  }

  .content-section__image {
    display: block;
    display: flex;
    justify-content: center;
  }
  .content-section__image img {
    width: 90%;
    border-radius: 20px;
  }

  .image-nav {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stat-item__number {
    font-size: 2rem;
  }
}

@media (max-width: 560px) {
  .header__container {
    padding: 0 1rem;
  }

  .content-section__body {
    padding: 0 1rem;
  }

  .content-scroll {
    margin-top: 80px;
  }

  .content-section {
    flex-direction: column;
  }

  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .content-section__image {
    margin-bottom: 64px;
  }

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

  .service-item {
    margin-bottom: 2rem;
  }

  .scroll-hint {
    display: none;
  }
}

/* ========================================
   LOADING STATES
======================================== */
body.loading {
  overflow: hidden;
}

body.loaded .content-section {
  opacity: 1;
  transition: opacity 0.5s linear;
}
