/*
  styles.css
  ADU + Summit blended palette:
  - ADU red: #B31B1B
  - Summit navy: #002147
  - Warm accent: #FF8C00
  - Soft backgrounds: #f9fafc / #f3f4f6
*/

:root{
  --adu-red: #B31B1B;
  --summit-blue: #002147;
  --warm-accent: #FF8C00;
  --bg-100: #F7FAFC;
  --bg-200: #F3F6F9;
  --card: #FFFFFF;
  --muted: #6B7280;
  --text: #0B1220;
  --glass: rgba(255,255,255,0.06);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, var(--bg-100), #ffffff);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
section {
  font-family: 'Poppins', sans-serif;
}

/* --- NAVBAR REFINEMENT --- */
nav {
  position: sticky;
  top: 10px; 
  z-index: 1200;
  display: flex;
  justify-content: center;
  padding: 10px 20px;
}

nav ul {
  width: 100%;
  max-width: 1200px;
  list-style: none;
  display: flex;
  gap: 12px; 
  align-items: center;
  background: linear-gradient(90deg, rgba(0,33,71,0.95), rgba(179,27,27,0.9));
  padding: 6px 16px; 
  border-radius: 12px; 
  box-shadow: 0 8px 30px rgba(2,18,50,0.12); 
}

/* Logo wrapper so logo is visible on dark bg */
.nav-logo-center {
  background: rgba(255,255,255,0.95);
  padding: 5px; 
  border-radius: 8px; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(2,18,50,0.1);
  margin-right: 4px;
}

.nav-logo-center img {
  width: 70px; 
  height: auto;
  display: block;
  cursor: pointer;
  border-radius: 6px;
  transition: transform .28s ease, filter .28s ease;
}

/* logo hover glow */
.nav-logo-center img:hover {
  transform: translateY(-2px) scale(1.02); 
  filter: drop-shadow(0 8px 20px rgba(179,27,27,0.2));
}

/* Links */
nav li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px; 
  border-radius: 7px;
  font-weight: 600;
  transition: all .22s ease;
  font-size: 14px; 
}

nav li a:hover {
  background: linear-gradient(90deg, var(--warm-accent), var(--adu-red));
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2,18,50,0.1);
}

nav li a.active {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

/* LANDING */
#landing {
  min-height: 80vh;
  margin: 18px auto;
  max-width: 1200px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 24px;
  text-align: center;
  background:
    linear-gradient(130deg, rgba(0,33,71,0.85) 0%, rgba(179,27,27,0.72) 60%),
    url('assets/summit.jpg') center/cover no-repeat;
}

/* subtle animated gradient overlay */
#landing::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(60deg, rgba(0,33,71,0.12), rgba(179,27,27,0.08));
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: landingGlow 12s ease-in-out infinite;
}

@keyframes landingGlow {
  0% { opacity: 0.9; transform: scale(1) }
  50% { opacity: 1; transform: scale(1.01) }
  100% { opacity: 0.9; transform: scale(1) }
}

.landing-content { position: relative; z-index: 3; color: #fff; }

/* Headings - keep Pacifico for the big heading look */
h1.edc-line, h1.practicum-line {
  font-family: 'Pacifico', cursive;
  text-shadow: 0 6px 20px rgba(2,18,50,0.4);
  margin: 0;
}

h1.edc-line {
  color: #FFD166;
  font-size: 72px;
  transform-origin: center;
  animation: popIn .9s cubic-bezier(.2,.9,.3,1) both;
}

h1.practicum-line {
  color: #E3FDFD;
  font-size: 44px;
  margin-top: 6px;
  animation: fadeSlide .9s .08s cubic-bezier(.2,.9,.3,1) both;
}

#landing h2 {
  font-family: 'Lora', serif;
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  margin-top: 8px;
  letter-spacing: .6px;
}
#landing h1 {
  font-family: 'Lora', serif;
}

/* submitted block */
.submitted-section {
  display:flex;
  gap: 26px;
  justify-content: center;
  margin-top: 28px;
  align-items: center;
  flex-wrap:wrap;
}
.submitted-left, .submitted-right {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,0.95);
  text-align:center;
}
.submitted-center img {
  width: 160px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(2,18,50,0.3);
}

/* CONTENT SECTIONS */
.content-section {
  display: none;
  max-width: 1200px;
  margin: 28px auto;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 36px 22px;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(2,18,50,0.06);
  overflow: visible;
}

.content-section h2 {
  text-align: center;
  color: var(--summit-blue);
  font-size: 28px;
  margin-bottom: 12px;
}

.section-intro {
  color: var(--muted);
  text-align: center;
  max-width: 880px;
  margin: 0 auto 16px;
}

/* GRIDs */
.about-blocks-container,
.experience-blocks-container,
.theory-blocks-container,
.reflections-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.about-block,
.experience-card,
.theory-card,
.reflection-card {
  background: linear-gradient(180deg, #ffffff, #fcfdff);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(2,18,50,0.04);
  transition: transform .26s ease, box-shadow .26s ease;
  box-shadow: 0 8px 30px rgba(2,18,50,0.04);
}

.about-block:hover,
.experience-card:hover,
.theory-card:hover,
.reflection-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(2,18,50,0.08);
}

/* headers inside cards */
.about-header, .experience-header, .theory-header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.about-icon { font-size: 22px; }

.about-block h3,
.experience-card h3,
.theory-card h3,
.reflection-card h3 { 
  color: var(--adu-red);
  font-size: 16px;
  text-align:center;
  margin:0;
}

/* --- IMAGE SIZE ADJUSTMENT (LARGER) --- */
.about-images,
.experience-evidence,
.theory-evidence {
  display:grid;
  /* Reverting to original grid template columns for images, they will adjust based on height */
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.about-images img,
.experience-evidence img,
.theory-evidence img {
  width:100%;
  height: 220px; /* SIGNIFICANTLY INCREASED HEIGHT */
  object-fit: cover;
  border-radius: 10px;
  transition: transform .26s ease, box-shadow .26s ease;
  cursor: pointer;
}

/* Stronger hover zoom for images */
.about-images img:hover,
.experience-evidence img:hover,
.theory-evidence img:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 36px rgba(2,18,50,0.12);
}

/* --- BUTTON SIZE ADJUSTMENT --- */
.btn {
  display:inline-block;
  background: linear-gradient(90deg, var(--adu-red), var(--warm-accent));
  color: #fff;
  padding: 8px 14px; 
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600; 
  font-size: 14px; 
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 24px rgba(179,27,27,0.1); 
}

.btn:hover {
  transform: translateY(-3px); 
  box-shadow: 0 16px 40px rgba(2,18,50,0.1);
}

/* Styling for button containers (to align buttons nicely) */
.experience-evidence, .theory-evidence {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.experience-evidence figure, .theory-evidence figure {
    flex: 1 1 45%; 
    max-width: 300px;
}

.experience-evidence .btn, .theory-evidence .btn {
    flex: 0 0 auto; 
    text-align: center;
    margin: 5px 0;
}


/* --- PHOTO GALLERY ADJUSTMENT (LARGER) --- */
.photo-gallery {
  display:flex;
  flex-wrap:wrap;
  gap:16px; /* Increased gap slightly */
  justify-content:center;
}

.photo-gallery img {
  width:360px; /* INCREASED WIDTH */
  height:240px; /* INCREASED HEIGHT */
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 12px 34px rgba(2,18,50,0.06);
  transition: transform .22s ease, box-shadow .22s ease;
  cursor:pointer;
}

.photo-gallery img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:0 24px 60px rgba(2,18,50,0.12);
}

/* small utilities */
.experience-reflection, .theory-reflection {
  margin-top:12px;
  font-style: italic;
  color: var(--muted);
  text-align:center;
}

/* image overlay class added by JS */
.img-overlay {
  position: fixed;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(3,7,18,0.82);
  z-index: 3000;
  padding: 20px;
}

.img-overlay img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.6);
  transform-origin:center;
  animation: imgPop .22s ease-out;
}

/* animations */
@keyframes imgPop { from { transform: scale(.98); opacity: 0 } to { transform: scale(1); opacity: 1 } }
@keyframes popIn { from { transform: translateY(14px) scale(.98); opacity: 0 } to { transform: translateY(0) scale(1); opacity: 1 } }
@keyframes fadeSlide { from { opacity:0; transform: translateY(8px) } to { opacity:1; transform: translateY(0) } }

/* reveal class to animate cards as they scroll into view */
.revealed { animation: popIn .6s ease both }

/* responsive */
@media(max-width: 900px) {
  h1.edc-line { font-size: 56px; }
  h1.practicum-line { font-size: 34px; }
  .submitted-center img { width: 140px; }
  nav ul { padding: 8px; gap: 6px; } 
  nav li a { font-size: 13px; padding: 6px 10px; }
}

@media(max-width: 680px) {
  .photo-gallery img { width: 48%; height: 180px; } /* Adjusting gallery image height for mobile */
  .about-images img, .experience-evidence img, .theory-evidence img { height: 180px; } /* Slightly reduced on mid-size mobile */
  .submitted-left, .submitted-right { font-size: 16px; }
  .nav-logo-center img { width: 60px; } 
  .experience-evidence figure, .theory-evidence figure {
    flex: 1 1 100%; 
    max-width: 100%;
  }
}

@media(max-width: 420px) {
  .photo-gallery img { width: 100%; height: auto; }
  .content-section { padding: 20px 14px; margin: 12px; }
}