*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg-surface: #010125;

  --primary: #8b5cf6;

  --text-muted: #9ca3af;

  --border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: #010125;
  color: #f5f5f5;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  padding-top: 80px;
}

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  overflow-x: clip;
  /* better than hidden */
}

.left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: all 0.4s ease;
  border-radius: 6px;
}

/* text animation */
.left span {
  position: relative;
  transition: color 0.4s ease;
}

/* underline animation */
.left span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7f5cff, #b084ff);
  transition: width 0.4s ease;
}

/* 🔥 HOVER EFFECT */
.left:hover .logo {
  transform: rotate(-8deg) scale(1.15);
  filter: drop-shadow(0 0 10px rgba(127, 92, 255, 0.8));
}

.left:hover span {
  color: #b084ff;
}

.left:hover span::after {
  width: 100%;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0);
  }
}

.logo {
  animation: float 3s ease-in-out infinite;
}

/* Mobile devices */
@media (max-width: 768px) {
  .left:active .logo,
  .left:focus .logo {
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(127, 92, 255, 0.8));
  }

  .left:active span,
  .left:focus span {
    color: #b084ff;
  }

  .left:active span::after,
  .left:focus span::after {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .logo {
    filter: drop-shadow(0 0 8px rgba(127, 92, 255, 0.5));
  }
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6vw;
  height: auto;
  min-height: 80px;
  background: #0b0b45;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

@media (max-width: 768px) {
  nav,
  .firstsection,
  .services,
  .projects,
  main hr {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

.left {
  font-size: 1.4rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .left {
    font-size: 1rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

nav ul {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li {
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
}

nav ul li a:hover {
  color: #9c97f1;
}

/* Hamburger menu */
.hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  z-index: 1001;
}

.rightsection img {
  transform: rotateY(-25deg);
}

/* Mobile styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .right {
    display: none;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(11, 11, 69, 0.95);
    padding: 12px 0;
    z-index: 999;
    border-top: 1px solid #9c97f1;
  }

  .right.active {
    display: flex;
  }

  .right li a {
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
  }

  .right li a:hover {
    background: #9c97f1;
    color: #0b0b45;
  }

  body:not(.darkmode) .right li a:hover {
    background-color: #1b2331;
    color: snow;
  }
}

body:not(.darkmode) .right.active {
  background-color: #e8e8e8;
}

/* ye css shuru ma header section ma jo js lgaya ha auto type us k liyay ha */
.typed-cursor {
  color: #bfc3ff;
  /* Aapka theme color */
  text-shadow: 0 0 10px #1e2167;
  font-weight: bold;
}

.firstsection {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 70px 6vw;
  gap: 40px;
  flex-wrap: wrap;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: #010125;
  padding: 4rem 6vw;
  flex-wrap: wrap;
}

.about-img img {
  width: 100%;
  max-width: 320px;
  border-radius: 1.5rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.4);
}

.about-content {
  flex: 1 1 400px;
  color: #f5f5f5;
}

.about-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  text-align: left;
}

.about-content h3 {
  font-size: 1.8rem;
  color: #9c97f1;
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about-content .btn {
  padding: 12px 24px;
  background: #1e2167;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.firstsection .leftsection .buttons a {
  text-decoration: none;
  color: #fff;
}

.about-content .btn:hover {
  background: #2a2fa3;
}

body:not(.darkmode) .about {
  background-color: #eef2f6;
}

body:not(.darkmode) .about-content .btn {
  background: #6b7280;
  color: black;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
    padding: 3rem 4vw;
  }

  .about-content h2,
  .about-content h3 {
    text-align: center;
  }

  .about-content p {
    font-size: 1rem;
  }

  .about-img img {
    margin-bottom: 2rem;
  }
}

/* Services Section */
.services {
  padding: 60px 6vw;
  text-align: center;
}

.services h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem;
}

/* Wrapper to limit width */
.services-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Container for flex layout */
.services-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Individual service box */
.services-box {
  flex: 1 1 300px;
  max-width: 460px;
  background: #0b0b45;
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  text-align: center;
  border: 0.2rem solid #9c97f1;
  transition: transform 0.3s ease;
}

body:not(.darkmode) .services-box {
  /* 
    flex: 1 1 300px;
    max-width: 460px; */
  background: var(--text-muted);
  /* padding: 3rem 2rem 4rem;
    border-radius: 2rem; */
  text-align: center;
  border: 0.2rem solid var(--border);
  transition: transform 0.3s ease;
}

body:not(.darkmode) .services-box:hover {
  border-color: var(--text);
}

.services-box:hover {
  border-color: #7c6cff;
  transform: translateY(-8px);
}

.services-box h3 {
  color: #9c97f1;
  margin-bottom: 1rem;
}

body:not(.darkmode) .services-box h3 {
  color: #0f1724;
  margin-bottom: 1rem;
}

body:not(.darkmode) .services-box .fa-solid {
  color: var(--text-muted);
}

.services-box p {
  font-size: 0.95rem;
  color: #f5f5f5;
  margin: 1rem 0 3rem;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #9c97f1;
  color: #0b0b45;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

/* .btn:hover {
  background: #cfc9ff;
} */

/* Responsive */
@media (max-width: 768px) {
  .services-box {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.services-box i {
  font-size: 5rem;
  color: blueviolet;
}

.services-box h3 {
  font-size: 1.9rem;
}

.firstsection > div {
  flex: 1 1 400px;
}

.leftsection {
  font-size: clamp(1.6rem, 3vw, 3rem);
}

.purple {
  color: blueviolet;
}

body:not(.darkmode) .purple {
  color: #8a2be2;
}

#element {
  color: blueviolet;
  font-weight: 600;
}

/* gpt buttons code */
.buttons {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  perspective: 900px;
}

/* Button base */
.btn {
  width: 190px;
  max-width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 2px solid #2b0a3d;
  background: linear-gradient(135deg, #5a189a, #370d5e);
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  box-shadow:
    0 10px 0 #32055a,
    0 18px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* Anchor */
.btn a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #b582d3;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* 3D base layer */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #9d4edd, #7b2cbf);
  transform: translateZ(-14px);
}

/* Light reflection */
.btn::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22),
    transparent 65%
  );
  transition: transform 0.6s ease;
}

/* Hover */
.btn:hover {
  transform: translateY(-6px) rotateX(14deg);
  box-shadow:
    0 16px 0 #12001f,
    0 28px 45px rgba(0, 0, 0, 0.45);
}

.btn:hover::after {
  transform: translateX(50%);
}

/* Click */
.btn:active {
  transform: translateY(3px);
  box-shadow:
    0 6px 0 #12001f,
    0 12px 20px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 50%;
    max-width: 200px;
  }

  .btn:hover {
    transform: translateY(-6px);
    /* less tilt on mobile */
  }
}

/* light mode gpt buttons */
/* ============================= */
/* LIGHT MODE BUTTONS */
/* ============================= */
body:not(.darkmode) .btn {
  border: 2px solid var(--border);
  background: var(--card-bg);
  box-shadow:
    0 10px 0 var(--border),
    0 18px 30px rgba(0, 0, 0, 0.25);
}

body:not(.darkmode) .btn a {
  color: var(--text);
}

body:not(.darkmode) .btn::before {
  background: var(--bg);
}

body:not(.darkmode) .btn:hover {
  transform: translateY(-6px) rotateX(12deg);
  box-shadow:
    0 16px 0 var(--border),
    0 28px 45px rgba(0, 0, 0, 0.35);
}

body:not(.darkmode) .btn:active {
  transform: translateY(3px);
  box-shadow:
    0 6px 0 var(--border),
    0 12px 20px rgba(0, 0, 0, 0.25);
}

.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

body:not(.darkmode) .service-btn {
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow:
    0 6px 0 var(--border),
    0 12px 20px rgba(0, 0, 0, 0.2);
}

body:not(.darkmode) .service-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bg);
  transform: translateZ(-10px);
}

body:not(.darkmode) .service-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 0 var(--border),
    0 18px 30px rgba(0, 0, 0, 0.3);
}

body:not(.darkmode) .service-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 var(--border),
    0 8px 14px rgba(0, 0, 0, 0.2);
}

body.darkmode .service-btn {
  color: #e0aaff;
  background: linear-gradient(135deg, #5a189a, #240046);
  border: 1px solid #7b2cbf;
  box-shadow:
    0 6px 0 #12001f,
    0 12px 22px rgba(0, 0, 0, 0.6);
}

/* 3D base */
body.darkmode .service-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #9d4edd, #5a189a);
  transform: translateZ(-10px);
}

/* Hover */
body.darkmode .service-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 0 #0b0014,
    0 18px 30px rgba(0, 0, 0, 0.7);
}

/* Press */
body.darkmode .service-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 #0b0014,
    0 8px 14px rgba(0, 0, 0, 0.6);
}

/* gpt start code */
/* BUTTONS WRAPPER */
.buttons {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  perspective: 900px;
}

.btn {
  width: 190px;
  max-width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 2px solid #2b0a3d;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  overflow: hidden;
}

/* Anchor inside button */
.btn a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* 3D base layer */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translateZ(-12px);
  transition: all 0.3s ease;
}

/* Light reflection */
.btn::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.25),
    transparent 65%
  );
  transition: transform 0.6s ease;
   background: linear-gradient(135deg, #5a189a, #240046);
}

/* Hover / Press */
.btn:hover {
  transform: translateY(-6px) rotateX(12deg);
}

.btn:hover::after {
  transform: translateX(50%);
}

.btn:active {
  transform: translateY(3px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 50%;
    max-width: 200px;
  }

  .btn:hover {
    transform: translateY(-4px);
  }
}

/* LIGHT MODE 3D BUTTONS */
body:not(.darkmode) .btn {
  background: linear-gradient(135deg, var(--card-bg), var(--bg));
  border: 2px solid var(--border);
  box-shadow:
    0 6px 0 var(--border),
    0 12px 22px rgba(0, 0, 0, 0.2);
}

body:not(.darkmode) .btn a {
  color: var(--text);
}

/* 3D base */
body:not(.darkmode) .btn::before {
  background: linear-gradient(135deg, var(--text-muted), var(--text));
}

body:not(.darkmode) .btn::after {
  background:
    linear-gradient(135deg, var(--text-muted), var(--card-bg)),
    transparent 65%;
}

/* Hover */
body:not(.darkmode) .btn:hover {
  box-shadow:
    0 12px 0 var(--text-muted),
    0 22px 40px rgba(0, 0, 0, 0.25);
}

/* Press */
body:not(.darkmode) .btn:active {
  box-shadow:
    0 4px 0 var(--text-muted),
    0 8px 14px rgba(0, 0, 0, 0.2);
}

/* ====================================== */
/* SERVICE BUTTONS */
.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

body:not(.darkmode) .service-btn {
  color: var(--text);
  background: linear-gradient(135deg, var(--text-muted), var(--card-bg));
  border: 1px solid var(--border);
  box-shadow:
    0 6px 0 var(--border),
    0 12px 20px rgba(0, 0, 0, 0.15);
}

body:not(.darkmode) .service-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--text), var(--text-muted));
  transform: translateZ(-10px);
}

body:not(.darkmode) .service-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 0 var(--text-muted),
    0 18px 30px rgba(0, 0, 0, 0.2);
}

body:not(.darkmode) .service-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 var(--text-muted),
    0 8px 14px rgba(0, 0, 0, 0.15);
}

/* end gpt buttons code */

/* hr line */
main hr {
  border: none;
  height: 1px;
  background: #9c97f1;
  margin: 40px 6vw;
}

/* experience section */
.secondsection {
  max-width: 1200px;
  margin: auto;
  padding: 40px 6vw;
}

.text-gray {
  color: gray;
  font-size: 0.9rem;
}

.secondsection h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 40px;
}

.secondsection .box {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  flex-wrap: wrap;
}

.secondsection .box::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 2px;
  background: #f5f5f5;
}

.vertical-lines {
  position: relative;
  width: 220px;
  padding-top: 85px;
}

.vertical-lines::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: #fff;
}

.image-top {
  width: 50px;
  position: absolute;
  top: -23px;
  left: 50%;
  transform: translateX(-50%);
}

.vertical-tittle {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.vertical-desc {
  font-size: 0.8rem;
  color: #ccc;
}

/* projects */
/* Projects Header */
.projects-header-reveal {
  text-align: center;
  margin-bottom: 4rem;
}

.projects-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.projects-title span {
  color: blueviolet;
  position: relative;
}

.projects-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 4px;
  background: blueviolet;
  border-radius: 10px;
  opacity: 0.4;
}

.section-subtitle {
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  color: #bdbdbd;
  line-height: 1.7;
}

/* --- Projects Section --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: #1c1c2b;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.4s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
  border-color: blueviolet;
}

body:not(.darkmode) .project-card:hover {
  border-color: var(--text);
}

.project-img {
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 25px;
  text-align: left;
}

.project-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(138, 43, 226, 0.15);
  color: blueviolet;
  font-weight: 600;
}

body:not(.darkmode) .tag {
  background-color: var(--text-muted);
  color: #010125;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: white;
}

body:not(.darkmode) .project-title {
  font-size: 1.4rem;
  margin-bottom: 11px;
  color: var(--bg-surface);
}

.project-desc {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 20px;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: blueviolet;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-link:hover {
  text-decoration: underline;
}

body:not(.darkmode) .project-link:hover {
  text-decoration: underline;
  color: var(--text-muted);
}

/* =====================
   CONTACT SECTION
 */
.contact-section {
  padding: 4rem 6vw;
  font-size: 2rem;
  text-align: center;
  background: #010125;
  color: #f5f5f5;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-section h2 {
  margin-bottom: 3rem;
}

.contact-section form {
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

.contact-section form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-section form .input-box input,
.contact-section form .input-box textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: blueviolet;
  background: #010125;
  border-radius: 1.2rem;
  margin: 0.7rem 0;
}

.contact-section form textarea {
  min-height: 200px;
  resize: none;
}

.contact form .input-box {
  border: 2px solid black;
}

@media (max-width: 768px) {
  .contact form .input-box input {
    width: 100%;
  }
}

.contact form .btn {
  margin-top: 2rem;
  cursor: pointer;
}

/* footer */
.site-footer {
  background: linear-gradient(180deg, #0b0b45, #06061f);
  padding: 50px 6vw;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-avatar {
  width: 70px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.footer-col h4 {
  margin-bottom: 10px;
  color: #cfc9ff;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: #dfe0ff;
  text-decoration: none;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col a:hover {
  color: #9c97f1;
}

.footer-col-about {
  display: flex;
  flex-direction: column;
  /* sab ek column mein */
  align-items: center;
  /* center horizontally */
  text-align: center;
  /* text center aligned */
  gap: 8px;
  /* thoda spacing between items */
}

.footer-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid #1e2167;
  /* stylish border */
}

.footer-col-about h3 {
  font-size: 1.2rem;
  color: #cfc9ff;
  margin-bottom: 4px;
}

.par {
  font-size: 0.95rem;
  color: #9295c2;
  font-weight: 500;
  margin-bottom: 4px;
}

.social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* Social icons container */
.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.social-icons .icon {
  position: relative;
  font-size: 25px;
  color: snow;
  transition: color 0.3s ease;
}

/* Icon base style */
.icon {
  position: relative;
  font-size: 30px;
  color: #333;
  transition: color 0.3s ease;
  touch-action: manipulation;
  /* for mobile tap */
}

/* Tooltip-style label below icon */
.icon::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    bottom 0.3s ease;
  white-space: nowrap;
}

/* Show label on hover or tap */
.icon:hover::after,
.icon:focus::after,
.icon:active::after {
  opacity: 1;
  bottom: -40px;
}

/* Brand-specific hover color and label background */
.icon[aria-label="YouTube"]:hover,
.icon[aria-label="YouTube"]:focus,
.icon[aria-label="YouTube"]:active {
  color: #ff0000;
}

.icon[aria-label="YouTube"]::after {
  background-color: #ff0000;
}

.icon[aria-label="GitHub"]:hover,
.icon[aria-label="GitHub"]:focus,
.icon[aria-label="GitHub"]:active {
  color: #2b3137;
}

.icon[aria-label="GitHub"]::after {
  background-color: #24292e;
}

.icon[aria-label="Instagram"]:hover,
.icon[aria-label="Instagram"]:focus,
.icon[aria-label="Instagram"]:active {
  color: #e1306c;
}

.icon[aria-label="Instagram"]::after {
  background-color: #e1306c;
}

.icon[aria-label="LinkedIn"]:hover,
.icon[aria-label="LinkedIn"]:focus,
.icon[aria-label="LinkedIn"]:active {
  color: #0077b5;
}

.icon[aria-label="LinkedIn"]::after {
  background-color: #0077b5;
}

.icon[aria-label="whatsapp"]:hover,
.icon[aria-label="whatsapp"]:focus,
.icon[aria-label="whatsapp"]:active {
  color: #25d366;
}

.icon[aria-label="whatsapp"]::after {
  background-color: #25d366;
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: none;
}

.newsletter button {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: #7c6cff;
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 25px auto 0;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-col-contact a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col-contact a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  nav {
    text-align: center;
    gap: 15px;
  }

  .firstsection {
    text-align: center;
  }

  .buttons {
    justify-content: center;
  }

  .secondsection .box {
    flex-direction: column;
  }

  .secondsection .box::before {
    display: none;
  }

  .vertical-lines {
    width: 100%;
    padding-left: 40px;
  }

  .vertical-lines::before {
    left: 20px;
    transform: none;
    height: 100%;
  }

  .image-top {
    left: 20px;
    transform: none;
  }
}

/* =====================
   GLOBAL RESET & BASE
===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: clip;
  /* prevents horizontal scroll issues */
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background: #010125;
  color: #f5f5f5;
}

/* =====================
   MEDIA & ELEMENTS
===================== */
img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================
   LAYOUT HELPERS
===================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.section > * {
  flex: 1 1 300px;
}

/* =====================
   BREAKPOINTS
===================== */
@media (max-width: 768px) {
  .container {
    padding: 0 4vw;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 2vw;
  }
}

/* infinite scroll */
.marquee-container {
  width: 100%;
  padding: 3rem 0;
  overflow: hidden;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, transparent);
}

.marquee {
  display: flex;
  width: fit-content;
  animation: scroll 35s linear infinite;
}

.tech-card {
  width: 120px;
  height: 80px;
  margin: 0 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  border: 2px solid var(--border);
}

.tech-card i {
  transition: 0.3s;
}

.tech-card:hover {
  border-color: snow;
}

body:not(.darkmode) .tech-card:hover {
  border-color: var(--text);
}

.tech-card:hover i {
  color: var(--primary);
  transform: scale(1.4);
}

body:not(.darkmode) .tech-card:hover i {
  color: var(--bg-surface);
  transform: scale(1.4);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* button light & dark mode */

/* #theme-switch {
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:var(--bg-surface);
    position: fixed;
    top: 14px;
    right: 20px;
    z-index: 1002;
}

body.darkmode #theme-switch {
    background-color: #0b0b45;
}

#theme-switch #moon{
    fill: snow;
}

#theme-switch svg:first-child {
    display: none;
}

.darkmode #theme-switch svg:last-child {
    display: none;
}

.darkmode #theme-switch svg:first-child {
    display: block;
}

@media (max-width: 768px) {
    #theme-switch {
        top: auto;
        bottom: 20px;
        right: 20px;
        z-index: 1002;
    }
} */

/* Default button style */
#theme-switch {
  height: 50px;
  width: 50px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-surface);
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 1002;
  cursor: pointer;
}

/* Light mode (moon) */
#theme-switch #moon {
  fill: snow;
}

/* Hide sun in light mode */
#theme-switch svg:first-child {
  display: none;
}

/* Dark mode (sun) */
body.darkmode #theme-switch {
  background-color: #f8efc9;
  /* light cream background */
  box-shadow: 0 0 10px rgba(208, 190, 58, 0.6);
  /* glowing effect */
}

/* Sun icon visible in dark mode */
.darkmode #theme-switch svg:first-child {
  display: block;
  fill: #d1b61b;
}

/* Hide moon in dark mode */
.darkmode #theme-switch svg:last-child {
  display: none;
}

/* Responsive position */
@media (max-width: 768px) {
  #theme-switch {
    top: auto;
    bottom: 20px;
    right: 20px;
    z-index: 1002;
  }
}

/* =====================
   LIGHT MODE
===================== */
:root {
  --bg: #f2f2f5;
  --card-bg: #ffffff;
  --text: #20232a;
  --text-muted: #6b7280;
  --primary: #7c3aed;
  --border: #d6d6e0;
  --footer: #2c3e50;
}

body:not(.darkmode) {
  background: #f7f7ff;
  color: var(--text);
}

body:not(.darkmode) header nav .left span {
  color: var(--text-muted);
}

body:not(.darkmode) header nav .left span::after {
  background: var(--primary);
}

body:not(.darkmode) .right li a {
  color: black;
}

body:not(.darkmode) .typed-cursor {
  color: var(--text);
}

body:not(.darkmode) p {
  color: black;
}

body:not(.darkmode) header nav .hamburger {
  color: var(--text-muted);
}

body:not(.darkmode) nav {
  background: #e8e8e8;
  border-bottom: 3px solid #ddd;
}

body:not(.darkmode) nav li a:hover {
  color: var(--primary);
}

body:not(.darkmode) .buttons .btn {
  background-color: var(--text-muted);
}

body:not(.darkmode) .buttons .btn a {
  color: black;
}

body:not(.darkmode) .marquee-container {
  background-color: #eef2f6;
}

body:not(.darkmode) .services-box,
body:not(.darkmode) .project-card {
  background: #ffffff;
  color: #0b0b45;
}

body:not(.darkmode) .site-footer {
  background: linear-gradient(180deg, #ffffff, #eaeaff);
}

body:not(.darkmode) a {
  color: black;
}

body:not(.darkmode) .btn {
  color: black;
  background:
    linear-gradient(135deg, var(--text-muted), var(--card-bg)),
    transparent 65%;
}

/* experience section */
body:not(.darkmode) .secondsection .text-gray {
  color: var(--bg-surface);
}

body:not(.darkmode) .box .vertical-desc {
  color: var(--text);
}

body:not(.darkmode) .box .vertical-lines::before {
  background: var(--text);
}

/* about me */
body:not(.darkmode) .about-content h2 {
  color: var(--text);
}

/* projects */
body:not(.darkmode) .projects-header-reveal h2 {
  color: var(--text);
}

/* contact section */

body:not(.darkmode) .contact-section {
  background: white;
  margin-top: 24px;
  margin-bottom: 10px;
  border-radius: 15px;
}

body:not(.darkmode) .contact-section h2 {
  color: black;
}

body:not(.darkmode) .contact-section .input-box input,
body:not(.darkmode) .contact-section .input-box textarea {
  background-color: #f5f5f5;
}

/* footer */
/* =========================
   FOOTER – LIGHT MODE UPGRADED
   Paste this at the end of your light-mode CSS
========================= */

body:not(.darkmode) .site-footer {
  background: var(--footer);
  border-top: 1px solid var(--border);
  padding: 64px 20px 32px;
  color: var(--text);
}

/* Layout */
body:not(.darkmode) .footer-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 44px;
}

/* Headings */
body:not(.darkmode) .footer-col h3,
body:not(.darkmode) .footer-col h4 {
  color: #0f1724;
  margin-bottom: 14px;
  font-weight: 600;
}

/* Paragraphs & links */
body:not(.darkmode) .footer-col p,
body:not(.darkmode) .footer-col a {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  text-decoration: none;
}

/* stronger hover contrast */
body:not(.darkmode) .footer-col a:hover {
  color: #0b1220;
}

/* =========================
   ABOUT SECTION
========================= */

body:not(.darkmode) .footer-col-about {
  background-color: var(--footer);
  /* slightly darker than previous */
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body:not(.darkmode) .footer-col-about h3 {
  font-size: 18.5px;
  color: #0f1724;
}

body:not(.darkmode) .footer-col-about .par {
  color: black;
}

/* Avatar */
body:not(.darkmode) .footer-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--footer);
  border: 1.8px solid #e6e9ef;
  padding: 5px;
  margin-bottom: 10px;
}

/* =========================
   QUICK LINKS
========================= */

body:not(.darkmode) .footer-col.links ul {
  list-style: none;
  padding: 0;
}

body:not(.darkmode) .footer-col.links li {
  margin-bottom: 8px;
}

body:not(.darkmode) .footer-col.links a {
  color: black;
  font-weight: 500;
  transition: all 0.22s ease;
}

body:not(.darkmode) .footer-col.links a:hover {
  color: #0b1220;
  padding-left: 6px;
}

/* =========================
   CONTACT SECTION
========================= */
body:not(.darkmode) .footer-col-contact .contact {
  color: black;
}

/* new classes to replace inline styles */
body:not(.darkmode) .footer-col-contact .contact-note {
  font-size: 13px;
  color: #374151;
  margin-bottom: 8px;
}

body:not(.darkmode) .footer-col-contact .contact-label {
  font-size: 13px;
  color: #6b7280;
  margin: 6px 0 2px;
  font-weight: 600;
}

body:not(.darkmode) .footer-col-contact .contact-link {
  font-size: 13px;
  color: #374151;
}

body:not(.darkmode) .footer-col-contact .contact-link a {
  color: #0f1724;
  font-weight: 600;
  text-decoration: none;
}

body:not(.darkmode) .footer-col-contact .contact-link a:hover {
  text-decoration: underline;
  color: #0b1220;
}

/* =========================
   SOCIAL ICONS
========================= */
/* Light mode hover effects */
body:not(.darkmode) .social-icons .icon {
  position: relative;
  font-size: 25px;
  color: snow;
  transition: color 0.3s ease;
}

/* Tooltip-style label below icon */
body:not(.darkmode) .social-icons .icon::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    bottom 0.3s ease;
  white-space: nowrap;
}

/* Show label on hover */
body:not(.darkmode) .social-icons .icon:hover::after {
  opacity: 1;
  bottom: -40px;
}

/* Brand-specific hover colors + label backgrounds */
body:not(.darkmode) .social-icons .icon[aria-label="YouTube"]:hover {
  color: #ff0000;
}

body:not(.darkmode) .social-icons .icon[aria-label="YouTube"]::after {
  background-color: #ff0000;
}

body:not(.darkmode) .social-icons .icon[aria-label="GitHub"]:hover {
  color: #2b3137;
}

body:not(.darkmode) .social-icons .icon[aria-label="GitHub"]::after {
  background-color: #2b3137;
}

body:not(.darkmode) .social-icons .icon[aria-label="Instagram"]:hover {
  color: #e1306c;
}

body:not(.darkmode) .social-icons .icon[aria-label="Instagram"]::after {
  background-color: #e1306c;
}

body:not(.darkmode) .social-icons .icon[aria-label="LinkedIn"]:hover {
  color: #0077b5;
}

body:not(.darkmode) .social-icons .icon[aria-label="LinkedIn"]::after {
  background-color: #0077b5;
}

body:not(.darkmode) .social-icons .icon[aria-label="whatsapp"]:hover {
  color: #25d366;
}

body:not(.darkmode) .social-icons .icon[aria-label="whatsapp"]::after {
  background-color: #25d366;
}

/* =========================
   FOOTER BOTTOM
========================= */

body:not(.darkmode) .footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

body:not(.darkmode) .footer-bottom p {
  font-size: 13px;
  color: black;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {
  body:not(.darkmode) .site-footer {
    text-align: center;
  }

  body:not(.darkmode) .social-icons {
    justify-content: center;
  }

  body:not(.darkmode) .footer-col-about .small {
    margin: 0 auto;
  }
}
