/* =========================
   Variables & Base Styles
========================== */
:root {
  --primary-color: #2a77bc;
  --accent-color: #fbb040;
  --bg-dark: #fff;
  --bg-light: rgba(255 255 255 / 0.07);
  --text-main: #e4e9f7;
  --text-secondary: #a0a8c5;
  --shadow-glow: 0 0 15px var(--primary-color);
  --transition-speed: 0.4s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "Gotham Rounded";
  src: url("fonts/gothamrnd_book.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Gotham Rounded";
  src: url("fonts/gothamrnd_bold.otf");
  font-weight: bold;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  margin: 0;
  line-height: 1.6;
  scroll-behavior: smooth;
  transition: background-color 0.4s ease, color 0.4s ease;
  font-family: "Gotham Rounded";
  overflow-x: hidden;
}

video {
  width: 100%;
  height: auto;
  object-fit: cover;
  pointer-events: none;
}

/* =========================
   FOOTER & SOCIAL LINKS
========================== */
.copyright {
  margin: 0 auto;
}

.social-links {
  color: white;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: #fbb040;
}

.social-links a {
  color: var(--text-main);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition-speed);
  position: relative;
  padding: 0.3rem 0;
}

.social-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

.social-links a:hover::after {
  width: 100%;
}

.social-links li a {
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links li a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--text-color);
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* =========================
   END OF FOOTER & SOCIAL LINKS
========================== */

/* =========================
   HERO SECTION STYLING
========================== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  text-align: center;
  width: 100%;
}

.hero video {
  width: 100%;
  height: auto;
  max-height: 100vh;
  /* fits screen height */
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* =========================
   END OF HERO SECTION STYLING
========================== */

/* =========================
  SECTION BASE STYLES
========================== */
section {
  width: 100vw;
  max-width: none;
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  color: var(--text-main);
}

h2 {
  max-width: 1100px;
  margin: 0 auto 1rem auto;
  font-family: "Gotham Rounded";
  font-weight: 800;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-color);
  text-align: center;
}

p {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
  user-select: text;
}

/* =========================
   END OF SECTION BASE STYLES
========================== */

/* =========================
   US SECTION
========================== */
.us {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  text-align: center;
}

.badge {
  position: absolute;
  width: auto;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
  height: 7%;
}

.badge.show {
  opacity: 1;
  transform: scale(1);
}

.us-background {
  max-width: 100%;
}

.us.active .badge-effective {
  bottom: 63%;
  right: 21%;
  transition-delay: 1s;
}

.us.active .badge-realists {
  height: 6%;
  top: 24%;
  left: 9%;
  transition-delay: 3s;
}

.us.active .badge-utils {
  height: 10%;
  top: 9%;
  right: 21%;
  transform: rotate(5deg);
  transition-delay: 2s;
}

.us-second {
  height: auto;
  max-width: 100%;
  margin-top: 95px;
}

/* =========================
   END OF US SECTION
========================== */

/* =========================
   SERVICES SECTION
========================== */
.services-slider-container {
  position: relative;
  width: 100%;
  height: 15vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.slider-services {
  position: relative;
  width: 100%;
  display: flex;
}

.slider-services img {
  height: 47px;
  margin-right: 40px;
}

.top-row {
  animation: slideLeft 20s linear infinite;
}

.bottom-row {
  animation: slideRight 20s linear infinite;
}

@keyframes slideLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.to-know {
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.to-know img {
  width: 420px;
  height: auto;
}

.services-images {
  margin-top: 15%;
  height: 65vh;
}

/* ===== CONTENT BLOCKS ===== */
.content {
  position: sticky;
  top: 100px;
  height: 85vh;
  overflow: hidden;
  padding-top: 20px;
}

/* =========================
   END OF SERVICES SECTION
========================== */

/* =========================
   PORTFOLIO SECTION
========================== */
#portfolio {
  position: relative;
}

.portfolio-content {
  display: flex;
  flex-direction: column;
  gap: 250px;
}

#portfolio .sticky-header {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  height: auto;
}

#portfolio .sticky-header img {
  padding-top: 80px;
  width: 30%;
  align-self: center;
  justify-self: center;
  display: flex;
}

.portfolio-video {
  width: 100%;
}

/* =========================
   END OF PORTFOLIO SECTION
========================== */

/* =========================
   BRANDS SECTION
========================== */
#brands {
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brands-header {
  width: 100%;
  padding: 10%;
}

.brands-slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slider-brands {
  display: flex;
  width: calc(200%);
  animation: slide-left 50s linear infinite;
}

.slider-brands a {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-brands img {
  height: 50%;
  cursor: pointer;
  width: 70%;
  object-fit: contain;
}

.small-brands {
  height: 65% !important;
}

.slider-brands img:hover {
  transform: scale(1.05);
}

@keyframes slide-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-140%));
  }
}

/* =========================
   END OF BRANDS SECTION
========================== */

/* =========================
   CONTACT SECTION
========================== */
.contact-container {
  display: flex;
  align-items: center;
}

.team-image {
  height: 100vh;
}

.contact-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-left: 145px;
}

.form-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 20px;
  border: 1px solid #000;
  border-radius: 9999px;
  font-size: 16px;
}

.contact-form textarea {
  border-radius: 20px;
  min-height: 100px;
  resize: vertical;
}

.contact-form button {
  border: none;
  background: none;
  cursor: pointer;
}

.contact-form button:hover {
  transform: scale(1.05);
}

.social-icons {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-icons img {
  width: 32px;
  height: 32px;
  cursor: pointer;
}

/* =========================
   END OF CONTACT SECTION
========================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
    PRIVACY POLICY
========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: #fff;
  margin: 2% auto;
  padding: 25px;
  width: 60%;
  height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.open-privacy-btn,
.accept-btn {
  display: flex;
  justify-self: center;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  border-radius: 6px;
}

.accept-btn {
  margin-top: 15px;
  background: var(--primary-color);
  color: white;
  justify-self: end;
}

h1 {
  margin-top: 0;
  font-size: 1.6rem !important;
  justify-self: center;
  color: var(--primary-color);
}

h2 {
  justify-self: start;
  color: #0f172a;
}

ul {
  margin: 8px 0 16px 20px;
}

li {
    color: #0f172a;
  margin-bottom: 6px;
}

address {
  font-style: normal;
  margin-top: 8px;
}

.note {
  justify-self: start;
  color: #374151;
}

.policy-section {
  margin-top: 30px;
  border-top: 1px solid black;
}

/* ======================
    END OF PRIVACY POLICY
========================= */

/* =========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {

  /* =========================
   US SECTION
========================== */
  .us.active .badge-effective {
    bottom: 67%;
    right: 18%;
  }

  .us.active .badge-realists {
    top: 22%;
  }

  .us.active .badge-utils {
    top: 7%;
    right: 20%;
  }

  /* =========================
   END OF US SECTION
========================== */

  /* =========================
   SERVICE SECTION
========================== */
  .content {
    top: 20px;
    height: 45vh;
    padding-top: 0;
  }

  .content img {
    padding: 0 15px;
    max-width: none;
  }

  .services-slider-container {
    height: 9vh;
  }

  .slider-services img {
    height: 25px;
  }

  .to-know {
    top: 12%;
  }

  .to-know img {
    width: 300px;
  }

  .services-images {
    margin-top: 30%;
    height: auto;

  }

  /* =========================
   END OF SERVICE SECTION
========================== */

  /* =========================
   PORTFOLIO SECTION
========================== */
  .portfolio-content {
    gap: 80px;
  }

  /* =========================
   END OF PORTFOLIO SECTION
========================== */

  /* =========================
   BRANDS SECTION
========================== */
  @keyframes slide-left {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-630%));
    }
  }

  .slider-brands {
    animation: slide-left 35s linear infinite;
  }

  /* =========================
   END OF BRANDS SECTION
========================== */

  /* =========================
   CONTACT SECTION
========================== */
  .contact-container {
    flex-direction: column;
  }

  .contact-right {
    margin: 0;
  }

  .social-icons {
    position: relative;
    transform: none;
    flex-direction: row;
  }

  .team-image {
    width: 100%;
    height: auto;
  }

  .contact-form {
    max-width: 100%;
    padding: 0 30px 30px 30px;
  }

  .contact-right {
    width: 100%;
  }

  .form-title {
    justify-content: center;
  }

  .form-title img {
    width: 80%;
  }

  .submit-button {
    max-width: 100%;
  }

  .copyright {
    font-size: 12px;
  }

  /* =========================
   END OF CONTACT SECTION
========================== */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }

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