/* Dark Mode and Modern Graphics CSS */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #0a0a0f;
  color: #e0e0e0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ------------------ */
/* HEADER TEXT/BANNER */
/* ------------------ */

header {
    position: relative;
    background: var(--header-image) no-repeat center/cover;

    color: #fff;
    text-align: center;

    /* For header fade*/
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 20%,
        rgba(0,0,0,0) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 20%,
        rgba(0,0,0,0) 100%
    );
}

/** Adding slight gradient to header image for text visibility */
header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.25) 0%,
      rgba(0,0,0,0.15) 40%,
      rgba(0,0,0,0.00) 100%
  );
  pointer-events: none;
}

/** Header banner w/ candid shot of me & team for home page */
body.home header {
    --header-image: url('media/PencilPusherDitchShot.jpg');
    height: 750px;
}
/* Smaller banner for non-home pages */
body:not(.home) header {
    height: 280px;
    background-size: cover;
    background-position: center;
}

header::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;

    background: var(--header-image) no-repeat center/cover;

    z-index: -1;

    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 25%,
        rgba(0,0,0,0) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 25%,
        rgba(0,0,0,0) 100%
    );
}
/* Allows scroll-based movement */
#header-content {
  position: absolute;
  top: 20%;         /* starting point */
  left: 50%;
  transform: translateX(-50%);
  transition: top 0.1s ease-out;
}
header h1 {
  text-align: center;
  text-transform: uppercase;
  font-size: 65px;
  letter-spacing: 2px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.75);
  font-family: 'Montserrat', sans-serif;
}
span {
  text-transform: uppercase;
  letter-spacing: 7px;
  font-size: 25px;
  font-weight: bold;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.75);
  font-family: 'Lato', sans-serif;
}

/* Banner backgrounds for specific project pages */
body.arcade header {
    --header-image: url('media/ArcadeMachine/IMG_5900.jpg');
}
body.clock header {
    --header-image: url('media/ClockArtProject/FinalPiece.png');
}
body.il header {
    --header-image: url('media/InterestLaunch/ABM_0988.JPG');
}
body.impeller header {
    --header-image: url('media/OptimizedImpeller/Design1HarmonicStress.png');
}
body.mach3 header {
    --header-image: url('media/Mach3/Mach3OpenRocketDesign.png');
}
body.l2 header {
    --header-image: url('media/L2Rocket/IMG_0288.JPG');
}


/* ---------------- */
/* BACK ARROW LINK  */
/* ---------------- */
.back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}
.back-arrow a {
    text-decoration: none;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.back-arrow a:hover {
    background: rgba(0,0,0,0.7);
}

/* ---------------- */
/* MENU OVERLAY     */
/* ---------------- */

#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1100;
}

#menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.hidden { display: none; }

/* ---------------- */
/* SITE CONTAINERS  */
/* ---------------- */
.container {
  width: 90%;
  max-width: 90%;
  margin: 40px auto;
  background: #1a1a27;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Sections for container contents */
.section {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: stretch; /* IMPORTANT — let the columns match heights */
}
.section-text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.section-text h2 {
  font-size: 2rem;
  color: #00c3ff;
}
.section-text p, ul {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1em;
  color: #ccc;
}
.section-text ul {
    margin-left: 2em;
}
.section-image {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-image img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 15px;
  transition: transform 0.25s ease;
}
.section-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

/* ---------------- */
/* PROJECT BLOCKS  */
/* ---------------- */
.projects-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.project-block {
    flex: 1 1 30%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;       /* stacking context for overlay and text */
    z-index: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* dark overlay */
    border-radius: 12px;
    z-index: 1;                  /* stays behind text */
}

.project-block .project-text {
    position: relative;
    z-index: 2;                  /* ensures text is above overlay */
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    text-align: center;
}
.project-block:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Individual project block images */
.project1 {
    background-image: url('media/ArcadeMachine/IMG_5900.jpg');
}
.project2 {
    background-image: url('media/ClockArtProject/FinalPiece.png');
}
.project3 {
    background-image: url('media/InterestLaunch/ABM_0988.JPG');
}
.project4 {
    background-image: url('media/OptimizedImpeller/Design1HarmonicStress.png');
}
.project5 {
    background-image: url('media/Mach3/Mach3OpenRocketDesign.png');
}
.project6 {
    background-image: url('media/L2Rocket/IMG_0288.JPG');
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  margin-top: 40px;
  background: #111;
  color: #ccc;
}

/* ----------------- */
/* CAROUSEL GRAPHICS */
/* ----------------- */
.carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 90%;
    margin: 20px auto;
}
.carousel-track {
    width: 100%;
    height: 600px;
    max-width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.carousel-viewport {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-viewport img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.arrow:hover {
    background: rgba(0,0,0,0.7);
}
.left { left: 10px; }
.right { right: 10px; }
.caption {
    text-align: center;
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ----------------- */
/* MOBILE RESPONSIVE */
/* ----------------- */
@media (max-width: 800px) {
    .section { flex-direction: column; }
    .section-image, .section-text { flex: 1 1 100%; padding: 10px; }
    header h1 { font-size: 2.5rem; }
    .project-block { flex: 1 1 100%; }

    /* Mobile Responsive for Portfolio Carousel */
    .carousel-container img {
        max-height: 350px;
        width: 90%;
    }
    .arrow {
        font-size: 24px;
        padding: 8px 12px;
    }
    .caption {
        font-size: 1rem;
        padding: 0 5px;
    }

}