@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --accent: #2d7bff;
  --accent-alt: #6c63ff;
  --bg-light: #f7f9fc;
  --bg-dark: #05060f;
  --card-light: rgba(255, 255, 255, 0.85);
  --card-dark: rgba(13, 17, 23, 0.85);
  --text-light: #111826;
  --text-dark: #f6f7fb;
  --transition: 0.35s ease;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-lg: 0 32px 70px rgba(15, 23, 42, 0.25);
  --shadow-md: 0 22px 50px rgba(15, 23, 42, 0.12);
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  background: var(--bg-light);
  color: var(--text-light);
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

body::before,
body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at center, rgba(109, 76, 255, 0.4), transparent 60%);
  z-index: -2;
  filter: blur(0px);
  transform: rotate(15deg);
  animation: pulse 8s ease-in-out infinite alternate;
}

body::after {
  top: auto;
  bottom: -220px;
  left: auto;
  right: -160px;
  background: radial-gradient(circle at center, rgba(45, 123, 255, 0.45), transparent 65%);
  animation-delay: 2s;
}

@keyframes pulse {
  from {
    transform: scale(1) rotate(15deg);
    opacity: 0.65;
  }
  to {
    transform: scale(1.15) rotate(20deg);
    opacity: 0.9;
  }
}

body.dark {
  background: radial-gradient(circle at 15% 15%, rgba(45, 123, 255, 0.1), transparent 55%),
              radial-gradient(circle at 80% 10%, rgba(96, 76, 255, 0.12), transparent 60%),
              var(--bg-dark);
  color: var(--text-dark);
}

body.dark::before {
  background: radial-gradient(circle at center, rgba(45, 123, 255, 0.32), transparent 60%);
}

body.dark::after {
  background: radial-gradient(circle at center, rgba(108, 99, 255, 0.28), transparent 60%);
}

a {
  color: inherit;
  text-decoration: none;
}

li {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

section {
  width: min(92%, var(--max-width));
  margin: 0 auto 6.5rem;
  position: relative;
}

section .section-shell {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 5vw, 4.5rem);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

section .section-shell::before {
  content: '';
  position: absolute;
  width: clamp(220px, 26vw, 340px);
  height: clamp(220px, 28vw, 360px);
  background: radial-gradient(circle at top left, rgba(45, 123, 255, 0.25), transparent 65%);
  top: -24%;
  right: -12%;
  filter: blur(0px);
  opacity: 0.8;
  transform: rotate(18deg);
  z-index: -1;
}

body.dark section .section-shell {
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.75));
  box-shadow: 0 22px 55px rgba(3, 10, 25, 0.6);
}

body.dark section .section-shell::before {
  background: radial-gradient(circle at top left, rgba(88, 166, 255, 0.18), transparent 70%);
}

section .section-shell::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-lg) - 16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0.45;
  pointer-events: none;
}

body.dark section .section-shell::after {
  border-color: rgba(88, 166, 255, 0.18);
}

.section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section__subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: rgba(17, 24, 38, 0.65);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.8rem;
}

body.dark .section__subtitle {
  color: rgba(246, 247, 251, 0.65);
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  transition: var(--transition);
}

body.dark .header {
  background: rgba(13, 17, 23, 0.92);
  border-bottom-color: rgba(88, 166, 255, 0.12);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.1);
}

body.dark .header.scrolled {
  background: rgba(10, 13, 19, 0.95);
  box-shadow: 0 28px 55px rgba(3, 10, 25, 0.6);
}

.nav.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

body.dark .nav__logo {
  color: #8fb7ff;
}

.nav__menu {
  position: fixed;
  top: 80px;
  right: 24px;
  padding: 1.6rem 1.8rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transform-origin: top right;
  transform: scale(0.7);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

body.dark .nav__menu {
  background: rgba(13, 17, 23, 0.98);
}

.nav__menu.show {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.nav__list {
  display: grid;
  gap: 1rem;
}

.nav__link {
  font-weight: 500;
  color: rgba(17, 24, 38, 0.75);
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  transition: var(--transition);
}

body.dark .nav__link {
  color: rgba(246, 247, 251, 0.75);
}

.nav__link:hover,
.nav__link.active {
  color: var(--accent);
  background: rgba(45, 123, 255, 0.08);
}

body.dark .nav__link:hover,
body.dark .nav__link.active {
  color: #9dc4ff;
  background: rgba(88, 166, 255, 0.12);
}

.nav__btns {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav__btns button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: none;
  background: rgba(45, 123, 255, 0.12);
  color: var(--accent);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.25rem;
}

.nav__btns button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(45, 123, 255, 0.22);
}

body.dark .nav__btns button {
  background: rgba(88, 166, 255, 0.18);
  color: #b3d6ff;
}

.nav__toggle {
  font-size: 1.4rem;
}

@media (min-width: 880px) {
  .nav__menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .nav__list {
    display: flex;
    gap: 1.8rem;
    align-items: center;
  }

  .nav__link {
    background: transparent;
  }

  .nav__toggle {
    display: none;
  }
}

/* Hero */
.home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 7.5rem;
  position: relative;
  overflow: hidden;
}

.home::before,
.home::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 123, 255, 0.18), transparent 70%);
  filter: blur(0px);
  z-index: 0;
}

.home::before {
  width: 620px;
  height: 620px;
  top: -260px;
  left: -120px;
}

.home::after {
  width: 540px;
  height: 540px;
  bottom: -220px;
  right: -140px;
}

.home__content {
  position: relative;
  z-index: 2;
  width: min(92%, 760px);
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
  justify-items: center;
  padding: clamp(2.8rem, 5vw, 3.6rem) clamp(1.8rem, 4vw, 3.2rem);
  border-radius: calc(var(--radius-lg) + 8px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(244, 248, 255, 0.6));
  backdrop-filter: blur(24px);
  box-shadow: 0 45px 90px rgba(15, 23, 42, 0.28);
}

body.dark .home__content {
  background: linear-gradient(135deg, rgba(20, 26, 35, 0.92), rgba(13, 17, 23, 0.78));
  box-shadow: 0 45px 95px rgba(3, 10, 25, 0.68);
}

.home__content::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid rgba(45, 123, 255, 0.18);
  opacity: 0.6;
  pointer-events: none;
}

body.dark .home__content::after {
  border-color: rgba(88, 166, 255, 0.22);
}

.home__orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.home__orb {
  position: absolute;
  width: clamp(140px, 22vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(45, 123, 255, 0.2));
  filter: blur(0px);
  animation: float 12s ease-in-out infinite;
  opacity: 0.45;
}

.home__orb:nth-child(1) {
  top: 12%;
  left: 8%;
  animation-delay: -2s;
}

.home__orb:nth-child(2) {
  bottom: 14%;
  right: 12%;
  animation-duration: 15s;
}

.home__orb:nth-child(3) {
  top: 40%;
  right: 45%;
  animation-duration: 18s;
  animation-delay: -5s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(20px, -25px, 0) scale(1.1);
    opacity: 0.75;
  }
}

.home__img {
  position: relative;
}

.home__img::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 123, 255, 0.35), rgba(108, 99, 255, 0.45));
  filter: blur(0px);
  z-index: 0;
  animation: glow 6s ease-in-out infinite;
}

.home__img img {
  width: min(240px, 55vw);
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.35);
  position: relative;
  z-index: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}

body.dark .home__img img {
  border-color: rgba(88, 166, 255, 0.6);
}

.home__img img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.3);
}

@keyframes glow {
  from {
    transform: scale(1);
    opacity: 0.75;
  }
  to {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.home__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  color: var(--text-light);
}

body.dark .home__title {
  color: var(--text-dark);
}

.home__title span {
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: rgba(17, 24, 38, 0.65);
}

body.dark .home__subtitle {
  color: rgba(246, 247, 251, 0.65);
}

.home__description {
  max-width: 520px;
  color: rgba(17, 24, 38, 0.75);
  font-size: 1.05rem;
}

body.dark .home__description {
  color: rgba(246, 247, 251, 0.75);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
  color: #fff;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 30px rgba(45, 123, 255, 0.25);
  transition: var(--transition);
}

.button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 24px 45px rgba(45, 123, 255, 0.32);
}

.button--loading {
  position: relative;
  opacity: 0.85;
  pointer-events: none;
  gap: 0.4rem;
}

.button--loading i {
  opacity: 0;
}

.button--loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-top-color: transparent;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

.button--success {
  background: linear-gradient(120deg, #35d399, #07b981);
  box-shadow: 0 18px 36px rgba(7, 185, 129, 0.28);
  color: #fff;
}

/* About */
.about .section-shell {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.about__container {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about__img {
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.about__img img {
  width: 100%;
  transition: transform var(--transition);
}

.about__img::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0.6;
  pointer-events: none;
}

body.dark .about__img::after {
  border-color: rgba(88, 166, 255, 0.2);
}

.about__img:hover img {
  transform: scale(1.05);
}

.about__data p {
  margin-bottom: 1.2rem;
  color: rgba(17, 24, 38, 0.78);
  font-size: 1.02rem;
}

body.dark .about__data p {
  color: rgba(246, 247, 251, 0.78);
}

.about__data ul {
  display: grid;
  gap: 0.6rem;
  color: rgba(17, 24, 38, 0.75);
  font-weight: 500;
}

body.dark .about__data ul {
  color: rgba(246, 247, 251, 0.75);
}

.about__data .button {
  margin-top: 0.5rem;
}

/* Services */
.services__container {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.services__content {
  padding: 2.2rem 1.9rem;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 244, 255, 0.7));
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform var(--transition), box-shadow var(--transition);
}

.services__content::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  border: 1px solid rgba(45, 123, 255, 0.18);
  opacity: 0.45;
  pointer-events: none;
}

body.dark .services__content {
  background: linear-gradient(145deg, rgba(20, 26, 35, 0.95), rgba(13, 17, 23, 0.82));
  box-shadow: 0 22px 45px rgba(3, 10, 25, 0.55);
}

.services__content:hover {
  transform: translateY(-12px);
  box-shadow: 0 26px 55px rgba(45, 123, 255, 0.22);
}

.services__icon {
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

body.dark .services__icon {
  color: #9fc5ff;
}

.services__content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.services__content p {
  color: rgba(17, 24, 38, 0.68);
}

body.dark .services__content p {
  color: rgba(246, 247, 251, 0.7);
}

/* Qualification */
.qualification__timeline {
  position: relative;
  margin-top: 2.5rem;
  padding-left: clamp(1rem, 4vw, 2.8rem);
}

.qualification__timeline::before {
  content: '';
  position: absolute;
  left: clamp(0.5rem, 3vw, 1.2rem);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(45, 123, 255, 0.5), transparent);
}

.qualification__item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.75));
  border-radius: 22px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.8rem;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

body.dark .qualification__item {
  background: linear-gradient(145deg, rgba(20, 26, 35, 0.92), rgba(13, 17, 23, 0.82));
  box-shadow: 0 22px 45px rgba(3, 10, 25, 0.55);
}

.qualification__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(1.4rem, 4vw, 2.2rem));
  top: 1.6rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
  box-shadow: 0 0 0 4px rgba(45, 123, 255, 0.15);
}

.qualification__item:hover {
  transform: translateX(10px);
  box-shadow: 0 26px 55px rgba(45, 123, 255, 0.2);
}

.qualification__item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.qualification__item span {
  color: rgba(17, 24, 38, 0.6);
}

body.dark .qualification__item span {
  color: rgba(246, 247, 251, 0.6);
}

/* Contact */
.contact__form {
  display: grid;
  gap: 1.3rem;
  max-width: min(640px, 100%);
  margin: 0 auto;
  padding: 2.4rem 2.7rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 244, 255, 0.7));
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

body.dark .contact__form {
  background: linear-gradient(145deg, rgba(20, 26, 35, 0.95), rgba(13, 17, 23, 0.82));
  box-shadow: 0 26px 55px rgba(3, 10, 25, 0.55);
}

.contact__form::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(45, 123, 255, 0.2);
  opacity: 0.4;
  pointer-events: none;
}

.contact__form.sent {
  box-shadow: 0 28px 60px rgba(7, 185, 129, 0.25);
}

.contact__form.sent::after {
  border-color: rgba(53, 211, 153, 0.35);
}

.contact__input,
.contact__textarea {
  border-radius: 18px;
  border: 1px solid rgba(45, 123, 255, 0.18);
  padding: 0.95rem 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  color: rgba(17, 24, 38, 0.78);
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.contact__textarea {
  min-height: 140px;
  resize: vertical;
}

.contact__input:focus,
.contact__textarea:focus {
  outline: none;
  border-color: rgba(45, 123, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(45, 123, 255, 0.12);
}

body.dark .contact__input,
body.dark .contact__textarea {
  background: rgba(17, 23, 32, 0.7);
  color: rgba(246, 247, 251, 0.85);
  border-color: rgba(88, 166, 255, 0.25);
}

body.dark .contact__input:focus,
body.dark .contact__textarea:focus {
  border-color: rgba(88, 166, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.12);
}

/* Footer */
.footer {
  width: min(92%, var(--max-width));
  margin: 0 auto 4rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(240, 244, 255, 0.72));
  border-radius: 28px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

body.dark .footer {
  background: linear-gradient(145deg, rgba(20, 26, 35, 0.94), rgba(13, 17, 23, 0.85));
  box-shadow: 0 24px 50px rgba(3, 10, 25, 0.55);
}

.footer__title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.footer__subtitle {
  color: rgba(17, 24, 38, 0.6);
  font-weight: 500;
}

body.dark .footer__subtitle {
  color: rgba(246, 247, 251, 0.6);
}

.footer__socials {
  margin: 1.8rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer__socials a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(45, 123, 255, 0.12);
  color: var(--accent);
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer__socials a:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 30px rgba(45, 123, 255, 0.24);
}

body.dark .footer__socials a {
  background: rgba(88, 166, 255, 0.18);
  color: #a7ceff;
}

.footer__copy {
  color: rgba(17, 24, 38, 0.5);
  font-size: 0.95rem;
}

body.dark .footer__copy {
  color: rgba(246, 247, 251, 0.55);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Particle canvas */
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.8;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.08);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent-alt));
  border-radius: 999px;
}

/* Responsive tweaks */
@media (max-width: 680px) {
  .nav__btns button {
    width: 40px;
    height: 40px;
  }

  .home__content {
    padding: 2.4rem 1.6rem;
  }

  .home__description {
    font-size: 1rem;
  }

  section .section-shell {
    padding: 2.6rem clamp(1.4rem, 5vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
