/* Import Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Merriweather:wght@700&family=Roboto:wght@400;700&display=swap');

:root {
  --primary-color: #9FDAEB;      /* header & tab bg */
  --secondary-color: #75a2ae;    /* hover splash */
  --accent-color: #c17d8c;       /* inline links */
  --background-color: #EEEEEE;   /* page bg */
}

/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: #000;
  line-height: 1.6;
  /* Add a max-width to the whole body so it doesn't stretch too wide on huge monitors */
  max-width: 1200px;
  margin: 0 auto; 
}

/* SITE TITLE & NAV WRAPPER */
.header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: var(--primary-color);
  padding: 1.5rem 2rem;
  border-radius: 0 0 8px 8px; /* Rounded only at bottom corners */
  margin-bottom: 2rem;
}
.header h1 {
  font-family: 'Pacifico', cursive;
  font-size: 3rem;
  color: #000;
  margin-bottom: 1rem;
}

/* NAVBAR AS TABS */
.navbar {
  display: flex;
  width: 100%;
}
.navbar a {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  background-color: var(--primary-color);
  border: 1px solid rgba(0,0,0,0.1);
  border-bottom: none;
  transition: background-color 0.3s ease; /* Smooth hover effect */
}
.navbar a:not(:last-child) {
  border-right: none;
}
.navbar a.active {
  background-color: var(--background-color);
  font-weight: 700;
}
.navbar a:hover {
  background-color: var(--secondary-color);
}

/* MAIN TWO-COLUMN LAYOUT */
.main {
  display: flex;
  gap: 3rem; /* Increased gap for better breathing room */
  padding: 0 2rem 2rem;
  align-items: flex-start; /* Aligns text and image to top */
}

.content {
  flex: 3; /* Content takes up 3 parts (approx 75%) */
}

.sidebar {
  flex: 1; /* Sidebar takes up 1 part (approx 25%) */
  display: flex;
  justify-content: center;
  min-width: 250px; /* Ensures sidebar doesn't get too squashed */
}

/* PROFILE IMAGE */
img.profile {
  width: 100%;       /* Makes image responsive to the sidebar width */
  max-width: 300px;  /* Prevents it from getting massive on large screens */
  height: auto;      /* Maintains aspect ratio */
  border-radius: 8px;
  background-color: transparent;
  /* Optional: Adds a subtle shadow to make the cut-out pop */
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* SECTION HEADINGS WITH UNDERLINE */
h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.75rem;
  margin-top: 1.5rem; /* Reduced slightly */
  margin-bottom: 1rem;
  padding-bottom: 0.25em;
  border-bottom: 2px solid #000;
  display: inline-block;
}

/* INLINE LINKS */
.content a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}
.content a:hover {
  text-decoration: underline;
}

/* LIST STYLING */
ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}
li {
  margin-bottom: 0.5rem;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .main {
    flex-direction: column; /* Stack vertically on phones */
    gap: 2rem;
  }
  
  .sidebar {
    order: -1; /* Moves the portrait to the TOP on mobile */
    width: 100%;
  }

  img.profile {
    max-width: 200px; /* Smaller image on mobile */
  }

  .header h1 {
    font-size: 2rem; /* Smaller title on mobile */
  }
}

/* Container for image and caption */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

/* Credit text styling */
.credit {
  margin-top: 0.5rem;
  font-size: 0.85rem;   /* Smaller than body text */
  color: #666;          /* Subtle gray color */
  font-style: italic;   /* Makes it look like a formal credit */
  font-family: 'Roboto', sans-serif;
}