/* ?This is where reusable styling of this template will be. 
   !Will contain things like:
   * Button styling
   * Background color styling
   * padding and margin
*/

.container {
  max-width: var(--width-medium);
  margin: 0 auto;
  padding: 1rem 2rem;
}

h1::selection,
h2::selection {
  color: #111;
  background: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.9rem;
  border-radius: 30px;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: 0.3s;
}

.btn-primary {
  background: var(--primary-color);
  color: #000000;
}

.btn-secondary {
  margin: 5px 0;
  background-color: var(--bg-secondary);
  color: var(--bg-primary);
}

/* add hover to resume button */
.btn-primary:hover {
  background: var(--secondary-color);
}

/* Dark mode toggle */
#switch {
  display: none;
}

.toggle-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.toggle-icons > img {
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  width: 30px;
}

.moon {
  transform: rotate(10deg);
}

#switch:checked + .toggle-icons .moon {
  transform: rotate(250deg);
}

#switch:checked + .toggle-icons .sun {
  transform: rotate(100deg);
}

/* Header Container */
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 8rem;
  padding: 1rem;
}

.header-container > div {
  margin-top: 1rem;
}

.content-text {
  text-align: center;
  margin: 1.5rem 0;
}

.content-text h2 {
  font-size: 3rem;
  line-height: 1.2;
  transition: 0.2s ease-in-out;
}

.content-text p {
  padding: 0.5rem;
  margin: 0 auto;
  max-width: 700px;
}

/* Project cards */
.card {
  padding: 1rem;
  background: var(--card-background);
  color: #ffffff;
  border-radius: 5px;
  transition: 0.4s ease-in-out;
  cursor: pointer;
}

.card a {
  color: #ffffff;
  transition: 0.25s ease-in-out;
  font-size: 1.1rem;
  margin-right: 0.3rem;
}

.card a:hover {
  color: var(--primary-color);
}

.card:hover {
  box-shadow: inset 0 100px 1000px 10px rgba(0, 0, 0, 0.8);
}

.card:hover .project-info {
  opacity: 1;
}

/* Project Images */

/* project 1 */
.card:nth-child(1) {
  background: url(../assets/project/gpay.png) center center/cover;
}

/* Project 2 */
.card:nth-child(2) {
  background: url(../assets/project/carrental.png) center center/cover;
}

/* Project 3 */
.card:nth-child(3) {
  background: url(../assets/project/quiz-master.png) center center/cover;
}

/* Project 4 */
.card:nth-child(4) {
  background: url(../assets/project/ml.png) center center/cover;
}

/* Project 5 */
.card:nth-child(5) {
  background: url(../assets/project/project-five.png) center center/cover;
}

/* Project 6 */
.card:nth-child(6) {
  background: url(../assets/project/ml.png) center center/cover;
}

/* Media Queries */
@media (max-width: 768px) {
  .header-container {
    margin-top: 7rem;
    text-align: center;
  }

  .content-text h2 {
    font-size: 2.5rem;
  }
}
.social i {
  color: white;
  font-size: 20px;
  width: 20px;
  height: 20px;
  transition: 0.3s;
}

.social i:hover {
  color: #ffcd42;
}

/* ── Resume Dropdown ── */
.resume-dropdown {
  position: relative;
}

.resume-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.resume-toggle .fa-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

.resume-dropdown.open .resume-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.resume-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  min-width: 260px;
  background: var(--card-background, #1c1c1c);
  border: 1px solid rgba(255, 205, 66, 0.25);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 1000;
}

.resume-dropdown.open .resume-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.resume-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color, #fff);
  transition: background 0.2s ease;
}

.resume-option:hover {
  background: rgba(255, 205, 66, 0.1);
}

.resume-option i {
  font-size: 1rem;
  color: var(--primary-color, #ffcd42);
  margin-top: 0.2rem;
  width: 18px;
  text-align: center;
}

.resume-option-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-color, #fff);
}

.resume-option-desc {
  display: block;
  font-size: 0.72rem;
  opacity: 0.65;
  margin-top: 0.15rem;
  color: var(--text-color, #fff);
}

@media (max-width: 768px) {
  .resume-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.3rem 0 0;
    display: none;
  }
  .resume-dropdown.open .resume-menu {
    display: block;
  }
  .resume-option {
    padding: 0.6rem 1rem;
  }
}