/* ================================
   Base Styles
   ================================ */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  /* Balanced gradient: medium grey + deep navy + darker greys */
  background: linear-gradient(-45deg, #6e6e6e 0%, #4a4a4a 30%, #001166 60%, #2a2a2a 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #dcdcdc; /* light text for readability */
  display: flex;
}

/* ================================
   Sidebar Navigation
   ================================ */
.sidebar {
  width: 200px;
  background-color: #3c3c3c; /* medium-dark grey sidebar */
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 40px;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  text-align: center;
}
.sidebar ul li {
  margin: 20px 0;
}
.sidebar ul li a {
  color: #9c9c9c; /* teal accent links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
.sidebar ul li a:hover {
  color: #0000e6; /* highlight accent */
}

/* ================================
   Resume Button in Sidebar
   ================================ */
.sidebar ul li a.resume-btn {
  display: block;
  margin: 25px auto 0;
  padding: 10px 15px;
  background-color: #4a4a4a; /* subtle dark button */
  color: #dcdcdc;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.sidebar ul li a.resume-btn:hover {
  background-color: #0000e6; /* your existing hover accent */
  transform: scale(1.05);
  color: #fff;
}


/* ================================
   Main Content Area
   ================================ */
.main-content {
  margin-left: 200px; /* space for sidebar */
  padding: 40px;
  flex: 1;
}

/* ================================
   Header with Canvas Logo
   ================================ */
header {
  text-align: center;
  margin-bottom: 40px;
}
#logoCanvas {
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
  animation: fadeInUp 1s ease-out forwards;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(128,128,255,0.6); /* periwinkle glow */
}

/* ================================
   Section Styling
   ================================ */
section {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* ================================
   Portfolio Items
   ================================ */
.portfolio-item {
  background-color: #3c3c3c; /* medium grey card */
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #555;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center; /* center text and links under image */
}
.portfolio-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* Portfolio item images */
.portfolio-item img {
  width: 250px;          /* fixed width for consistency */
  height: 180px;         /* fixed height for uniform layout */
  object-fit: cover;     /* crop/scale images to fit without distortion */
  display: block;
  margin: 0 auto 10px;   /* center image horizontally, spacing below */
  border-radius: 6px;    /* rounded corners for polish */
  box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* subtle shadow for depth */
}

/* ================================
   Project Links
   ================================ */
.links a {
  margin-right: 15px;
  color: #77aadd;
  text-decoration: none;
  transition: color 0.3s ease;
}
.links a:hover {
  color: #dcdcdc;
}

/* ================================
   jQuery Demo Box (Lab 6 Part 2)
   ================================ */
.box {
  width: 200px;
  height: 100px;
  background-color: #77aadd; /* blue accent */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-weight: bold;
}

/* ================================
   Contact Form
   ================================ */
form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}
form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #666;
  border-radius: 4px;
  background-color: #2a2a2a; /* charcoal input background */
  color: #dcdcdc;
}
button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #444;
  color: #dcdcdc;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
button:hover {
  background-color: #77aadd;
  transform: scale(1.05);
}

/* ================================
   Footer
   ================================ */
footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #555;
  color: #dcdcdc;
}

/* ================================
   Animations
   ================================ */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
