* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

:root {
  --background-dark: #0f0c29;
  --background-gradient: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  --primary: #c770f0;
  /* Vibrant Purple */
  --secondary: #a855f7;
  --text: #ffffff;
  --text-secondary: #cdc1ce;
  --glass: rgba(17, 25, 40, 0.75);
  --glass-border: rgba(255, 255, 255, 0.125);
  --card-bg: rgba(255, 255, 255, 0.05);
  --section-padding: 100px 0;
}

html {
  scroll-behavior: smooth;
  cursor: default;
  /* Revert to default cursor as requested by user often with this layout */
}

body {
  background: var(--background-gradient);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

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

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* Custom Selection */
::selection {
  background: var(--primary);
  color: #fff;
}

/* Navbar */
.navbar {
  background: rgba(15, 12, 41, 0.8) !important;
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s;
  padding: 1rem 0;
}

.navbar.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: -1px;
}

.nav-link {
  color: #fff !important;
  margin: 0 0.8rem;
  position: relative;
  font-weight: 600;
  transition: 0.3s;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-resume {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-resume:hover {
  background: rgba(199, 112, 240, 0.1);
  box-shadow: 0 0 10px rgba(199, 112, 240, 0.3);
}

/* Hero Section */
.hero {
  min-height: 110vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  padding-bottom: 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero-name {
  color: var(--primary);
  font-size: 3rem;
  font-weight: 800;
}

.typewriter-text {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.8rem;
  min-height: 40px;
}

.hero-img {
  max-width: 450px;
  width: 100%;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(199, 112, 240, 0.3));
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.intro-card {
  margin-top: 0 !important;
  background: rgba(255, 255, 255, 0.03);
  max-width: 650px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.intro-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(199, 112, 240, 0.1);
}

.greeting-box h5 {
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-img-overlay {
  position: relative;
  display: inline-block;
}

.hero-img-overlay::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.2;
  z-index: -1;
  border-radius: 50%;
}

.quick-stats .stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
  border-left: 1px solid var(--glass-border);
}

.quick-stats .stat-item:first-child {
  border-left: none;
}

.quick-stats h3 {
  font-weight: 800;
  margin-bottom: 0;
}

.cta-btns .btn-github,
.cta-btns .btn-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* About Section */
.about-card {
  background: var(--card-bg);
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.purple {
  color: var(--primary);
  font-style: italic;
}

.about-avatar {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px rgba(199, 112, 240, 0.5);
}

/* Skills */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.skill-card {
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(199, 112, 240, 0.4);
  background: rgba(199, 112, 240, 0.05);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  justify-content: center;
}

.project-card {
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(199, 112, 240, 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(199, 112, 240, 0.15);
  border-color: var(--primary);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--primary);
}

.project-content {
  padding: 1.5rem;
}

.btn-github {
  background: var(--primary);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  transition: 0.3s;
}

.btn-github:hover {
  background: #a855f7;
  color: white;
  box-shadow: 0 0 15px rgba(199, 112, 240, 0.5);
}

.btn-live {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  margin-left: 0.5rem;
  font-weight: 600;
  transition: 0.3s;
  background: transparent;
}

.btn-live:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px rgba(199, 112, 240, 0.5);
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 10px 40px;
  margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  right: -9px;
  top: 25px;
  background: var(--primary);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 15px var(--primary);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -9px;
}

.timeline-content {
  padding: 1.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: 0.3s;
}

.timeline-content:hover {
  transform: translateX(10px);
  border-color: var(--primary);
}

.timeline-content h4 {
  color: var(--primary);
  font-weight: 700;
}

/* Updated Carousel Styles */
.project-card-container {
  position: relative;
  max-width: 800px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.project-main-img {
  height: 500px;
  object-fit: cover;
  filter: brightness(0.4);
  transition: 0.5s;
}

.project-card-container:hover .project-main-img {
  filter: brightness(0.2);
  transform: scale(1.02);
}

.carousel-caption {
  bottom: 10%;
  text-align: left;
  left: 10%;
  right: 10%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--primary);
}

.carousel-caption h5 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.carousel-caption p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary);
  border-radius: 50%;
  padding: 1.5rem;
  background-size: 50%;
}

@media (max-width: 768px) {
  .hero-name {
    font-size: 2.2rem;
  }

  .timeline::after {
    left: 20px;
  }

  .timeline-dot {
    left: 11px !important;
  }

  .timeline-item {
    width: 100% !important;
    left: 0 !important;
    padding-left: 50px;
  }

  .project-main-img {
    height: 350px;
  }

  .carousel-caption h5 {
    font-size: 1.4rem;
  }
}

/* Media Queries */
@media (max-width: 991px) {

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero .row {
    flex-direction: column-reverse;
  }

  .hero-img {
    margin-bottom: 2rem;
    width: 70%;
  }

  .about-avatar {
    margin: 0 auto 2rem;
    display: block;
  }

  .navbar-collapse {
    background: rgba(15, 12, 41, 0.95);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 10px;
  }

  .navbar .container {
    flex-wrap: wrap;
  }
}

/* Contact / Footer */
footer {
  padding: 4rem 0 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

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

.social-icon {
  width: 45px;
  height: 45px;
  background: var(--card-bg);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: 0.3s;
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-5px);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--primary);
}

.find-me-text {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Section Styling */
section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background: var(--primary);
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

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

.education-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.badge {
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 6px;
}

.bg-primary {
  background-color: var(--primary) !important;
}