/* ==================== Eric Meyers Reset ==================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer,
header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1.5;
}

ol, ul {
  list-style: none;
}

/* ==================== Variables ==================== */
:root {
  --color-primary: #FEFCF9; /* tan */
  --color-secondary: #4E6A67; /* mute blue */
  --color-tertiary: #F3E7D1; /* light yellow */
  --color-four: #EDCCC5; /* pink salmon */
  --color-five: #1E3947; /* dark blue */
  --color-six: #702432; /* dark wine red */
  --font-primary: "Epunda Slab", serif;
  --font-secondary: "Faculty Glyphic", sans-serif;
  --nav-height: 10vh;
}

/* ==================== Base ==================== */
body {
  font-family: var(--font-primary);
  color: var(--color-secondary);
  background-color: var(--color-primary);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--color-five);
}

a:hover {
  color: var(--color-six);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==================== Navbar ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--color-secondary);
  color: var(--color-tertiary);
  display: flex;
  align-items: center;
  padding: 0 4vw;
  z-index: 10;
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-secondary);
  color: var(--color-tertiary);
  font-size: 1.25em;
  font-weight: bold;
  text-decoration: none;
}

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  right: 0;
  background-color: var(--color-secondary);
  width: 280px;
  border-left: 1px solid var(--color-tertiary);
  box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
}

.nav-menu li a {
  display: block;
  padding: 1em 1.5em;
  font-family: var(--font-secondary);
  color: var(--color-tertiary);
  font-size: 1.25em;
}

.nav-menu.active {
  display: flex;
}


/* Hamburger */
.hamburger {
  position: relative;
  width: 40px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--color-tertiary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 8px; }

.hamburger.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 50%; transform: rotate(-45deg); }

/* =============== Footer ==================================== */

footer {
    display: flex;
    align-items: center;
    padding: 30px;
    margin-top: 100px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.linkedin-btn {
    position: relative;
    width: 35px !important;
    height: 35px;
    z-index: 20;
    background: url("../content/index/linkedin.jpg") no-repeat;
    transition: all .25s ease-in-out;
    margin-right: 30px;
}

.instagram-btn {
    position: relative;
    width: 35px !important;
    height: 35px;
    z-index: 20;
    background: url("..content/index/instagram.jpg") no-repeat;
    transition: all .25s ease-in-out;
}

#copyright {
    margin-left: auto;
    margin-bottom: 0;
    font-size: .85em;
}


/* ==================== Desktop Styles ==================== */
@media (min-width: 1200px) {
  .hamburger {
    display: none;          
  }

  .nav-menu {
    display: flex !important; 
    flex-direction: row;      
    position: static;          
    width: auto;
    background: none;
    border: none;
    box-shadow: none;
  }

  .nav-menu li a {
    padding: 0 1em;
    font-size: 1em;
  }

  .nav-menu li a:hover {
    color: var(--color-four);
  }


}

/* ==================== Hero Section ==================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(100vh - var(--nav-height));
  padding: 2em 10%;
  margin-top: var(--nav-height);
  gap: 2em;
}

.hero-text {
  max-width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-secondary);
}

#hello-title {
  font-family: var(--font-secondary);
  font-size: 2em;
  margin-bottom: 0.2em;
}

#my-name-is-title {
  font-family: var(--font-secondary);
  font-size: 1.5em;
  margin-bottom: 0.2em;
}

#emma-gebhart-title, h1 {
  font-family: var(--font-secondary);
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 1em;
}

.hero-paragraph {
  font-family: var(--font-primary);
  font-size: 1.5em;
  line-height: 1.6;
  color: var(--color-secondary);
}

/* Hero Image */
.hero-image img {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-image img {
    margin-top: 2em;
  }
}


/* ==================== Profile Section ==================== */
.profile-layout {
  margin: 6em auto;
  padding: 0 10%;
  text-align: left;
}

.profile-header h2 {
  font-family: var(--font-secondary);
  font-size: 2.5em;
  margin-bottom: 2em;
  color: var(--color-secondary);
}

/* Container for photos + text */
.profile-main {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
  justify-content: center;
}

/* Quad grid for photos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1em;
  max-width: 500px;
}

/* Make images fill their grid cell */
.photo-grid img,
.photo-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.photo-grid img:hover,
.photo-grid a img:hover {
  transform: scale(1.05);
}

/* Text content to the right on desktop */
.text-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.5em;
}

/* Resume link styling */
.resume-link {
  display: inline-block;
  margin-bottom: 1em;
  font-weight: bold;
  color: var(--color-secondary);
}

.resume-link:hover {
  color: var(--color-six);
}

.text-content p {
  margin-bottom: 1em;
  line-height: 1.6;
  color: var(--color-secondary);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .profile-main {
    flex-direction: column;
    align-items: center;
  }

  .text-content {
    text-align: left;
    margin-top: 2em;
  }
}

/*=============== Resume ======================*/

.resume-h3 {
  font-size: 1.3em;
  font-family: var(--font-secondary);
  color: var(--color-six);
}

h4 {
  color: var(--color-five);
  font-size: 1.2em;
}

#experience-resume-h3 {
  padding-top: 4%;
}


    /* Collapsible content hidden by default */
    .collapsible-content {
      display: none;
      margin-bottom: 1em;
    }

    /* Change cursor on h4 hover */
    h4.collapsible {
      cursor: pointer;
      position: relative;
      margin: 1em 0 0.5em 0;
    }

    /* Add a small indicator for collapsed/expanded state */
    h4.collapsible::after {
      content: '▼';
      position: absolute;
      right: 0;
      font-size: 0.8em;
      transition: transform 0.2s;
    }

    h4.collapsible.active::after {
      transform: rotate(-180deg);
    }

    
/* ==================== Carousel Section ==================== */
.carousel-section {
  margin: 4em auto 6em auto; /* bottom margin added for stacked sliders */
  padding: 0 10%;
  text-align: center;
  position: relative;        /* slider's absolute children stay inside */
  z-index: 5;
}

.carousel-title {
  font-family: var(--font-secondary);
  font-size: 2.5em;
  margin-bottom: 1em;
  color: var(--color-secondary);
}

.carousel-project-description {
  max-width: 900px;
  margin: 2em auto;
  font-size: 1.5em;
  line-height: 1.6;
  text-align: left;
}

/* ==================== Slider ==================== */
.slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 1.2em auto;
  overflow: visible;
  border-radius: 6px;
  height: 60vh; 
  z-index: 5;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.slide img {
  width: 100%;
  height: auto;       
  max-height: 55vh;
  object-fit: contain; 
  display: block;
}

/* ==================== Buttons ==================== */
.btn-prev,
.btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  border: none;
  background-color: var(--color-secondary);
  color: white;
  padding: 0.7em 1em;
  font-size: 2rem;
  border-radius: 50%;
  z-index: 20;
  transition: background-color 0.25s ease;
}

.btn-prev:hover,
.btn-next:hover {
  background-color: var(--color-four);
}

.btn-prev { left: -4rem; }
.btn-next { right: -4rem; }

@media (max-width: 1024px) {
  .btn-prev { left: -3rem; }
  .btn-next { right: -3rem; }
}

@media (max-width: 768px) {
  .btn-prev { left: -2.2rem; }
  .btn-next { right: -2.2rem; }
}

@media (max-width: 600px) {
  .btn-prev, .btn-next {
    font-size: 1.5rem;
    padding: 0.5em 0.7em;
  }
  .btn-prev { left: -1.5rem; }
  .btn-next { right: -1.5rem; }
}

@media (max-width: 480px) {
  .btn-prev { left: -1rem; }
  .btn-next { right: -1rem; }
}

/* ==================== Modal ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  inset: 0;
  background-color: rgba(30,57,71, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 2.5em;
  color: #fff;
  cursor: pointer;
}
