@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #e9615e;
  --secondary-color: #ec9956;
  --extra-light: #f3f4f6;
  --white: #ffffff;
  --gradient-1: linear-gradient(to bottom right, #62393c, #181e41);
  --gradient-2: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.section__description {
  max-width: 600px;
  margin-inline: auto;
  color: var(--extra-light);
  text-align: center;
  line-height: 1.75rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background-image: var(--gradient-2);
  outline: none;
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

.logo {
  display: inline-block;
  padding: 10px 14px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  background-image: var(--gradient-2);
  border-radius: 50%;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--white);
  background-image: var(--gradient-1);
}

nav {
  position: fixed;
  isolation: isolate;
  top: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  z-index: 9;
}

.nav__bar {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-image: var(--gradient-1);
}

.nav__logo {
  padding: 9px 12px;
  font-size: 1.2rem;
}

.nav__bar a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  list-style: none;
  position: absolute;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background-image: var(--gradient-2);
  transform: translateY(-100%);
  transition: 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  color: var(--white);
  transition: 0.3s;
}

.nav__links a:hover {
  color: var(--white);
}


.btn__large {
  display: none;
}

.header__container {
  padding-top: 8rem;
  display: grid;
  gap: 2rem;
  isolation: isolate;
}

.header__content {
  text-align: center;
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
  text-align: center;
}

.header__content .section__description {
  margin-bottom: 2rem;
}

.header__image {
  position: relative;
  isolation: isolate;
  z-index: -1;
}

.header__image img {
  max-width: 450px;
  margin-inline: auto;
  border-radius: 25rem;
}

.header__image::after {
  position: absolute;
  content: "ARHAM";
  letter-spacing: 1.5rem;
  opacity: 0.5;
  right: 1rem;
  top: 50%;
  transform: translate(50%, -50%) rotate(90deg);
}

.about__container {
  display: grid;
  gap: 2rem;
}

.about__image {
  position: relative;
  isolation: isolate;
  max-width:400px;
  margin: auto;
}

.about__img {
  border-radius: 40%;
}

.about__bg-1,
.about__bg-2 {
  position: absolute;
  max-width: 150px;
  z-index: -1;
}

.about__bg-1 {
  top: 0;
  left: 0;
}

.about__bg-2 {
  right: 0;
  bottom: 0;
}

.about__content {
  text-align: center;
}

.about__content .section__description {
  margin-bottom: 2rem;
}

.service__grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.service__card {
  padding: 2rem 1rem;
  text-align: center;
  background-image: var(--gradient-2);
  border-radius: 1rem;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease-in-out both;
  opacity: 0;
}

.service__card:nth-child(1) {
  animation-delay: 0.2s;
}
.service__card:nth-child(2) {
  animation-delay: 0.4s;
}
.service__card:nth-child(3) {
  animation-delay: 0.6s;
}
.service__card:nth-child(4) {
  animation-delay: 0.8s;
}

.service__card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
}

.service__card span {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.service__card h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.service__card p {
  color: var(--extra-light);
  line-height: 2rem;
}



.portfolio__grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.portfolio__card {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  cursor: default;

}

.portfolio__card img {
  transition: 0.5s;
}

.portfolio__card:hover img {
  transform: scale(1.1);
}

.portfolio__banner {
  margin-top: 2rem;
  padding: 2rem;
  display: grid;
  gap: 2rem;
  text-align: center;
  background-image: var(--gradient-2);
  border-radius: 1rem;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.portfolio__banner__card span {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.portfolio__banner__card h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.portfolio__banner__card p {
  font-weight: 500;
}

.contact__container {
  text-align: center;
}

.contact__container .logo {
  margin-bottom: 1rem;
}

.contact__socials {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact__socials a {
  padding: 7px 10px;
  font-size: 1.5rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100%;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.contact__socials a:hover {
  background: var(--gradient-2);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.footer {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--extra-light);
  text-align: center;
}

#headname {
  text-align: center;
  color: white;
  margin-top: 20px;
  font-size: 2rem;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}

.card {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  width: 520px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  text-align: left;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  opacity: 1;
}

.card-image {
  /* position: relative; */
  width: 100%;
  aspect-ratio: 16 / 9; /* Maintain wide image ratio */
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: 0 0 5px black;
}

.card h4,
.card p {
  margin: 10px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block; /* Make it behave like a div */
  height: 100%;    /* Ensure full clickable area */
}

.subscribe__container {
  /* background: linear-gradient(135deg, #3e2b3a, #2b1e2f); deep plum gradient */
  background: linear-gradient(135deg, #2e1f3d, #4d264a);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 60px 30px;
  border: 1px solid #55394d;
  transition: transform 0.3s ease;
}

.subscribe__container:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.subscribe__content h2.section__header {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.subscribe__content p.section__description {
  font-size: 1.1rem;
  color: #c7c0cc;
  margin-bottom: 30px;
  line-height: 1.6;
}

.subscribe__content form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.subscribe__content input[type="text"] {
  padding: 12px 20px;
  width: 100%;
  max-width: 400px;
  background: #2b1e2f;
  color: #fff;
  border: 2px solid #70576b;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.subscribe__content input[type="text"]::placeholder {
  color: #a88fa4;
}

.subscribe__content input[type="text"]:hover,
.subscribe__content input[type="text"]:focus {
  border-color: #ff8c66;
  background: #3c2b3f;
}

.subscribe__content .btn {
  background-color: #ff8c66; /* same as contact button */
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(255, 140, 102, 0.3);
}

.subscribe__content .btn:hover {
  background-color: #ff7043;
  transform: scale(1.05);
}

/* 1️⃣  Outer <section> par breathing‑room  */
#contact {
  /* upar‑neeche 100px ka gap, left‑right 20px (mobile friendly) */
  padding: 140px 3  0px;
  box-sizing: border-box;
}

/* 2️⃣  Actual subscribe box centre & max‑width */
.section__container.subscribe__container {
  /* zyada chaurai se rokne ke liye */
  max-width: 1170px;
  /* max-width: 77%; */
  /* horizontal centre  */
  margin: 0 auto;
  /* inner padding thoda bada */
  padding: 80px 5 0px;
}

.subscribe__content button.btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(to right, #ff5f6d, #ffc371);
  color: white;
  border: none;
  border-radius: 999px; /* full pill shape */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.subscribe__content button.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.subscribe__content input[type="email"],
.subscribe__content input[type="text"],
.subscribe__content textarea {
  width: 100%;
  max-width: 500px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  outline: none;
  transition: border 0.3s ease;
}

.subscribe__content input[type="email"]::placeholder,
.subscribe__content input[type="text"]::placeholder,
.subscribe__content textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.subscribe__content input[type="email"]:focus,
.subscribe__content input[type="text"]:focus,
.subscribe__content textarea:focus {
  border: 2px solid var(--primary-color); /* or a gradient border */
}


/* 3️⃣  Responsive tweak – mobile par aur gap de do */
@media (max-width: 768px) {
  #contact {
    padding: 80px 20px;
  }
  .section__container.subscribe__container {
    margin: 0 10px;      /* left‑right chhota margin */
    padding: 50px 20px; /* andar ka padding halka kam */
  }
  .subscribe__content h2.section__header {
    font-size: 1.75rem;
  }

  .subscribe__content p.section__description {
    font-size: 1rem;
    line-height: 1.6rem;
  }

  .subscribe__content input[type="email"],
  .subscribe__content input[type="text"] {
    width: 100%;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .subscribe__content h2.section__header {
    font-size: 2rem;
  }

  .subscribe__content p.section__description {
    font-size: 1rem;
  }

  .subscribe__content input[type="text"] {
    width: 90%;
  }
}




@media (max-width: 768px) {
  .card {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .card {
    width: 90%;
  }
}


@keyframes animation1 {
  0% {
    transition: 2s;
    box-shadow: 0px 0px 50px rgba(130, 26, 228, 0.847);
  }
  50% {
    transition: 2s;
    box-shadow: 5px 5px 30px blueviolet;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== Scrollbar Customization ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f4f4f4;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #ff7e5f, #feb47b);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #ff6a00, #ee0979);
}

/* Firefox Support */
body {
  scrollbar-width: thin;
  scrollbar-color: #ff7e5f #f4f4f4;
}

@media (width > 576px) {
  .service__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__banner {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
}

@media (width > 768px) {
  nav {
    padding: 2rem 1rem;
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__bar {
    padding: 0;
    background-image: none;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    padding: 0;
    width: unset;
    position: static;
    transform: none;
    flex-direction: row;
    background-image: none;
  }

  .nav__links a:hover {
    color: var(--secondary-color);
  }

  .nav__links li:last-child {
    display: none;
  }

  .btn__large {
    display: flex;
  }

  .header__container {
    padding-top: 5rem;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
  }

  .header__image {
    grid-area: 1/3/2/5;
  }

  .header__image img {
    margin-inline-start: unset;
  }

  .header__content {
    grid-area: 1/1/2/4;
    text-align: left;
  }

  .typing-name {
  display: inline-block;
  border-right: 2px solid #fff;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 2s steps(6) 1s forwards, blink 0.7s infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 5.2ch }
}

@keyframes blink {
  0%, 100% { border-color: transparent }
  50% { border-color: #fff }
}

  .header__content h1 {
    font-size: 6rem;
    line-height: 6rem;
    text-align: left;
  }

  .header__content .section__description {
    text-align: left;
    margin-inline-start: unset;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__content,
  .about__content :is(.section__header, .section__description) {
    text-align: left;
  }

  .service__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio__container :is(.section__header, .section__description) {
    text-align: left;
    margin-inline-start: unset;
  }

  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio__banner {
    grid-template-columns: repeat(3, 1fr);
  }
}