/* =========================================================
   GAURAV SAPKOTA — COMPLETE RESPONSIVE STYLE.CSS
   UPDATED MOBILE POP-UP MENU
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #17171b;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}


/* =========================================================
   OPENING LOADER
========================================================= */

#page-loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;

  background: #000000;
  color: #ffffff;

  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 1s ease,
    visibility 1s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  color: #ffffff;

  font-size: clamp(24px, 7vw, 48px);
  font-weight: 700;

  letter-spacing: 2px;

  opacity: 0;
  transform: translateY(25px);

  animation: loaderName 1s ease 0.3s forwards;
}

.loader-line {
  width: 0;
  height: 1px;

  margin: 15px auto 0;

  background: #ffffff;

  animation: loaderLine 1s ease 1.1s forwards;
}

.loader-circle {
  position: absolute;

  width: 1px;
  height: 1px;

  border-radius: 50%;

  background: #ffffff;

  opacity: 0;

  animation: loaderCircle 1.5s ease 1.8s forwards;
}

@keyframes loaderName {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

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

@keyframes loaderLine {
  from {
    width: 0;
  }

  to {
    width: 120px;
  }
}

@keyframes loaderCircle {
  0% {
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  40% {
    opacity: 0.08;
  }

  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}


/* =========================================================
   HEADER
========================================================= */

.header {
  min-height: 72px;
  padding: 0 6%;

  background: #29292d;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: sticky;
  top: 0;

  z-index: 1000;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.header.scrolled {
  background: #202024;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.logo {
  color: #ffffff;

  font-size: 17px;
  font-weight: 800;

  letter-spacing: 1px;

  white-space: nowrap;
}

.logo span {
  color: #9b7cff;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  position: relative;

  color: #ffffff;

  font-size: 15px;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 2px;

  background: #9b7cff;

  transition: width 0.3s ease;
}

.nav a:hover {
  color: #9b7cff;
  transform: translateY(-1px);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a.active {
  color: #9b7cff;
}


/* =========================================================
   MENU BUTTON
========================================================= */

.menu-btn {
  display: none;

  border: none;
  background: transparent;

  color: #ffffff;

  font-size: 27px;

  cursor: pointer;

  padding: 5px;

  line-height: 1;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.menu-btn:hover {
  color: #9b7cff;
}

.menu-btn:active {
  transform: scale(0.9);
}


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

.hero {
  min-height: calc(100vh - 72px);

  padding: 80px 7%;

  display: grid;

  grid-template-columns:
    minmax(280px, 1fr)
    minmax(280px, 1fr);

  align-items: center;

  gap: 70px;

  overflow: hidden;
}

.hero-photo-wrapper {
  opacity: 0;
  transform: translateX(-40px);

  animation:
    heroPhotoIn 1s ease 2.5s forwards;
}

.profile-photo {
  width: 100%;
  max-width: 560px;

  height: auto;
  max-height: 700px;

  object-fit: cover;

  margin: 0 auto;

  border-radius: 8px;

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.profile-photo:hover {
  transform: translateY(-8px);

  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.16);
}

.hero-content {
  max-width: 550px;

  opacity: 0;
  transform: translateX(40px);

  animation:
    heroContentIn 1s ease 2.7s forwards;
}

.eyebrow {
  color: #8d72d9;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 3px;

  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 72px);

  line-height: 1.02;

  letter-spacing: -2px;

  margin-bottom: 25px;
}

.hero h1 span,
.section-heading h2 span {
  color: #9274df;
}

.hero-subtitle {
  color: #333338;

  font-size: 18px;
  font-weight: 600;

  margin-bottom: 10px;
}

.hero-text {
  color: #66666d;

  max-width: 480px;

  font-size: 16px;

  margin-bottom: 30px;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.buttons {
  display: flex;

  gap: 12px;

  flex-wrap: wrap;
}

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 12px 24px;

  border-radius: 4px;

  font-size: 14px;
  font-weight: 700;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn.primary {
  background: #29292d;
  color: #ffffff;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.12);
}

.btn.primary:hover {
  background: #9274df;

  box-shadow:
    0 15px 30px rgba(146, 116, 223, 0.25);
}

.btn.secondary {
  border: 1px solid #29292d;
  color: #29292d;

  background: transparent;
}

.btn.secondary:hover {
  background: #29292d;
  color: #ffffff;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
  padding: 110px 7%;

  position: relative;
}

.section-heading {
  max-width: 700px;

  margin-bottom: 55px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(34px, 4vw, 55px);

  line-height: 1.1;

  letter-spacing: -1px;

  margin-bottom: 18px;
}

.section-heading > p:last-child {
  color: #66666d;

  font-size: 16px;

  max-width: 650px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-grid {
  display: grid;

  grid-template-columns:
    1.4fr
    1fr
    1fr;

  gap: 25px;

  align-items: stretch;
}

.about-text {
  padding: 30px 0;

  font-size: 17px;

  color: #4f4f55;
}

.about-text p {
  margin-bottom: 20px;
}

.about-text strong {
  color: #17171b;
}

.feature-card {
  padding: 35px;

  background: #f5f5f7;

  border-radius: 8px;

  border: 1px solid #eeeeef;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-7px);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-card > strong {
  display: block;

  color: #9274df;

  font-size: 13px;

  letter-spacing: 2px;

  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 22px;

  margin-bottom: 12px;
}

.feature-card p {
  color: #66666d;

  font-size: 15px;
}


/* =========================================================
   DARK SECTION
========================================================= */

.section.dark {
  background: #202024;

  color: #ffffff;
}

.section.dark .section-heading > p:last-child {
  color: #a8a8ae;
}


/* =========================================================
   SERVICE CARDS
========================================================= */

.cards {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 25px;
}

.card {
  padding: 40px 32px;

  background: #29292d;

  border: 1px solid #3a3a40;

  border-radius: 8px;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);

  border-color: #9274df;

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.25);
}

.icon {
  width: 48px;
  height: 48px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 25px;

  border-radius: 50%;

  background: #9274df;

  color: #ffffff;

  font-size: 20px;
}

.card h3 {
  font-size: 23px;

  margin-bottom: 12px;
}

.card p {
  color: #b5b5ba;

  font-size: 15px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
  background: #ffffff;
}

.contact-box {
  max-width: 900px;

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 18px;

  margin-bottom: 40px;
}

.contact-item {
  display: flex;

  align-items: center;

  gap: 18px;

  padding: 22px;

  background: #f7f7f8;

  border: 1px solid #eeeeef;

  border-radius: 8px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);

  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.07);
}

.contact-icon {
  width: 45px;
  height: 45px;

  min-width: 45px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #29292d;

  color: #ffffff;

  border-radius: 50%;

  font-size: 19px;
}

.contact-item small {
  display: block;

  color: #9274df;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 2px;

  margin-bottom: 3px;
}

.contact-item h3 {
  font-size: 17px;
}

.contact-item a {
  color: #333338;

  font-size: 15px;

  word-break: break-word;

  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #9274df;
}


/* =========================================================
   CONTACT BUTTONS
========================================================= */

.contact-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;
}

.contact-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 45px;

  padding: 11px 18px;

  border: 1px solid #29292d;

  border-radius: 4px;

  color: #29292d;

  background: #ffffff;

  font-size: 14px;
  font-weight: 600;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.contact-btn:hover {
  background: #29292d;

  color: #ffffff;

  transform: translateY(-3px);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 30px 7%;

  background: #202024;

  color: #a8a8ae;

  text-align: center;

  font-size: 13px;
}

footer span {
  color: #ffffff;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes heroPhotoIn {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

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

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

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


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .hero {
    grid-template-columns: 1fr;

    gap: 50px;

    padding-top: 60px;
  }

  .hero-photo-wrapper {
    order: 1;
  }

  .hero-content {
    order: 2;

    max-width: 700px;
  }

  .profile-photo {
    max-width: 500px;
  }

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

  .about-text {
    grid-column: 1 / -1;
  }

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

  .contact-box {
    grid-template-columns:
      1fr;
  }
}


/* =========================================================
   MOBILE NAVIGATION — PROFESSIONAL POP-UP
========================================================= */

@media (max-width: 700px) {

  .header {
    min-height: 68px;

    padding: 0 5%;

    position: sticky;
    top: 0;

    z-index: 5000;
  }

  .logo {
    font-size: 15px;
  }

  /* -----------------------------------------
     HAMBURGER BUTTON
  ----------------------------------------- */

  .menu-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.10);

    color: #ffffff;

    font-size: 27px;

    cursor: pointer;

    transition:
      background 0.3s ease,
      transform 0.3s ease,
      border-color 0.3s ease;
  }

  .menu-btn:hover {
    background: rgba(155, 124, 255, 0.15);

    border-color: rgba(155, 124, 255, 0.5);
  }

  .menu-btn:active {
    transform: scale(0.92);
  }


  /* -----------------------------------------
     POP-UP NAVIGATION PANEL
  ----------------------------------------- */

  .nav {
    position: fixed;

    top: 78px;

    right: 5%;

    left: auto;

    width: min(88%, 340px);

    padding: 12px;

    background:
      linear-gradient(
        145deg,
        #303035,
        #1f1f23
      );

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 18px;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 4px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
      translateY(-15px)
      scale(0.96);

    transform-origin: top right;

    transition:
      opacity 0.28s ease,
      visibility 0.28s ease,
      transform 0.28s ease;

    box-shadow:
      0 25px 70px rgba(0, 0, 0, 0.45),
      0 5px 20px rgba(0, 0, 0, 0.25);

    z-index: 6000;

    overflow: hidden;
  }


  /* -----------------------------------------
     OPEN STATE
     IMPORTANT:
     JS uses .active
  ----------------------------------------- */

  .nav.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
      translateY(0)
      scale(1);
  }


  /* -----------------------------------------
     NAVIGATION LINKS
  ----------------------------------------- */

  .nav a {
    width: 100%;

    min-height: 52px;

    padding: 14px 16px;

    display: flex;

    align-items: center;

    border-radius: 11px;

    color: #ffffff;

    font-size: 16px;

    font-weight: 600;

    letter-spacing: 0.1px;

    position: relative;

    transition:
      background 0.25s ease,
      color 0.25s ease,
      padding-left 0.25s ease;
  }


  /* Remove desktop underline */

  .nav a::after {
    display: none;
  }


  /* Hover / touch appearance */

  .nav a:hover {
    background:
      rgba(155, 124, 255, 0.13);

    color: #b49cff;

    transform: none;

    padding-left: 21px;
  }


  /* Active link */

  .nav a.active {
    background:
      linear-gradient(
        90deg,
        rgba(155, 124, 255, 0.20),
        rgba(155, 124, 255, 0.05)
      );

    color: #b49cff;
  }


  /* -----------------------------------------
     SMALL PURPLE ACCENT
  ----------------------------------------- */

  .nav a.active::before {
    content: "";

    position: absolute;

    left: 0;

    top: 10px;
    bottom: 10px;

    width: 3px;

    border-radius: 10px;

    background: #9b7cff;
  }


  /* -----------------------------------------
     MENU DIVIDER EFFECT
  ----------------------------------------- */

  .nav a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.045);
  }


  /* -----------------------------------------
     HERO
  ----------------------------------------- */

  .hero {
    min-height: auto;

    padding: 55px 5% 75px;

    gap: 45px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 60px);

    letter-spacing: -1.5px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-text {
    font-size: 15px;
  }


  /* -----------------------------------------
     SECTIONS
  ----------------------------------------- */

  .section {
    padding: 80px 5%;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2 {
    font-size: clamp(32px, 10vw, 48px);
  }


  /* -----------------------------------------
     ABOUT
  ----------------------------------------- */

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

  .about-text {
    grid-column: auto;

    padding: 10px 0;
  }


  /* -----------------------------------------
     CARDS
  ----------------------------------------- */

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


  /* -----------------------------------------
     CONTACT
  ----------------------------------------- */

  .contact-box {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-btn {
    width: 100%;
  }


  /* -----------------------------------------
     FOOTER
  ----------------------------------------- */

  footer {
    padding: 25px 5%;
  }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 420px) {

  .logo {
    font-size: 13px;

    letter-spacing: 0.5px;
  }

  .menu-btn {
    width: 43px;
    height: 43px;

    font-size: 25px;

    border-radius: 11px;
  }

  .nav {
    top: 75px;

    right: 4%;

    width: 92%;

    border-radius: 16px;

    padding: 10px;
  }

  .nav a {
    min-height: 50px;

    font-size: 15px;

    padding: 13px 14px;
  }

  .hero {
    padding-top: 45px;
  }

  .hero h1 {
    font-size: 39px;

    letter-spacing: -1px;
  }

  .buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .feature-card {
    padding: 28px;
  }

  .card {
    padding: 32px 25px;
  }

  .contact-item {
    align-items: flex-start;

    padding: 18px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;

    min-width: 40px;
  }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}
