/* ==============================
   HERO BACKGROUND (GRADIENT)
   ============================== */

.hero {
  position: relative;
  min-height: 65vh;
  padding-top: 40px;
  border-radius: 0 0 16px 16px;
  overflow: hidden;

  background: linear-gradient(
    315deg,
    rgb(142 36 36) 3%,
    rgba(60, 132, 206, 1) 38%,
    rgb(0 148 37) 68%,
    rgb(131 0 181) 98%
  );

  background-size: 400% 400%;
  animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ==============================
   WAVES
   ============================== */

.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 12em;
  background: rgb(255 255 255 / 25%);
  border-radius: 1000% 1000% 0 0;
  animation: waveMove 10s -3s linear infinite;
  transform: translate3d(0, 0, 0);
  opacity: 0.8;
}

.wave:nth-of-type(2) {
  bottom: -1.25em;
  animation: waveMove 18s linear reverse infinite;
  opacity: 0.8;
}

.wave:nth-of-type(3) {
  bottom: -2.5em;
  animation: waveMove 20s -1s reverse infinite;
  opacity: 0.9;
}

@keyframes waveMove {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-25%); }
  50%  { transform: translateX(-50%); }
  75%  { transform: translateX(-25%); }
  100% { transform: translateX(0); }
}

/* ==============================
   CONTENT Z-INDEX
   ============================== */

.navbar,
.hero-content {
  position: relative;
  z-index: 1;
}


/* ==============================
   NAVBAR
   ============================== */

.navbar {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.nav-pill {
  background: #ffffff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.13);
}

/* Left pill */
.nav-pill-status {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ef4444;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

/* Center pill */
.nav-pill-center {
  padding: 8px 10px 8px 16px;
  gap: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.7;
}

.nav-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  padding-left: 6px;
}

.nav-links .nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  transition: background 0.2s ease;
  transform: none;
  text-decoration: none;
}

.nav-links .nav-link:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: none;
  text-decoration: none;
}

.nav-links .nav-link.current {
  color: #111;
  font-weight: 600;
  position: relative;
}

.nav-links .nav-link.current::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #4faaf5;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 999px;
  margin-left: 6px;
  transition: background 0.2s ease;
}

.nav-hamburger:hover {
  background: rgba(0, 0, 0, 0.06);
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Right pill */
.nav-pill-email {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-pill-email svg {
  opacity: 0.5;
  flex-shrink: 0;
}

/* Mobile popup menu */
.nav-mobile-menu {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 9998;
  background: #fff;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
  min-width: 200px;
  display: none;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-mobile-menu.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-mobile-menu a {
  display: block;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a1a1a;
  transition: background 0.15s ease;
}

.nav-mobile-menu a:hover {
  background: rgba(0, 0, 0, 0.06);
}


/* ==============================
   HERO CONTENT
   ============================== */

.hero-content {
  height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  text-align: center;
  gap: 24px;
  color: #ffffff;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: #f28c01;
}

.hero-subtitle {
  max-width: 520px;
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* BUTTONS */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  margin-bottom: 10px;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.15);
}

.hero-btn {
  background: none;
  color: #191919;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  transform: none;
  box-shadow: none;
}

.hero-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: none;
  box-shadow: none;
}

.hero-btn.active {
  background-color: #f28c01;
  color: #ffffff;
  transform: none;
  box-shadow: 0 2px 14px rgba(242, 140, 1, 0.4);
}

.hero-btn.active:hover {
  background-color: #f28c01;
}


/* LAYERS CONTAINER */
.layers {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  background-color: transparent;
  border-radius: 16px;
}

.layer {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: opacity 800ms cubic-bezier(0.4, 0, 1, 1);
}

.layer.active {
  opacity: 1;
  pointer-events: auto;
  height: auto;
  transform: translateY(0) scale(1);
}


/* ==============================
   DIGITAL CREATIONS
   ============================== */

.creations {
  padding: 60px 0 50px;
  background: #12a8c4;
  overflow-x: hidden;
}

.creations-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.creations-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 48px;
}

.creations-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.creations-window {
  flex: 1;
  overflow: hidden;
  /* Vertical padding creates a buffer zone inside overflow:hidden
     so card shadows and the hover lift are visible before being clipped */
  padding: 24px 0 40px;
}

.creations-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.creation-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.creation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.creation-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e8ecf0;
}

.creation-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.creation-card:hover .creation-card-img img {
  transform: scale(1.04);
}

.creation-card-info {
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.creation-card-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.creation-card-info span {
  font-size: 0.78rem;
  color: #999;
  font-weight: 400;
}

.creations-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.creations-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}

.creations-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  transform: none;
}

.creations-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.creations-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.creations-dot.active {
  background: #ffffff;
  transform: scale(1.35);
}

@media (max-width: 860px) {
  .creation-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 560px) {
  .creation-card {
    flex: 0 0 100%;
  }
  .creations-arrow {
    width: 38px;
    height: 38px;
  }
  .creations-title {
    font-size: 1.6rem;
  }
}


/* CTA SECTION */
.cta {
  margin: 0;
  background-color: #1c1c1e;
}

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 60px;
  background-color: transparent;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cta-inner h2 {
  font-size: 2.2rem;
  font-weight: 500;
  color: #ffffff;
}

.cta-right {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-right p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.cta-btn {
  align-self: flex-start;
  background-color: #ffffff;
  color: #1c1c1e;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
  transform: scale(1.05);
  background-color: #f28c01;
  color: #ffffff;
}


/* FAQ SECTION */
.faq {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

.faq-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background-color: #fefefe;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    -0px 4px 12px rgb(0 0 0 / 6%),
    inset 2px -2px 8px rgb(37 37 37 / 15%);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  color: #171717;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  text-align: left;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 24px;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}


/* ABOUT US SECTION */
.about {
  margin: 80px 20px;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px;
  min-height: 320px;

  background-image: url("../assets/images/about_bg.webp");
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;

  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.about-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.about-content {
  position: relative;
  z-index: 2;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-content h2 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
}

.about-text {
  color: #eaeaea;
  font-size: 0.9rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* FOOTER */
.footer {
  margin-top: 80px;
  padding: 30px 20px;
  text-align: center;
}

.footer-line {
  max-width: 1100px;
  height: 1px;
  background-color: #000;
  margin: 0 auto 20px auto;
  opacity: 0.8;
}

.footer p {
  font-size: 0.85rem;
  opacity: 0.8;
}


/* WEBSITE LAYER */
.website-intro {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.intro-small {
  font-size: 0.75rem;
  opacity: 0.7;
}

.intro-left h2 {
  margin-top: 10px;
  font-size: 1.8rem;
}

.intro-line {
  width: 60px;
  height: 2px;
  background-color: #3cb54a;
  margin-top: 10px;
}

.intro-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  margin: 15px auto 15px auto;
  box-shadow: 5px 5px 1px rgb(47 87 121);
  background-color: #ccc;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.40s ease;
}

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

.intro-image:hover {
  transform: scale(0.97);
}

.website-intro p {
  font-size: 15px;
  line-height: 1.5;
}

.section-separator {
  margin: 80px 0 40px;
  height: 1px;
  background-color: #000;
  opacity: 0.4;
}

/* PORTFOLIO */
.portfolio h2 {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-carousel {
  position: relative;
}

.portfolio-item {
  display: none;
  align-items: center;
  gap: 40px;
}

.portfolio-item.active {
  display: flex;
}

.portfolio-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.portfolio-text h3 {
  margin-bottom: 16px;
}

.portfolio-image {
  flex: 1;
  height: 260px;
  background-color: #9cc3f5;
  border-radius: 20px;
  border: 1px solid #616161;
  box-shadow: 5px 5px 1px rgb(47 87 121);
  overflow: hidden;
  transition: transform 0.40s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.portfolio-image:hover {
  transform: scale(0.98);
  cursor: pointer;
}

.portfolio-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* DOTS */
.portfolio-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #000;
  border-radius: 50%;
  opacity: 0.3;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
}


/* WEBSITE MORE CTA */
.website-more {
  margin: 60px auto 0;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}

.website-more-text {
  font-size: 14px;
  font-weight: 400;
}

.website-more-btn {
  padding: 10px 22px;
  border-radius: 999px;
  background-color: #12a8c4;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.website-more-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}


/* ==============================
   RESPONSIVE
   ============================== */

/* Tablet: hide status + email pills */
@media (max-width: 900px) {
  .nav-pill-status,
  .nav-pill-email {
    display: none;
  }
  .navbar {
    justify-content: center;
    padding: 16px 20px;
  }
}

/* Shrink link text slightly */
@media (max-width: 650px) {
  .nav-links .nav-link {
    padding: 6px 8px;
    font-size: 0.76rem;
  }
}

/* Mobile: hide links, show hamburger */
@media (max-width: 500px) {
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-mobile-menu {
    display: flex;
  }
  .navbar {
    padding: 14px 16px;
  }
}


@media (max-width: 950px) {
  .website-intro {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
    text-align: center;
  }

  .intro-left {
    grid-column: 1 / -1;
    align-items: center;
    margin-bottom: 20px;
  }

  .intro-line {
    margin: 10px auto 0;
  }

  .layers {
    margin: 0px auto;
    padding: 5px 40px 40px 40px;
  }
}


@media (max-width: 700px) {
  .website-intro {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .intro-left,
  .intro-center,
  .intro-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .intro-left h2 {
    margin-bottom: 10px;
  }

  .intro-line {
    margin: 10px auto 0;
  }

  .intro-image {
    width: 100%;
    max-width: 320px;
  }

  .website-intro p {
    max-width: 320px;
  }

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

  .portfolio-image {
    width: 100%;
    max-width: 320px;
    height: 220px;
  }

  .portfolio-text {
    align-items: center;
    text-align: center;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }

  .cta-right {
    align-items: center;
  }

  .cta-btn {
    align-self: center;
  }

  .hide {
    display: none;
  }
}


@media (max-width: 530px) {
  .hero-buttons {
    gap: 2px;
    margin-right: 10px;
    margin-left: 10px;
    padding: 4px;
  }

  .hero-btn {
    font-size: 0.6rem;
    padding: 8px 12px;
  }

  .hero-subtitle {
    margin: 0px 20px 5px 20px;
  }
}
