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

body {
  font-family: 'IBM Plex Sans', sans-serif;  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  padding: 2rem;
}

/* Layout */
header, main, footer {
  max-width: 900px;
  margin: 0 auto 2rem auto;
}

header, section, footer {
  border: 3px solid #000000;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
  box-shadow: 6px 6px 0px #000000;
}

/* Contact links in header */
header p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* center horizontally */
  gap: 1.5rem;               /* spacing between links */
  margin-top: 0.8rem;
}

/* Headings */
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 3px solid #000000;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
}

/* Links */
a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 3px solid #ff0000;
  
}

a:hover {
  background: #ff0000;
  color: #ffffff;
}

/* Lists */
ul {
  list-style-type: square;
  margin-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

.edu-logo {
  float: right;
  height: 50px;
  margin-left: 10px;
}

/* Flexbox for header contact */
header p:last-of-type {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Projects & Experience */
article {
  margin-bottom: 1rem;
}

article h3 {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  background: #f5f5f5;
}

/* Responsive Design */

/* Small screens (tablets/phones) */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  header, section, footer {
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 0px #000000; /* slightly smaller shadow */
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  /* Make header contact links stack nicely */
  header p:last-of-type {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* Extra small screens (phones under 480px wide) */
@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  body {
    font-size: 0.95rem;
  }

  a {
    display: inline-block;
    padding: 0.3rem 0.4rem;
  }

  /* Prevent long text from overflowing */
  section, header, footer {
    word-wrap: break-word;
  }
}
