/* Theme Variables */
:root {
  --bg: #ffffff;
  --text: #4c5058;
  --header-bg: #35404f;
  --accent: #4aaaa5;
  --subtle: #777;
}

[data-theme="dark"] {
  --bg: #1e1e1e;
  --text: #ddd;
  --header-bg: #111;
  --accent: #3bb;
  --subtle: #999;
}

/* Reset & Base */
body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-family: "Droid Sans", "Open Sans", sans-serif;
  margin: 20px 0 50px;
  height: 100%;
}

header {
  background-color: var(--header-bg);
  margin-bottom: 20px;
  width: 100%;
  height: 180px;
  position: relative;
}

#theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--accent);
}

.main {
  width: 90%;
  margin: 0 auto;
}

section {
  margin-bottom: 20px;
}

/* Typography */
h1 {
  padding-top: 25px;
  margin: 0 0 5px;
  text-align: center;
  color: var(--accent);
  text-shadow: 1px 1px var(--subtle);
  font-weight: 500;
  font-size: 50px;
  letter-spacing: 10px;
}

h2 {
  margin: 0 0 5px;
  color: var(--accent);
  text-shadow: 1px 1px var(--subtle);
  font-weight: 500;
  font-size: 1.4em;
  letter-spacing: 3px;
}

h3 {
  margin: 0 0 3px;
  font-weight: 600;
  font-size: 1.05em;
  color: var(--text);
}

h4 {
  margin: 0;
  font-weight: 200;
  font-size: 1em;
  color: var(--text);
}

h5 {
  margin: 0;
  color: var(--text);
  font-size: 0.9em;
}

ul {
  margin: 0 0 10px;
}

li {
  color: var(--text);
  margin-bottom: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  cursor: pointer;
  color: var(--accent);
}

.hr-section {
  margin: 0 0 5px;
  border-top-color: var(--text);
}

.content {
  width: 100%;
}

/* ICON ROW */
.bot-row {
  text-align: center;
  border-radius: 5px;
  padding: 10px 0;
  width: 460px;
  margin: 0 auto;
  border: 1px solid var(--text);
}

.fa {
  text-align: center;
  display: inline-block;
  margin: 0 15px;
}
/* ICON COLORS */
.envelope {
  color: #f5f5f5;
}
.linkedin {
  color: #4078c0;
}
.github,
.gh {
  color: #a3d39c;
}
.phone,
.dt {
  color: #e45f56;
}
.briefcase {
  color: #fae660;
}
.angellist {
  color: #ff7f50;
}

/* PROFESSIONAL EXPERIENCE: STACKED TITLES + DATES */
.titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 0.5em;
}

.titles h3,
.titles h4,
.titles h5 {
  display: block;
  margin: 0;
}

.titles .position {
  font-style: italic;
  font-weight: 400;
}

.titles .location {
  font-weight: normal;
  margin-top: 0.1em;
  color: var(--subtle);
}

.titles .dates {
  font-style: italic;
  margin-top: 0.25em;
  color: var(--subtle);
}

/* EDUCATION DEGREE + DATES: INLINE on desktop, STACKED on mobile */
.degree-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

.degree-dates .dot {
  font-size: 1.2em;
  color: var(--subtle);
  margin: 0 0.3em;
}

.degree-dates .position,
.degree-dates .dates {
  margin: 0;
  font-size: 1.05em;
  font-weight: normal;
}

@media (max-width: 600px) {
  .degree-dates {
    flex-direction: column;
    align-items: flex-start;
  }
  .degree-dates .dot {
    display: none;
  }
}

/* default (light mode) */
.portfolio {
  color: #ffd700; /* gold */
}

/* override in dark mode */
[data-theme="dark"] .portfolio {
  color: #f39c12; /* deeper amber */

}
