/* ====================
   GLOBAL & LAYOUT
   ==================== */

/* Ensure smooth scrolling offset to avoid header overlap */
html {
  scroll-padding-top: 50px; /* Adjust based on fixed header height */
}

/* Particle background container fixed behind all content */
#particles-container {
  position: fixed;
  inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
  z-index: -1; /* behind everything */
  background: #121212;
}

/* ====================
   HEADER & NAVBAR
   ==================== */

/* Fixed header with dark purple background and glow */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  background: #1a0f3f;
  box-shadow: 0 0 5px 3px #8a6effaa; /* subtle glow */
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Slightly lighter background and stronger glow on hover */
header:hover {
  background: #2c1d70;
  box-shadow: 0 0 10px 4px #b79fffcc;
}

/* Brand logo styles */
.navbar-brand {
  font-family: 'Poppins', sans-serif; /* clean modern font */
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: linear-gradient(45deg, #7b5cff, #b57aff, #6f52ff); /* purple gradient */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* gradient text effect */
  cursor: pointer;
  transition: filter 0.3s ease;
  text-shadow: 0 0 8px rgba(107, 82, 255, 0.7); /* subtle purple glow */
}

/* Brand logo hover effect: brighten and stronger glow */
.navbar-brand:hover {
  filter: brightness(1.2);
  text-shadow: 0 0 12px rgba(107, 82, 255, 1);
}

/* Navigation links hover color */
.nav-link:hover {
  color: #a37fff !important; /* purple highlight */
  transition: color 0.3s ease;
}

/* ====================
   SECTIONS (GENERAL)
   ==================== */

/* Section padding */
section {
  padding: 80px 0;
}

/* Section titles style */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a37fff; /* purple */
  margin-bottom: 1rem;
  padding-left: 10px;
}

/* Section content */
.section-content {
  font-size: 1 rem;
  line-height: 1.7;
  color: white;
}

/* ====================
   HERO SECTION
   ==================== */

/* Highlighted text in hero */
.hero h1 span {
  color: #a37fff;
}

/* Hero image shadow */
.hero img {
  box-shadow: 0 0 15px #8a6eff55;
}

/* ====================
   ABOUT SECTION
   ==================== */

/* About section container with translucent blur background */
.about-section {
  background: rgba(44, 44, 84, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: white;
}

/* About text styling */
.about-text {
  font-size: 1 rem;
  line-height: 1.6;
}

/* Download button styling */
.download-btn {
  font-weight: 600;
  letter-spacing: 1px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ====================
   SKILLS SECTION
   ==================== */

/* Transparent background for skills and projects */
.skills-section, .projects-section {
  background: transparent;
}

/* Progress bar container */
.custom-progress {
  height: 10px;
  background: rgba(44, 44, 84, 0.4);
  border-radius: 5px;
  overflow: hidden;
}

/* Progress bar itself with gradient & glow */
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #7b5cff, #b57aff);
  box-shadow: 0 0 8px #7b5cff;
  border-radius: inherit;
}

/* Individual skill widths */
.progress-bar.html5 { width: 95%; }
.progress-bar.css3 { width: 90%; }
.progress-bar.js { width: 85%; }
.progress-bar.jquery { width: 80%; }
.progress-bar.react { width: 55%; }
.progress-bar.git { width: 80%; }
.progress-bar.responsive { width: 70%; }
.progress-bar.bootstrap { width: 75%; }
.progress-bar.sfmc { width: 75%; }
.progress-bar.wordpress { width: 75%; }

/* ====================
   PROJECT & EXPERIENCE CARDS
   ==================== */

.project-card, .experience-card {
  background: rgba(44, 44, 84, 0.5);
  border: none;
  box-shadow: 0 0 12px #7b5cff;
  color: #e0e0e0;
}

.project-card .card-text {
  color: white;
}

/* ====================
   CONTACT SECTION
   ==================== */

.contact-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  color: #a37fff;
  font-weight: 700;
  font-size: 2.5rem;
}

.contact-text {
  font-size: 1 rem;
  margin-bottom: 2rem;
  color: #bdbdbd;
}

.contact-button {
  padding: 0.75rem 2rem;
  font-size: 1.25rem;
  border: 2px solid;
  transition: background-color 0.3s, color 0.3s;
}

/* ====================
   FOOTER
   ==================== */

footer {
  position: relative;
  width: 100%;
  color: #e0e0e0;
}

/* ====================
   SCROLL TO TOP BUTTON
   ==================== */

#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  font-size: 24px;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none; /* hidden initially */
  background-color: transparent;
  color: white; /* icon color */
  transition: background-color 0.3s, opacity 0.3s, visibility 0.3s;
}

#scrollToTopBtn:hover {
  background-color: rgba(44, 44, 84, 0.5);
}
