@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap");

:root {
  --primary-color: #0ea5e9; /* sky-500 */
  --primary-color-dark: #0284c7; /* sky-600 */
  --secondary-color: #0a0f1a; /* deep charcoal-navy */
  --secondary-color-dark: rgba(9, 14, 24, 0.65);
  --text-light: #a8b3c7;
  --text-muted: #8a99ad;
  --text-primary: #f1f5f9;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
  perspective: 1000px; /* enable subtle 3D for children */
}

.section__header {
  padding-top: 3rem;
  position: relative;
  isolation: isolate;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  overflow: hidden;
}

.section__header::before {
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 6rem;
  white-space: nowrap;
  opacity: 0.1;
}

.section__description {
  color: var(--text-light);
  line-height: 1.5rem;
}

.btn {
  padding: 0.75rem 1rem;
  outline: none;
  border: none;
  font-size: 0.9rem;
  color: var(--white);
  border: 1px solid;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn__primary {
  background: linear-gradient(135deg, #22d3ee, var(--primary-color));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
  position: relative;
  overflow: hidden;
}

.btn__primary:hover {
  background: linear-gradient(135deg, #06b6d4, var(--primary-color-dark));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.45);
}

/* Button shimmer and 3D lift */
.btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 120%;
  height: 200%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px) translateZ(8px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.btn:hover::after { left: 160%; }

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Soft animated glow ring for primary buttons */
.btn__primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  background: conic-gradient(from 0deg, transparent, rgba(34,211,238,0.4), transparent 30%);
  filter: blur(10px);
  z-index: -1;
  animation: spinGlow 6s linear infinite;
}

@keyframes spinGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn__secondary {
  background-color: transparent;
  border-color: var(--white);
}

.btn__secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #0a0f1a 0%, #0b1423 100%);
  background-color: var(--secondary-color);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--white);
  height: 100vh;
}
.section__header {
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  letter-spacing: 0.2px;
  font-weight: 700;
  color: var(--text-primary);
}

p, .section__description, li {
  color: var(--text-light);
}

a {
  color: #e2e8f0;
}

.link a {
  color: #e2e8f0;
  position: relative;
  padding-bottom: 2px;
}

.link a:hover {
  color: var(--primary-color);
}

/* Mobile-friendly text appear animation */
@keyframes textPop {
  0% { transform: translateY(8px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.text-appear { animation: textPop 600ms cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Mobile tilt styles (JS applies transforms) */
.mobile-tilt { transition: transform 150ms ease, box-shadow 150ms ease; transform-style: preserve-3d; }
.mobile-tilt-active { box-shadow: 0 10px 30px rgba(0,0,0,0.35); }

/* Text hover animations (only on devices that support hover) */
@media (hover: hover) and (pointer: fine) {
  .text-gradient:hover {
    animation: gradientShift 8s ease infinite;
  }
  .section__header:hover,
  .header__container h4:hover,
  .service__card h4:hover,
  .panel__card h4:hover,
  .blog__content h4:hover {
    transform: translateZ(16px) rotateX(2deg);
    text-shadow: 0 6px 22px rgba(14,165,233,0.25);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
  }
  .section__description:hover,
  p:hover {
    color: #cbd5e1;
    text-shadow: 0 2px 12px rgba(255,255,255,0.08);
  }
}

/* Animated underline for nav links */
.link a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #22d3ee);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.link a:hover::after,
.link a.active::after {
  transform: scaleX(1);
}

.link a.active {
  color: var(--primary-color);
}
.html { background-color: var(--secondary-color); }
#particles-js { position: fixed; inset: 0; z-index: 0; background-color: var(--secondary-color); pointer-events: none; }
.divtag{
/* font-size: 100px; */
position: absolute;
/* height: 100vh; */
width: 100%;
/* height: 100vh; */
z-index: 100;
}

/* Custom cursor effect */
.cursor-fx {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}

.cursor-fx.hidden {
  opacity: 0;
}

.cursor-fx.enlarge {
  width: 40px;
  height: 40px;
  background-color: rgba(14, 165, 233, 0.1);
}

/* Fixed WebGL container behind content */
#webgl-container {
  position: fixed;
  inset: 0;
  z-index: 1; /* above particles, below content */
  pointer-events: none;
}


/* #particles-js{
  /* position: absolute; 
  width: 100%; 
  height: 100vh; */
  /* background-color: var(--secondary-color); */
  /* color: var(--white); */
/* }  */

nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 9;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.nav__logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.nav__logo a span {
  color: var(--secondary-color);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
}

.nav__links {
  position: absolute;
  top: 68px;
  left: 0;
  width: 100%;
  padding: 2rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--secondary-color);
  transition: 0.5s;
  z-index: -1;
  transform: translateY(-100%);
}

/* Scroll-aware navbar */
nav.scrolled .nav__header {
  background-color: rgba(11, 20, 35, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Floating to-top button */
#to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

#to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Header gradient animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Enhance cards and blog cards to glass by default */
.blog__card {
  border-radius: 12px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.blog__card:hover {
  /* Let VanillaTilt control transforms to avoid conflicts */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* idle floating animation was removed to avoid transform conflicts with VanillaTilt */

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .service__card, .panel__card, .blog__card { animation: none; }
}

.nav__links.open {
  transform: translateY(0);
}

.link a {
  color: var(--white);
  transition: 0.3s;
}

.link a:hover {
  color: var(--primary-color);
}

.header {
  background-image: linear-gradient(
      rgba(11, 20, 35, 0.8),
      rgba(11, 20, 35, 0.8)
    ),
    url("assets/header.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.header__container {
  padding-block: 12rem;
  text-align: center;
}

.header__container h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.header__container h1:not(.text-gradient) {
  margin-bottom: 1rem;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 3.5rem;
  background: linear-gradient(90deg, #60a5fa, #22d3ee, #0ea5e9, #38bdf8);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 10s ease infinite;
}

.header__container .section__description {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.header__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.header__btns .btn {
  min-width: 150px;
}

.about__container {
  display: grid;
  gap: 2rem;
}

.about__image {
  
  overflow: hidden;
}

.about__image img {
  max-width: 380px;
  margin-inline: auto;
  border: 1rem solid var(--secondary-color-dark);
}

.about__content h4 {
  max-width: 400px;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 600;
}

.about__content .section__description {
  margin-bottom: 1rem;
}

.about__content .section__description span {
  color: var(--primary-color);
}

.about__progress {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 0.5rem 1rem;
}

.about__progress h5 {
  font-size: 1.1rem;
  font-weight: 500;
}

.about__progressbar {
  position: relative;
  isolation: isolate;
  flex: 1;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.about__progressbar span {
  position: absolute;
  left: 0;
  top: 0;
  height: 10px;
  background-color: var(--white);
  border-radius: 4px;
  z-index: 1;
}

.service {
  background-color: var(--secondary-color-dark);
}

.service__container .section__header::before {
  content: "Projects";
  background: linear-gradient(90deg, #f43f5e, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service__container .section__description {
  max-width: 600px;
}


.service__container_personal .section__header::before {
  content: "Personal Projects";
  background: linear-gradient(90deg, #f43f5e, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service__container_personal .section__description {
  max-width: 600px;
}


.service__grid {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}

.service__card {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  will-change: transform;
  transform-style: preserve-3d;
}

.service__card:hover {
  background-color: rgba(34, 211, 238, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.service__card span {
  padding: 2px 10px;
  font-size: 2rem;
  color: var(--secondary-color-dark);
  background-color: var(--white);
  border-radius: 100%;
  transition: 0.3s;
}

.service__card:hover span {
  color: var(--primary-color);
}

.service__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.service__card p {
  color: var(--text-light);
}

.resume__container .section__header {
  text-align: center;
}

.resume__container .section__header::before {
  content: "Experience/Education";
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f43f5e, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.resume__container .section__description {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 4rem;
  text-align: center;
}

.resume__tablist {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.resume__tablist .btn {
  min-width: 150px;
  background-color: var(--secondary-color-dark);
  border: none;
}

.resume__tablist .btn.active,
.resume__tablist .btn:hover {
  background-color: var(--primary-color);
}


.panel__grid {
  /* display: grid; */
  gap: 1rem;
  display: none;
}

.panel__grid.active {
  display: grid;
  animation: show-panel 0.3s forwards;
}

.panel__grid.close {
  animation: hide-panel 0.3s forwards;
}

@keyframes show-panel {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes hide-panel {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.panel__card {
  padding: 1rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.panel__card:hover {
  background-color: rgba(34, 211, 238, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.panel__card span {
  display: block;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: 0.3s;
}

.panel__card:hover span {
  color: var(--white);
}

.panel__card h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.panel__card .section__description {
  margin-bottom: 1rem;
}

.banner {
  background: linear-gradient(90deg, #f43f5e, #fb7185, #38bdf8, #0ea5e9);
}

.banner__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 0;
}

.banner__card {
  text-align: center;
}

.banner__card:nth-child(2n - 1) {
  border-right: 1px solid var(--white);
}

.banner__card h4 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.client {
  background-color: var(--secondary-color-dark);
}

.client__container .section__header {
  text-align: center;
}

.client__container .section__header::before {
  content: "Testimonials";
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f43f5e, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.client__container .section__description {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 4rem;
  text-align: center;
}

.swiper {
  width: 100%;
}

.client__card {
  max-width: 750px;
  margin-inline: auto;
  text-align: center;
}

.client__card p {
  margin-bottom: 1rem;
  line-height: 1.75rem;
}

.client__card h4 {
  font-size: 1.2rem;
  font-weight: 500;
}

.client__card h5 {
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.client__card img {
  max-width: 100px;
  margin-inline: auto;
  border-radius: 100%;
}

.blog__container .section__header::before {
  content: "Certifications";
  background: linear-gradient(90deg, #f43f5e, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog__grid {
  margin-top: 4rem;
  display: grid;
  gap: 1rem;
}

.blog__content {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.04);
}

.blog__content h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
}

.blog__content .section__description {
  margin-bottom: 2rem;
}

.blog__content > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.blog__content a {
  color: var(--white);
  transition: 0.3s;
}

.blog__content a:hover {
  color: var(--primary-color);
}

.blog__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.12), rgba(11, 16, 32, 0.9));
}

.footer__container .section__header {
  text-align: center;
}

.footer__container .section__header::before {
  content: "Contact";
  left: 50%;
  transform: translateX(-50%);
}

.footer__container .section__description {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 4rem;
  text-align: center;
}

.footer__grid {
  display: grid;
  gap: 4rem 2rem;
}

.footer__content h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.footer__content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__socials a {
  font-size: 1.25rem;
  color: var(--white);
  transition: 0.3s;
}

.footer__socials a:hover {
  color: var(--primary-color);
}

.footer__form form {
  width: 100%;
  display: grid;
  gap: 1rem;
}

.input__row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__form input,
.footer__form textarea {
  flex: 1;
  width: 100%;
  padding: 0.75rem;
  outline: none;
  border: none;
  border-bottom: 1px solid var(--text-light);
  font-size: 1rem;
  color: var(--white);
  background-color: transparent;
}

.footer__form textarea {
  min-height: 8rem;
  margin-bottom: 1rem;
}

.footer__form .btn {
  max-width: fit-content;
}

.footer__bar {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

/* Modal styling */
.modal { position: fixed; inset: 0; display: none; z-index: 1000; }
.modal[aria-hidden="false"] { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; display: grid; place-items: center; min-height: 100%; padding: 1rem; }
.modal__content { max-width: 420px; width: 100%; padding: 1.25rem; border-radius: 12px; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.modal__content h3 { font-family: "Sora", "Manrope", sans-serif; margin-bottom: 0.5rem; color: var(--text-primary); }
.modal__content p { color: var(--text-light); margin-bottom: 1rem; }

/* Optional text gradient utility (user requested) */
.text-gradient {
  color: transparent !important;
  background-image: linear-gradient(45deg, #E04F67, #C72C4A, #7B1E6A, #4A1442) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

@media (width > 540px) {
  .panel__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
    position: static;
    padding: 2rem 1rem;
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .nav__header {
    padding: 0;
    background-color: transparent;
  }

  .nav__logo a span {
    color: var(--primary-color);
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    padding: 0;
    flex-direction: row;
    justify-content: flex-end;
    background-color: transparent;
    transform: none;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .service__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service__card {
    padding: 2rem;
  }

  .panel__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .banner__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .banner__card:nth-child(2n - 1),
  .banner__card:nth-child(2) {
    border-right: 1px solid var(--white);
  }

  .blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 2fr;
  }
}

@media (width > 1024px) {
  .panel__grid {
    gap: 2rem;
  }

  .panel__card {
    padding: 2rem;
  }

  .blog__grid {
    gap: 2rem;
  }

  .blog__content {
    padding: 2rem;
  }
}
