* {
    margin: 0;
    padding: 0;
} 

html, body {
  overflow-x: hidden;
  height: 100%;
  margin: 0;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* fill full height of viewport */
}

html {
    scroll-behavior: smooth; /* for links in footer */
}

/* HEADER */

.header1 {
    background-color: #eaeaea;
    display: flex;
    justify-content: center;
}

.header1 p{
    color: #434341;
    font-size: 13px;
    font-family: 'Courier New', Courier, monospace;
}

.header1 div{
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 7px;
    padding-bottom: 7px;
}

/* BODY */

body {
    background-color: #fafafa;
}

.header {
    display: flex;
    justify-content: space-between;
    margin: 25px 80px 50px 80px;
}

.header-left, /* header align */
.header-center,
.header-right {
  display: flex;
  align-items: center;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.header-left, /* gap between icons */
.header-right {
  flex: 0 0 auto;
  gap: 15px;
}

.logo {
    width: 450px;
}

.icon {
  width: 20px;
}

/* HAMBURGER MENU */

/* Position container relative for dropdown */
.hamburger-menu {
  position: relative;
}

/* Make hamburger icon clickable */
.hamburger-icon {
  cursor: pointer;
}

/* Dropdown styling */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  min-width: 140px;
  z-index: 1000;
  overflow: hidden;
  padding: 5px 0;
  flex-direction: column; /* 👈 This is the fix */
  font-family: 'Montserrat', sans-serif; /* 👈 Ensure sans-serif is applied */
}

/* Each dropdown item */
.menu-item {
  padding: 10px 16px;
  font-size: 14px;
  color: #222;
  transition: background 0.2s ease;
  text-align: center;
  cursor: pointer;
  font-weight: 400;
  text-decoration: none; /* Remove underline */
  display: block;        /* Make anchor behave like block for padding */
}

.menu-item:hover {
  background-color: #f5f5f5;
}

/* ARTICLES */

.articles {
  margin: 0 80px 50px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1400px;
  justify-content: start;
  transform-origin: top left;
  transition: transform 0.3s ease;  /* Smooth scaling */
}

.articlebox {
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.articlebox:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.articlebox p {
  text-align: center;
  font-size: 1rem;
  color: #333;
}

/* ABOUT ME */

.aboutme {
  background-color: #f0f0f0;
  margin: 50px 0px 0px 0;
  padding: 60px;
  box-sizing: border-box;
}
  
.aboutme-content {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}
  
.aboutme-photo {
  max-width: 300px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  border-radius: 4px;
}
  
.aboutme-text {
  flex: 1;
  min-width: 300px;
  margin-left: 60px;
  display: flex;
  flex-direction: column;
}
  
.aboutme-text h1 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 55px 200px;
  line-height: 1.2;
  font-weight: 700;
  font-size: 3rem;
  color: #222;
}
  
.indented-line {
  display: inline-block;
  margin-left: 40%; /* adjust for aesthetic alignment */
}
  
.aboutme-info {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}
  
.about-label {
  font-family: 'Montserrat', sans-serif;
  color: grey;
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 90px;
  text-transform: uppercase;
  user-select: none;
  letter-spacing: 0.08em;
  margin-left: 100px;
  margin-top: 7px;
}
  
.about-description {
  max-width: 475px; /* reduced from 600px */
  font-size: 1.5rem;
  color: #444;
  line-height: 1.5;
  margin-left: 35px;
}

/* GALLERY */

.gallery {
    background-color: #fafafa;
    padding: 50px 20px 50px 20px;
    box-sizing: border-box;
    position: relative; /* Needed for absolute positioning inside */
  }
  
  .gallerybox {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 fixed columns */
    gap: 10px;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
  }
  
  .gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  
  .gallery-credit {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 0.9rem;
    color: #555;
    background-color: rgba(255 255 255 / 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
    pointer-events: none;
  }

/* FOOTER */

.footer {
    background-color: #eaeaea;
    padding: 40px 30px 20px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    left: 0;
    bottom: 0;
    width: 100%;
    margin-top: auto;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 20px;
    gap: 40px;
  }


  .footer-left,
  .footer-center,
  .footer-right {
    flex: 1;
    min-width: 200px
  }
  
  .footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 10px;
  }
  
  .footer-tagline {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
  }
  
  .footer-center p {
    margin: 8px 0;
  }
  
  .footer-center a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer-center a:hover {
    color: #000;
  }
  
  .footer-right .icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    opacity: 0.8;
    transition: opacity 0.2s;
  }
  
  .footer-right .icon:hover {
    opacity: 1;
  }

  .footer-right a {
    text-decoration: none; /* to fix weird issue with underline on Twitter logo */
  }
  
  .footer-credit {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 20px;
  }