@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: black;
}
html {
  scroll-behavior: smooth;
}

/* mobile device max  - 500px 
tab devices - 966 px
desktop device - remaining

/* ------------------- Navbar munu -------------------- */

nav {
  position: sticky;
  top: 50px;
}
.NavBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(33, 33, 33);
  padding: 16px 20px;
  border-radius: 100px;
  margin: 0 100px;
  z-index: 2;
}
.menu-bar {
  display: none;
  color: white;
}
.menu-bar::before {
  content: "☰";
  font-size: 20px;
}

.menu-bar.active::before {
  content: "✕";
}
.menu-links {
  display: flex;
}
.menu-links ul {
  display: none;
}

.menu-links ul.open {
  display: flex;
}

ul {
  display: flex;
  padding: 8px 16px;
  justify-content: space-between;
  align-items: center;
  width: 360px;
  font-family: "Fredoka", sans-serif;
  letter-spacing: 0.3px;
  font-size: 14px;
}
.menu-links li {
  list-style: none;
}
.menu-links a {
  text-decoration: none;
  color: #3bc1a8;
  transition: color 0.3s ease;
}
.menu-links a:hover {
  color: white;
}
.primary-btn {
  background-color: yellow;
  padding: 8px 32px;
  border-radius: 60px;
  transition: all 0.3s ease;
}
.primary-btn:hover {
  background-color: rgb(227, 227, 6);
}
.primary-btn a {
  font-family: "Fredoka", sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  color: black;
}
/* ------------------- resposive Tablet -------------------- */
@media (min-width: 501px) and (max-width: 1080px) {
  .NavBar {
    margin: 0 50px;
    padding: 16px 20px;
  }
  .menu-bar {
    display: flex;
    color: white;
    padding: 8px 16px;
  }
  .menu-links {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgb(33, 33, 33);
    position: absolute;
    top: 80px;
    left: 0;
    border-radius: 10px;
  }
  .menu-links li {
    padding: 12px 0;
    width: 100%;
  }
}

/* ------------------- resposive mobile -------------------- */

@media (min-width: 320px) and (max-width: 500px) {
  nav {
    position: sticky;
    top: 30px;
  }
  .NavBar {
    margin: 0 20px;
    padding: 10px 10px;
  }
  .menu-bar {
    display: flex;
    color: white;
    padding: 8px 16px;
  }
  .menu-links {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgb(33, 33, 33);
    position: absolute;
    top: 70px;
    left: 0;
    border-radius: 10px;
  }
  .menu-links li {
    padding: 12px 0;
    width: 100%;
  }
}

/* Force desktop menu visible */
@media (min-width: 1080px) {
  .menu-links ul {
    display: flex !important;
    position: static;
    flex-direction: row;
  }
}

/* ------------------- Hero section -------------------- */

.hero-container {
  height: auto;
  padding: 140px 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.profile img {
  height: 150px;
  border: 2px solid rgb(27, 27, 27);
  border-radius: 100px;
  padding: 6px;
}
.profile p {
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: white;
  padding: 20px 0;
}
.heading-section {
  display: flex;
  flex-direction: column;
}
.heading-section h1 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  line-height: 48px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 16px;
  color: white;
}
.heading-section p {
  font-family: "Fredoka", sans-serif;
  text-align: center;
  font-size: 20px;
  font-weight: 300;
  line-height: 26px;
  color: #b6b6b6;
  padding-bottom: 40px;
}

/* ------------------- resposive Tablet -------------------- */
@media (min-width: 501px) and (max-width: 1080px) {
  .hero-container {
    height: auto;
    padding: 120px 50px;
  }

  .profile img {
    height: 130px;
    padding: 6px;
  }
  .profile p {
    font-size: 14px;
    padding: 16px 0;
  }
  .heading-section {
    display: flex;
    flex-direction: column;
    padding: 0 100px;
  }
  .heading-section h1 {
    font-size: 24px;
    line-height: 34px;
  }
  .heading-section p {
    font-size: 18px;
    line-height: 24px;
  }
}
/* ------------------- resposive mobile -------------------- */

@media (min-width: 320px) and (max-width: 500px) {
  .hero-container {
    height: auto;
    margin-top: 40px;
    padding: 80px 20px;
  }

  .profile img {
    height: 100px;
    padding: 3px;
  }
  .profile p {
    font-size: 12px;
    padding: 16px 0;
  }
  .heading-section {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
  }
  .heading-section h1 {
    font-size: 20px;
    line-height: 28px;
  }
  .heading-section p {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
  }
}

/* ------------------- Services section -------------------- */
.Services-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 100px;
}
.head-section {
  padding-right: 10px;
}
.head-section h3 {
  color: white;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  line-height: 30px;
  font-weight: 300;
  padding-bottom: 40px;
}
.head-section a {
  font-family: "Fredoka", sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  color: black;
  padding: 8px 16px;
  background-color: white;
  transition: all 0.3s ease;
}

.head-section a:hover {
  background-color: rgb(225, 225, 225);
  color: black;
}

.Service-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card-item {
  background-image: linear-gradient(-45deg, #fc466b 0%, #3f5efb 100%);
  color: white;
  min-height: 250px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  border-radius: 10px;
}
.card-item h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 300;
  color: white;
}
.card-item p {
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 20px;
  color: white;
}

/* ------------------- resposive Tablet -------------------- */
@media (min-width: 501px) and (max-width: 1080px) {
  .Services-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 100px 50px;
  }
  .head-section {
    padding-right: 100px;
    padding-bottom: 30px;
  }
  .head-section h3 {
    font-size: 24px;
    font-weight: 300;
    line-height: 32px;
    padding-bottom: 40px;
  }
  .head-section a {
    font-family: "Fredoka", sans-serif;
    font-size: 14px;
  }

  .Service-card-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .card-item {
    min-height: 260px;
    padding: 16px;
  }
  .card-item h3 {
    font-family: "Playfair Display", serif;
    font-size: 24px;
  }
  .card-item p {
    font-family: "Fredoka", sans-serif;
    font-size: 14px;
    line-height: 20px;
  }
}
/* ------------------- resposive mobile -------------------- */

@media (min-width: 320px) and (max-width: 500px) {
  .Services-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 50px 20px;
  }
  .head-section {
    padding-right: 20px;
    padding-bottom: 30px;
  }
  .head-section h3 {
    font-size: 20px;
    line-height: 24px;
    padding-bottom: 30px;
  }
  .head-section a {
    font-family: "Fredoka", sans-serif;
    font-size: 14px;
  }

  .Service-card-container {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .card-item {
    min-height: 260px;
    padding: 16px;
  }
  .card-item h3 {
    font-family: "Playfair Display", serif;
    font-size: 20px;
  }
  .card-item p {
    font-family: "Fredoka", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
  }
}

/* ------------------- My WORK -------------------- */

.My-Work-Container {
  padding: 100px;
}
.Header {
  padding-right: 350px;
}

.Header h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 300;
  padding-bottom: 8px;
  color: white;
}
.Header p {
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #3bc1a8;
  margin-bottom: 50px;
}

.Item-Container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
}

/* ---------- Item ---------- */

.Item {
  width: 100%;
  aspect-ratio: 2/2;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 20px;
}

.Item-Link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.Item-Link:focus-visible .Item {
  outline: 2px solid #3bc1a8;
  outline-offset: 6px;
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* image */
.Item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

/* overlay */
.Item-Info {
  position: absolute;
  inset: 0;
  color: white;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.15),
    transparent
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* text animation */
.Item-Info h3,
.Item-Info p,
.Item-Info span {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* positions */
.Item-Info span {
  position: absolute;
  top: 40px;
  left: 30px;
  padding: 8px 24px;
  background-color: white;
  color: black;
  border-radius: 50px;
  font-family: "Fredoka", sans-serif;
  font-size: 14px;
}

.Item-Info h3 {
  position: absolute;
  bottom: 120px;
  left: 0px;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 300;
  padding: 0 30px;
}

.Item-Info p {
  position: absolute;
  bottom: 50px;
  left: 0px;
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 24px;
  padding: 0 30px;
}

/* ---------- Hover interaction ---------- */

.Item:hover img {
  filter: blur(4px);
  transform: scale(1.05);
}

.Item:hover .Item-Info {
  opacity: 1;
}

.Item:hover .Item-Info h3,
.Item:hover .Item-Info p,
.Item:hover .Item-Info span {
  opacity: 1;
  transform: translateY(0);
}

.Item:hover .Item-Info h3 {
  transition-delay: 0.1s;
}

.Item:hover .Item-Info p {
  transition-delay: 0.2s;
}

.Item:hover .Item-Info span {
  transition-delay: 0.05s;
}

/* ---------- Tablet resposive ---------- */

@media (min-width: 501px) and (max-width: 1080px) {
  .My-Work-Container {
    padding: 100px 50px;
  }
  .Header {
    padding-right: 150px;
  }
  .Header h3 {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    line-height: 28px;
    font-weight: 300;
    padding-bottom: 16px;
    color: white;
  }
  .Header p {
    font-family: "Fredoka", sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #3bc1a8;
    margin-bottom: 40px;
  }

  .Item-Container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .Item {
    width: 100%;
    aspect-ratio: 2/2;
    width: 100%;
    height: 100%;
  }

  .Item-Info span {
    position: absolute;
    top: 40px;
    left: 20px;
    padding: 8px 24px;
    background-color: white;
    color: black;
    border-radius: 50px;
    font-family: "Fredoka", sans-serif;
    font-size: 14px;
  }

  .Item-Info h3 {
    position: absolute;
    bottom: 120px;
    left: 20px;
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 300;
    padding: 0 20px 0 0;
  }

  .Item-Info p {
    position: absolute;
    bottom: 40px;
    left: 20px;
    font-family: "Fredoka", sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 20px;
    padding: 0 20px 0 0;
  }
}

/* ---------- Mobile resposive ---------- */

@media (min-width: 320px) and (max-width: 500px) {
  .My-Work-Container {
    padding: 50px 20px;
  }
  .Header {
    padding-right: 20px;
  }
  .Header h3 {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 300;
    padding-bottom: 8px;
    color: white;
  }
  .Header p {
    font-family: "Fredoka", sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #3bc1a8;
    margin-bottom: 30px;
  }
  .Item-Container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .Item {
    width: 100%;
    aspect-ratio: 2/2;
    width: 100%;
    height: 100%;
  }
  .Item-Info {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  }
  .Item-Info h3,
  .Item-Info p,
  .Item-Info span {
    opacity: 1;
    transform: translateY(0);
  }

  .Item-Info span {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 24px;
    background-color: white;
    color: black;
    border-radius: 50px;
    font-family: "Fredoka", sans-serif;
    font-size: 12px;
  }

  .Item-Info h3 {
    position: absolute;
    bottom: 100px;
    left: 20px;
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 300;
    padding: 0 20px 0 0;
  }

  .Item-Info p {
    position: absolute;
    bottom: 30px;
    left: 20px;
    font-family: "Fredoka", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    padding: 0 20px 0 0;
  }

  /* mobile-friendly hover (tap) */
  .Item:hover img {
    transform: scale(1.03);
  }
}

/* -------------------Quote -------------------- */

.quote h1 {
  padding: 100px 350px 200px 100px;
  height: auto;
  color: white;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 36px;
}
/* ---------- Tablet resposive ---------- */

@media (min-width: 501px) and (max-width: 1080px) {
  .quote h1 {
    padding: 50px 120px 150px 50px;
    font-size: 24px;
    font-family: "Playfair Display", serif;
    line-height: 36px;
  }
}

/* ---------- Mobile resposive ---------- */

@media (min-width: 320px) and (max-width: 500px) {
  .quote h1 {
    font-size: 20px;
    font-family: "Playfair Display", serif;
    line-height: 30px;
    padding: 50px 20px 100px 20px;
  }
}
/* ------------------- Footer -------------------- */

.footer {
  height: auto;
  padding-bottom: 100px;
  background-color: rgb(33, 33, 33);
}
.Footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 100px;
  padding-top: 50px;
  position: relative;
}
.footer-item {
  display: flex;
  flex-direction: column;
}
.email {
  padding-bottom: 30px;
}
.footer-item p {
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  color: #3bc1a8;
  font-weight: 400;
  margin-bottom: 10px;
}
.footer-item h4 {
  font-family: "Playfair Display", serif;
  font-size: 14px;
  color: white;
  font-weight: 400;
  margin-bottom: 10px;
}
.footer-item a {
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: white;
  font-weight: 400;
  margin-bottom: 10px;
  pointer-events: auto;
}
.footer-item a:hover {
  color: white;
  text-decoration: underline;
}

/* ---------- Tablet resposive ---------- */

@media (min-width: 501px) and (max-width: 1080px) {
  .footer {
    padding-bottom: 70px;
  }
  .Footer-container {
    margin: 0 50px;
  }
}
/* ---------- Mobile resposive ---------- */

@media (min-width: 320px) and (max-width: 500px) {
  .footer {
    padding-bottom: 10px;
  }
  .Footer-container {
    display: flex;
    flex-direction: column;
    margin: 0px 20px;
  }
  .footer-item {
    padding-bottom: 30px;
  }
  .footer-item p {
    font-size: 12px;
  }
  .footer-item h4 {
    font-size: 14px;
  }
  .footer-item a {
    font-size: 14px;
  }
}

/* ================= Scroll Reveal Animation ================= */

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* stagger support */
.reveal.delay-1 {
  transition-delay: 0.1s;
}
.reveal.delay-2 {
  transition-delay: 0.2s;
}
.reveal.delay-3 {
  transition-delay: 0.3s;
}
.reveal.delay-4 {
  transition-delay: 0.4s;
}
