@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #9d50bb;
  --primary-alt: #6e48aa;
  --secondary: #ffc107;
  --bg-darker: #050510;
  --bg-dark: #0a0a1a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #f0f0f0;
  --text-muted: #a0a0b0;
  --accent: #00f2fe;
  --gradient-base: linear-gradient(135deg, #9d50bb 0%, #6e48aa 100%);
  --cursor: #9d50bb;
}


/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-base);
  z-index: 10000;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-darker);
  background: radial-gradient(circle at top right, rgba(157, 80, 187, 0.08), transparent 400px),
    radial-gradient(circle at bottom left, rgba(110, 72, 170, 0.05), transparent 400px),
    var(--bg-darker);
  color: var(--text-main);
  scroll-behavior: smooth;
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

p,
section li,
.text-muted {
  color: var(--text-muted) !important;
}

b,
strong,
i {
  color: var(--text-main);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-alt);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Background Stars Enhancement */
#stars,
#stars2,
#stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Helper Classes */
.text-purple {
  color: var(--primary);
}

.text-yellow {
  color: var(--secondary);
}

.purple-text-shadow {
  text-shadow: 0 4px 15px rgba(157, 80, 187, 0.4);
}

.yello-text-shadow {
  text-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* Navbar Enhancement */
.navbar {
  padding: 1.2rem 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient-base);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(circle at 70% 30%, rgba(110, 72, 170, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(157, 80, 187, 0.1) 0%, transparent 40%);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #a0a0b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .heading {
  font-size: clamp(1rem, 4vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #a0a0b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}



.typed-text {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-shadow {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background: var(--gradient-base);
  color: white !important;
  border: none;
  font-weight: 600;
  transition: all 0.4s;
  box-shadow: 0 10px 20px rgba(110, 72, 170, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-shadow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(110, 72, 170, 0.5);
}

.btn-shadow a {
  color: white !important;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.8rem 2rem;
  transition: all 0.4s !important;
}

.btn-outline-light:hover {
  background: var(--gradient-base) !important;
  border-color: transparent !important;
  color: white !important;
  box-shadow: 0 10px 20px rgba(110, 72, 170, 0.4);
  transform: translateY(-3px);
}

.btn-shadow i,
.btn-outline-light i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
}

.home-image {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blob 8s infinite alternate;
  box-shadow: 0 0 50px rgba(157, 80, 187, 0.2);
  filter: drop-shadow(0 0 30px rgba(157, 80, 187, 0.3));
  margin: 0 auto;
  display: block;
}

@media (max-width: 768px) {
  .home-image {
    max-width: 320px;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .home-image {
    max-width: 280px;
  }
}

@keyframes blob {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  100% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

/* Sections */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.divider {
  height: 4px;
  width: 60px;
  background: var(--gradient-base);
  border-radius: 2px;
  margin: 0 auto 3rem;
}

/* About Section */
#about {
  background-color: var(--bg-dark);
}

.about-list {
  list-style: none;
  padding: 0;
}

.about-list li {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.about-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-base);
  opacity: 0;
  transition: 0.3s;
}

.about-list li:hover {
  transform: translateX(10px);
  border-color: rgba(157, 80, 187, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.about-list li:hover::before {
  opacity: 1;
}

.about-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--gradient-base);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 5px 15px rgba(157, 80, 187, 0.3);
}

.about-content {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Adjust about on mobile */
@media (max-width: 768px) {
  .about-list li {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
}

/* Project Cards */
.project-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(12px);
  border-radius: 24px !important;
  padding: 1.2rem !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.01);
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 15px rgba(157, 80, 187, 0.3),
    0 0 30px rgba(0, 242, 254, 0.2),
    0 0 50px rgba(110, 72, 170, 0.1) !important;
}

.project-card img {
  border-radius: 18px !important;
  transition: transform 0.5s;
}

.project-card:hover img {
  transform: scale(1.02);
}

.badge-color {
  background: rgba(157, 80, 187, 0.15);
  color: var(--primary);
  padding: 0.4em 0.8em;
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.75rem;
  margin-right: 5px;
  margin-bottom: 5px;
  display: inline-block;
}

.project-card-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--text-main);
  transition: color 0.3s;
}

.project-card:hover .project-card-heading {
  color: var(--secondary);
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Skill Icons */
.icon-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem 1.2rem;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icon-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(157, 80, 187, 0.05);
}

.icon-box i,
.icon-box img {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.icon-box img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Certificates */
.custom-yello-shadow {
  background: var(--glass-bg) !important;
  border: 2px solid rgba(255, 193, 7, 0.2) !important;
  border-radius: 24px !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(157, 80, 187, 0.2),
    0 0 40px rgba(110, 72, 170, 0.1);
  padding: 10px;
}

.custom-yello-shadow img {
  border-radius: 18px !important;
  transition: transform 0.5s;
}

.custom-yello-shadow .card-body {
  padding: 1.5rem 1rem 1rem !important;
}

.custom-yello-shadow:hover {
  border-color: var(--secondary) !important;
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.3),
    0 0 30px rgba(157, 80, 187, 0.2),
    0 0 50px rgba(110, 72, 170, 0.1) !important;
}


.icon-box h5 {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.custom-yello-shadow .card-title {
  color: var(--text-main) !important;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Contact Section */
#contact {
  background: var(--bg-dark);
  border-top: 1px solid var(--glass-border);
}

.contact-info .icon-box {
  flex-direction: row;
  justify-content: flex-start;
  padding: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.contact-info .icon-box i {
  font-size: 1.8rem;
  margin-bottom: 0;
  width: 40px;
  display: flex;
  justify-content: center;
}

.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  border-radius: 24px;
}

.form-control {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-main) !important;
  border-radius: 12px !important;
  transition: all 0.3s;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 15px rgba(157, 80, 187, 0.2) !important;
}

.form-floating label {
  color: var(--text-muted);
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
  color: var(--primary);
}

/* Footer */
footer {
  padding: 3rem 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .hero {
    text-align: center;
  }

  .hero img {
    margin-top: 3rem;
  }

  .nav-item {
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 991px) {
  .fullscreen-menu {
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(20px);
  }
}

/* Back to Top Button Enhancement */
#backToTop {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#backToTop i {
  font-size: 1.2rem;
  margin: 0;
}

#backToTop:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 0 20px rgba(157, 80, 187, 0.6);
}

/* Ensure Button is hidden when needed */
#backToTop.d-none {
  display: none !important;
}