/* ============================== */
/* ====== LIGHT MODE STYLES ===== */
/* ============================== */

body {
  background: #e6ecf2;              /* light slate gray */
  color: #0a1f44;                   /* dark navy text */
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* Sidebar Layout (matches Resume/About) */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: #d3dce6; /* slate gray */
  color: #0a1f44;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center; /* center content horizontally */
  padding: 2rem 1rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  text-align: center;
}

.sidebar .logo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.profile-image img {
  display: block;
  margin: 1rem auto;
  max-width: 150px;
  border-radius: 8px;
}

.sidebar nav a {
  display: block;
  margin: 1rem 0;
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  color: #4b6cb7; /* soft blue accent */
}

.sidebar .social {
  margin-top: auto;
}

.sidebar .social a {
  display: block;
  margin: 0.5rem 0;
  color: inherit;
  text-decoration: none;
}

/* Main Content */
.content {
  margin-left: 250px;
  padding: 3rem;
  flex: 1;
  background: #ffffff;
  color: #0a1f44;
}

/* Headings */
h1, h2 {
  color: #0a1f44;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

h2 {
  border-left: 5px solid #4b6cb7;
  padding-left: 10px;
}

/* Links */
a {
  color: #0a1f44;
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: #4b6cb7;
}

/* Contact Form */
#contact-form {
  margin-top: 2rem;
  padding: 2rem;
  background: #d3dce6;
  color: #0a1f44;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #0a1f44;
  border-radius: 6px;
  font-size: 1rem;
  background: #ffffff;
  color: #0a1f44;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
  border-color: #4b6cb7;
  box-shadow: 0 0 0 3px rgba(75,108,183,0.3);
  outline: none;
}

/* Submit Button */
button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: #0a1f44; /* navy */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #143d6b; /* lighter navy */
}

/* Footer */
footer {
  margin-top: 2rem;
  text-align: center;
  color: #0a1f44;
  border-top: 2px solid #4b6cb7;
  padding: 1rem;
}

/* ============================== */
/* ====== DARK MODE STYLES ====== */
/* ============================== */

body.dark-mode {
  background: #1e1e1e;
  color: #f0f0f0;
}

/* Sidebar */
body.dark-mode .sidebar {
  background: #000000;
  color: #f0f0f0;
}

body.dark-mode .sidebar nav a {
  color: #f0f0f0;
}

body.dark-mode .sidebar nav a.active,
body.dark-mode .sidebar nav a:hover {
  color: #00cccc; /* teal accent */
}

body.dark-mode .sidebar .social a {
  color: #f0f0f0;
}

/* Main Content */
body.dark-mode .content {
  background: #1e1e1e;
  color: #f0f0f0;
}

/* Headings */
body.dark-mode h1,
body.dark-mode h2 {
  color: #f0f0f0; 
  /*text-shadow: 0 0 6px rgba(0,229,255,0.6);*/
}

body.dark-mode h2 {
  border-left: 5px solid #00cccc;
  padding-left: 10px;
}

/* Links */
body.dark-mode a {
  color: #00cccc;
  text-decoration: underline;
}

body.dark-mode a:hover {
  color: #00e5ff;
  text-shadow: 0 0 4px rgba(0,229,255,0.6);
}

/* Contact Form */
body.dark-mode #contact-form {
  background: #2a2a2a;
  color: #f0f0f0;
}

/* Inputs & Textareas */
body.dark-mode input,
body.dark-mode textarea {
  background:  #444;    /*#2a2a2a;*/
  color: #f0f0f0;
  border: 1px solid #444;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus {
  border-color: #00cccc;
  box-shadow: 0 0 0 3px rgba(0,204,204,0.3);
}

/* Buttons */
body.dark-mode button {
  background: #00cccc;
  color: #1c1c1c;
}

body.dark-mode button:hover {
  background: #00e5ff;
}

/* Footer */
body.dark-mode footer {
  border-top: 2px solid #00cccc;
  color: #f0f0f0;
}
/* ========--------------------=========*/
/* ======== For Thank-you page =========*/
/* ========--------------------=========*/
.thank-you {
  text-align: center;
  margin-top: 4rem;
}

.thank-you h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.thank-you p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.thank-you .btn {
  background: #0077cc;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.thank-you .btn:hover {
  background: #005fa3;
}

/* ============================================== */
/* ====== Changes side bar for mobile users ===== */
/* ============================================== */

@media (max-width: 768px) {
  /* Sidebar becomes a top nav bar */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;          /* full width across the top */
    height: 60px;         /* fixed height for nav bar */
    flex-direction: row;  /* horizontal layout */
    justify-content: center; /* center nav links */
    align-items: center;
    padding: 0 1rem;
    text-align: center;
    z-index: 1000;
  }

  /* Hide the logo/name on mobile */
  .sidebar .logo {
    display: none;
  }

  /* Nav links go inline */
  .sidebar nav {
    display: flex;
    gap: 1rem;
  }

  .sidebar nav a {
    margin: 0;
  }

  /* Hide socials */
  .sidebar .social {
    display: none;
  }

  /* Content no longer offset by sidebar */
  .content {
    margin-left: 0;
    margin-top: 60px; /* push content below top nav */
    padding: 1rem;
  }

  /* Center buttons under intro text */
  .buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
  }

  .buttons .btn {
    margin-right: 0;
  }
}

