body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 180px !important;
  text-align: center;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #f7f7f5;          
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem 0.5rem;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 0;
  
}


html {
    height: 100%;
}


main {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
  flex: 1 0 auto;
  box-sizing: border-box;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0rem;
    margin-gap: 3rem;
}

.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;     /* this will actually push the name + tagline down */
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  margin: 0.9rem 0 0 0 !important;
  padding: 0;
  line-height: 1;          
  font-size: 3rem;
}

.tagline {
  margin: -0.15rem 0 0 0 !important;
  padding: 0;
  line-height: 1.1;
  font-size: 0.9rem;
  color: #555;
}
nav {
  display: flex;
  flex-direction: column;     
  align-items: center;      
  gap: 0.05rem;              
  margin: 0;
}

nav a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.1rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;

}

nav a:hover {
  color: #000;
  border-bottom-color: #000;
}

main h2 {
    text-align: center;
    margin-bottom: 1.25rem;
}

h2 {
    fontsize: 1.4rem;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: "Bebas Neue", sans-serif;
}

h3 {
    font-family: Arial, Helvetica, sans-serif
}

.project {
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #eee;
}

a {
    color: #0055aa;
}

footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 1.5rem 1 rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    background: #f7f7f5;
    width: 100%

}

img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}

section p {
    margin: 0.75rem 0;
}

.project img {
    display: block;
    margin: 1rem 0 1.25rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0.8);
}



.project h3 {
    margin-top: 0.25rem;
}

rooter{
    text-align: center;
}

@media (max-width: 600px) {
    body {
        padding: 1.5rem 1rem;
    }
    h1 {
        font-size: 1.85rem;
    }

}

.profile-pic {
    width: 80px;px;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    margin: 0;
    position: static;
}

.about-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.contact-box {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  max-width: 480px;
  width: fit-content;
  text-align: center;
  display: block;
}

.contact-box h2{
  font-size: 2.3rem;
  margin-bottom: 0.75rem;

}

p.tight {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.work-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  justify-content: center !important;
  margin: 1.5rem auto 0 !important;   
  max-width: 100%; !important;
}

.work-item {
  flex: 0 0 calc(33.333% - 0.4rem) !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 4px !important;
  display: block !important;
  height: auto !important;
}

.work-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.25s ease;
}

.work-item:hover img {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}

.prev { left: 20px; }
.next { right: 20px; }

.close:hover, .arrow:hover {
  color: #ccc;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;              /* even spacing between icons */
  margin-top: 1.75rem;       /* pushes them toward the bottom of the box */
}

.social-links img {
  width: 40px;               /* smaller size — try 24px–32px */
  height:40px;
  object-fit: contain;
  display: block;
}

.social-links a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.social-links a:hover {
  transform: scale(1.12);
}