/* --- 1. IMPORTS & VARIABLES --- */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100;300;400;600&display=swap");

:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --accent-color: #7b9ca5;
  --accent-hover: #97bdc7;
  --header-height: 80px;
}

/* --- 2. BASE STYLES --- */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */

  -webkit-font-smoothing: antialiased;
}

/* Custom Selection Color */
::selection {
  color: #383838;
  background-color: #bbbbbb;
}
::-moz-selection {
  color: #383838;
  background-color: #bbbbbb;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
.serif {
  font-family: serif;
  font-weight: 400;
  margin: 0;
}

/* --- 3. HEADER & NAVIGATION --- */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 30px;
  box-shadow: 0px 1px 5px #bdbdbd;
  background: #fff;
  position: relative;
  z-index: 1000;
}

#header a img.logolink {
  height: 100px; /* Constrain logo height within header */
  width: auto;
  display: block;
}

/* Desktop Menu */
#menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* Menu Links & Icon Alignment */
#menu a {
  display: inline-flex; /* Aligns icon and text */
  align-items: center;
  gap: 6px;
  font-size: 18px;
  padding: 10px 15px;
  color: black;
  border-bottom: 1px solid transparent;
  transition: all 300ms;
}

#menu a:hover {
  border-bottom: 1px solid black;
}

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
  display: none;
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
}

/* --- 4. HERO SECTION --- */
.hero-container {
  position: relative;
  height: 65vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

.hero-content {
  z-index: 2;
  text-align: center;
  color: white;
}
.hero-content h1 {
  font-size: 3rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}
.hero-content p {
  font-size: 1rem;
  letter-spacing: 0.1em;
  font-weight: 300;
  margin-top: 10px;
}

/* --- 5. PORTFOLIO GRID --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 1fr;
  gap: 15px;
  padding: 40px;
  max-width: 1600px;
  margin: 0 auto;
  grid-auto-flow: dense;
}

.grid-item {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}
.grid-item.wide {
  grid-column: span 2;
}
.grid-item.tall {
  grid-row: span 2;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.grid-item:hover img {
  transform: scale(1.03);
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}
.grid-item:hover .grid-overlay {
  opacity: 1;
}

/* --- 6. ABOUT / BIO SECTION --- */
#homeAbout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
  gap: 30px;
  align-items: center;
  padding: 0 30px;
}

.profile {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: bottom;
  border-radius: 10px;
}

.bio h2 {
  font-size: 36px;
  font-weight: 300;
  margin-top: 0;
}
.bio p {
  text-align: justify;
  line-height: 1.6;
}

/* --- 7. IMAGE BLOCKS (Parallax Strips) --- */
.image_block {
  width: 100%;
  height: 70vh; /* Fixed logical height */
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block {
  padding: 40px;
  text-align: center;
}

.block h3 {
  color: white;
  font-size: 7.5rem;
  font-weight: 1000;
  /* margin: 0 0 20px 0; */
  text-shadow: 0px 0px 15px black;
}

.btn {
  display: inline-block;
  color: white;
  background: var(--accent-color);
  padding: 12px 24px;
  border-radius: 5px;
  transition: background 300ms;
}
.btn:hover {
  background-color: var(--accent-hover);
}

/* --- 8. BLOG & POST STYLES --- */
.post-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
}
.post-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 10px;
}
.post-meta {
  text-align: center;
  color: #777;
  margin-bottom: 50px;
  font-style: italic;
}

/* Breadcrumbs */
.breadcrumb {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  padding: 20px 40px 0px 40px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.breadcrumb a {
  color: #888;
  transition: color 0.3s ease;
}
.breadcrumb a:hover {
  color: #000;
  text-decoration: underline;
}
.breadcrumb .separator {
  margin: 0 8px;
  color: #ddd;
}
.breadcrumb .current {
  color: #333;
  font-weight: 600;
  cursor: default;
}

/* Responsive Video Embeds */
.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 30px 0;
}
.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
video.video-player {
  width: 100%;
  margin: 30px 0;
  background: #000;
}

/* --- Footer Styling --- */
.site-footer {
  background-color: #000;
  color: #fff;
  padding: 80px 10% 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid #222;
}

.footer-logo h3 {
  letter-spacing: 4px;
  margin: 0;
  font-size: 1.2rem;
}

.footer-logo p {
  font-size: 0.7rem;
  color: #777;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 30px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.6;
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
  font-size: 0.65rem;
  color: #444;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .footer-links a {
    margin: 0 15px;
  }
}

/* --- 9. MOBILE RESPONSIVENESS --- */
@media screen and (max-width: 800px) {
  /* Header Changes */
  .hamburger {
    display: block;
  }

  #header {
    justify-content: space-between;
    padding: 0 20px;
  }

  /* Mobile Menu Logic */
  #menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Directly below header */
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    gap: 0;
  }

  /* When JS adds .open class */
  #menu.open {
    display: flex;
  }

  #menu a {
    width: 100%;
    justify-content: center; /* Center text and icons */
    padding: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
  }
  #menu a:hover {
    background-color: #fafafa;
  }

  /* Hero & Grid Adjustments */
  .hero-container {
    height: 40vh;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    padding: 20px;
  }

  /* About Section */
  #homeAbout {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .profile {
    height: auto;
  }

  /* Image Blocks */
  .image_block {
    height: 300px;
  }
  .block h3 {
    font-size: 2rem;
  }
}

/* --- 10. SCROLLBAR CUSTOMIZATION --- */
::-webkit-scrollbar {
  width: 2px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
