/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: --apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: black;
}

.input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

input[type="range"] {
  width: 200px;
  accent-color: #40c4ff; /* modern browsers */
}

input[type="text"] {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  width: 260px;
  max-width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: box-shadow 0.2s ease;
}

input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.5);
}

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

.secret {
    display: none;        /* hidden by default */
    background-color: gold;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Optional: show it when a class like 'active' is added */
.secret.active {
    display: block;
}
    .dropdown {
      position: relative;
      display: inline-block;
    }

    .dropbtn {
      display: inline-block;       /* treat links like blocks */
      text-align: center;          /* center the text inside link */
      margin: 0.5rem auto;         /* center horizontally */
      padding: 0.5rem 1rem;        /* make it look like a button */
      background: #1a1a1a;
      color: #fff;
      text-decoration: none;
      border-radius: 5px;
      transition: background 0.3s ease;
    }

    .dropbtn:hover {
      background: #ff9800;
      scale: 1.04;
    }

    .dropbtn .arrow {
      display: inline-block;
      margin-left: 5px;
      transition: transform 0.3s ease;
    }

    .dropdown.active .arrow {
      transform: rotate(180deg);
    }

    .dropdown-content {
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 200px;
      background: white;
      border-radius: 12px;
      box-shadow: 0px 4px 20px rgba(0,0,0,0.15);
      overflow: hidden;
      
      /* hidden by default */
      opacity: 0;
      transform: translateY(-10px);
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .dropdown-content a {
      display: block;
      padding: 12px 16px;
      text-decoration: none;
      background-color: #fff;
      color: #333;
      transition: background 0.2s;
    }

    .dropdown-content a:hover {
      background: #ff9800;
      scale: 1.04;
    }

    /* Show the menu when active */
    .dropdown.active .dropdown-content {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
.slider-setting {
  margin: 10px 0; /* space between sliders */
}

.slider-setting label,
.slider-setting input,
.slider-setting span {
  display: inline-block; /* keep them on the same line */
  vertical-align: middle;
}


.typing {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  min-height: 2em;
  color: white; /* make sure text is visible */
  font-size: 2rem;
}

/* ===== Layout ===== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ===== Header ===== */
header {
  background: #1a1a1a;
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  color: #bbb;
}

/* ===== Navigation ===== */
nav {
  margin-top: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  text-align: center;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff9800;
}

/* ===== Sections ===== */
section {
  padding: 3rem 0;
  border-bottom: 1px solid #eee;
  display: none;
  text-align: center; /* center all content horizontally */
}

section h2, section h3, section p, section a {
  margin-left: auto;
  margin-right: auto;
  min-height: 2em;
}


section.active {
    display: block;
}

/* Center links inside Projects and Socials sections */
section a {
  display: inline-block;       /* treat links like blocks */
  text-align: center;          /* center the text inside link */
  margin: 0.5rem auto;         /* center horizontally */
  padding: 0.5rem 1rem;        /* make it look like a button */
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

section a:hover {
  background: #ff9800;
  scale: 1.04;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #ffffff;
}

section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #ffffff;
}

section p {
  max-width: 700px;
  margin: 0.5rem auto;
  text-align: center;
  color: #ffffff;
}

/* ===== Projects Grid ===== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.project-card a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
  text-align: center; /* centers text inside button */
}

.project-card a:hover {
  background: #ff9800;
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== Contact ===== */
.socials {
  text-align: center;
}

.socials a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
}

.socials a:hover {
  background: #ff9800;
}

.socials a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
  text-align: center; /* centers text inside button */
}

.socials a:hover {
  background: #ff9800;
}


/* ===== Footer ===== */
footer {
  background: #1a1a1a;
  color: #bbb;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}