/* home sector */
.home-sector {
  display: flex;
  width: 80%;
  gap: 5%;
  margin: 120px auto 5% auto; /* Account for fixed nav */
  align-items: center;
}

.home-text {
  font-size: 1.25rem;
  font-family: var(--ff);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
}

.home em {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

.intro-block {
  margin-bottom: 1.5rem;
}

.hello1 {
  font-size: 4rem;
  font-weight: 700; /* Reduced from 800 */
  color: var(--text);
  line-height: 1.1;
  display: block;
  letter-spacing: -2px;
  font-family: var(--ff-heading);
}

.hello {
  font-size: inherit;
  color: var(--primary);
}

.typewriter {
  color: var(--primary);
  font-weight: 700;
}

.cursor {
  color: var(--primary);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.btn-block {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
}

.btn-block button:nth-child(1) {
  background: var(--primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-block button:nth-child(1):hover {
  background: transparent;
  color: var(--primary);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.btn-block button:nth-child(1) a {
  color: inherit;
}

.btn-block button:nth-child(2) {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-block button:nth-child(2):hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block button a {
  text-decoration: none;
  color: inherit;
}

.home-pic {
  width: 500px;
  height: 500px;
  border-radius: 30px;
  object-fit: cover;
  transition: all 0.5s ease;
  transform: rotate(3deg);
  border: 2px solid var(--secondary);
  box-shadow: 20px 20px 60px rgba(0,0,0,0.5);
  filter: grayscale(20%);
}

.home-pic:hover {
  transform: rotate(0deg);
  filter: grayscale(0%);
  /* border-color: var(--primary); */
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

/* home sector end */

/* skills sector start */

/* skills sector start */

.skill-title {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 50px;
  font-size: 2rem; /* Reduced from 2.5rem */
  font-weight: 600; /* Reduced */
  color: var(--text);
  font-family: var(--ff-heading);
}

.skills-main {
  justify-content: center;
  width: 100%;
}

.scroller {
  max-width: 100%;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller__inner {
  padding-block: 1rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.scroller[data-direction="right"] .scroller__inner {
  animation-direction: reverse;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 1rem));
  }
}

.tag-list {
  margin: 0;
  padding-inline: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.8rem 1.5rem;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tag-list li img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.tag-list li:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  color: var(--text);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

/* project sector 3 */

.project-main {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 5%;
  scrollbar-width: none;
  margin: auto;
  width: 100%;
  scroll-snap-type: x mandatory;
}

.project-title {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 30px;
  font-size: 2rem; /* Reduced from 2.5rem */
  font-weight: 600; /* Reduced */
  font-family: var(--ff-heading);
}

.product-card {
  position: relative;
  min-width: 500px;
  max-width: 550px;
  border-radius: 24px;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.15);
}

.tool-block {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tool-block .tool-img {
  width: 2rem;
  height: 2rem;
  padding: 0.4rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.product-card .main-images {
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}

.main-images h1 {
  font-size: 2rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.product-card .shoe-details .shoe_name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}

.product-card .shoe-details p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.color-option { display: none; } /* Removing unused element */

.product-card .button {
  width: 100%;
  margin-top: auto;
}

.product-card .button button {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  background: var(--secondary);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-card .button:hover button {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.button-layer { display: none; } /* Simplifying button structure */

/* about sector start */

.about {
  margin-top: 100px;
  margin-bottom: 100px;
}

.title {
  margin-bottom: 50px;
  text-align: center;
  font-size: 2rem; /* Reduced from 2.5rem */
  font-weight: 600; /* Reduced */
  color: var(--text);
  font-family: var(--ff-heading);
}

.about-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.about-pic {
  height: 500px;
  width: 500px;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  transition: all 0.5s ease;
}

.about-pic:hover {
  transform: scale(1.02);
  /* border-color: var(--primary); */
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.about-block-text {
  width: 50%;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.download {
  background: var(--secondary);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 1rem 2rem;
  border-radius: 50px;
  display: inline-block;
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.download:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

/* contact sector */
.contact {
  padding-bottom: 50px;
}

.contact-main {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
}

.email-title {
  font-size: 1.8rem; /* Reduced from 2rem */
  margin-bottom: 2rem;
  color: var(--text);
  font-weight: 600; /* Reduced */
  font-family: var(--ff-heading);
}

form {
  text-align: left;
  margin-top: 0;
  width: 550px;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

form input,
textarea {
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text);
  border: 1px solid var(--secondary);
  border-radius: 12px;
  outline: none;
  resize: none;
  width: 100%;
  padding: 1rem;
  transition: all 0.3s ease;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-sizing: border-box; /* Fix width issues */
}

form input:focus,
textarea:focus {
  border-color: var(--primary);
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

form input {
  height: auto;
}

textarea {
  height: 150px;
}

#send {
  background: var(--primary);
  width: 100%;
  padding: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  margin-top: 1rem;
}

#send:hover {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

/* short links & socials */

.links-block {
  margin-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.links {
  margin-bottom: 2rem;
  padding: 2rem;
  width: 400px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 24px;
}

.links a {
  color: var(--text-muted);
  display: block;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.links a:hover {
  color: var(--primary);
  padding-left: 10px;
}

.links li {
  margin-top: 0.5rem;
  padding-left: 0;
}

.icons-block {
  height: fit-content;
  width: 100%;
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 24px;
  text-align: center;
}

.icons-block i {
  margin: 0 10px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.icons-block i:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.icons-block div {
  text-align: center;
  display: flex;
  justify-content: center;
}

legend {
  padding: 0 10px;
  color: var(--primary);
  margin-left: 0;
  position: relative;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  width: auto;
  margin: 0 auto;
}

legend .hello {
  font-size: inherit;
  color: var(--text);
}

/* footer */

footer {
  width: 100%;
  height: 10vh;
  /* padding: 2rem 0; */
  padding-top: 2%;
  font-size: 0.9rem;
  text-align: center;
  background-color: transparent;
  color: var(--text-muted);
  margin: 2rem auto;
  border-top: 1px solid var(--glass-border);
  /* background-color: aqua; */
  align-content: center;
}

footer span {
  font-size: inherit;
}

/* tab size */

@media (max-width: 808px) {
  /* loader */
  .loading-ctn {
    font-size: 30px;
    height: 100%;
  }

  /* nav */
    .nav-list {
    display: flex; /* Changed from none */
    flex-direction: column;
    margin-left: -35%;
    margin-top: 0;
    gap: .5rem;
  }

  /* home phone */

  .home-sector {
    justify-content: center;
    flex-wrap: wrap;
    /* margin-top: 10%; */
    width: 92%;
  }

  .intro-block {
    margin-top: 0%;
    font-size: 1.8em;
  }

  .home-img-ctn {
    text-align: center;
  }

  .hello {
    /* font-size: 1.8rem; */
  }

  .home-pic {
    width: 18rem;
    height: 18rem;
    box-shadow: 6px 3px 2px 1px var(--olive);
    transform: rotate(13deg);
    transition: 1000ms;
    cursor: pointer;
    margin-top: 5%;
    margin-bottom: 5%;
    display: none;
  }

  .home-pic:hover {
    transform: rotate(0deg);
    transition: 1500ms;
    box-shadow: -2px -4px 2px 1px var(--olive);
  }

  .home-text-block {
    width: 100%;
    /* text-align: center; */
    margin-bottom: 10%;
  }

  .home-text {
    font-size: 0.8rem;
    width: 100%;
  }

  .btn-block button:nth-child(1) {
    padding: 2% 10%;
  }

  .btn-block button:nth-child(2) {
    padding: 1.8% 10%;
  }

  /* tab size */

  .skill-title {
    margin: 8% 0;
    text-align: center;
  }

  .skills-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10%;
  }

  .tag-list li {
    font-size: 1rem;
  }

  /* project */

  .project-main {
    gap: 3rem;
    margin-bottom: 15%;
  }

  .project-title {
    margin-bottom: 10%;
    margin-top: 10%;
  }

  .product-card {
    position: relative;
    min-width: fit-content;
    border-radius: 25px;
    padding: 10px 30px 30px 30px;
    z-index: 3;
    overflow: hidden;
  }

  .product-card .main-images img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: contain;
    left: 0%;
    top: -10px;
    z-index: -1;
  }

  .product-card .main-images .hello {
    /* font-size: 3rem; */
  }

  /* about */
  .about-pic {
    margin-bottom: 5%;
    margin-top: 10%;
    /* width: 18rem;
    height: 16rem; */
    box-shadow: -2px -4px 5px 3px var(--secondary);
  }

  .about-block-text {
    width: 80%;
    margin-top: 8%;
    margin-left: 5%;
    margin: auto;
    text-align: center;
    font-size: 15px;
  }

  /* contact */
  .contact-main {
    display: grid;
  }

  form input,
  textarea {
    width: 100%;
  }

  form input {
    height: 6vh;
    padding: 2%;
  }

  textarea {
    height: 6rem;
  }

  #send {
    padding: 4% 10%;
  }

  legend {
    font-size: 20px;
  }

  .links {
    width: 16rem;
    margin: 10% auto;
    width: 100%;
  }

  .links li {
    width: 100%;
    margin-top: 3%;
    padding-left: 3%;
  }

  .icons-block {
    height: fit-content;
    width: 90%;
    margin: auto;
  }

  legend {
    text-align: center;
    margin: 0;
    font-size: 1rem;
  }

  legend .hello {
    text-align: center;
    margin: 0;
    font-size: 1rem;
  }

  footer {
    margin-top: 1%;
    margin-bottom: 0%;
  }
}

/*phone size - HOME sector1 > starts */

@media (max-width: 600px) {
  /* hamburger > start */

  .hamburger {
    right: 20px;
    cursor: pointer;
    margin-top: 2%;
  }

  /* nav % menu */

  .nav-bar {
    width: 60%;
  }

  .menu {
    margin-top: 5%;
  }

  .nav-list {
    display: flex; /* Changed from none */
    flex-direction: column;
    margin-left: -35%;
    margin-top: 0;
    gap: .5rem;
  }


  .logo-block img {
    margin: auto;
    margin-right: 10%;
    width: 7em;
  }

  /* home phone */

  .home-sector {
    justify-content: center;
    flex-wrap: wrap;
    /* margin-top: -10%; */
    width: 95%;
  }

  .home-img-ctn {
    text-align: center;
  }

  .intro-block {
    margin-top: 0%;
    font-size: 1.6rem;
    text-align: start;
  }

  .home-pic {
    width: 20rem;
    height: 19rem;
    /* border-radius: 20px; */
    box-shadow: 6px 3px 2px 1px var(--secondary);
    transform: rotate(13deg);
    transition: 1000ms;
    cursor: pointer;
    margin-top: 5%;
    margin-bottom: 5%;
    display: none;
  }

  .home-pic:hover {
    transform: rotate(0deg);
    transition: 1500ms;
    box-shadow: -2px -4px 2px 1px var(--secondary);
  }

  .home-text-block {
    width: 95%;
    text-align: center;
    margin-bottom: 10%;
  }

  .hello1 {
    font-size: 6rem;
    margin: 0;
  }

  .home-text {
    font-size: 1rem;
    width: 100%;
    text-align: start;
  }

  /* skill phone size */

  .skill-title {
    margin-top: 20%;
    margin-bottom: 3%;
    text-align: center;
  }

  .skills-main {
    justify-content: center;
    margin-bottom: 10%;
  }

  .skills-main img {
    width: 2.2em;
    height: 2.2em;
  }

  /* .tag-list removed empty rule */

  .tag-list li {
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }

  /* project */

  .project-main {
    gap: 3rem;
    margin-bottom: 15%;
  }

  .project-title {
    margin-bottom: 3%;
    margin-top: 15%;
  }

  .product-card {
    position: relative;
    /* min-width: 100%; */
    border-radius: 25px;
    padding: 10px 30px 30px 30px;
    z-index: 3;
    overflow: hidden;
  }

  .product-card .main-images img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: contain;
    left: 0%;
    top: -10px;
    z-index: -1;
  }

  /* about */
  .about-pic {
    margin-bottom: 5%;
    margin-top: 10%;
    width: 20rem;
    height: 20rem;
    box-shadow: -2px -4px 5px 3px var(--secondary);
  }

  .about-block-text {
    width: 85%;
    margin-top: 8%;
    margin-left: 5%;
    margin: auto;
    text-align: center;
    font-size: 15px;
  }

  .download {
    padding: 2% 1%;
    border: none;
    cursor: pointer;
    transition: 1000ms;
    color: var(--text);
    border-radius: 20px;
    display: block;
    width: 65%;
    text-align: center;
    margin: 3% auto;
  }

  /* contact */
  .email-title {
    margin-bottom: 10%;
  }
  .contact-main {
    display: grid;
    padding-top: 3%;
    width: 100%;
  }

  form {
    text-align: center;
    margin-top: 3%;
    width: 100%;
  }

  form input,
  textarea {
    width: 100%;
    padding-left: 3%;
  }

  textarea {
    height: 8rem;
  }

  .links {
    height: fit-content;
    margin-bottom: 15%;
    margin-top: 15%;
  }

  .links li {
    width: 100%;
    margin-top: 3%;
    padding-left: 3%;
  }

  .icons-block {
    margin-bottom: 10%;
    height: fit-content;
  }

  legend {
    text-align: center;
    margin: 0;
  }

  footer {
    font-size: 13px;
  }
}
