/* ============================================
   GLOBAL STYLES & RESETS
   ============================================ */

/* Remove default browser padding/margin */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Bubble sans", sans-serif;
}

html,
body {
  width: 100%;
  /* overflow-x: hidden; Prevents unwanted horizontal scrolling */
}

html {
  scroll-behavior: smooth;
}

hr {
  border: 2px solid black;
}

/* ============================================
   LINK STYLING
   ============================================ */

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* nav */
#site-nav {
  position: sticky; /* Support for Safari */
  top: 0;
  z-index: 1000; /* Ensures the nav stays on top of all other elements */
  padding: 1rem;

  /* Glassmorphism effect */
  background: rgba(202, 202, 202, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(128, 128, 128, 0);

  width: 100%;
}

/* Container for the button */
.hamburger {
  margin-left: auto; /* This pushes the button to the far right */
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

/* Ensure the icon itself keeps its specific size */
.main-nav-toggle {
  display: block;
  width: 30px;
  height: 20px;
  position: relative;
  flex-shrink: 0; /* Prevents the icon from getting crushed */
}

/* Common styles for all 3 bars (Top, Middle, Bottom) */
.main-nav-toggle:before,
.main-nav-toggle:after,
.main-nav-toggle i {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #bbb;
  transition: all ease-out 0.3s;
}

/* Top bar */
.main-nav-toggle:before {
  top: 0;
}

/* Middle bar (the <i> tag) */
.main-nav-toggle i {
  top: 50%;
  transform: translateY(-50%);
  text-indent: -9999px; /* Hide the text "Menu" */
  overflow: hidden;
}

/* Bottom bar */
.main-nav-toggle:after {
  bottom: 0;
}

/* ANIMATION: When .active-menu is added via JS */
.main-nav-toggle.active-menu:before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.main-nav-toggle.active-menu:after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.main-nav-toggle.active-menu i {
  opacity: 0;
}

/* Position the links absolutely so they don't push other nav items around */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; 
  right: 0;      /* Aligns the menu to the right edge of the button */
  left: auto;    /* Ensures it doesn't try to align to the left */
  min-width: 160px;
  background-color: white;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 9999;
  border-radius: 5px;
}

/* Style the links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #ddd;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* SHOW the dropdown when the button is active */
/* Note: You might need to adjust this selector based on where the class is added */
.main-nav-toggle.active-menu + .dropdown-content {
  display: flex;
}

header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background-image: url(../media/cs.png);
  background-size: cover;
  background-position: center center;
}

#education, #experience, #projects, #current{
  padding: 20px;
}

.headerBox {
  border: 4px solid black;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

