/*
 * Base styles for the portfolio site.
 */

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #272829;
  
}

a {
  color: #af00ba;
  text-decoration: none;
}

a:hover {
  color: #067ded;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #af00ba;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #fda4ef;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;

}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #af00ba;
  border-top-color: #fff;
  border-bottom-color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9997;
  transition: all 0.5s;
  padding: 15px;
  overflow-y: auto;
}

@media (max-width: 991px) {
  #header {
    width: 300px;
    background: #fff;
    border-right: 1px solid #e6e9ec;
    left: -300px;
  }
}

@media (min-width: 991px) {
  #main {
    margin-left: 100px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.nav-menu {
  padding: 0;
  display: block;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu>ul>li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: #45505b;
  padding: 10px 18px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
  border-radius: 50px;
  background: #f2f3f5;
  height: 56px;
  width: 100%;
  overflow: hidden;
  transition: 0.3s;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 20px;
}

.nav-menu a span,
.nav-menu a:focus span {
  padding: 0 5px 0 7px;
  color: #45505b;
}

@media (min-width: 992px) {

  .nav-menu a,
  .nav-menu a:focus {
    width: 56px;
  }

  .nav-menu a span,
  .nav-menu a:focus span {
    display: none;
    color: #fff;
  }
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
  color: #fff;
  background: #af00ba;
}

.nav-menu a:hover span,
.nav-menu .active span,
.nav-menu .active:focus span,
.nav-menu li:hover>a span {
  color: #fff;
}

.nav-menu a:hover,
.nav-menu li:hover>a {
  width: 100%;
  color: #fff;
}

.nav-menu a:hover span,
.nav-menu li:hover>a span {
  display: block;
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  position: fixed;
  right: 10px;
  top: 10px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 28px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 0;
  cursor: pointer;
  border-radius: 50px;
  padding: 5px;
}

.mobile-nav-toggle i {
  color: #45505b;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle {
  color: #fff;
  background-color: #af00ba;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: url("../img/img3.jpg") top right no-repeat;
  background-size: cover;
  position: relative;
}

@media (min-width: 992px) {
  #hero {
    padding-left: 160px;
  }
}

#hero:before {
  content: "";
  background: rgba(255, 255, 255, 0.49);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

#hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #45505b;
}

#hero p {
  color: #45505b;
  margin: 15px 0 0 0;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}

#hero p span {
  color: #af00ba;
  letter-spacing: 1px;
}

#hero .social-links {
  margin-top: 30px;
}

#hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: #45505b;
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

#hero .social-links a:hover {
  color: #af00ba;
}

@media (max-width: 992px) {
  #hero {
    text-align: center;
  }

  #hero h1 {
    font-size: 32px;
    line-height: 36px;
  }

  #hero p {
    margin-top: 10px;
    font-size: 20px;
    line-height: 24px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #45505b;
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #af00ba;
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-card {
  width: 100%;
  min-height: 400px;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 1px #eadbf0,
    0 18px 38px rgba(69, 80, 91, 0.08);
}

.about-card__layout {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 400px;
}

.about-card__media {
  position: relative;
  overflow: hidden;
}

.about-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(216, 79, 224, 0.12), transparent 32%),
    linear-gradient(180deg, #fcf9fd 0%, #ffffff 100%);
}

.about-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-card__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #af00ba;
}

.about-card__title {
  margin: 0;
  font-size: clamp(1.45rem, 1.25rem + 0.7vw, 1.95rem);
  line-height: 1.05;
  color: #2f3b45;
}

.about-card__description {
  color: #5f6973;
  font-size: 0.96rem;
  line-height: 1.6;
}

.about-card__description p {
  margin-bottom: 0.8rem;
}

.about-card__description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .about-card {
    min-height: auto;
  }

  .about-card__layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-card__media {
    min-height: 240px;
  }

  .about-card__body {
    padding: 1.2rem 1rem;
  }
}

/*--------------------------------------------------------------
# Tech Stack
--------------------------------------------------------------*/
.tech-stack-grid {
  row-gap: 2rem;
}

.tech-stack-grid__item {
  display: flex;
}

.tech-stack-section .count-box {
  padding: 2rem 1rem 1.25rem;
  width: 100%;
  position: relative;
  text-align: center;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 150px;
}

.tech-stack-section .count-box i {
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.tech-stack-section .count-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.tech-stack-section .count-box h5 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

@media (max-width: 575.98px) {
  .tech-stack-section {
    padding: 40px 0;
  }

  .tech-stack-grid {
    row-gap: 1rem;
  }

  .tech-stack-section .count-box {
    min-height: 110px;
    padding: 1rem 0.5rem 0.75rem;
  }

  .tech-stack-section .count-box i,
  .tech-stack-section .count-box img {
    width: 42px;
    height: 42px;
    margin-bottom: 0.6rem;
  }

  .tech-stack-section .count-box h5 {
    font-size: 0.8rem;
    line-height: 1.15;
  }
}

/*--------------------------------------------------------------
# Featured Project
--------------------------------------------------------------*/
.project-showcase-section .section-title p {
  max-width: 620px;
  margin: 0 auto;
}

.project-showcase-section .row {
  --bs-gutter-x: 0;
}

.featured-project-card {
  position: relative;
  width: 100%;
  min-height: 350px;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 1px #eadbf0,
    0 18px 38px rgba(69, 80, 91, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-project-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px #d9b7e1,
    0 26px 56px rgba(69, 80, 91, 0.12);
}

.featured-project-card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.featured-project-card__layout {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 350px;
}

.featured-project-card__media {
  position: relative;
  overflow: hidden;
}

.featured-project-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.featured-project-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  padding: 1.6rem 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(216, 79, 224, 0.12), transparent 32%),
    linear-gradient(180deg, #fcf9fd 0%, #ffffff 100%);
}

.featured-project-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.featured-project-card__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #af00ba;
}

.featured-project-card__title {
  margin: 0;
  font-size: clamp(1.45rem, 1.25rem + 0.7vw, 1.95rem);
  line-height: 1.05;
  color: #2f3b45;
}

.featured-project-card__description {
  color: #5f6973;
  font-size: 0.96rem;
  line-height: 1.6;
}

.featured-project-card__description p {
  margin-bottom: 0.8rem;
}

.featured-project-card__description p:last-child {
  margin-bottom: 0;
}

.featured-project-card__links {
  display: flex;
  align-items: center;
}

.featured-project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: #af00ba;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(175, 0, 186, 0.18);
}

.featured-project-card__cta::after {
  content: "\2197";
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .featured-project-card {
    min-height: auto;
  }

  .featured-project-card__layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .featured-project-card__media {
    min-height: 240px;
  }

  .featured-project-card__body {
    padding: 1.2rem 1rem;
  }
}

/*--------------------------------------------------------------
# Projects Grid
--------------------------------------------------------------*/
.project-card {
  width: 18rem;
  border: 1px solid #ebe5ee;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(69, 80, 91, 0.07);
}

.project-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.15rem 1rem 1rem;
}

.project-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.project-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #34424e;
  text-transform: none;
}

.project-card__description {
  margin: 0;
  min-height: 3.9em;
  color: #6b7680;
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.project-card__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.project-card__link,
.project-card__demo-button {
  border: 1px solid #af00ba;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  line-height: 1;
  transition: 0.3s ease;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  flex: 1 1 auto;
  background: #af00ba;
  color: #fff;
}

.project-card__link {
  color: #fff;
  background: #af00ba;
}

.project-card__demo-button {
  cursor: pointer;
}

.project-card__link:hover,
.project-card__demo-button:hover {
  background: #d84fe0;
  border-color: #d84fe0;
  color: #fff;
}

.project-card__tech-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding-top: 0.15rem;
}

.project-card__tech-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/*--------------------------------------------------------------
# Demo Viewer
--------------------------------------------------------------*/
.demo-viewer-section {
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  padding: 0.75rem 0;
  overflow: hidden;
}

.demo-viewer-section .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
}

.demo-viewer-section .section-title {
  padding-bottom: 0.2rem;
  flex-shrink: 0;
}

.demo-viewer-section .section-title h2 {
  margin-bottom: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 1.55rem;
}

.demo-viewer-section .section-title p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.9rem;
}

.demo-viewer {
  background: linear-gradient(180deg, #f8f3fa 0%, #ffffff 100%);
  border: 1px solid #ece2f0;
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 20px 45px rgba(69, 80, 91, 0.08);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-viewer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.demo-viewer__heading {
  display: flex;
  align-items: center;
  min-width: 0;
}

.demo-viewer__eyebrow {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #af00ba;
}

.demo-viewer__title {
  color: inherit;
}

.demo-viewer__close {
  border: 0;
  background: #fff;
  color: #45505b;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(69, 80, 91, 0.12);
  font-size: 0.8rem;
}

.demo-viewer__guide {
  margin-bottom: 0.5rem;
  color: #5d6974;
  flex-shrink: 0;
  font-size: 0.84rem;
  line-height: 1.28;
}

.demo-viewer__screen {
  flex: 1;
  min-height: 0;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
}

.demo-viewer__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (min-width: 992px) {
  .demo-viewer {
    padding: 1rem;
  }

  .demo-viewer__guide {
    font-size: 0.82rem;
    line-height: 1.25;
  }
}

@media (max-width: 991.98px) {
  .project-card__demo-button,
  .demo-viewer-section {
    display: none !important;
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-section .info {
  width: 100%;
  background: #fff;
}

.contact-section .info i {
  font-size: 20px;
  color: #af00ba;
  float: left;
  width: 44px;
  height: 44px;
  background: #eef7ff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact-section .info h4 {
  padding: 0 0 0 60px;
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #45505b;
}

.contact-section .info p {
  padding: 0 0 0 60px;
  margin-bottom: 0;
  font-size: 14px;
  color: #728394;
}

.contact-section .info .email,
.contact-section .info .phone {
  margin-top: 40px;
}

.contact-section .info .email:hover i,
.contact-section .info .address:hover i,
.contact-section .info .phone:hover i {
  background: #af00ba;
  color: #fff;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: #f7f8f9;
  color: #45505b;
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
}

#footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0 0 15px 0;
}

#footer p {
  font-size: 15;
  font-style: italic;
  padding: 0;
  margin: 0 0 40px 0;
}

#footer .social-links {
  margin: 0 0 40px 0;
}

#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #af00ba;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .social-links a:hover {
  background: #fda4ef;
  color: #fff;
  text-decoration: none;
}

#footer .copyright {
  margin: 0 0 5px 0;
}

#footer .credits {
  font-size: 13px;
}
