:root {
  --primary-color: #0d6efd;
  --accent-color: #0dcaf0;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-light: #f8f9fa;
  --text-muted: #94a3b8;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  position: relative;
}

/* Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

/* Navbar */

.navbar {
  background: rgba(19, 58, 138, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 2.5rem;
  color: #fcfafa;
}

.navbar-brand span {
 color: #000;
}


.nav-link {
  font-size: 1.5rem;
  color: #f8f5f5;
  font-weight: 600;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s;
}

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

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

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

/* General Section Styling */
section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--gradient);
  opacity: 0.2;
  z-index: -1;
  border-radius: 5px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-img-container {
  position: relative;
  z-index: 10;
}

.hero-img {
  width: 350px;
  height: 650px;
  object-fit: cover;

  /* Clean shape */
  border-radius: 10%;

  /* Glow border */
  border: 3px solid var(--accent-color);
  box-shadow:
    0 0 15px rgba(13, 110, 253, 0.6),
    0 0 30px rgba(13, 110, 253, 0.3);
}


.typing-loop {
  font-size: 2.5rem;
  font-weight: bold;
  color: rgb(251, 248, 248);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  width: 0ch;
  animation: typing 5s steps(25) infinite;
}

@keyframes typing {
  0% {
    width: 0ch;
  }
  60% {
    width: 25ch;
  }
  100% {
    width: 25ch; /* HOLD — no reverse */
  }
}






.btn-custom {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
}

.btn-primary-custom {
  background: var(--gradient);
  color: white;
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--text-light);
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  color: white;
}

.btn-outline-custom:hover {
  background: var(--primary-color);
}



/* Tech Stack Icons */
.tech-icon {
  font-size: 3rem;
  margin: 15px;
  transition: transform 0.3s;
}

.tech-icon:hover {
  transform: scale(1.2) rotate(5deg);
}

/* About & Experience Cards */
.info-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s;
}

.info-img-wrapper {
  overflow: hidden;
  height: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.info-img {
  width: 500px;
  height: 600px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.info-card:hover .info-img {
  transform: scale(1.1);
}

.accordion-button::after {
  background-image: var(--bs-accordion-btn-icon);
  filter: invert(1);
}



/* Skills Marquee */
.skills-marquee {
  background: var(--bg-card);
  padding: 40px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.skills-track {
  display: inline-block;
  animation: scroll 20s linear infinite;
}

.skill-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 30px;
  width: 100px;
}

.skill-box img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.3s;
}

.skill-box:hover img {
  filter: grayscale(0%) brightness(1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Tech Summary */
.tech-summary-box {
  background: linear-gradient(145deg, #162032, #1e293b);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-summary-box ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 20px;
}

.tech-summary-box ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Projects */
.project-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contact */
.contact-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
}

.contact-info {
  background: var(--gradient);
  color: white;
  padding: 40px;
}

.contact-info ul li {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.contact-info i {
  width: 25px;
  margin-right: 10px;
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
  color: white;
  box-shadow: none;
}

.form-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-custom {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary-custom {
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  color: #ffffff;
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.btn-custom:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


/* Socials */
.social-bar {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  z-index: 100;
}
.social-bar a i {
  font-size: 2.6rem; 
}

.social-bar a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.2rem;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-bar a:hover {
  background: var(--accent-color);
  color: var(--bg-dark);
  transform: scale(1.1);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-muted);
}







/* -----------------------------------------------------------
       NEW CSS ADDED FOR CAPTCHA (As requested, no old CSS changed)
       ----------------------------------------------------------- */
    .captcha-wrapper {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 10px;
    }

    #captchaCanvas {
      background-color: var(--bg-card);
      border: 1px solid var(--accent-color);
      border-radius: 5px;
      cursor: pointer;
      box-shadow: 0 0 10px rgba(13, 202, 240, 0.2);
    }

    #refreshCaptcha {
      background: transparent;
      border: 1px solid var(--text-muted);
      color: var(--text-light);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
    }

    #refreshCaptcha:hover {
      background: var(--accent-color);
      border-color: var(--accent-color);
      color: var(--bg-dark);
      transform: rotate(180deg);
    }
