
/* -------- Base & Reset -------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height: 1.6;
  color: #0f172a;            /* slate-900 */
  background: #f8fafc;       /* slate-50 */
}

/* sensible defaults for type */
h1, h2, h3 { margin: 0.5rem 0 0.25rem; line-height: 1.25; }
p, ul { margin: 0.5rem 0 0.75rem; }
ul { padding-left: 1.25rem; }

/* focus styles for accessibility */
a, button, input {
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #2563eb; /* blue-600 */
}

/* -------- Layout helpers (target existing IDs so no HTML change) -------- */
#navigation-bar,
#navbar-ul,
#heading,
#main-paragraph,
#project-one,
#project-two,
#skills-list,
.search-box {
  max-width: 900px;          /* keeps lines readable */
  margin-left: auto;
  margin-right: auto;
}

/* give vertical rhythm */
#heading,
#main-paragraph,
#project-one,
#project-two,
#skills-list,
.search-box,
#navigation-bar {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* -------- Header (make THIS sticky, not random headings) -------- */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
  padding: 0.75rem 1rem;
}

/* Optional: style any text inside header */
#header p {
  margin: 0;
  font-weight: 600;
  text-align: center;
}

/* -------- Navigation -------- */
#navigation-bar {
  width: 100%;              /* remove fixed 350px width */
  padding: 0 1rem;
}

#navbar-ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;                /* larger, touch-friendly spacing */
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.75rem 0;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px;
}

/* If you later wrap these in links, they’ll look good */
#navbar-ul li {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
}

/* -------- “Card” look for repeated sections -------- */
:root {
  --card-bg: #ffffff;
  --card-bd: #e5e7eb;
  --card-rd: 12px;
  --shadow: 0 10px 20px rgba(0,0,0,0.04);
}

/* group all the repeated box styles */
#heading,
#main-paragraph,
#project-one,
#project-two,
#skills-list {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--card-rd);
  box-shadow: var(--shadow);
  padding: 1rem;
}

/* Titles look nicer centered; paragraphs left for readability */
#heading {
  text-align: center;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 700;
}

/* long paragraphs are easier to read left-aligned */
#main-paragraph,
#project-one,
#project-two {
  text-align: left;
}

/* lists centered title, but list items left aligned */
#skills-list h3 {
  text-align: center;
  margin-top: 0.25rem;
}
#skills-list ul {
  margin-top: 0.5rem;
}

/* -------- Search box (you already have the markup) -------- */
.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
}

.search-text {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  padding: 0.35rem 0.5rem;
  font-size: 1rem;
}
.search-text:focus { outline: none; }

.search-button {
  display: inline-block;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

/* -------- Responsive tweaks -------- */
@media (max-width: 640px) {
  #navbar-ul { gap: 0.5rem; }
  #heading,
  #main-paragraph,
  #project-one,
  #project-two,
  #skills-list,
  .search-box { margin-left: 0.75rem; margin-right: 0.75rem; }
}





/*
#header{
position:sticky;

}




#navigation-bar{

    width: 350px;
    margin: 0 auto;
    display: inline;

}
#navbar-ul{
    
    display: flex;
    gap: 20px;

}

#heading{
   border: 2px solid black;
   text-align: center;
   padding: 10px;
   border-radius: 10px;
    position: sticky; 
  
}

#main-paragraph{
    border: 2px solid black;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
}


#project-one{
    border: 2px solid black;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
}

#project-two{
    border: 2px solid black;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
}

#skills-list{

  border: 2px solid black;
    text-align: center;
    padding: 5px;
    border-radius: 10px;

} */