* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #f0f0f0;
}

a {
  text-decoration: none;
  color: #0096ee;
}

section {
  padding: 20px 50px;
}

#hero {
  background-image: url(https://neptunecustoms.com/img/heroes/NeptuneCustoms_logo_hero_v12.png);
  background-size: cover;
  background-position: center;
  position: relative;
  height: 100vh;
}

h1 {
  font-size: clamp(2rem, 10vw, 10rem);
  color: #0096ee;
  line-height: clamp(2.5rem, 8vw, 8rem);
  text-align: center;
  width: clamp(200px, 60%, 820px);
  text-shadow: 0px 0px 20px #00142a;
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 10px 0;
}

h1 span {
  color: #3d5f92;
}

#hero h1 {
  font-size: clamp(3rem, 10vw, 12rem);
  line-height: clamp(2.5rem, 8vw, 9.4rem);
  width: clamp(250px, 70%, 1040px);
}

/* Spacers to create scrollable area */
.spacer {
  height: clamp(200px, 50vw, 100vh);
  /* Make it taller to allow for significant scrolling */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  color: #666;
  box-sizing: border-box;
  /* Include padding and border in the element's total width and height */
}

.top-spacer {
  background-color: #343434;
}

.bottom-spacer {
  background-color: #282828;
  padding-top: 400vh;
  /* Push content down to reveal after animation */
}

.stickyParent {
  height: 500vh;
}

/* Coin Container for positioning and perspective */
.coin-container {
  position: sticky;
  /* Stays in viewport while scrolling */
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* Hide parts of coin if it scales too big */
  perspective: 1000px;
  /* Gives the 3D effect depth */
  pointer-events: none;
  /* Allows interaction with elements behind it if needed */
  padding: 0;
}

/* The Coin itself - 3D transform target */
.coin {
  position: relative;
  width: 50vmin;
  /* 50% of viewport minimum dimension (width or height) */
  height: 50vmin;
  transform-style: preserve-3d;
  /* Key for 3D children */
  transition: transform 0.1s linear;
  /* Smooth rotation during scroll */
  will-change: transform;
  /* Hint to browser for performance */
}

.coin img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* Makes square images circular */
  object-fit: cover;
  /* Ensures images fill the circle without distortion */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Individual sides of the coin */
.side {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  /* Hides the back of the element when facing away */
}

.front {
  transform: rotateY(0deg);
}

.back {
  transform: rotateY(180deg) rotateZ(180deg);
}

.sub,
.team,
.referral-bonus {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 60px 20px;
  width: 100%;
}

.team {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0;
  list-style: none;
}

.team-header {
  width: 100%;
  text-align: center;
  padding: 40px 0;
  margin-bottom: 40px;
}

h2 {
  padding: 20px 0;
  width: 100%;
  max-width: 1200px;
  font-size: clamp(2rem, 5vw, 6rem);
  color: #0096ee;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  margin: 0 auto 20px;
}

#agents-of-neptune {
  background-color: #284063;
  color: #f0f0f0;
  padding-top: 80px;
  padding-bottom: 80px;
}

#agents-of-neptune .tagline {
  color: #fff;
}

#agents-of-neptune p {
  color: #e0e0e0;
}


.sub h2 {
  margin-bottom: 0;
}

.sub .tagline {
  margin-top: 0;
}

.sub h3:not(.brand-card__name):not(.service-title) {
  width: 100%;
  max-width: 1000px;
  font-size: clamp(1.4rem, 3vw, 3rem);
  color: #3d5f92;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.sub p:not(.brand-card__desc):not(.service-desc) {
  max-width: 800px;
  width: 100%;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
}

.sub ul:not(.brand-cards):not(.services-list):not(.cta-list) {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.referral-bonus p {
  max-width: 800px;
  width: 90%;
  text-align: justify;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #000;
}

.referral-bonus ul {
  width: 90%;
  max-width: 650px;
  margin: 0 auto;
  text-align: justify;
  list-style-position: outside;
  padding-left: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #000;
}

.referral-bonus li {
  margin-bottom: 15px;
  list-style: disc;
}

.card {
  width: 100%;
  flex: 0 1 350px;
  max-width: 400px;
  list-style: none !important;
  position: relative;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card div {
  width: 100%;
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.card h3 {
  margin: 15px 0 5px;
  font-size: 18px;
  color: #000;
  text-transform: uppercase;
  font-weight: bold;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
  text-align: center;
}


#be .be_only {
  position: absolute;
  z-index: 1;
}

#be .be_bg {
  position: relative;
  z-index: 0;
}

aside.referral-bonus {
  background-color: #0096ee;
  padding-bottom: 100px;
}

aside.referral-bonus h2 {
  color: #284063;
}

aside.referral-bonus a {
  text-decoration: none;
  color: #f0f0f0;
}

footer {
  background-color: #282828;
  color: #f0f0f0;
  padding: 100px 100px 50px;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  gap: 0px 33vw;
}

footer .col1 {
  flex: 1 1 33vw;
}

footer .col2 {
  flex: 1 1 33vw;
  max-width: 530px;
}

footer h1 {
  position: static;
  color: #f0f0f0;
  width: 100%;
  font-size: clamp(3rem, 7vw, 10rem);
  line-height: clamp(2.6rem, 6vw, 8rem);
}

footer h1 span {
  color: #999;
}

footer h2 {
  flex: none;
  width: 100%;
  font-size: clamp(1.4rem, 2.2vw, 4rem);
  line-height: clamp(2rem, 3vw, 4rem);
  color: #f0f0f0;
  padding: 0;
  margin-bottom: 0;
}

footer .tagline {
  text-align: center;
  margin-top: 0px;
}

footer h3 {
  font-size: clamp(1rem, 1.5vw, 4rem);
  line-height: clamp(2rem, 3vw, 4rem);
}

footer .col2 ul {
  padding: 20px 0;
  display: flex;
}

.button {
  text-decoration: none;
  color: #f0f0f0;
  text-transform: uppercase;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  padding: 14px 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease-in-out;
  z-index: 1;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #f0f0f0;
  transition: width 0.2s ease-in-out;
  z-index: -1;
}

.button:hover {
  color: #282828;
}

.button:hover::before {
  width: 100%;
}

footer .col2 li {
  list-style: none;
  margin-top: 0px;
  font-size: clamp(1rem, 1.5vw, 4rem);
  line-height: clamp(2rem, 3vw, 4rem);
}

.contactBtn {
  margin-left: auto;
}

/* Social Link Styles */
.social-links {
  list-style: none;
  padding: 0;
  margin-top: 25px;
  display: flex;
  justify-content: space-evenly;
  gap: 25px;
  /* Adjust the space between icons */
}

.social-links a svg {
  width: 24px;
  height: 24px;
  fill: #f0f0f0;
  /* Icon color */
  transition: opacity 0.2s ease-in-out;
}

.social-links a:hover svg {
  opacity: 0.7;
  /* A subtle fade on hover */
}

footer .finePrint {
  text-align: center;
  margin-top: 140px;
  color: #666;
  font-size: clamp(1rem, 1.2vw, 4rem);
  line-height: clamp(2rem, 3vw, 4rem);
  flex: 1 1 100%;
}

/* Styles for the Modal */
.modal-overlay {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);

  /* Flexbox to center the modal content */
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #282828;
  color: #f0f0f0;
  margin: auto;
  padding: 30px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 80%;
  max-width: 760px;
  position: relative;
  animation: slide-down 0.4s ease-out;
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

/* A little animation for the modal appearing */
@keyframes slide-down {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content iframe {
  width: 100%;
  /* Make it fill the modal's width */
  min-height: 450px;
  /* Adjust as needed for your form's length */
  border: none;
  /* Removes the default border */
}

@media (max-width: 2301px) {
  footer .col2 .social-links {
    padding: 40px 0 0;
  }
}

@media (max-width: 1165px) {
  .sub h3:not(.brand-card__name):not(.service-title) {
    width: 100vw;
    text-align: center;
  }

  .sub p:not(.brand-card__desc):not(.service-desc),
  .referral-bonus p {
    max-width: 80vw;
  }

  .sub ul:not(.brand-cards):not(.services-list):not(.cta-list) {
    padding: 0;
    max-width: 70vw;
  }

  .referral-bonus ul {
    width: 80vw;
    padding: 0;
  }

  .card {
    flex-basis: 50%;
    max-width: 400px;
  }

  footer {
    padding: 100px 50px 50px;
  }

  footer .col2 p {
    max-width: 90vw;
  }

  footer .finePrint {
    margin-top: 0;
  }
}

/* =========================================
   Brand Cards (Our Brands overview)
   ========================================= */
.brand-cards {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 auto 50px auto;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

.brand-card {
  list-style: none !important;
  flex: 1 1 280px;
  max-width: 380px;
  background: rgba(0, 150, 238, 0.07);
  border: 1px solid rgba(0, 150, 238, 0.3);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-card:hover {
  transform: translateY(-5px);
  border-color: #0096ee;
  background: rgba(0, 150, 238, 0.13);
}

.brand-card__name {
  font-size: clamp(1rem, 2vw, 1.6rem);
  color: #0096ee;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.3;
}

.brand-card__desc {
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.6;
  color: #444;
  margin: 0;
  max-width: none !important;
}

/* =========================================
   Services List (Neptune Customs section)
   ========================================= */
.services-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 40px auto;
  max-width: 800px;
  width: 100%;
}

.service-item {
  list-style: none !important;
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 40px;
  text-align: left;
}

.service-icon {
  font-size: 1.6rem;
  color: #0096ee;
  flex-shrink: 0;
  margin-top: 4px;
}

.service-title {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #3d5f92;
  text-transform: uppercase;
  margin: 0 0 6px 0;
  line-height: 1.3;
  text-align: left;
}

.service-desc {
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.6;
  color: #444;
  margin: 0;
  max-width: none !important;
  text-align: left;
}

/* =========================================
   CTA List (button rows)
   ========================================= */
.cta-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.cta-list li {
  list-style: none;
}

.cta-list .button {
  color: #0096ee;
  border-color: #0096ee;
}

.cta-list .button::before {
  background-color: #0096ee;
}

.cta-list .button:hover {
  color: #fff;
}

@media (max-width: 940px) {
  .brand-card__name {
    font-size: 1.8rem;
  }
}


@media (max-width: 768px) {
  .brand-cards {
    flex-direction: column;
    align-items: center;
  }

  .brand-card {
    max-width: 90vw;
  }

  .service-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .service-title {
    text-align: center;
  }

  .service-desc {
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
  }
}