/* ---------------------- */
/* GLOBAL STYLES          */
/* ---------------------- */

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, #f0f4f8, #dfe6e9);
  color: #333;
}

/* ---------------------- */
/* HEADER                 */
/* ---------------------- */

header {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  padding: 1rem;
  background-color: #74b9ff;
  color: white;
}

/* ---------------------- */
/* NAVIGATION (FLEXBOX)   */
/* ---------------------- */

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  background-color: #0984e3;
}

nav li {
  margin: 0 1rem;
}

nav a {
  text-decoration: none;
  color: white;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #74b9ff;
}

/* ---------------------- */
/* MAIN CONTENT SECTIONS  */
/* ---------------------- */

main section {
  margin: 2rem;
  padding: 1.5rem;
  border: 1px solid #ccc;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

main section:hover {
  transform: scale(1.05);
}

/* ---------------------- */
/* PROJECTS TABLE         */
/* ---------------------- */

#projects table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

#projects caption {
  caption-side: top;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#projects thead {
  background-color: #dfe6e9;
}

#projects th,
#projects td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: left;
}

/* Highlight first and third columns */
#projects col:first-child,
#projects col:nth-child(3) {
  background-color: #f0f8ff;
}

/* ---------------------- */
/* CONTACT FORM (FLEXBOX) */
/* ---------------------- */

.contact-flex {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  width: 100%;
  margin: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Input + Textarea Styling */
input[type="text"],
input[type="email"],
textarea {
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 4px;

  /* Required transition */
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #0077cc;
}

/* Submit Button */
.submit-btn {
  padding: 12px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;

  /* Required transition */
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #005fa3;
}

/* ---------------------- */
/* RESPONSIVE DESIGN      */
/* ---------------------- */

/* Phones */
@media (min-width: 320px) {
  .main-flex {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }
}

/* Tablets */
@media (min-width: 768px) {
  .main-flex {
    flex-direction: row;
    justify-content: center;
  }
}

/* Desktops */
@media (min-width: 1024px) {
  .contact-flex {
    max-width: 600px;
  }
}

/* ---------------------- */
/* FOOTER                 */
/* ---------------------- */

footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 1rem;
  background-color: #2d3436;
  color: #dfe6e9;
}
