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

:root {
  --primary: #5b6dff;
  --primary-dark: #3442f1;
  --accent: #f8678b;
  --background: #0f1325;
  --surface: rgba(18, 23, 45, 0.65);
  --text: #e4e7ff;
  --muted: #b8bce7;
  --card-shadow: 0 25px 60px rgba(15, 18, 40, 0.35);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --border-gradient: linear-gradient(135deg, rgba(91, 109, 255, 0.55), rgba(248, 103, 139, 0.35));
}

body {
  background: radial-gradient(circle at top left, rgba(91, 109, 255, 0.25) 0%, rgba(91, 109, 255, 0) 40%),
    radial-gradient(circle at bottom right, rgba(248, 103, 139, 0.25) 0%, rgba(248, 103, 139, 0) 45%),
    var(--background);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  z-index: -2;
  filter: blur(120px);
  opacity: 0.55;
  pointer-events: none;
}

body::before {
  background: rgba(91, 109, 255, 0.55);
  top: -120px;
  left: -120px;
}

body::after {
  background: rgba(248, 103, 139, 0.55);
  bottom: -140px;
  right: -140px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #f8f9ff;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
}

.section {
  position: relative;
  padding: 110px 0;
}

.navbar-dark #mainNav,
#mainNav {
  background: transparent;
  border: none;
  transition: all 0.45s ease;
  padding: 22px 0;
}

#mainNav .navbar-brand {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: url('../uploads/pic1.png') center/cover no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

#mainNav .navbar-nav .nav-link {
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-left: 28px;
  font-size: 0.78rem;
  position: relative;
}

#mainNav .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.35s ease;
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
  color: #fff;
}

#mainNav .navbar-nav .nav-link:hover::after,
#mainNav .navbar-nav .nav-link.active::after {
  width: 100%;
}

#mainNav.navbar-shrink,
#mainNav.scrolled {
  background: rgba(12, 16, 34, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(5, 6, 15, 0.5);
  padding: 12px 0;
}

#preloader {
  background: #0b0e1c;
}

#loader {
  border: 4px solid rgba(91, 109, 255, 0.35);
  border-top-color: var(--accent);
  width: 48px;
  height: 48px;
}

.main-banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.main-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 19, 37, 0.85), rgba(26, 30, 55, 0.6));
}

.main-banner::after {
  content: '';
  position: absolute;
  width: 1200px;
  height: 1200px;
  background: radial-gradient(circle, rgba(91, 109, 255, 0.35) 0%, rgba(91, 109, 255, 0) 60%);
  filter: blur(10px);
  opacity: 0.8;
  animation: floatGlow 24s infinite;
}

.main-banner .heading {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
  padding: 0 20px;
}

.main-banner .heading h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.main-banner .heading p {
  font-size: 1.125rem;
  color: rgba(228, 231, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 26px;
  line-height: 1.7;
}

.main-banner .heading h3 {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
}

.cd-headline.clip .cd-words-wrapper b {
  font-size: 1rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(91, 109, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

#clouds {
  margin-top: -70px;
  opacity: 0.9;
  filter: drop-shadow(0 -8px 30px rgba(0, 0, 0, 0.3));
}

.section-title {
  margin-bottom: 60px;
  position: relative;
}

.section-title h3 {
  display: inline-block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 120px;
  height: 3px;
  background: linear-gradient(135deg, rgba(91, 109, 255, 0.9), rgba(248, 103, 139, 0.9));
  border-radius: 999px;
}

.section-title p {
  color: var(--muted);
  margin-top: 18px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.section.wb {
  background: rgba(13, 17, 36, 0.75);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  margin: 80px auto;
  padding: 110px clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: var(--card-shadow);
}

.section.lb {
  background: rgba(14, 18, 38, 0.7);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  margin: 80px auto;
  padding: 110px clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: var(--card-shadow);
}

.message-box h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}

.message-box p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.right-box-pro img {
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#services .row {
  row-gap: 36px;
}

.services-inner-box {
  background: linear-gradient(145deg, rgba(91, 109, 255, 0.09), rgba(255, 255, 255, 0.03));
  border-radius: var(--radius-md);
  padding: 40px 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

.services-inner-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(91, 109, 255, 0.28), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.services-inner-box:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(9, 14, 46, 0.4);
}

.services-inner-box:hover::before {
  opacity: 1;
}

.services-inner-box .ser-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(91, 109, 255, 0.35), rgba(248, 103, 139, 0.25));
  color: #fff;
  font-size: 2rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.services-inner-box h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.03em;
}

.services-inner-box p {
  color: var(--muted);
  line-height: 1.8;
}

.gallery-menu {
  margin-bottom: 50px;
}

.gallery-menu button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 26px;
  margin-right: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.35s ease;
}

.gallery-menu button:hover,
.gallery-menu button.active {
  background: linear-gradient(135deg, rgba(91, 109, 255, 0.85), rgba(248, 103, 139, 0.7));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(91, 109, 255, 0.3);
}

.gallery-grid {
  margin-bottom: 30px;
}

.gallery-single {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 22px 40px rgba(6, 9, 28, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-single img {
  transition: transform 0.45s ease;
}

.gallery-single:hover {
  transform: translateY(-14px);
  box-shadow: 0 30px 65px rgba(9, 14, 46, 0.5);
}

.gallery-single:hover img {
  transform: scale(1.08);
}

.gallery-single .img-overlay {
  background: linear-gradient(180deg, rgba(15, 19, 37, 0) 0%, rgba(15, 19, 37, 0.85) 100%);
}

.gallery-single .hoverbutton {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(91, 109, 255, 0.95), rgba(248, 103, 139, 0.8));
  box-shadow: 0 12px 24px rgba(91, 109, 255, 0.4);
}

.gallery-single .hoverbutton i {
  color: #fff;
  font-size: 1.1rem;
  line-height: 54px;
}

.post-box {
  background: rgba(18, 23, 45, 0.75);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(6, 9, 28, 0.45);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.post-box:hover {
  transform: translateY(-16px);
  box-shadow: 0 32px 68px rgba(9, 14, 46, 0.5);
}

.post-thumb {
  position: relative;
}

.post-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 19, 37, 0), rgba(15, 19, 37, 0.85));
}

.post-thumb img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.post-info {
  padding: 32px 28px 36px;
}

.post-info h4 {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.post-info ul {
  padding: 0;
  margin: 0;
}

.post-info ul li {
  color: var(--muted);
}

.post-box .date {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 6px 12px;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #fff;
}

#portfolio .section-title p {
  max-width: 440px;
}

#portfolio .section-title p + p {
  margin-top: 10px;
}

#portfolio .section-title p,
#portfolio .section-title p + p {
  font-family: 'Poppins', sans-serif;
}

.footer-distributed {
  padding: 40px 0;
  text-align: center;
}

.footer-links a {
  color: rgba(228, 231, 255, 0.6);
  margin: 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  transition: color 0.35s ease;
}

.footer-links a:hover {
  color: #fff;
}

#scroll-to-top {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 36px rgba(91, 109, 255, 0.35);
  color: #fff;
  border: none;
}

#scroll-to-top.show {
  bottom: 40px;
}

#scroll-to-top i {
  line-height: 52px;
  font-size: 1.3rem;
}

.navbar-toggler {
  border: none;
  color: #fff;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-dark .navbar-toggler-icon {
  background-image: none;
}

.navbar-dark .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(-15%, -10%) scale(1);
  }
  50% {
    transform: translate(10%, 5%) scale(1.05);
  }
}

@media (max-width: 991.98px) {
  #mainNav {
    background: rgba(12, 16, 34, 0.92);
    padding: 16px 0;
  }

  #mainNav .navbar-nav .nav-link {
    margin: 12px 0;
    font-size: 0.9rem;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .section-title {
    text-align: center;
  }

  .section.wb,
  .section.lb {
    padding: 80px 24px;
    margin: 60px 0;
  }

  .main-banner::after {
    width: 820px;
    height: 820px;
  }
}

@media (max-width: 767.98px) {
  .main-banner .heading h1 {
    letter-spacing: 0.18em;
  }

  .main-banner .heading p {
    font-size: 1rem;
  }

  .post-thumb img {
    height: 220px;
  }

  body::before,
  body::after {
    width: 320px;
    height: 320px;
    filter: blur(90px);
  }
}

@media (max-width: 575.98px) {
  .main-banner .heading {
    padding: 0 12px;
  }

  .section {
    padding: 90px 0;
  }

  .services-inner-box {
    padding: 32px 24px;
  }
}

#about .section-title,
#services .section-title,
#portfolio .section-title,
#blog .section-title {
  text-align: left;
}

#portfolio .section-title,
#blog .section-title {
  text-align: center;
}

#portfolio .section-title::after,
#blog .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

#portfolio .section-title p,
#portfolio .section-title p + p,
#blog .section-title p {
  margin-left: auto;
  margin-right: auto;
}
