:root {
  --primary-color: #0b0f19;
  --secondary-color: #111827;
  --accent-color: #2563eb;
  --accent-color2: #3b82f6;
  --white: #f9fafb;
  --lightColor: #1f2937;
  --lightText: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  background: var(--primary-color);
  color: var(--white);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

section {
  scroll-margin-top: 100px;
  width: 100%;
  overflow: hidden;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-thumb {
  background: var(--lightColor);
  border-radius: 10px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeSlideDown 0.8s ease forwards;
}

@keyframes fadeSlideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header.scrolled {
  background: rgba(17, 24, 39, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.headerContainer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
}

/* Logo */
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--white);
  letter-spacing: 0.5px;
  white-space: nowrap;
  position: relative;
  z-index: 1002;
}

.logo span {
  color: var(--accent-color2);
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  position: relative;
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent-color2);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--accent-color2);
}

nav a:hover::after {
  width: 100%;
}

/* Button */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-color2)
  );
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  max-width: 100%;
  text-align: center;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(11, 15, 25, 0.16), rgba(11, 15, 25, 0.28)),
    url("images/back.png") center/cover no-repeat;
  color: var(--white);
  min-height: 100vh;
  padding: 120px 0 80px;
  overflow: hidden;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -100px;
  transform: translateX(-50%);
  width: 160%;
  height: 180px;
  background: var(--primary-color);
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 70px;
}

.hero-text {
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 0.3s;
  max-width: 600px;
  flex: 1 1 0;
}

.hero-text h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
}

.hero-text p {
  color: var(--lightText);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
}

#typing {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--accent-color2);
  overflow-wrap: break-word;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-buttons .status {
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--lightText);
}

.hero-images {
  opacity: 0;
  animation: fadeSlideLeft 1s ease forwards;
  animation-delay: 0.6s;
  position: relative;
  width: min(500px, 100%);
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 420px;
}

.hero-images img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 3;
  transform: translateY(20px);
}

.shape-div {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 420px;
  height: 420px;
  background: linear-gradient(45deg, var(--accent-color), var(--accent-color2));
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  opacity: 0.45;
  z-index: 1;
  animation: morph 8s ease-in-out infinite;
  transition: all 1s ease-in-out;
}

.stats-box {
  position: absolute;
  left: -25px;
  bottom: 105px;
  background: var(--white);
  color: var(--secondary-color);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  z-index: 6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: floatBox 2s ease-in-out infinite alternate;
  max-width: 150px;
}

.stats-box i {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 0.3rem;
}

.stats-box h3 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.stats-box p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #4b5563;
}

.stats-box1 {
  position: absolute;
  top: 35px;
  right: 10px;
  background: var(--white);
  color: var(--secondary-color);
  border-radius: 15px;
  padding: 1rem 1rem;
  z-index: 6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  animation: floatBox 2s ease-in-out infinite alternate;
  max-width: 130px;
}

.stats-box1 i {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 0.3rem;
}

@keyframes morph {
  0% {
    background: linear-gradient(45deg, var(--accent-color) 0%, var(--accent-color) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    background: linear-gradient(45deg, var(--accent-color2) 0%, var(--accent-color2) 100%);
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    background: linear-gradient(45deg, var(--accent-color) 0%, var(--accent-color2) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

@keyframes floatBox {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideLeft {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* About section */
.about {
  position: relative;
  background: var(--primary-color);
  padding: 6rem 0;
  z-index: 2;
}

.about-wrapper {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-left {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.about-right {
  flex: 1;
}

.box {
  width: calc(50% - 10px);
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
}

.stat-box {
  border: 1px solid var(--border-color);
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-box h2 {
  font-size: 70px;
  color: var(--white);
}

.stat-box p {
  color: var(--accent-color);
  font-weight: bold;
  text-align: center;
}

.subHeading {
  color: var(--accent-color2);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
}

.desc {
  color: var(--white);
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 30px;
}

.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 40px;
  margin-bottom: 40px;
}

.info-item {
  width: 100%;
  color: var(--lightText);
  font-size: 15px;
}

.info-item b {
  color: var(--white);
}

.square {
  width: 10px;
  height: 10px;
  background: var(--accent-color2);
  display: inline-block;
  margin-right: 10px;
  flex-shrink: 0;
}

.download {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.circle {
  width: 55px;
  height: 55px;
  background: var(--secondary-color);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service Section */
.services {
  padding: 120px 20px;
  background: url("images/back.png"), var(--secondary-color);
  background-size: cover;
  background-position: center;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  gap: 24px;
}

.services-heading {
  max-width: 760px;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
}

.service-card {
  background: var(--secondary-color);
  padding: 40px 30px;
  border-radius: 18px;
  margin-top: 35px;
  flex: 1 1 calc(33.333% - 20px);
  min-width: 260px;
  text-align: center;
  position: relative;
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-color2);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -72px auto 20px;
  font-size: 24px;
  color: var(--primary-color);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.service-card h3 {
  color: var(--white);
  margin-bottom: 15px;
  line-height: 1.35;
}

.service-card .desc {
  margin-bottom: 22px;
}

/* Tools Section */
.toolSection {
  background: var(--secondary-color);
  padding: 120px 20px;
}

.tools-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.tools-header {
  text-align: center;
  margin-bottom: 70px;
}

.tools-header span {
  color: var(--accent-color2);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.tool-category {
  grid-column: 1 / -1;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color2);
  margin: 10px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.tool-card {
  background: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px 18px;
  min-height: 190px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  border-color: var(--accent-color2);
}

.tool-icon {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tool-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.tool-percent {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--white);
}

.tool-name {
  font-size: 0.92rem;
  color: var(--lightText);
  line-height: 1.4;
}

.tool-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 12px;
}

.tool-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
  border-radius: 999px;
}

/* Featured Section */
.featured {
  padding: 120px 20px;
  background: url("images/back.png"), var(--secondary-color);
  background-size: cover;
  background-position: center;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.project-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 60px;
  margin-bottom: 90px;
}

.project-row.reverse {
  direction: rtl;
}

.project-row.reverse > * {
  direction: ltr;
}

.project-img img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.project-content h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--white);
  line-height: 1.3;
}

.project-content p {
  line-height: 1.8;
  color: var(--lightText);
  margin-bottom: 22px;
  max-width: 540px;
}

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

.tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lightText);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Experience and education section */
.experienceEducation {
  padding: 120px 20px;
  background: var(--secondary-color);
}

.resume-wrapper {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.resume-col {
  flex: 1;
  min-width: 320px;
}

.resume-col h3 {
  font-size: 28px;
  color: var(--white);
  margin-bottom: 25px;
}

.timeline {
  background: var(--lightColor);
  border-radius: 15px;
  padding: 30px 30px 30px 60px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--accent-color2);
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--accent-color2);
  border-radius: 50%;
}

.timeline-item h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--accent-color2);
}

.timeline-item span {
  font-size: 13px;
  color: var(--white);
  display: block;
  margin-bottom: 10px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--lightText);
  line-height: 1.6;
}

/* Contact */
.contact {
  padding: 120px 20px;
  background: url("images/back.png"), var(--secondary-color);
  background-size: cover;
  background-position: center;
}

.contact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-top .desc {
  max-width: 400px;
}

.contact-wrapper {
  display: flex;
  margin: auto;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
}

.contact-left,
.contact-right {
  flex: 1 1 500px;
  min-width: 320px;
  border-radius: 16px;
  padding: 35px;
}

.contact-left {
  background: var(--secondary-color);
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.08);
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
}

.contact-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-color);
  border-radius: 10px;
}

.contact-box i {
  font-size: 22px;
  background: var(--primary-color);
  padding: 14px;
  color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-box h4 {
  font-size: 13px;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-box p,
.contact-box a {
  font-size: 12px;
  color: var(--white);
  opacity: 0.85;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-right {
  background: url("images/back.png"), var(--primary-color);
  background-size: cover;
  background-position: center;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
}

.contact-right input,
.contact-right select,
.contact-right textarea {
  width: 100%;
  background: var(--secondary-color);
  border: none;
  padding: 16px;
  border-radius: 10px;
  color: var(--white);
  outline: none;
  border-left: 3px solid var(--accent-color2);
  font-size: 14px;
}

.contact-right textarea {
  height: 140px;
  resize: none;
}

.btn {
  margin-top: 10px;
}

/* Footer */
.footer {
  background: var(--primary-color);
  padding-top: 80px;
  border-top: 1px solid var(--border-color);
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
  min-width: 250px;
}

.footer-left p {
  margin-top: 15px;
  color: var(--lightText);
  line-height: 1.6;
  max-width: 350px;
}

.footer-links {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--lightText);
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color2);
  transform: translateX(5px);
}

.footer-socials {
  flex: 1;
  min-width: 180px;
}

.footer-socials h4 {
  margin-bottom: 10px;
}

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

.social-icons a {
  width: 42px;
  height: 42px;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  transition: 0.3s;
}

.social-icons a:hover {
  background: var(--accent-color2);
  transform: translateY(-4px);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--lightText);
}

/* LARGE TABLETS */
@media (max-width: 1100px) {
  .container {
    padding: 1rem 1.5rem;
  }

  .hero .container,
  .about-wrapper,
  .services-header,
  .contact-top {
    gap: 40px;
  }

  .shape-div {
    width: 360px;
    height: 360px;
  }

  .project-row {
    gap: 40px;
  }
}

/* TABLET */
@media (max-width: 992px) {
  .container {
    padding: 1rem 1.25rem;
  }

  .download-btn {
    padding: 0.8rem 1.1rem;
    font-size: 0.92rem;
  }

  .hero {
    min-height: auto;
    padding: 110px 0 80px;
  }

  .hero .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .hero-text,
  .hero-images {
    width: 100%;
    max-width: 100%;
  }

  .hero-text p {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-images {
    max-width: 460px;
    min-height: 360px;
  }

  .hero-images img {
    max-width: 360px;
    transform: translateY(10px);
    margin: 0 auto;
  }

  .shape-div {
    width: 340px;
    height: 340px;
    right: 50%;
    transform: translateX(50%);
    bottom: 10px;
  }

  .stats-box {
    left: 0;
    bottom: 85px;
  }

  .stats-box1 {
    top: 20px;
    right: 0;
  }

  .about {
    padding: 5rem 0;
  }

  .about-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .about-left,
  .about-right {
    width: 100%;
  }

  .info-grid {
    gap: 12px 20px;
  }

  .services {
    padding: 100px 20px;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 70px;
    gap: 20px;
  }

  .service-card {
    flex: 1 1 calc(50% - 15px);
  }

  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured {
    padding: 100px 20px;
  }

  .project-row,
  .project-row.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 65px;
    direction: ltr;
  }

  .project-content p {
    max-width: 100%;
  }

  .experienceEducation {
    padding: 100px 20px;
  }

  .contact {
    padding: 100px 20px;
  }

  .contact-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-top .desc {
    max-width: 100%;
  }

  .footer {
    padding-top: 60px;
  }
}

/*MOBILE */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .headerContainer {
    min-height: 72px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .headerBtn {
    display: none;
  }

  nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 1001;
  }

  nav.active {
    display: flex;
  }

  nav a {
    width: 100%;
    padding: 0.8rem 0.2rem;
    font-size: 0.95rem;
  }

  nav a::after {
    display: none;
  }

  .heading {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .subHeading {
    font-size: 0.78rem;
    letter-spacing: 1.6px;
  }

  .hero {
    padding: 100px 0 70px;
  }

  .hero::after {
    width: 180%;
    height: 140px;
    bottom: -70px;
  }

  .hero .container {
    gap: 32px;
  }

  .hero-text {
    width: 100%;
  }

  .hero-text h1 {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    margin-bottom: 1.75rem;
  }

  #typing {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .hero-text p {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-buttons .status,
  .hero-buttons .download-btn {
    width: min(100%, 320px);
    justify-content: center;
  }

  .hero-images {
    width: 100%;
    max-width: 320px;
    min-height: 260px;
  }

  .hero-images img {
    max-width: 250px;
  }

  .shape-div {
    width: 220px;
    height: 220px;
    right: 50%;
    transform: translateX(50%);
    bottom: 10px;
  }

  .stats-box {
    left: -4px;
    bottom: 42px;
    max-width: 110px;
    padding: 0.65rem 0.7rem;
  }

  .stats-box h3 {
    font-size: 1rem;
  }

  .stats-box p {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .stats-box1 {
    top: 6px;
    right: -2px;
    max-width: 90px;
    padding: 0.65rem 0.7rem;
  }

  .stats-box1 p {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .about {
    padding: 4.5rem 0;
  }

  .about-left {
    gap: 14px;
  }

  .box {
    width: calc(50% - 7px);
    min-height: 200px;
  }

  .stat-box h2 {
    font-size: 2.5rem;
  }

  .desc {
    font-size: 0.96rem;
  }

  .info-grid {
    flex-direction: column;
    gap: 12px;
  }

  .info-item {
    font-size: 0.95rem;
  }

  .download {
    gap: 14px;
  }

  .services {
    padding: 90px 16px;
  }

  .services-header {
    margin-bottom: 55px;
  }

  .services-grid {
    gap: 20px;
  }

  .service-card {
    flex: 1 1 100%;
    min-width: 100%;
    margin-bottom: 0;
    padding: 34px 22px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .toolSection {
    padding: 90px 16px;
  }

  .tools-header {
    margin-bottom: 50px;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .tool-card {
    min-height: 165px;
    padding: 18px 14px;
    border-radius: 20px;
  }

  .tool-icon {
    width: 62px;
    height: 62px;
  }

  .tool-icon img {
    width: 34px;
    height: 34px;
  }

  .tool-percent {
    font-size: 1.05rem;
  }

  .tool-name {
    font-size: 0.85rem;
  }

  .featured {
    padding: 90px 16px;
  }

  .section-title {
    margin-bottom: 50px;
  }

  .project-row {
    margin-bottom: 50px;
    gap: 22px;
  }

  .project-content h3 {
    font-size: 1.35rem;
  }

  .project-content p {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .tags span {
    font-size: 0.76rem;
    padding: 7px 12px;
  }

  .experienceEducation {
    padding: 90px 16px;
  }

  .resume-col h3 {
    font-size: 1.4rem;
  }

  .timeline {
    padding: 24px 20px 24px 48px;
  }

  .timeline::before {
    left: 22px;
  }

  .timeline-item::before {
    left: -32px;
  }

  .timeline-item h4 {
    font-size: 1rem;
  }

  .timeline-item p {
    font-size: 0.92rem;
  }

  .contact {
    padding: 90px 16px;
  }

  .contact-wrapper {
    gap: 24px;
  }

  .contact-left,
  .contact-right {
    min-width: 100%;
    padding: 24px 18px;
  }

  .contact-box {
    gap: 14px;
    padding: 18px;
  }

  .contact-box i {
    font-size: 18px;
    padding: 12px;
  }

  .form-row {
    flex-direction: column;
    gap: 14px;
  }

  .footer-wrapper {
    flex-direction: column;
    gap: 28px;
  }

  .footer-left,
  .footer-links,
  .footer-socials {
    text-align: center;
  }

  .footer-left p {
    max-width: 100%;
  }

  .social-icons {
    justify-content: center;
  }
}

/* SMALL PHONES */
@media (max-width: 520px) {
  .container {
    padding: 0.9rem;
  }

  .logo {
    font-size: 1.45rem;
  }

  .download-btn {
    padding: 0.78rem 1rem;
    font-size: 0.88rem;
  }

  .hero {
    padding: 90px 0 60px;
  }

  .hero .container {
    gap: 24px;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-text p {
    font-size: 0.92rem;
  }

  .hero-images {
    max-width: 280px;
  }

  .hero-images img {
    max-width: 220px;
  }

  .shape-div {
    width: 190px;
    height: 190px;
  }

  .stats-box {
    bottom: 36px;
    transform: scale(0.9);
    transform-origin: left bottom;
  }

  .stats-box1 {
    transform: scale(0.9);
    transform-origin: right top;
  }

  .box {
    width: 100%;
    min-height: 220px;
  }

  .toolSection,
  .services,
  .featured,
  .experienceEducation,
  .contact {
    padding-left: 12px;
    padding-right: 12px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-category {
    text-align: center;
  }

  .project-content h3 {
    font-size: 1.2rem;
  }

  .resume-wrapper {
    gap: 24px;
  }

  .timeline {
    padding: 20px 16px 20px 42px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item::before {
    left: -28px;
    width: 14px;
    height: 14px;
  }

  .contact-box h4 {
    font-size: 0.75rem;
  }

  .contact-box p,
  .contact-box a {
    font-size: 0.75rem;
  }

  .footer {
    padding-top: 50px;
  }

  .footer-bottom {
    margin-top: 30px;
    padding: 16px;
  }
}

/*VERY SMALL DEVICES*/
@media (max-width: 380px) {
  .logo {
    font-size: 1.3rem;
  }

  .hero-text h1 {
    font-size: 1.85rem;
  }

  #typing {
    font-size: 1.45rem;
  }

  .hero-images img {
    max-width: 200px;
  }

  .shape-div {
    width: 175px;
    height: 175px;
  }

  .stats-box {
    left: -8px;
  }

  .stats-box1 {
    right: -8px;
  }

  .heading {
    font-size: 1.8rem;
  }

  .tool-card,
  .service-card {
    padding-left: 14px;
    padding-right: 14px;
  }
}