/* ============================================
   Base Styles
============================================ */

html, body {
  overflow-x: hidden;
  scroll-behavior: auto;
}

body {
  background-color: #0e1117;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
}

section {
  scroll-snap-align: start;
}

/* ============================================
   Typography
============================================ */

.hero-title {
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 2.5rem;
  font-weight: bold;
  white-space: nowrap;
}

.subtitle {
  color: #9ca3af;
}

/* ============================================
   Navigation & Footer Links
============================================ */

.nav-link,
.footer-links a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 1rem;
}

.nav-link:hover,
.footer-links a:hover {
  color: #3333cc;
}

.nav-link.active,
.nav-link:focus,
.nav-link:active {
  color: #ffff !important;
}

/* Bootstrap Outline Primary Button Overrides */

.btn-outline-primary,
.btn-outline-primary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:focus:active {
  background-color: transparent !important;
  color: #3333cc !important; /* Bootstrap primary text color */
  box-shadow: none !important;
  border-color: #3333cc !important;
}

@media (max-width: 576px) {
.btn-outline-primary,
.btn-outline-primary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:focus:active {
  background-color: transparent !important;
  color: #ff3300 !important; /* Bootstrap primary text color */
  box-shadow: none !important;
  border-color: #ff3300 !important;
}
}

/* ============================================
   Responsive Styles (Mobile First)
============================================ */

@media (max-width: 576px) {
  .container,
  .hero-section,
  .card-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    margin-top: 0.5rem;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.25rem 0;
  }

  .hero-title {
    white-space: normal; /* allow wrapping on small screens */
    font-size: 1.3rem; /* optional smaller size */
  }
}

/* ============================================
   Custom Links
============================================ */

.custom-link {
  color: #3333cc;
}

.custom-link:hover {
  color: #8000ff;
}

/* ============================================
   Buttons
============================================ */

.btn-primary {
  background-color: #ff0066;
  border: none;
}
.btn-primary:hover {
  background-color: #5200cc;
  border: none;
}
@media (max-width: 768px) {
  .btn-primary{
    background-color: #5200cc;
  }
  .btn-primary:hover{
    background-color: blue;
  }
}
/* ============================================
   Layout Sections
============================================ */

#matlab-graph-container {
  width: 100%;
  height: 500px;
  position: relative;
  background: transparent;
  overflow: hidden;
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.card-section {
  margin-top: 3rem;
}

/* ============================================
   About Section Styling & Effects
============================================ */

#about {
  border-radius: 0.1rem;
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 10px;
  font-style: normal;
  position: relative; /* needed for ::before and ::after positioning */
}

#about.bg-dark {
  background-color: #000 !important;
}

/* Abstract Layer 1: Polygonal Shape */
#about::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  width: 300px;
  height: 300px;
  top: 10%;
  left: -100px;
  background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
  clip-path: polygon(0 0, 100% 10%, 90% 100%, 10% 90%);
  filter: blur(40px);
}

/* Abstract Layer 2: Circle with Gradient */
#about::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  width: 250px;
  height: 250px;
  bottom: 5%;
  right: -80px;
  background: radial-gradient(circle, #00ffff, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

/* ============================================
   Cursor Styling & Animation
============================================ */

.cursor,
.cursor-about1,
.cursor-about2,
.cursor-about3,
.cursor-about4 {
  display: inline-block;
  font-weight: bold;
  animation: blink 0.7s step-start infinite;
}

.cursor {
  color: #5200cc;
}

.cursor-about1,
.cursor-about2,
.cursor-about3,
.cursor-about4 {
  color: #fff;
}

.cursor-static {
  display: inline-block;
  color: #ff0066;;
  font-weight: bold;
}
@media (max-width: 768px) {
.cursor-static {
  color: #ff3300;
}
.cursor{
  color: #ff3300;
}
}
/* ============================================
   Animations
============================================ */

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ============================================
   Contact Section Styling
============================================ */

.contact-section {
  background-color: #0f0f11;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Contact Button Override */
.contact-section .btn-primary {
  background-color: #297eff;
  border: none;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.contact-section .btn-primary:hover {
  background-color: #1e5ed3;
}

/* 3D Graphic Image */
.contact-graphic {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-top: 2rem;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
}

/* ============================================
   Particle Canvas Overlay & Flash Effect
============================================ */

#particle-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(255, 0, 255, 0.7), transparent 70%);
  animation: fadeOut 0.6s ease-out forwards;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

/* ============================================
   Responsive Font Sizes for #about Section
============================================ */

@media (max-width: 768px) {
  #about {
    font-size: 0.9rem;
  }

  #about h2 {
    font-size: 1.25rem;
  }

  #about .lead {
    font-size: 0.95rem;
  }

  #about span {
    font-size: 0.9rem;
  }
}

/* ============================================
   Skills Box Styling & Skill Chips
============================================ */

.skill-box {
  background-color: #000;
  border: 1px solid #000;
  transition: border-color 0.3s ease;
}

/* Uncomment to enable hover effect */
/*
.skill-box:hover {
  border-color: #a259ff;
  box-shadow: 0 0 12px rgba(162, 89, 255, 0.15);
}
*/

h2.skills-title {
  padding-top: 30px; /* or any value you like */
}

.skill-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #3333cc;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  background: #2a2a2a;
  color: #a259ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: default;
  user-select: none;
  transition: background-color 0.3s ease;
  border: 1px solid transparent;
}

.skill-chip:hover {
  background: #a259ff;
  color: #1a1a1a;
  border-color: #a259ff;
}
