/** @format */
/* This is the master.css or styles.css. this is where the standardized code lives. */

/* ========== Reset & Base Styles ========== */
b,
strong {
  font-weight: bold;
}

/* ========== Typography & Base Styles ========== */
body {
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #2c2c2c;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0 1.875rem;
}

/* ========== Typography & Links ========== */
a {
  color: #4a6fa5;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

a:hover {
  color: #2c2c2c;
  text-decoration: underline;
}

h1,
h2 {
  text-align: center;
  font-weight: bold;
  vertical-align: baseline;
  color: #082f5b;
}

h1 {
  font-size: 2rem;
  margin: 0;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 0.0625rem solid #ddd;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

h3 {
  text-align: center;
  border-bottom: 0.25rem solid #4a90e2;
  font-weight: bold;
  vertical-align: baseline;
  color: #4a90e2;
}

/* ========== Layout Containers ========== */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  background-color: #ffffff;
  border-bottom: 0.0625rem solid #ddd;
}

header img.logo {
  width: 3.75rem;
  height: auto;
  margin-bottom: 0.5rem;
}

header h1 {
  font-size: 2rem;
  margin: 0;
}

header p {
  font-size: 1rem;
  color: #666;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 3.75rem;
  height: auto;
}

.header-title {
  margin: 1.5625rem 0 1.5625rem;
  text-align: center;
}

/* ========== Navigation Bar ========== */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
  margin: 0;
  background-color: #fafafa;
  border-bottom: 0.0625rem solid #ddd;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: #4a6fa5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a:hover {
  color: #2c2c2c;
}

/* Legacy navigation styles for existing styled nav */
.header-nav {
  background: #2e2e2e;
  border-radius: 1.5625rem;
  margin: 2rem auto;
  width: fit-content;
  padding: 0.5rem 2.5rem;
}

.header-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
  padding: 0;
  background-color: transparent;
  border-bottom: none;
}

.header-nav li {
  display: flex;
}

.header-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #e6a6b0;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  text-decoration: underline;
  background: #444;
  border-radius: 0.75rem;
  color: #f2d5dd;
}

.header-nav a:hover .nav-icon {
  animation: bounce 0.5s;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-0.625rem);
  }
  50% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(-0.3125rem);
  }
  100% {
    transform: translateY(0);
  }
}

.nav-icon {
  width: 2rem;
  height: 2rem;
  display: block;
  transition: transform 0.2s;
}

/* ========== About Section ========== */
.about_summary {
  margin: 1.25rem 0;
  padding-left: 3.125rem;
  background-color: #e0f7fa;
  border-left: 0.3125rem solid #4a90e2;
}
.about_profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
}
.profile-pic {
  width: 12.5rem;
  height: 12.5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 0.25rem solid #4a90e2;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.3);
  margin: 0.9375rem 0;
}

/* ========== Main Content ========== */
main {
  max-width: 50rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 2rem;
}

/* ========== Lists & Content Sections ========== */
.education-list,
.project-list {
  border-right: 0.25rem solid #4a90e2;
}
#experience,
#skills {
  background-color: #e0f7fa;
}
.experience-list,
.skills-list {
  padding-left: 1.25rem;
  border-left: 0.3125rem solid #4a90e2;
}
.job-title {
  margin: 0;
  color: #274c75;
}

/* ========== Footer ========== */
footer {
  text-align: center;
  padding: 2rem 0;
  background-color: #fafafa;
  border-top: 0.0625rem solid #ddd;
  font-size: 0.9rem;
  color: #666;
}

footer a {
  color: #4a6fa5;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.copyright {
  padding-bottom: 1.25rem;
  font-size: 0.8em;
  color: #777;
}

/* ========== DARK THEME FOR INDEX PAGE ========== */
/* Apply the week2practice theme to index.html */

body.dark-theme {
  font-family: "Georgia", serif;
  background-color: #1f1f1f;
  color: #c2e5f2;
  margin: 0;
  padding: 0 1.875rem;
}

/* Dark theme header styling - FIXED CONTRAST */
body.dark-theme header {
  background-color: #00a3b1;
  color: #f0f0f0;
  border-bottom: none;
  padding: 2rem 1rem;
}

body.dark-theme header h1 {
  color: #f0f0f0;
  font-size: 2.25rem;
  text-align: center;
  margin: 1.5rem 0 0.5rem;
  border-bottom: none;
}

body.dark-theme header h2 {
  color: #deb1bd;
  font-size: 1.5rem;
  margin: 0.625rem 0 0.75rem;
  border-bottom: none;
  font-weight: normal;
}

body.dark-theme header p {
  color: #c2e5f2;
  font-size: 1rem;
}

/* Dark theme main content styling */
body.dark-theme main {
  background-color: transparent;
}

body.dark-theme section {
  background-color: #2a2a2a;
  padding: 1.5rem;
  margin: 1.25rem auto;
  border-radius: 0.5rem;
}

/* Dark theme headings */
body.dark-theme h3 {
  font-size: 1.625rem;
  margin: 1.25rem 0 0.75rem;
  color: #00a3b1;
  border-bottom: 0.125rem solid #00a3b1;
}

/* Dark theme text and paragraphs */
body.dark-theme p {
  font-size: 1.0625rem;
  margin: 0.875rem 0;
  color: #c2e5f2;
}

body.dark-theme ul,
body.dark-theme ol {
  margin: 0;
}

body.dark-theme li {
  margin: 0.5rem 0;
  color: #c2e5f2;
}

/* Dark theme links */
body.dark-theme a {
  color: #f2a7bb;
}

body.dark-theme a:hover {
  color: #f2d5dd;
}

/* Dark theme about section */
body.dark-theme .about_summary {
  background-color: #2a2a2a;
  border-left: 0.3125rem solid #00a3b1;
  color: #c2e5f2;
}

body.dark-theme .profile-pic {
  border: 0.25rem solid #00a3b1;
}

/* Dark theme skill and experience sections */
body.dark-theme #experience,
body.dark-theme #skills {
  background-color: #2a2a2a;
}

body.dark-theme .experience-list,
body.dark-theme .skills-list {
  border-left: 0.3125rem solid #00a3b1;
}

body.dark-theme .education-list,
body.dark-theme .project-list {
  border-right: 0.25rem solid #00a3b1;
}

body.dark-theme .job-title {
  color: #deb1bd;
}

/* Dark theme footer styling */
body.dark-theme footer {
  background-color: #2a2a2a;
  color: #a2f2dc;
  border-top: none;
  font-size: 0.9rem;
}

body.dark-theme footer a {
  color: #f2a7bb;
}

body.dark-theme footer a:hover {
  color: #f2d5dd;
}

/* Dark theme tagline */
body.dark-theme .tagline {
  font-size: 0.8em;
  margin-top: 0.625rem;
  color: #c2e5f2;
}

/* ========== MOBILE RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 48rem) {
  body {
    padding: 0 1rem;
  }

  body.dark-theme {
    padding: 0 1rem;
  }

  .header-nav {
    padding: 0.5rem 1rem;
    margin: 1rem auto;
  }

  .header-nav ul {
    gap: 1.5rem;
  }

  .header-nav a {
    font-size: 1rem;
  }

  .nav-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  main {
    padding: 0 0.5rem;
  }

  body.dark-theme section {
    padding: 1rem;
    margin: 1rem auto;
  }

  .about_summary {
    padding-left: 1.25rem;
  }

  .profile-pic {
    width: 10rem;
    height: 10rem;
  }
}

/* Validator badge image styles */
.css-validator-badge {
  border: 0;
  width: 88px;
  height: 31px;
}
