/* --- STYLESHEET FOR PREMIUM BOOTSTRAP 5 PORTFOLIO --- */

:root {
  /* Default Dark Theme Variables */
  --bg-primary: #0a0f1d;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --accent-color: #6366f1; /* Indigo */
  --accent-rgb: 99, 102, 241;
  --aurora-1: rgba(99, 102, 241, 0.15);
  --aurora-2: rgba(236, 72, 153, 0.15);
  --aurora-3: rgba(16, 185, 129, 0.12);
  --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --font-sans: 'Inter', 'Poppins', sans-serif;
  --glow-color: rgba(99, 102, 241, 0.15);
  --scroll-bar-color: #1f2937;
}

[data-theme="light"] {
  /* Light Theme Variables */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.8);
  --border-color: rgba(15, 23, 42, 0.08);
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent-color: #4f46e5;
  --accent-rgb: 79, 70, 229;
  --aurora-1: rgba(99, 102, 241, 0.06);
  --aurora-2: rgba(236, 72, 153, 0.06);
  --aurora-3: rgba(16, 185, 129, 0.05);
  --shadow-main: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
  --glow-color: rgba(79, 70, 229, 0.05);
  --scroll-bar-color: #e2e8f0;
}

/* --- BASE & UTILITY STYLES --- */
body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  transition: background-color 0.4s ease, color 0.3s ease;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* --- SCROLL PROGRESS BAR --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #ec4899);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* --- MOUSE GLOW --- */
.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-color) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

body:hover .mouse-glow {
  opacity: 1;
}

/* --- AURORA BLOBS --- */
.aurora-blobs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.8;
  animation: float 20s infinite alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 45vw;
  height: 45vw;
  background-color: var(--aurora-1);
  animation-duration: 25s;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background-color: var(--aurora-2);
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 50%;
  width: 35vw;
  height: 35vw;
  background-color: var(--aurora-3);
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.1); }
  100% { transform: translate(-5%, -5%) scale(0.9); }
}

/* --- NAVBAR --- */
#main-nav {
  background-color: rgba(var(--accent-rgb), 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  transition: padding 0.3s ease, background-color 0.3s ease;
  z-index: 1000;
}

#main-nav.nav-scrolled {
  padding: 12px 0;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-main);
}

.navbar-brand {
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--text-main) !important;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 550;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  padding: 8px 16px !important;
  border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color) !important;
  background-color: rgba(var(--accent-rgb), 0.05);
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.toggler-icon {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  padding-top: 120px;
  position: relative;
  z-index: 2;
}

.hero-profile-wrapper {
  position: relative;
}

.hero-profile-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--accent-color), #ec4899);
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.4);
  display: inline-block;
  overflow: hidden;
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-primary);
}

.hero-greeting {
  font-family: 'Poppins', sans-serif;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: var(--text-main);
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--text-muted);
}

.typing-container {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.typed-txt {
  color: var(--accent-color);
  font-weight: 700;
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}

.btn-primary-action {
  background: linear-gradient(135deg, var(--accent-color), #7c3aed);
  color: #fff !important;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
  transition: all 0.3s ease;
}

.btn-primary-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.5);
}

.btn-secondary-action {
  background: var(--bg-card);
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary-action:hover {
  border-color: var(--accent-color);
  background-color: rgba(var(--accent-rgb), 0.05);
  transform: translateY(-3px);
}

.hero-socials {
  display: flex;
  justify-content: center;
}

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

.social-icon-link:hover {
  color: #fff;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

/* --- SECTION COMMONS --- */
.section-padding {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.5rem;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

/* --- ABOUT SECTION --- */
.about-image-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-main);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 15px;
  transform: rotate(-2deg);
  transition: all 0.5s ease;
}

.about-image-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.about-img {
  border-radius: 16px;
  width: 100%;
}

.about-subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--accent-color);
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.internship-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(10px);
}

.internship-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.internship-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- SKILLS SECTION --- */
.skills-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-main);
  transition: all 0.3s ease;
}

.skills-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.15);
}

.skill-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.skill-category-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.skills-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.skill-tech-icon {
  font-size: 1.3rem;
  width: 25px;
  display: flex;
  justify-content: center;
}

.skill-name {
  color: var(--text-muted);
}

/* --- PROJECTS SECTION --- */
.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-main);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 320px;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 15px 30px rgba(var(--accent-rgb), 0.2);
}

.project-img-wrapper {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(236, 72, 153, 0.1));
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  height: 3.2rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.btn-git-code, .btn-demo-video {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.btn-git-code:hover {
  color: #fff;
  background-color: #24292e;
  border-color: #24292e;
}

.btn-demo-video:hover {
  color: #fff;
  background-color: #ef4444;
  border-color: #ef4444;
}

.project-details-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.project-details-collapse.show {
  max-height: 1000px;
  transition: max-height 0.6s cubic-bezier(1, 0, 1, 0);
}

.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.tech-badge-item img {
  width: 14px;
  height: 14px;
}

.project-desc {
  font-size: 0.85rem;
  line-height: 1.6;
}

.features-list-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.features-bullets {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-toggle-details {
  background: transparent;
  border: none;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  padding: 0;
  outline: none;
}

.btn-toggle-details i {
  transition: transform 0.3s ease;
}

.btn-toggle-details[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* --- EDUCATION SECTION --- */
.timeline-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-item {
  width: 100%;
  position: relative;
  z-index: 2;
}

.timeline-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(10px);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.timeline-icon {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.3);
}

.education-year {
  color: var(--accent-color);
  font-size: 0.9rem;
}

.education-degree {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.education-field {
  font-size: 0.95rem;
}

.education-college {
  font-size: 0.95rem;
}

.education-university {
  font-size: 0.85rem;
}

.grade-badge {
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 8px;
}

.dot-inner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
  z-index: 3;
}

/* --- CONTACT SECTION --- */
.contact-method-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-main);
  transition: all 0.3s ease;
}

.contact-method-card:hover {
  transform: translateX(5px);
  border-color: var(--accent-color);
}

.contact-icon-box {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-link {
  color: var(--text-main);
  font-weight: 600;
}

.contact-link:hover {
  color: var(--accent-color);
}

.contact-form-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(10px);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 8px;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--accent-rgb), 0.15);
  color: var(--text-main);
}

/* --- FOOTER --- */
footer {
  background-color: rgba(var(--accent-rgb), 0.02);
  border-top: 1px solid var(--border-color) !important;
  color: var(--text-muted);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
  .hero-name {
    font-size: 2.5rem;
  }
  .hero-title {
    font-size: 1.4rem;
  }
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    align-items: flex-start !important;
  }
  .timeline-card-wrapper {
    width: 100% !important;
    padding-left: 45px;
  }
  .timeline-dot {
    position: absolute;
    left: 12px;
    top: 25px;
    width: auto !important;
    justify-content: flex-start !important;
  }
  .timeline-spacer {
    display: none !important;
  }
  .navbar-collapse {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    margin-top: 10px;
  }
  .theme-toggle-btn {
    margin-bottom: 10px;
  }
}
