/* =============== RESET =============== */
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; padding: 0; }

/* =============== BASE =============== */
body {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 300;
  background-color: #0d1b2a;
  color: #e0e1dd;
  line-height: 1.6;
}

h1, h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00a6fb;
}

h2 {
  border-bottom: 2px solid #0077b6;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* =============== ACCESSIBILITY =============== */
.skip-link {
  position: absolute;
  top: 0; left: -9999px;
  background: #00a6fb;
  color: #001018;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* =============== HERO =============== */
.hero {
  background: url('../images/Camden-Headshot-Shift.jpg') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #e0e1dd;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero-content { z-index: 1; }
.hero h1 { font-size: 3rem; letter-spacing: 2px; color: #00b4d8; }
.hero h2 { font-size: 1.5rem; margin: 1rem 0; color: #90e0ef; }

/* Optional intro quote */
.hero-quote {
  font-size: 3rem;
  color: #00b4d8;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  line-height: 1.3;
  margin: 0 auto;
  max-width: 80%;
  padding: 1rem;
}

/* =============== BUTTONS =============== */
.cta-button {
  display: inline-block;
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  background-color: #1a73e8;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #00a6fb;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, border 0.3s ease;
}
.cta-button:hover {
  background-color: #125bb5;
  border-color: #90e0ef;
  transform: translateY(-1px);
}
.small-button { font-size: 0.9rem; padding: 0.5rem 1.2rem; }

/* =============== LAYOUT =============== */
.section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.section p {
  margin-bottom: 1.25rem;
  text-align: justify;
  line-height: 1.8;
}

/* =============== DEMO + RESUME =============== */
.demo-resume-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.video-container { flex: 1 1 300px; max-width: 600px; }
.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}
.resume-container { flex: 1 1 300px; max-width: 400px; }
.resume-container p { font-size: 1.1rem; margin-bottom: 1rem; color: #e0e1dd; }

.resume-card {
  background-color: #1b263b;
  padding: 1.5rem;
  border-radius: 5px;
  text-align: center;
  margin: 1rem auto;
  max-width: 400px;
}

/* =============== MEDIA =============== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}
.media-item {
  background-color: #0d1b2a;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.media-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.media-item iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-bottom: 2px solid #00a6fb;
}
.media-description { padding: 1rem; background: #0d1b2a; text-align: left; }
.media-description h3 { font-size: 1.25rem; color: #00b4d8; margin-bottom: 0.5rem; }
.media-description p { font-size: 1rem; color: #e0e1dd; }

/* =============== GALLERY =============== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  justify-items: center;
}
.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}
.gallery-grid img:hover { transform: scale(1.05); }

/* =============== ABOUT =============== */
.about-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.about-text { flex: 2; }
.about-photo { flex: 1; }
.about-photo img {
  width: 100%;
  height: auto;
  max-width: 320px;
  border-radius: 8px;
  object-fit: cover;
}

/* =============== FORM =============== */
form input, form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #1b263b;
  border: none;
  color: #e0e1dd;
  border-radius: 5px;
}
form button {
  width: 100%;
  padding: 1rem;
  background: #1a73e8;
  color: #fff;
  text-transform: uppercase;
  border: 1px solid #00a6fb;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, border 0.3s ease, transform 0.2s ease;
}
form button:hover { background: #125bb5; border-color: #90e0ef; transform: translateY(-1px); }

/* =============== FOOTER =============== */
footer {
  background: #1b263b;
  padding: 1rem;
  text-align: center;
  color: #aaa;
}
.social-links a {
  color: #00b4d8;
  margin: 0 1rem;
  text-decoration: none;
  transition: color 0.3s;
}
.social-links a:hover { color: #90e0ef; }
.social-links a img {
  width: 32px; height: 32px;
  margin: 0 0.5rem;
  transition: transform 0.3s ease;
}
.social-links a img:hover { transform: scale(1.1); }

/* =============== RESPONSIVE =============== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero h2 { font-size: 1.2rem; }
  .cta-button { font-size: 0.9rem; padding: 0.5rem 1rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  form input, form textarea { font-size: 1rem; }
  .hero-quote { font-size: 2rem; padding: 0.5rem; }
  .about-container { flex-direction: column; align-items: center; }
  .about-photo img { max-width: 100%; }
}
/* ===== Fix resume block alignment & button sizing (overrides) ===== */
.resume-container {
  display: flex;              /* ensure layout is predictable */
  flex-direction: column;
  align-items: center;        /* centers the button horizontally */
  text-align: center;         /* centers the "My experience and skills" text */
  margin-inline: auto;
}

.resume-container p {
  margin: 0 0 0.75rem 0;      /* no weird float, tight spacing above button */
  font-size: 1rem;
  line-height: 1.4;
}

/* Keep buttons from wrapping to two lines */
.resume-container .small-button,
.resume-container .cta-button {
  font-size: 0.9rem;          /* slightly smaller so long text fits */
  padding: 0.55rem 1rem;      /* a hair less padding to prevent wrap */
  white-space: nowrap;        /* hard stop: don't wrap to two lines */
}

/* Make all embedded players consistent */
.media-item iframe,
.video-container iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
  border-bottom: 2px solid #00a6fb;
}
.hidden-media {
  display: none;
}

.media-toggle {
  text-align: center;
  margin-top: 20px;
}

.media-toggle .cta-button {
  min-width: 160px;
}

.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.about-text {
  flex: 2;
}

.about-image {
  flex: 1;
  max-width: 350px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
  }

  .about-image {
    max-width: 100%;
  }
}
