/* External Stylesheet for SCF CGS2820 site */
/* Tag selectors */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  max-width: 1000px;
  margin: auto;
  background-image: url('images/background.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  background-color: #98c8ff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
}
img { max-width: 100%; height: auto; display: block; }
header {
  height: 250px;
  background-image: url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  background-color: #366999;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000;
  padding: 16px 20px;
}
header h1 { margin: 0; font-size: 28px; }
header h2 { margin: 0; font-size: 20px; color: #0b63ff; }
hr { width: 60%; height: 4px; background-color: #039; border: none; border-radius: 6px; margin: 10px auto 20px; }
nav { text-align: center; padding: 12px; background-color: #CCE2F3; }
main { background-color: #CCE2F3; color: #000; padding: 16px 20px; }
footer { background-color: #366999; color: #fff; text-align: center; padding: 10px 12px; }

/* Table Styles for Contact Form */
table { border: 4px solid #033C73; border-collapse: collapse; width: 100%; margin: 20px auto; }
th { background-color: #0B6FA4; color: #fff; padding: 12px; text-align: center; font-size: 1.1em; font-weight: bold; }
td { padding: 12px; border: 1px solid #99C0E0; }

/* Form Input Styles */
input[type="text"],
input[type="email"],
select,
textarea {
  padding: 8px;
  border: 1px solid #99C0E0;
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1em;
  width: 100%;
  max-width: 400px;
}

textarea {
  resize: vertical;
}

input[type="submit"],
input[type="reset"] {
  padding: 10px 20px;
  margin: 10px 5px 10px 0;
  background-color: #0B6FA4;
  color: #fff;
  border: 1px solid #033C73;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
  background-color: #033C73;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 5px;
}

label {
  margin-right: 15px;
}

/* IDs */
#wrapper { border: 2px solid #0B6FA4; background: #CCE2F3; }
#Top { background-color: #CCE2F3; border-bottom: 2px solid #0B6FA4; padding: 15px 0; }
#social { background: #CCE2F3; border-top: 1px dashed #99C0E0; padding: 10px 20px; }
#contact-form { max-width: 600px; margin: 20px auto; }
#contact-form table td:first-child { text-align: right; width: 150px; }

/* Navigation */
nav { width: 100%; text-align: center; }
nav ul { list-style: none; padding: 0; margin: 0; }
nav li { padding: 0 14px; }
nav a { color: #033C73; background-color: transparent; text-decoration: none; padding: 6px 10px; display: block; width: 30%; font-size: 1.1rem; }
nav a:hover { color: #fff; background-color: #0B6FA4; }
nav .selected { color: #fff; background-color: #033C73; border-radius: 4px; padding: 2px 6px; }
nav li a { border: 2px #AAA solid; padding: 6px; }

/* Utility classes */
.important { color: #0b63ff; font-weight: bold; }
.headshot { width: 220px; border-radius: 10px; float: right; margin: 0 0 12px 16px; }
.framedImg { border: 1px solid #000; border-radius: 8px; }
.small { font-size: 14px; }
.toTopIcon { border: 0; width: 54px; height: auto; }
.quick-facts { font-weight: bold; }
.project-description { margin-top: 10px; }

/* Resume layout (two columns) */
.resume-main { border: 2px solid #0B6FA4; }
.resume-row { display: flex; flex-wrap: nowrap; align-items: flex-start; }
.resume-row aside { width: 25%; text-align: right; padding: 14px; }
.resume-row section { width: 75%; padding: 14px; }
.resume-row aside h2 { color: #033C73; margin: 0; font-size: 1.8rem; line-height: 1.2; }
.resume-row + .resume-row { border-top: 1px dashed #99C0E0; }
abbr { text-decoration: underline dotted; cursor: help; }

/* Responsive tweak */
@media (max-width: 700px) {
  .resume-row { display: block; }
  .resume-row aside, .resume-row section { width: 100%; text-align: left; }
  .headshot { float: none; margin: 0 auto 12px; display: block; }
}

/* Responsive navigation for mobile devices */
@media only screen and (max-width: 640px) {
  nav a { display: block; width: 100%; }
  nav li { display: block; padding: 8px 0; }
}

/* Responsive navigation for larger screens */
@media only screen and (min-width: 641px) {
  nav a { display: inline; width: auto; }
  nav li { display: inline; padding: 0 18px; }
}

/* Portfolio Styles */
#portfolio-container {
  text-align: center;
  margin: 0 auto;
  padding: 20px;
}

figure {
  width: 300px;
  display: inline-block;
  margin: 15px;
  text-align: center;
  vertical-align: top;
  background-color: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

figcaption {
  margin-top: 10px;
  font-weight: bold;
  color: #033C73;
  font-size: 14px;
}

/* Responsive adjustments for portfolio */
@media only screen and (max-width: 700px) {
  figure {
    width: 90%;
    max-width: 320px;
    margin: 15px auto;
    display: block;
  }
}

@media only screen and (min-width: 701px) and (max-width: 1000px) {
  figure {
    width: 45%;
    max-width: 320px;
  }
}

@media only screen and (min-width: 1001px) {
  figure {
    width: 30%;
    max-width: 320px;
  }
}

/* Newsletter Styles */
blockquote {
  text-align: justify;
  margin: 20px 40px;
  padding: 15px;
  line-height: 1.8;
}

blockquote:first-letter {
  font-size: 2.2em;
  font-weight: bold;
  color: #0b63ff;
  float: left;
  margin-right: 5px;
  line-height: 1;
}

.box {
  border: 3px solid #0b63ff;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  background-color: rgba(255, 255, 255, 0.3);
}

.infobar {
  background-color: #033C73;
  color: #fff;
  padding: 15px 20px;
  text-align: center;
  font-size: 1.3em;
  font-weight: bold;
  margin: 25px 0;
  border-radius: 6px;
}

.byline {
  text-align: center;
  font-style: italic;
  color: #033C73;
  margin: 10px 0 20px 0;
}

.newsletter-title {
  text-align: center;
  color: #0b63ff;
  margin-bottom: 5px;
}

.newsletter-date {
  text-align: center;
  color: #666;
  font-size: 1.1em;
  margin-bottom: 5px;
}

ul.image-bullets {
  list-style-image: url('images/point.svg');
  margin-left: 30px;
  line-height: 1.8;
}

/* CSS3 Feature 1: Box shadow with multiple layers */
.shadow-box {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1),
              0 8px 16px rgba(0,0,0,0.1),
              0 16px 32px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.shadow-box:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15),
              0 12px 24px rgba(0,0,0,0.15),
              0 24px 48px rgba(0,0,0,0.15);
}

/* CSS3 Feature 2: Text gradient effect */
.gradient-text {
  background: linear-gradient(135deg, #0b63ff 0%, #033C73 50%, #0B6FA4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  font-size: 1.2em;
}

/* Required field indicator */
.required {
  color: #d32f2f;
  font-weight: bold;
}
