/* Reset defaults and use box-sizing globally */
:root {
  --primary-clr: #6d75e0;
  --secondary-clr: #ed9dd7;
  --light-clr: #ffffff;
  --gradiant-bg: linear-gradient(to right, #6d75e0, #ed9dd7);
  --bg-blur: rgba(255, 255, 255, 0.5);
}

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

/* Prevent horizontal overflow */
html,
body {
  height: 100%;
  width: 100%;
  font-family: "Courier New", Courier, monospace;
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--gradiant-bg);
  color: var(--light-clr);
}

/* Main layout container */
main {
  display: flex;
  flex-direction: column;
  width: 100%; /* 👈 ensures it doesn't exceed screen width */
  max-width: 100vw; /* 👈 keeps it within viewport */
  margin: 0 auto; /* center if needed */
  background: inherit;
}
/* ---navbar--- */
.navbar {
  background: var(--bg-blur);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2.5rem;
  box-shadow: 0 2px 12px rgba(109, 117, 224, 0.08);
  font-family: "Poppins", sans-serif;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #545454;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background-color: #545454;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #6d75e0;
}

.nav-links a:hover::after {
  width: 100%;
}
.hamburger {
  display: none;
}

/* --- 1st section---- */
.hero-section {
  /* background: var(--bg-blur);
   backdrop-filter: blur(30px);
   -webkit-backdrop-filter: blur(30px); */
  background: none;
  width: 95%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.text1 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: space-between;
  color: white;
  font-size: 1.5rem;
  font-family: "Courier New", Courier, monospace;
  gap: 1.5rem;
  width: 50%;
  line-height: 1.15;
  letter-spacing: 2px;
}
.paraH {
  display: flex;
  flex-direction: column;
  font-family: "Courier New", Courier, monospace;
  gap: 0.5rem;
  padding-bottom: 2rem 0;
}
.title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.title .welcome {
  font-size: 1rem;
  display: inline-block;
}

.title .typing-words {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 6px;
  font-family: "Courier New", Courier, monospace;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  width: 0;

  
  background: rgb(255, 107, 0);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: typing 2s steps(10) forwards, blink 1s step-end infinite,
    gradientFlow 5s ease infinite;
  border-right: 2px solid rgb(255, 107, 0); /* blinking cursor */
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 12ch;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.slogan {
  font-size: 1rem;
}
.slogan span {
  background: white;
  border-radius: 25px;
  padding: 0.3rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgb(255 107 0);
}

.text1 .connect-btn {
  color: white;
  font-size: 18px;
  padding: 12px 32px;
  border: none;
  width: fit-content;
  border-radius: 25px;
}

.hero-section .img1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48%;
  padding: 2rem;
}

.img1 > img {
  width: 500px;
  padding-bottom: 2rem;
}

@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .text1 {
    width: 100%;
    text-align: center;
    align-items: center;
    font-size: 1.3rem;
    gap: 1.2rem;
  }

  .title {
    flex-direction: column;
    gap: 0.3rem;
  }

  .title .welcome {
    font-size: 1.2rem;
  }

  .title .typing-words {
    font-size: 2.2rem;
    letter-spacing: 3px;
  }

  .slogan {
    font-size: 0.95rem;
  }

  .slogan span {
    font-size: 0.95rem;
    padding: 0.25rem 0.6rem;
  }

  .hero-section .img1 {
    width: 90%;
    margin-top: 2rem;
    padding: 1rem;
  }

  .img1 img {
    width: 80%;
    height: auto;
  }

  .text1 .connect-btn {
    font-size: 1rem;
    padding: 10px 24px;
  }
}

@media (max-width: 768px) {
  .slogan {
    font-size: 0.75rem;
  }

  .slogan span {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    letter-spacing: 1px;
    word-spacing: 0.1px;
  }
}

@media (max-width: 480px) {
  .title .typing-words {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .text1 {
    font-size: 1.1rem;
  }

  .title .welcome {
    font-size: 1rem;
  }

  .img1 img {
    max-width: 280px;
  }

  .slogan {
    font-size: 0.75rem;
  }

  .slogan span {
    font-size: 0.55rem;
    padding: 0.25rem 0.4rem;
    letter-spacing: 1px;
    word-spacing: 0.1px;
  }
}

/* second section */
.about-section {
  background: linear-gradient(to right, #85d5fb, var(--primary-clr));
  border-radius: 20px;
  box-shadow: 5px 5px 10px 5px rgba(2, 2, 2, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 2rem;
  background-color: #85d5fb;
}
.text2 {
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  width: 60%;
  gap: 1rem;
}
.text2 > p {
  display: flex;
  color: #545454;
  font-size: 1.2rem;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
}
.text2 span {
  color: rgb(255, 107, 0);
  font-size: 3rem;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
}
.our-work-btn {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  padding: 0.6rem 2rem;
  margin-top: 4rem;
}
.img2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
}
.img2 > img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* ----Services section ---- */

.services-section {
  background: none;
  padding: 3rem 1.5rem;
}

.services-section h2 {
  margin-bottom: 2.5rem;
  text-align: center;
  font-size: 2.8rem;
  margin: 0.6rem 0 0;
  font-weight: bold;
  color: var(--light-clr);
  font-family: "Courier New", Courier, monospace;
}

.box-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  color: var(--light-clr);
}

.box {
  flex: 1 1 calc(33.333% - 2rem); /* 3 cards per row */
  max-width: 350px;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 15px;
  transition: transform 0.3s;
  background: linear-gradient(to right, #fba084, #fb86a3);
  background-color: var(--secondary-clr);
}

.box:hover {
  transform: scale(1.03);
}

.icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.box-title {
  color: var(--light-clr);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.box-subtitle {
  font-size: 1rem;
  color: var(--light-clr);
  font-family: "Open Sans", sans-serif;
}

/* Optional: Stack vertically on smaller screens */
@media (max-width: 768px) {
  .box {
    flex: 1 1 100%;
  }
}

/* === Enhanced Tech Stack Section === */
.tech-stack {
  background: linear-gradient(to right, #3e647e, #8673ca);
  border-radius: 20px;
  padding: 3rem 1.5rem;
  margin: 3rem auto;
  max-width: 1100px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tech-title {
  text-align: center;
  font-size: 2.4rem;
  font-family: "Courier New", Courier, monospace;
  margin-bottom: 2.5rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px #6d75e0;
}

.tech-group {
  margin-bottom: 2.5rem;
}

.tech-group h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #ffffff;
  border-left: 6px solid var(--primary-clr);
  padding-left: 0.8rem;
  font-family: "Courier New", Courier, monospace;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  align-items: center;
  font-size: 1.1rem;
  color: #ffffff;
}

.tech-icons i {
  font-size: 2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .tech-stack {
    padding: 2rem 1rem;
    border-radius: 15px;
  }

  .tech-group h3 {
    font-size: 1.2rem;
  }

  .tech-icons {
    font-size: 0.95rem;
    gap: 1rem;
  }

  .tech-icons i {
    font-size: 1.5rem;
  }
}

/* Individual Tech Icon Colors */
.html {
  color: #e34c26;
}
.css {
  color: #2965f1;
}
.js {
  color: #f0db4f;
}
.react {
  color: #61dafb;
}
.bootstrap {
  color: #7952b3;
}
.tailwind {
  color: #38bdf8;
}
.fa {
  color: #339af0;
}
.jquery {
  color: #f7df1e;
}

.php {
  color: #8993be;
}
.node {
  color: #68a063;
}
.express {
  color: #333;
}
.postgres {
  color: #336791;
}
.mysql {
  color: #00758f;
}
.supabase {
  color: #3ecf8e;
}
.wordpress {
  color: #21759b;
}

.ai {
  color: #9b59b6;
}
.sdk {
  color: #e67e22;
}
.integrations {
  color: #2ecc71;
}

.github {
  color: #171515;
}
.cpanel {
  color: #4e4e4e;
}
.git {
  color: #6e5494;
}
.vscode {
  color: #007acc;
}
.api {
  color: #4a90e2;
}
.i18n {
  color: #ff9f00;
}
.whatsapp {
  color: #128c7e;
}

/* ------projects sections---- */

.projects-section {
  background: none;
  padding: 2rem 1rem;
}
.proj-category {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  color: var(--light-clr);
  text-align: center;
  font-weight: 600;
  border-bottom: 2px solid white;
  width: fit-content;
  margin-inline: auto;
  padding-bottom: 0.3rem;
}

.projCards-Wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.card {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: 350px;
  height: auto;
  background: linear-gradient(to right, var(--primary-clr), #85d5fb);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(109, 117, 224, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: "Open Sans", sans-serif;
  border: 2px solid white;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 24px rgba(104, 163, 242, 0.25);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 3px solid white;
}

.card-description {
  padding: 1.5rem;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-description h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.card-description .tech-tools {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  margin: 0.75rem 0 1rem;
}

.badge {
  display: inline-block;
  background: white;
  color: #545454;
  padding: 0.3rem 0.6rem;
  margin: 0.2rem 0.2rem 0 0;
  font-size: 0.75rem;
  border-radius: 6px;
  line-height: 1;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.visit-btn,
.github-btn {
  text-decoration: none;
  background: #4a90e2;
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

@media (max-width: 768px) {
  .card {
    flex: 1 1 100%;
  }
}

/* -----form section---- */

/* .form-container {
  background: linear-gradient(160deg, #fdfdfe, #f9f0ff);
  width: 100%;
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #fdfdfe;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  font-family: "Poppins", sans-serif;
  border: 2px solid #ed9dd7;
}

.form-content {
  width: 100%;
}

.subtitle {
  color: #6d75e0;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.title {
  font-size: 1rem;
  font-weight: 700;
  color: #ed9dd7;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-g {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 600;
  color: #3e4fa4;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border: 1px solid #a893e3;
  border-radius: 6px;
  background: #ffffff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ed9dd7;
  box-shadow: 0 0 0 2px rgba(237, 157, 215, 0.2);
}

.submit-btn {
  padding: 0.8rem 1rem;
  background-color: #6d75e0;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background-color: #3e4fa4;
  transform: scale(1.03);
} */

/* ----footer--- */
.custom-footer {
  background: var(--bg-blur);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 1.5rem 2rem;
  border-top: 2px solid #a893e3;
}

.custom-footer-row {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}

.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social li {
  margin-bottom: 0.5rem;
}

.footer-social a {
  color: #545454;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact p {
  margin: 0.4rem 0;
  line-height: 1.6;
}

.footer-contact {
  font-size: 1rem;
}

.footer-contact a {
  color: #545454;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-contact i {
  font-size: 1rem;
}

.footer-social li,
.footer-contact p {
  background: white;
  padding: 0.3rem 0.75rem;
  border-radius: 25px;
  transition: transform 0.2s ease-in-out, background 0.2s ease-in-out;
}

.footer-social li:hover,
.footer-contact p:hover {
  background: #ffae00;
  transform: scale(1.05);
}

/* ===== Responsive: General ===== */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-section .text2,
  .about-section .img2 {
    width: 100%;
    padding: 1rem;
    align-items: center;
  }

  h6 {
    margin-top: 8px;
  }
  .text2 > p {
    display: flex;
    font-size: 14px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
  }
  .text2 > span {
    font-size: 1.8rem;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
  }
  .our-work-btn {
    margin-top: 2rem;
  }
  span {
    font-size: 1rem;
  }

  .img2 img {
    width: 100%;
    height: auto;
  }
  .projects-section {
    padding: 2rem 1rem;
    text-align: center;
  }

  .projects-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .services-section {
    flex-direction: column;
  }

  .box {
    border-right: none !important;
    border-bottom: 1.5px solid var(--light-clr);
    padding: 2rem 1rem;
  }

  .box:last-child {
    border-bottom: none;
  }

  .projCards-Wrapper {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 100%;
    max-width: 250px;
  }

  .form-g {
    flex-direction: column;
  }
}

/* ===== Responsive: Navbar ===== */

/* ✅ Final Fix for Hamburger Button Display */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: #3e4fa4;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #f6f8ff;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .nav-links.nav-active {
    display: flex;
    position: absolute;
    top: 0; /* fix */
    left: 0;
    height: 100vh; /* full screen height */
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #f6f8ff;
    z-index: 999;
  }

  .navbar.nav-open .nav-logo {
    display: none;
  }
}

.animated-btn,
.connect-btn,
.our-work-btn,
.visit-btn,
.github-btn,
.submit-btn {
  background: rgb(255, 107, 0);
  background-size: 400% 400%;
  color: white;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.3s ease-in-out;
  animation: gradientFlow 6s ease infinite;
  box-shadow: 0 4px 15px rgba(109, 117, 224, 0.2);
}

.animated-btn:hover,
.connect-btn:hover,
.our-work-btn:hover,
.visit-btn:hover,
.github-btn:hover,
.submit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(109, 117, 224, 0.3);
  cursor: pointer;
}
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
