/* General Reset and Base Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fff;
}

/* Navbar Styling */
.navbar-toggler {
  position: relative; /* Ensure proper stacking context */
  display: inline-flex; 
  justify-content: center; 
  align-items: center; 
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  z-index: 9999; /* Make sure the hamburger button stays on top */
  padding: 0;
}

/* Hamburger Icon (The three lines) */
.navbar-toggler-icon {
  position: relative;
  width: 30px;
  height: 3px;
  background-color: #ffffff;
  display: block;
  transition: background-color 0.3s ease;
  margin: 0;
}

.navbar-toggler-icon:before,
.navbar-toggler-icon:after {
  content: '';
  position: absolute;
  background-color: #ffffff;
  width: 30px;
  height: 3px;
  transition: background-color 0.3s ease;
}

.navbar-toggler-icon:before {
  top: -8px;
}

.navbar-toggler-icon:after {
  top: 8px;
}

/* Portfolio Section Styles */
.block {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
  color: #333;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

/* Project Card */
.project-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 300px;
  width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s;
}

.project-card h3 {
  font-size: 1.5em;
  color: #007BFF;
}

.project-card p {
  margin: 10px 0 20px;
  color: #666;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* Glow Button */
.glow-button {
  --glow-color: rgb(254, 192, 22);
  --glow-spread-color: rgba(254, 192, 22, 0.2);
  --btn-color: rgb(53, 52, 52);
  border: 2px solid var(--glow-color);
  padding: 0.8em 2em;
  color: var(--glow-color);
  font-size: 15px;
  font-weight: bold;
  background-color: var(--btn-color);
  border-radius: 8px;
  text-shadow: 0 0 .1em var(--glow-color);
  transition: all 0.3s;
  margin-top: auto;
  height: 40px;
  width: 100%; /* Full width to fit the card */
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Ensure proper stacking context */
}

/* Ensure button is visible above other elements when hovered */
.glow-button:hover {
  color: var(--btn-color);
  background-color: var(--glow-color);
  box-shadow: 0 0 0.1em .02em var(--glow-color),
              0 0 0.3em .1em var(--glow-spread-color),
              inset 0 0 .1em .02em var(--glow-color);
  z-index: 9999; /* Keep glow button above other elements */
}

/* Button active state */
.glow-button:active {
  box-shadow: 0 0 0.1em .02em var(--glow-color),
              0 0 0.2em .1em var(--glow-spread-color),
              inset 0 0 .1em .02em var(--glow-color);
  transform: scale(0.95); /* Avoid excessive transform on click */
}

/* Styling for Glow Line */
.glow-line {
  width: 50%;
  height: 4px;
  background: linear-gradient(90deg, rgba(76, 0, 255), rgba(56, 34, 107), rgba(76, 0, 255));
  margin: 10px auto;
  box-shadow: 0 0 10px rgba(76, 0, 255), 0 0 20px rgba(56, 34, 107);
  border-radius: 2px;
}

#portfolio .project-card h3 {
  color: black;
  text-decoration: none;
}

/* Media Query for Smaller Screens */
@media (max-width: 992px) {
  .navbar-toggler {
      margin-left: auto;
      margin-right: 30px;
      margin-top: 30px;
  }

  .navbar-collapse {
      justify-content: flex-end;
      width: 100%;
      margin-top: 10px;
  }

  .navbar-nav {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      width: 100%;
  }

  .nav-item {
      margin: 10px 0;
  }
}

  
  /* From Uiverse.io by cssbuttons-io */ 
  .glow-button {
    --glow-color: rgb(254, 192, 22); /* Light blue glow color */
    --glow-spread-color: rgba(254, 192, 22); /* Even less spread color */
    --enhanced-glow-color: rgb(254, 192, 22); /* Keep enhanced glow the same */
    --btn-color: rgb(53, 52, 52);
    border: .25em solid var(--glow-color);
    padding: 0.8em 2em;
    color: var(--glow-color);
    font-size: 15px;
    font-weight: bold;
    background-color: var(--btn-color);
    border-radius: 1em;
    outline: none;
    box-shadow: 0 0 0.1em .02em var(--glow-color), /* Reduced glow effect */
                0 0 0.2em .15em var(--glow-spread-color), /* Reduced spread effect */
                inset 0 0 .1em .02em var(--glow-color); /* Reduced inset glow */
    text-shadow: 0 0 .1em var(--glow-color); /* Reduced text shadow */
    position: relative;
    transition: all 0.3s;
}

.glow-button::after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 120%;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--glow-spread-color);
    filter: blur(0.5em); /* Reduced blur */
    opacity: .2; /* Further reduced opacity */
    transform: perspective(1.5em) rotateX(35deg) scale(1, .6);
}

.glow-button:hover {
    color: var(--btn-color);
    background-color: var(--glow-color);
    box-shadow: 0 0 0.1em .02em var(--glow-color), /* Reduced glow effect on hover */
                0 0 0.3em .1em var(--glow-spread-color), /* Reduced spread effect on hover */
                inset 0 0 .1em .02em var(--glow-color); /* Reduced inset glow on hover */
}

.glow-button:active {
    box-shadow: 0 0 0.1em .02em var(--glow-color), /* Reduced active glow */
                0 0 0.2em .1em var(--glow-spread-color), /* Reduced active spread */
                inset 0 0 .1em .02em var(--glow-color); /* Reduced inset active glow */
}

.glow-line {
    width: 50%; /* Change this to control the line's width (e.g., 50% for half-width, 100% for full-width) */
    height: 4px; /* Change this to control the line's thickness */
    background: linear-gradient(90deg, rgba(76, 0, 255), rgba(56, 34, 107), rgba(76, 0, 255)); /* Glowing effect */
    margin: 10px auto; /* Center the line and add space above and below */
    box-shadow: 0 0 10px rgba(76, 0, 255), 0 0 20px rgba(56, 34, 107); /* Glow effect */
    border-radius: 2px; /* Optional: Rounded edges */
}

#portfolio .project-card h3 {
  color: black; /* or any color you prefer */
  text-decoration: none; /* removes underline if any */
}
