/* =========================
   NAVBAR & HAMBURGER (Add this)
========================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 1100; /* Higher than cards */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8vw;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #111;
}

.hamburger {
  display: none; /* Hidden on PC */
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}

/* =========================
   SKILLS PAGE
========================= */

.skills-hero {
  padding: 120px 8vw 40px;
  text-align: center;
}

.skills-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
}

.skills-title span {
  color: rgb(45, 96, 255);
}

.skills-subtitle {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

/* GRID */
.skills-section {
  padding: 40px 8vw 80px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* CARD FIX: Added Flexbox to push bars to bottom */
.skill-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(45, 96, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(45, 96, 255, 0.15);
  transition: 0.4s ease;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 35px rgba(45, 96, 255, 0.45);
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-icon {
  font-size: 1.4rem;
  color: rgb(45, 96, 255);
}

/* Push the footer container to the bottom */
.skill-desc {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  flex-grow: 1; 
}

.skill-footer-alignment {
  margin-top: auto;
}

/* BAR */
.skill-bar {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    rgb(45, 96, 255),
    rgb(0, 255, 209)
  );
  border-radius: inherit;
}

.skill-percent {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgb(45, 96, 255);
  text-align: right;
}

/* EXTRA */
.extra-title {
  margin: 60px 0 20px;
  text-align: center;
  color: #fff;
}

.extra-skills {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.extra-skills span {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #fff;
}

/* FOOTER & LOCATION SYNC */
.location-tag {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 60px;
}

.main-footer {
    border-top: 1px solid #111;
    padding: 60px 0;
    margin-top: 100px;
    background: #000;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-icons { display: flex; align-items: center; gap: 20px; }
.invert { filter: invert(0.5); width: 20px; transition: 0.3s ease; }
.invert:hover { filter: invert(1) drop-shadow(0 0 5px rgb(45, 96, 255)); }

.ori-host { font-weight: 800; color: #fff; text-decoration: none; font-size: 1.1rem; }
.ori-host span { color: rgb(45, 96, 255); }

/* =========================
   7. RESPONSIVE (Updated)
========================= */
@media (max-width: 768px) {
  /* 1. Show Hamburger */
  .hamburger { 
    display: flex; 
  }

  /* 2. Mobile Menu Overlay */
  .nav-links {
    display: none; /* Hidden until toggled */
    flex-direction: column;
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(15px);
    padding: 40px 0;
    gap: 25px;
    text-align: center;
    border-bottom: 1px solid rgba(45, 96, 255, 0.3);
    z-index: 1000;
  }

  /* Toggle Class */
  .nav-links.active {
    display: flex;
  }

  /* 3. Hamburger Animation to X */
  .hamburger.active span:nth-child(1) { 
    transform: translateY(8px) rotate(45deg); 
    background: rgb(45, 96, 255); 
  }
  .hamburger.active span:nth-child(2) { 
    opacity: 0; 
  }
  .hamburger.active span:nth-child(3) { 
    transform: translateY(-8px) rotate(-45deg); 
    background: rgb(45, 96, 255); 
  }

  /* 4. Skills Grid & Footer */
  .skills-grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  
  .extra-skills {
    flex-wrap: wrap;
  }

  .footer-bottom { 
    flex-direction: column; 
    gap: 25px; 
    text-align: center; 
  }
}