:root {
  --primary-bg-color: #121212;
  --primary-bg-color-light: #1e1e1e;
  --secondary-bg-color: #242424;
  --bg-color-invrse: #e7e7e7;
  /* Text colors */
  --primary-text-color: #fff;
  --secondary-text-color: #a0a0a0;
  --secondary-text-color-dark: #1e1e1e;
  --primary-text-color-dark: #090909;
  /* Accents & Interaction */
  --hover: #3a3a3a;
  --border: #333333;
  --accent: #7c3aed;
  --accent-hover: #6512f6;
  /* gradients */
  --gradient-btn: 135deg, #7c3aed, #9333ea;
  /* shadows */
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-glow-white: 0 0 8px rgba(231, 228, 228, 0.08);
  --shadow-glow-accent: 0 2px 12px rgba(124, 58, 237, 0.4);
}

.light-theme {
  --primary-bg-color: #ffffff;
  --primary-bg-color-light: #f9f9f9;
  --secondary-bg-color: #f1f1f1;
  --bg-color-invrse: #121212;
  /* Text colors */
  --primary-text-color: #090909;
  --secondary-text-color: #555555;
  --secondary-text-color-dark: #ffffff;
  --primary-text-color-dark: #f4f4f4;
  /* Accents & Interaction */
  --hover: #eaeaea;
  --border: #dcdcdc;
  --accent: #7c3aed;
  --accent-hover: #6512f6;
  /* gradients */
  --gradient-btn: 135deg, #7c3aed, #9333ea;
  /* shadows */
  --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-glow-white: 0 0 8px rgba(0, 0, 0, 0.05);
  --shadow-glow-accent: 0 0 12px rgba(124, 58, 237, 0.3);
}

/* === OVERFLOW GUARD === */

/* Make sure all elements stay inside screen */

*,
*::before,
*::after {
  box-sizing: border-box;
  max-width: 100%;
}

/* Kill unwanted horizontal scroll */

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Handle images & media */

img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Break long words/URLs instead of overflowing */

p,
span,
a,
div {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Inputs & buttons safe sizing */

input,
textarea,
button {
  max-width: 100%;
  display: block;
}

/* Tables responsive */

table {
  width: 100%;
  border-collapse: collapse;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  margin: 0;
  text-shadow: var(--shadow-glow-accent);
}

a {
  text-decoration: none;
  color: var(--primary-text-color);
}

p {
  line-height: 30px;
  letter-spacing: 0.05em;
}

li {
  list-style: none;
}

h4 {
  text-align: center;
}

body {
  background: var(--primary-bg-color);
  font-family: arial;
  user-select: none;
  cursor: pointer;
}

nav {
  height: 70px;
  width: 100%;
  background: var(--primary-bg-color);
  text-align: center;
  position: fixed;
  z-index: 888;
}

.nav-show {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  margin: 0 auto;
}

nav img {
  height: 50px;
  width: 50px;
  z-index: 999;
}

.nav-list {
  display: flex;
  align-items: center;
}

.navli {
  color: var(--primary-text-color);
  display: none;
  width: fit-content;
  height: fit-content;
  padding: 5px;
  position: relative;
}

.navli::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.navli:hover::before {
  width: 100%;
}

.nav-list li {
  font-weight: bold;
}

.toggle-btn {
  font-size: 25px;
  color: var(--accent);
  cursor: pointer;
}

.navli:hover {
  color: var(--accent);
  transition: 0.3s ease-in-out;
  transform: scale(1.1);
}

nav .fas {
  font-size: 30px;
  color: var(--accent);
  font-weight: bolder;
}

.navmenu {
  box-shadow: var(--shadow-soft);
}

.fas {
  font-size: 30px;
  color: var(--primary-text-color);
}

.nav-hide {
  width: 100%;
  display: none;
  background-color: var(--primary-bg-color);
  position: fixed;
  z-index: 999;
  height: 100vh;
}

.nav-hide li {
  color: var(--secondary-text-color);
  background: var(--primary-bg-color);
  font-size: 25px;
  display: flex;
  height: 50px;
  align-items: center;
  margin-top: 2px;
  box-shadow: var(--shadow-soft);
  border-radius: 8px;
  z-index: 999;
}

.nav-hide li:hover {
  background: var(--primary-bg-color-light);
  font-weight: bold;
}

.anwrap {
  padding: 15px;
}

.anwrap:hover {
  color: var(--accent);
  transition: 0.3s ease-in-out;
  padding-left: 50px;
}

.nav-menu-show {
  width: 50px;
  display: flex;
  justify-self: flex-end;
}

@media (min-width: 768px) {
  .navli {
    display: flex;
  }
  .navmenu {
    display: none;
  }
  .nav-list {
    width: 70%;
    display: flex;
    justify-content: space-evenly;
    font-size: 16px;
  }
  .nav-hide {
    display: none;
  }
}

.home {
  width: 100%;
  z-index: -1;
  height: fit-content;
  margin-top: 100px;
  padding: 10px;
}

.image-container {
  border-radius: 50%;
  padding: 2px;
  height: 200px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
}

.image-container img {
  border-radius: 50%;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.welcome h4 {
  color: var(--primary-text-color);
  font-size: 30px;
}

.welcome article {
  color: var(--secondary-text-color);
  text-align: center;
  font-size: 30px;
}

.welcome span {
  color: var(--accent);
}

.welcome p {
  color: var(--primary-text-color);
  text-align: center;
  width: 80%;
  margin-top: 20px;
  font-family: Arial;
  font-size: 18px;
}

.about {
  background: var(--secondary-bg-color);
  height: fit-content;
  width: 100%;
  padding: 30px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: 1rem;
}

.about-freelancing {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-info {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about h4 {
  font-size: 30px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  width: 150px;
  color: var(--primary-text-color);
}

.welcomemessage {
  color: var(--primary-text-color);
  width: 85%;
  font-family: sans-serif;
  font-size: 18px;
}

.about-paragraph {
  border-left: 3px solid var(--accent);
  margin: 5px;
  color: var(--accent);
  padding: 5px;
  font-size: 20px;
}

.WhatsApp {
  width: 80%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 1rem;
  border: none;
  transition: background 0.3s ease-in-out;
  box-shadow: var(--shadow-glow-white);
  background: var(--bg-color-invrse);
  color: var(--accent);
  font-weight: 600;
}

.WhatsApp:hover {
  background: var(--accent);
  color: var(--primary-text-color);
  box-shadow: var(--shadow-soft);
  box-shadow: var(--shadow-glow-accent);
  transform: scale(1.05);
}

.download {
  width: 80%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--gradient-btn);
  font-size: 20px;
  border-radius: 1rem;
  border: none;
  transition: background 0.3s ease-in-out;
  box-shadow: var(--shadow-glow-white);
  margin-top: 20px;
  font-weight: 600;
}

.download:hover {
  box-shadow: var(--shadow-soft);
  background: var(--bg-color-invrse);
  color: var(--accent);
  box-shadow: var(--shadow-glow-accent);
  transform: scale(1.05);
}

.skillscard {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  text-align: center;
  margin: 0 auto;
  gap: 10px;
  background: var(--primary-bg-color);
  font-family: sans-serif;
}

.skill h4 {
  font-size: 30px;
  border-bottom: 2px solid var(--accent);
  width: 150px;
  text-align: center;
  color: var(--primary-text-color);
  margin: 15px auto;
}

.skillscard article {
  text-align: center;
  border-radius: 7px;
  background: var(--secondary-bg-color);
  padding: 15px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: space-between;
  box-shadow: var(--shadow-glow-white);
  color: var(--primary-text-color);
}

.skillscard article:hover {
  transform: scale(1.05);
  transition: 0.3s ease-in-out;
}

.skill img {
  margin: 0 auto;
}

.projects {
  width: 100%;
  height: fit-content;
}

.projects h4 {
  font-size: 30px;
  border-bottom: 2px solid var(--accent);
  width: 150px;
  margin: 30px auto;
  color: var(--primary-text-color);
}

.project-card {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
  padding: 10px 0;
  width: 95%;
  margin-top: 20px;
}

.project-card img {
  margin: 0 auto;
  width: 90%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-glow-accent);
}

.project-info {
  height: 400px;
  width: 95%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  color: var(--secondary-text-color);
}

.projectlabel {
  color: var(--accent);
  font-size: 20px;
  font-weight: 600;
}

.project-info article {
  font-style: italic;
  font-weight: 600;
}

.language-used {
  display: flex;
  justify-content: space-evenly;
  width: 90%;
  margin: 0 auto;
  gap: 5px;
}

.language-used article {
  width: fit-content;
  height: fit-content;
  padding: 10px 8px;
  background: var(--secondary-bg-color);
  border-radius: 1rem;
  text-align: center;
  font-weight: 600;
  padding: 10px;
}

.download-site {
  color: var(--bg-color-invrse);
}

.download-site:hover {
  color: var(--primary-text-color);
}

.view-site {
  color: var(--accent);
}

.view-site:hover {
  color: var(--accent-hover);
}

.testimonials {
  width: 100%;
  height: fit-content;
  padding: 10px 0;
}

@media (max-width: 639px) {
  .testimonial-wrapper {
    width: 90%;
    height: 380px;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    margin: 0 auto;
    padding: 0 0.5rem;
  }
  .testimonial-card {
    flex: 0 0 100%;
    scroll-behavior: smooth;
    scroll-snap-align: start;
  }
}

@media (min-width: 640px) {
  .testimonial-wrapper {
    width: 100%;
    height: fit-content;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    text-align: center;
    margin: 0 auto;
    gap: 10px;
  }
  .scroller {
    display: none;
  }
}

.testimonialh4 {
  font-size: 30px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  width: 200px;
  color: var(--primary-text-color);
  margin: 15px auto;
  text-align: center;
}

.testimonial-card {
  width: 80%;
  height: 350px;
  margin: 10px auto;
  text-align: center;
  background: var(--secondary-bg-color);
  border-radius: 1rem;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: inset var(--shadow-soft);
}

.testimonial-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  padding: 4px;
  background: transparent;
}

.testimonial-card article {
  color: var(--primary-text-color);
  font-size: 16px;
  font-weight: 600;
}

.testimonial-card label,
.testimonial-card p {
  color: var(--secondary-text-color);
  margin-bottom: 10px;
}

.fa-star {
  color: yellow;
  font-size: 20px;
}

.fa-angle-double-left,
.fa-angle-double-right {
  color: var(--accent);
}

.contact {
  width: 90%;
  height: fit-content;
  background: var(--primary-bg-color-light);
  margin: 0 auto;
  border-radius: 1rem;
  padding: 10px;
}

.contact h4 {
  color: var(--primary-text-color);
  font-size: 25px;
  border-bottom: 2px solid var(--accent);
  width: 150px;
  margin: 30px auto;
  color: var(--primary-text-color);
}

.contact img {
  width: 100%;
  margin: 0 auto;
}

.contact p {
  width: 95%;
  text-align: center;
  color: var(--secondary-text-color);
  font-weight: 600;
  margin-bottom: 10px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input {
  padding-left: 10px;
  width: 90%;
  margin: 0 auto;
  border-radius: 1rem;
  background-color: transparent;
  border: 2px solid var(--hover);
  box-shadow: var(--shadow-soft);
}

.credentials {
  height: 40px;
}

.Message-input {
  height: 90px;
  position: relative;
  padding-left: 10px;
  width: 90%;
  margin: 0 auto;
  border-radius: 1rem;
  background-color: transparent;
  border: 2px solid var(--hover);
  box-shadow: var(--sh2adow-soft);
  padding-top: 10px;
  color: var(--primary-text-color);
}

.Message-input:focus {
  box-shadow: var(--gradient-btn);
  outline: none;
}

form input:focus {
  color: var(--primary-text-color);
  box-shadow: var(--gradient-btn);
  outline: none;
}

.Message-input::placeholder {
  position: absolute;
  top: 10px;
}

form input:not(:placeholder-shown) {
  color: var(--primary-text-color);
}

form button {
  width: 90%;
  height: 40px;
  margin: 0 auto;
  border-radius: 1rem;
  border: none;
  text-align: center;
  background: var(--accent);
  color: var(--gradient-btn);
  font-size: 20px;
  transition: background 0.3s ease-in-out;
  box-shadow: var(--shadow-glow-white);
}

form button:hover {
  background: var(--bg-color-invrse);
  color: var(--accent);
  font-weight: 600;
  box-shadow: var(--shadow-glow-accent);
  transform: scale(1.05);
}

footer {
  color: var(--secondary-text-color);
  padding: 30px 5px;
  text-align: center;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.fab {
  font-size: 25px;
}

.footer-contact p {
  font-size: 14px;
}

.fas {
  font-size: 16px;
}

.logo-block {
  display: flex;
  margin: 0 auto;
}

.logo-text {
  text-align: center;
}

.logo-text h3 {
  color: var(--primary-text-color);
}

.logo-text p {
  color: var(--secondary-text-color);
}

.footer-description {
  width: 90%;
  margin: 10px 0;
}

.logo-icon {
  width: 50px;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  margin-top: 10px;
}

@media (min-width: 768px) {
  .home {
    width: 100%;
    display: flex;
    height: fit-content;
    justify-content: space-evenly;
    padding: 0 20px;
    align-items: center;
    margin-top: 70px;
  }
  .image-container {
    width: 100%;
    height: 100%;
  }
  .image-container img {
    border-radius: 1px;
  }
  .image-container-wrapper {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100%;
  }
  .welcome {
    width: 70%;
  }
  .aboutwrapper {
    display: flex;
    flex-direction: row;
  }
  .about-info {
    width: 50%;
  }
  .about-freelancing {
    width: 50%;
  }
  .project-card {
    display: flex;
    flex-direction: row;
    padding: 10px;
    border-radius: 1rem;
  }
  .project-cardinverse {
    display: flex;
    flex-direction: row-reverse;
  }
  .project-card img {
    width: 50%;
  }
  .project-info {
    width: 50%;
    padding: 40px;
  }
  .testimonial-wrapper {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    text-align: center;
    margin: 0 auto;
    gap: 10px;
  }
  .scroller {
    display: none;
  }
  .contact {
    width: 100%;
  }
  .contact-img {
    width: 100%;
    display: flex;
    gap: 15px;
  }
  .contact img {
    width: 50%;
    margin: 0 auto;
  }
  .contact-form {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  form {
    width: 400px;
  }
}

section,
h4 {
  scroll-margin-top: 70px;
}

/* Spinner style */

.spinner {
  border: 3px solid var(--bg-color-invrse);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
