:root {
  --color-primary: #8c4799;
  --color-blue: #002855;
  --color-accent-blue: #73cde9;
  --color-accent-green: #97d700;
  --color-white: #f5f5f5;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --page-pad: clamp(12px, 4vw, 32px);
  --nav-h: clamp(60px, 10vh, 120px);
  --font: "Rubik", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: #f5f5f5;
  color: #111;
  overflow-x: hidden;
  /* Improve touch scrolling on mobile */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.pill-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.pill {
  position: relative;
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  padding: 12px calc(24px + 2em);
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
  background: var(--color-primary);
}

.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  z-index: 1;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero-kicker {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}
.hero-title {
  margin: 0;
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.arrows {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}
.arrow {
  width: 75px;
  height: 120px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: #d9d9d9;
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  z-index: 2;
}

.arrow-left {
  margin-right: auto;
}

.arrow-right {
  margin-left: auto;
  transform: scaleX(-1);
}

.arrow-chev {
  display: block;
  width: 23px;
  height: 23px;
  border-right: 3px solid var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
  transform: rotate(135deg);
}

/* Arrow states based on Figma */
.arrow[data-state="hover"] {
  background: linear-gradient(
    180deg,
    var(--color-primary) 0%,
    var(--color-accent-blue) 100%
  );
  border-color: var(--color-primary);
}

.arrow[data-state="hover"] .arrow-chev {
  border-color: #f5f5f5;
}

.arrow[data-state="clicked"] {
  background: #f5f5f5;
  border-color: var(--color-primary);
}

.arrow[data-state="clicked"] .arrow-chev {
  border-color: var(--color-primary);
}

/* Fullpage.js Navigation Dots */
#fp-nav {
  position: fixed;
  z-index: 100;
  margin-top: -32px;
  top: 50%;
  opacity: 1;
}

#fp-nav ul {
  margin: 0;
  padding: 0;
}

#fp-nav li {
  display: block;
  width: 14px;
  height: 13px;
  margin: 7px;
  position: relative;
}

#fp-nav li a {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
}

#fp-nav li a span {
  border-radius: 50%;
  position: absolute;
  z-index: 1;
  height: 4px;
  width: 4px;
  border: 0;
  background: var(--color-primary);
  left: 50%;
  top: 50%;
  margin: -2px 0 0 -2px;
  transition: all 0.1s ease-in-out;
}

#fp-nav li a.active span {
  background: var(--color-accent-blue);
  height: 8px;
  width: 8px;
  margin: -4px 0 0 -4px;
}

#fp-nav li a:hover span {
  background: var(--color-accent-green);
  height: 6px;
  width: 6px;
  margin: -3px 0 0 -3px;
}

/* Navigation tooltip text color */
#fp-nav li a::after {
  color: var(--color-blue) !important;
}

/* Fullpage.js tooltip styling */
.fp-tooltip {
  color: var(--color-blue) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid var(--color-blue) !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

@media (max-width: 1024px) {
  .arrow {
    width: 56px;
    height: 90px;
  }
  .hero {
    min-height: 60vh;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    padding-left: clamp(8px, 2vw, 16px);
    padding-right: clamp(8px, 2vw, 16px);
    background-attachment: scroll;
  }
  .hero-title {
    font-size: clamp(24px, 8vw, 48px);
  }
  .hero-kicker {
    font-size: clamp(16px, 4vw, 20px);
  }
  .arrow {
    width: 48px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 40vh;
  }
  .pill {
    font-size: clamp(14px, 4vw, 18px);
    padding: 8px calc(16px + 1em);
  }
}

/* Responsive navigation dots */
@media (max-width: 768px) {
  #fp-nav {
    right: 10px;
  }

  #fp-nav li {
    width: 12px;
    height: 11px;
    margin: 6px;
  }

  #fp-nav li a span {
    height: 3px;
    width: 3px;
    margin: -1.5px 0 0 -1.5px;
  }

  #fp-nav li a.active span {
    height: 6px;
    width: 6px;
    margin: -3px 0 0 -3px;
  }

  #fp-nav li a:hover span {
    height: 5px;
    width: 5px;
    margin: -2.5px 0 0 -2.5px;
  }
}

/* Fullpage.js Integration */
#fullpage {
  height: 100vh;
}

.section {
  height: 100vh;
  width: 100%;
  position: relative;
}

.hero-section {
  background-color: #4a90e2;
  background-image: url("./assets/bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.35)
  );
}

.content-section {
  background: #f5f5f5;
}

/* Content Area - Template Layout */
.content-area {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  background: #f5f5f5;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

/* Content Header - Top Left positioning */
.content-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 436px;
  height: 83px;
}

.header-info {
  background: var(--color-primary);
  width: 100%;
  height: 100%;
  border-radius: 0 0 106px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.header-text {
  font-family: var(--font);
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin: 0;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Two Column Layout - Centered positioning */
.content-layout {
  position: relative;
  top: 120px;
  left: 0;
  right: 0;
  height: calc(100vh - 120px);
  max-width: 1200px;
  width: 100%;
  display: flex;
  gap: 40px;
  padding: 40px;
  justify-content: center;
  align-items: flex-start;
}

/* Left Column - Content Bar */
.content-column {
  position: relative;
  left: 0;
  top: 0;
  width: 60%;
  max-width: 600px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-title {
  font-family: var(--font);
  font-size: 28px; /* Even smaller title */
  font-weight: 500; /* Medium */
  line-height: 1;
  color: var(--color-blue);
  margin: 0 0 12px 0;
}

.content-subtitle {
  font-family: var(--font);
  font-size: 24px; /* Even smaller subtitle */
  font-weight: 700; /* Bold */
  line-height: 1;
  color: var(--color-primary);
  margin: 0 0 25px 0;
}

.content-image {
  width: 100%;
  height: 300px;
  margin: 0 0 15px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.content-text {
  font-family: var(--font);
  font-size: 16px; /* Even smaller text */
  font-weight: 400;
  line-height: 1.2;
  color: black;
  margin: 0;
}

/* Right Column - Info section */
.info-column {
  position: relative;
  left: 0;
  top: 0;
  width: 40%;
  max-width: 400px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.logo-section {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-title {
  font-family: var(--font);
  font-size: 20px; /* Even smaller info title */
  font-weight: 700; /* Bold */
  line-height: 1;
  color: var(--color-primary);
  margin: 0 0 12px 0;
}

.info-text {
  font-family: var(--font);
  font-size: 18px; /* Even smaller info text */
  font-weight: 400; /* Regular */
  line-height: 1;
  color: var(--color-blue);
  margin: 0;
}

.info-details {
  display: none; /* Not shown in Figma design */
}

/* Responsive template layout */
@media (max-width: 1200px) {
  .content-layout {
    padding: 20px;
    gap: 30px;
    max-width: 1000px;
    top: 100px;
    height: calc(100vh - 100px);
  }

  .content-column {
    width: 60%;
    max-width: 500px;
  }

  .info-column {
    width: 40%;
    max-width: 350px;
  }

  .content-header {
    width: 300px;
    height: 60px;
  }

  .header-text {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  /* Mobile layout - single column */
  .content-area {
    min-height: 100vh;
    height: 100vh;
    padding: 20px;
    justify-content: flex-start;
    align-items: center;
  }

  .content-layout {
    position: relative;
    top: 80px;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
  }

  .content-column {
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
    order: 1;
    max-width: none;
  }

  .info-column {
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
    order: 2;
    max-width: none;
  }

  .content-header {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 50px;
    margin-bottom: 20px;
  }

  .header-info {
    border-radius: 0 0 25px 0;
  }

  .header-text {
    font-size: 16px;
  }

  .content-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .content-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .content-image {
    height: 250px;
    margin-bottom: 15px;
  }

  .content-text {
    font-size: 14px;
    line-height: 1.4;
  }

  .info-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .info-text {
    font-size: 16px;
    line-height: 1.4;
  }

  .logo-section {
    height: 120px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .content-area {
    padding: 15px;
  }

  .content-layout {
    padding: 0;
    gap: 20px;
  }

  .content-header {
    height: 45px;
    max-width: 250px;
  }

  .header-info {
    border-radius: 0 0 20px 0;
  }

  .header-text {
    font-size: 14px;
  }

  .content-title {
    font-size: 20px;
  }

  .content-subtitle {
    font-size: 18px;
  }

  .content-image {
    height: 200px;
  }

  .content-text {
    font-size: 13px;
  }

  .info-title {
    font-size: 16px;
  }

  .info-text {
    font-size: 14px;
  }

  .logo-section {
    height: 100px;
  }
}

@media (max-width: 360px) {
  /* Very small screens */
  .content-area {
    padding: 10px;
  }

  .content-layout {
    padding: 0;
    gap: 15px;
  }

  .content-header {
    height: 40px;
    max-width: 200px;
  }

  .header-text {
    font-size: 12px;
  }

  .content-title {
    font-size: 18px;
  }

  .content-subtitle {
    font-size: 16px;
  }

  .content-image {
    height: 150px;
  }

  .content-text {
    font-size: 12px;
  }

  .info-title {
    font-size: 14px;
  }

  .info-text {
    font-size: 12px;
  }

  .logo-section {
    height: 80px;
  }
}
