/*
  File Name: styles.css
  Website:   Tech Pathways
  Purpose:   Main stylesheet — Dark Aesthetic Theme
  Colors:    Background: near-black  #0d0d0f
             Surface:    dark cards  #141418 / #1c1c24
             Accent 1:   cyan        #00e5ff
             Accent 2:   purple      #a855f7
             Text:       light gray  #e2e2e8 / #c8c8d4
*/

/* ==========================================
   CSS RESET
   ========================================== */
body, header, nav, main, footer, h1, h2, h3, div, img, ul, figure, figcaption,
section, article, aside, audio, video, table, form, fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

* {
  box-sizing: border-box;
}

/* ==========================================
   BODY & IMAGES
   ========================================== */
body {
  background-color: #0d0d0f;
  color: #ebebf0;
}

img, video {
  max-width: 100%;
  display: block;
}

/* ==========================================
   MOBILE STYLES
   ========================================== */

/* --- HEADER --- */
header {
  background-color: #0d0d0f;
  padding: 18px 22px;
  min-height: 100px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #1e1e28;
}

/* Site title - glowing cyan */
header .site-title {
  color: #00e5ff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 3px;
  text-shadow:
    0 0 12px rgba(0, 229, 255, 0.9),
    0 0 30px rgba(0, 229, 255, 0.5),
    0 0 60px rgba(0, 229, 255, 0.25);
}

/* Tagline - purple */
header .tagline {
  color: #c084fc;
  font-family: 'Roboto Slab', serif;
  font-size: 0.82em;
  display: block;
  margin-top: 5px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* --- MOBILE HAMBURGER NAV --- */
.mobile-nav a {
  color: #e2e2e8;
  font-family: 'Inter', Arial, sans-serif;
  text-align: center;
  font-size: 1.75em;
  text-decoration: none;
  padding: 3%;
  display: block;
  background-color: #141418;
  border-bottom: 1px solid #2a2a35;
}

.mobile-nav a:hover {
  color: #00e5ff;
  background-color: #1c1c24;
}

/* Hamburger icon - top right */
.mobile-nav a.menu-icon {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  padding: 15px 20px;
  border-bottom: none;
  background-color: transparent;
  font-size: 2em;
  color: #00e5ff;
}

/* Show mobile, hide tablet-desktop and menu-links */
.mobile {
  display: block;
}

.tablet-desktop, #menu-links {
  display: none;
}

/* --- HERO IMAGE (mobile) --- */
#hero img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.82) saturate(0.85);
}

/* --- MAIN CONTENT AREA --- */
main {
  background-color: #18181f;
  padding: 4% 3%;
  font-size: 1.1em;
  font-family: 'Roboto Slab', serif;
  color: #dcdce8;
  line-height: 1.85;
}

/* Headings */
main h1 {
  font-family: 'Inter', Arial, sans-serif;
  color: #00e5ff;
  margin-bottom: 0.5em;
  font-size: 1.6em;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

main h2 {
  font-family: 'Inter', Arial, sans-serif;
  color: #a855f7;
  margin: 1em 0 0.4em;
  font-size: 1.25em;
  letter-spacing: 0.5px;
}

main h3 {
  font-family: 'Inter', Arial, sans-serif;
  color: #00e5ff;
  margin: 0.8em 0 0.3em;
  font-size: 1.05em;
}

main p {
  margin-bottom: 1em;
}

/* Links inside main */
main a {
  color: #00e5ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

main a:hover {
  color: #a855f7;
  border-bottom-color: #a855f7;
}

/* --- ACCENT TEXT --- */
.action {
  color: #00e5ff;
  font-weight: bold;
  font-size: 1.1em;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* --- CARD GRID (home page cards) --- */
.frame {
  position: relative;
  max-width: 450px;
  margin: 4% auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a2a38;
}

.frame img {
  filter: brightness(0.65) saturate(0.8);
  transition: filter 0.3s ease;
}

.frame a {
  text-decoration: none;
  display: block;
}

/* Dark gradient overlay on card captions */
.pic-text {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(13,13,15,0.95), rgba(13,13,15,0.2));
  color: #00e5ff;
  width: 100%;
  padding: 20px 18px 14px;
  text-align: center;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.3em;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
}

/* --- CALL TO ACTION BOX --- */
.cta-box {
  background-color: #1c1c24;
  border-left: 4px solid #a855f7;
  padding: 4%;
  margin: 4% 0;
  border-radius: 0 10px 10px 0;
  text-align: center;
  box-shadow: -2px 0 18px rgba(168, 85, 247, 0.2);
}

.cta-box p {
  font-size: 1.05em;
  color: #dcdce8;
  margin: 0;
}

.cta-box a {
  color: #a855f7;
  font-weight: bold;
  border-bottom: 1px solid rgba(168, 85, 247, 0.4);
}

.cta-box a:hover {
  color: #00e5ff;
  border-bottom-color: #00e5ff;
}

/* --- ARTICLES --- */
article {
  padding: 3% 2%;
  margin-bottom: 1%;
  border-radius: 8px;
}

article h2 {
  text-align: center;
}

article img {
  margin: 1% auto;
  border-radius: 8px;
  border: 1px solid #2a2a38;
}

article ul {
  margin-left: 8%;
  color: #dcdce8;
}

article li {
  margin-bottom: 0.4em;
}

/* Alternate article background */
article:nth-of-type(even) {
  background-color: #1e1e28;
}

/* --- ASIDE / TIP BOX --- */
aside {
  text-align: center;
  font-size: 1.05em;
  font-style: italic;
  font-weight: bold;
  padding: 4%;
  background-color: #1c1c24;
  border-left: 4px solid #00e5ff;
  border-radius: 0 10px 10px 0;
  margin: 4% 0;
  color: #00e5ff;
  box-shadow: -2px 0 16px rgba(0, 229, 255, 0.15);
}

aside p {
  margin: 0;
}

/* --- TABLE (Tips page) --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2% 0;
  font-size: 0.95em;
}

caption {
  font-size: 1.2em;
  font-weight: bold;
  padding: 2%;
  color: #a855f7;
  letter-spacing: 0.5px;
}

th, td {
  border: 1px solid #2a2a38;
  padding: 3%;
  text-align: left;
}

th {
  background-color: #1c1c28;
  color: #00e5ff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #00e5ff;
}

tr:nth-child(odd) {
  background-color: #1c1c26;
}

tr:nth-child(even) {
  background-color: #18181f;
}

tr:hover {
  background-color: #1e1e2c;
  color: #ffffff;
}

/* --- STEP LIST (Tutorials page) --- */
.step-list {
  list-style: none;
  margin: 2% 0;
  padding: 0;
}

.step-list li {
  background-color: #1e1e28;
  border-left: 4px solid #a855f7;
  padding: 3%;
  margin-bottom: 2%;
  border-radius: 0 8px 8px 0;
  box-shadow: -2px 0 12px rgba(168, 85, 247, 0.15);
  color: #dcdce8;
}

.step-list li strong {
  color: #a855f7;
  display: block;
  margin-bottom: 5px;
  font-family: 'Inter', Arial, sans-serif;
}

/* --- VIDEO & AUDIO --- */
video {
  margin: 3% auto 4%;
  border-radius: 8px;
  border: 1px solid #2a2a38;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

audio {
  width: 100%;
  margin: 3% auto;
  display: block;
  filter: invert(1) hue-rotate(180deg);
}

/* --- FAQ ACCORDION --- */
.faq-question {
  width: 100%;
  background-color: #1c1c24;
  color: #e2e2e8;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.98em;
  padding: 3.5%;
  text-align: left;
  border: none;
  border-bottom: 1px solid #2a2a38;
  border-left: 3px solid #a855f7;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.faq-question:hover {
  background-color: #22222e;
  color: #a855f7;
  border-left-color: #00e5ff;
}

/* Answer panel (hidden until clicked) */
.faq-answer {
  display: none;
  padding: 3% 4%;
  background-color: #1e1e28;
  border-left: 3px solid #00e5ff;
  border-radius: 0 0 8px 8px;
  margin-bottom: 4%;
  color: #dcdce8;
  box-shadow: -2px 0 12px rgba(0, 229, 255, 0.1);
}

.faq-answer p {
  margin: 0;
}

/* --- CONTACT PAGE --- */
#contact {
  text-align: center;
  margin-bottom: 4%;
}

#contact h2 {
  font-family: 'Inter', Arial, sans-serif;
  color: #00e5ff;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

#contact p {
  color: #c8c8d4;
}

#contact .contact-email-link {
  color: #a855f7;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid rgba(168, 85, 247, 0.4);
}

/* Map placeholder */
.map-placeholder {
  background-color: #1a1a22;
  border: 2px dashed #2a2a40;
  width: 95%;
  height: 250px;
  margin: 3% auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1em;
  border-radius: 10px;
}

/* --- CONTACT FORM --- */
#form {
  margin-top: 2%;
  background-color: #17171e;
  padding: 4%;
  border-radius: 10px;
  border: 1px solid #2a2a38;
}

#form h2 {
  text-align: center;
  color: #a855f7;
  font-family: 'Inter', Arial, sans-serif;
  margin-bottom: 3%;
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}

fieldset {
  border: 1px solid #2a2a38;
  border-radius: 10px;
  padding: 4%;
  margin-bottom: 3%;
  background-color: #1c1c24;
}

fieldset legend {
  font-weight: bold;
  font-size: 1.05em;
  color: #00e5ff;
  padding: 0 8px;
  font-family: 'Inter', Arial, sans-serif;
}

label {
  display: block;
  padding-top: 3%;
  font-weight: bold;
  font-size: 0.88em;
  color: #b0b0c8;
  font-family: 'Inter', Arial, sans-serif;
  letter-spacing: 0.3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 2.5%;
  margin-top: 1%;
  border: 1px solid #2a2a3a;
  border-radius: 6px;
  font-size: 1em;
  font-family: 'Roboto Slab', serif;
  color: #e2e2e8;
  background-color: #12121a;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

input[type="checkbox"] {
  accent-color: #a855f7;
  margin-right: 6px;
}

/* Submit button - purple gradient */
form #submit {
  margin: 3% auto 0;
  border: none;
  display: block;
  padding: 3% 8%;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #ffffff;
  font-size: 1.1em;
  font-family: 'Inter', Arial, sans-serif;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 1.5px;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  transition: box-shadow 0.2s, transform 0.15s;
}

form #submit:hover {
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.7);
  transform: translateY(-2px);
}

/* --- INLINE IMAGES (basics.html + about.html) ---
   Floats the image to the right so text wraps beside it.
   On mobile it stacks full width. */
.small-img {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #2a2a38;
  margin: 0 auto 1.5em;
  filter: brightness(0.82) saturate(0.85);
}

@media screen and (min-width: 630px) {
  .small-img {
    float: right;
    margin: 0 0 1.5em 2em;
    width: 55%;
    max-width: 520px;
  }
}

/* Clear float after articles that contain .small-img */
article::after {
  content: "";
  display: table;
  clear: both;
}

/* --- IMAGE PLACEHOLDER --- */
.img-placeholder {
  background-color: #1a1a22;
  border: 2px dashed #2a2a40;
  width: 100%;
  padding: 15% 5%;
  text-align: center;
  color: #a855f7;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.9em;
  border-radius: 8px;
  margin: 2% 0;
}

/* --- FOOTER --- */
footer {
  background-color: #0d0d0f;
  padding: 3% 2%;
  text-align: center;
  border-top: 1px solid #1e1e28;
}

footer p {
  font-size: 0.82em;
  color: #505060;
  padding: 0.4em 1em;
  font-family: 'Inter', Arial, sans-serif;
}

footer p a {
  color: #a855f7;
  text-decoration: none;
}

footer p a:hover {
  color: #00e5ff;
}


/* ==========================================
   TABLET VIEWPORT (630px and wider)
   ========================================== */
@media screen and (min-width: 630px), print {

  /* Show tablet-desktop, hide mobile */
  .tablet-desktop {
    display: block;
  }

  .mobile, .mobile-nav {
    display: none;
  }

  /* Hero image taller */
  #hero img {
    height: 330px;
    filter: brightness(0.7) saturate(0.8);
  }

  /* Header */
  header {
    padding: 20px 30px;
    min-height: 110px;
  }

  header .site-title {
    font-size: 2.8em;
  }

  header .tagline {
    font-size: 0.88em;
  }

  /* Nav bar */
  nav {
    background-color: #0d0d0f;
    border-bottom: 1px solid #1e1e28;
    padding: 0 1%;
  }

  nav ul {
    list-style-type: none;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  nav li {
    font-size: 1.1em;
    font-family: 'Inter', Arial, sans-serif;
    display: inline-block;
    border-right: 1px solid #1e1e28;
  }

  nav li:last-child {
    border-right: none;
  }

  nav li a {
    display: block;
    color: #b0b0c8;
    padding: 0.7em 1em;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
    letter-spacing: 0.5px;
  }

  nav li a:hover {
    color: #00e5ff;
    background-color: rgba(0, 229, 255, 0.06);
  }

  /* Card grid */
  .grid {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 20px;
    padding: 2% 0;
  }

  .frame {
    opacity: 0.88;
    margin: 0;
  }

  .frame:hover {
    opacity: 1;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
    transform: translateY(-6px);
    transition: all 0.25s ease;
  }

  .frame:hover img {
    filter: brightness(0.85) saturate(1);
  }

  .pic-text {
    font-size: 1em;
    padding: 12px;
  }

  /* Aside */
  aside {
    font-size: 1.15em;
    padding: 3% 5%;
  }

  /* Article list indent */
  article ul {
    margin: 0 0 3% 8%;
  }

  /* Three-column article grid */
  .three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
  }

  .span-all {
    grid-column: 1 / span 3;
  }

  /* Table */
  table {
    width: 100%;
  }

  caption {
    font-size: 1.3em;
  }

  th, td {
    padding: 2%;
  }

  /* Form */
  form {
    width: 75%;
    margin: 0 auto;
  }

  /* Map placeholder */
  .map-placeholder {
    height: 350px;
  }

  /* Figcaption animation */
  @keyframes text-animation {
    0%   { font-size: 1em; }
    50%  { font-size: 1.4em; }
    100% { font-size: 1em; }
  }

  figcaption {
    animation-name: text-animation;
    animation-delay: 3s;
    animation-duration: 5s;
  }

} /* end tablet media query */


/* ==========================================
   DESKTOP VIEWPORT (1015px and wider)
   ========================================== */
@media screen and (min-width: 1015px), print {

  /* Header floats left */
  header {
    width: 28%;
    float: left;
    padding: 15px 20px;
    min-height: 80px;
  }

  /* Nav floats right */
  nav.tablet-desktop {
    float: right;
    width: 70%;
    margin: 1.6em 1em 0 0;
    border-bottom: none;
    background-color: transparent;
  }

  nav ul {
    text-align: right;
  }

  nav li {
    border: none;
    font-size: 1em;
  }

  nav li a {
    padding: 0.5em 1.1em;
    border-radius: 5px;
  }

  nav li a:hover {
    color: #00e5ff;
    background-color: rgba(0, 229, 255, 0.08);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
    transform: scale(1.05);
    transition: all 0.2s ease;
  }

  /* Main clears float */
  main {
    clear: left;
    padding: 3% 5%;
  }

  main h1 {
    font-size: 2em;
  }

  /* Hero */
  #hero img {
    height: 430px;
    clear: left;
  }

  /* Form grid */
  form {
    width: auto;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 24px;
  }

  .btn {
    grid-column: 1 / span 3;
  }

  /* Table */
  table {
    width: 90%;
    margin: 2% auto;
  }

  /* Map */
  .map-placeholder {
    width: 640px;
    height: 420px;
  }

} /* end desktop media query */


/* ==========================================
   LARGE DESKTOP (1921px+)
   ========================================== */
@media screen and (min-width: 1921px) {

  #container {
    width: 1920px;
    margin: 0 auto;
  }

  table {
    width: 70%;
  }

} /* end large desktop */


/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {

  body {
    background-color: #ffffff;
    color: #000000;
  }

  nav, .mobile-nav, .mobile, #hero {
    display: none;
  }

  header {
    float: none;
    width: 100%;
    background-color: #ffffff;
  }

  header .site-title {
    color: #000000;
    text-shadow: none;
  }

  header .tagline {
    color: #555555;
  }

  main {
    clear: both;
    background-color: #ffffff;
    color: #000000;
  }

  main h1, main h2, main h3 {
    color: #000000;
    text-shadow: none;
  }

  footer {
    background-color: #ffffff;
    border-top: 1px solid #ccc;
  }

  footer p, footer p a {
    color: #000000;
  }

} /* end print */
