/* =========================================================
   custom.css  —  Forest-inspired enhancements for wildflowers315
   ========================================================= */

/* ── Google Font: Inter for modern clean look ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* ── CSS custom properties (palette) ── */
:root {
  --forest-deep:    #162d1e;
  --forest-mid:     #1e4530;
  --forest-accent:  #2e7d52;
  --forest-light:   #4aab77;
  --gold:           #c8a45a;
  --gold-light:     #e8c87a;
  --cream:          #f8f6f0;
  --text-dark:      #1a1a1a;
  --text-mid:       #444;
  --text-light:     #777;
  --card-bg:        #ffffff;
  --section-alt:    #f2f7f4;
  --border:         #d8e8df;
  --radius:         10px;
  --shadow:         0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover:   0 8px 30px rgba(0,0,0,0.14);
  --transition:     0.3s ease;
}

/* ── Base overrides ── */
body {
  font-family: 'Inter', 'Source Sans Pro', sans-serif;
  color: var(--text-dark);
}

/* ── Sidebar / Header ── */
#header {
  background: linear-gradient(160deg, var(--forest-deep) 0%, var(--forest-mid) 60%, var(--forest-accent) 100%);
}

#header .top #logo h1#title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4em;
  letter-spacing: 0.02em;
  color: #fff;
}

#header .top #logo p {
  color: var(--gold-light);
  font-size: 0.82em;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Avatar ring */
#header .top #logo .image.avatar48 img {
  border: 3px solid var(--gold);
  border-radius: 50%;
}

/* Nav links */
#header nav ul li a {
  color: rgba(255,255,255,0.78);
  transition: color var(--transition), padding-left var(--transition);
}

#header nav ul li a:hover,
#header nav ul li a.active {
  color: #fff;
  padding-left: 12px;
}

#header nav ul li a span.icon:before {
  color: var(--gold-light);
}

/* Social icons bottom */
#header .bottom .icons a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition), transform var(--transition);
}
#header .bottom .icons a:hover {
  color: var(--gold-light);
  transform: translateY(-3px);
}

/* ── Section globals ── */
#main section {
  padding: 4em 0;
}

#main section.alt-bg {
  background: var(--section-alt);
}

#main section header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  color: var(--forest-mid);
  position: relative;
  display: inline-block;
  margin-bottom: 0.6em;
}

#main section header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* ── Intro / Hero ── */
section#top.cover {
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest-mid) 50%, #1a4530 100%) !important;
  position: relative;
  overflow: hidden;
}

section#top.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/banner.jpg') center/cover no-repeat;
  opacity: 0.18;
}

section#top .container {
  position: relative;
  z-index: 1;
}

section#top header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6em;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

section#top header h2::after { display: none; }

section#top header p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1em;
  line-height: 1.8;
  margin-top: 0.8em;
}

section#top .button {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition);
}

section#top .button:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

section#top footer {
  margin-top: 1em;
}

/* ── Skills section ── */
#skills .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8em;
  margin-top: 2em;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6em 1.8em;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.skill-card h3 {
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest-accent);
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.skill-card h3 .icon {
  font-size: 1.1em;
  color: var(--gold);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.tag {
  display: inline-block;
  padding: 0.28em 0.75em;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 500;
  background: #e8f4ed;
  color: var(--forest-mid);
  border: 1px solid #c2dece;
  transition: background var(--transition), color var(--transition);
}

.tag:hover {
  background: var(--forest-accent);
  color: #fff;
  border-color: var(--forest-accent);
}

.tag.gold {
  background: #fdf3df;
  color: #7a5a1a;
  border-color: #e8c87a;
}

.tag.gold:hover {
  background: var(--gold);
  color: var(--forest-deep);
}

/* ── Experience timeline ── */
#experience .timeline {
  position: relative;
  margin-top: 2.5em;
  padding-left: 2em;
}

#experience .timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--forest-accent), var(--gold));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.4em;
  padding-left: 1.8em;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.65em;
  top: 0.4em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--forest-accent);
  box-shadow: 0 0 0 3px rgba(46,125,82,0.2);
}

.timeline-item .tl-period {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest-light);
  margin-bottom: 0.2em;
}

.timeline-item .tl-org {
  font-family: 'Playfair Display', serif;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--forest-mid);
}

.timeline-item .tl-role {
  font-size: 0.9em;
  color: var(--text-mid);
  font-weight: 600;
  margin: 0.15em 0 0.5em;
}

.timeline-item .tl-desc {
  font-size: 0.88em;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── Portfolio ── */
#portfolio .item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

#portfolio .item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

#portfolio .item header {
  padding: 0.6em 0.8em;
  background: var(--forest-deep);
}

#portfolio .item header h3 {
  font-size: 0.82em;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}

/* ── Publications ── */
#publications .pub-list {
  margin-top: 1.8em;
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}

.pub-card {
  background: var(--card-bg);
  border-left: 4px solid var(--forest-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4em 1.8em;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pub-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.pub-card .pub-type {
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest-light);
  margin-bottom: 0.4em;
}

.pub-card p {
  font-size: 0.92em;
  line-height: 1.7;
  color: var(--text-mid);
}

.pub-card a {
  color: var(--forest-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--forest-accent);
}

.pub-card a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── About Me ── */
#about p {
  max-width: 720px;
  margin: 1.2em auto 0;
  font-size: 0.97em;
  line-height: 1.9;
  color: var(--text-mid);
  text-align: left;
}

#about .image.featured {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ── Contact ── */
#contact form input,
#contact form textarea {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

#contact form input:focus,
#contact form textarea:focus {
  border-color: var(--forest-accent);
  box-shadow: 0 0 0 3px rgba(46,125,82,0.12);
  outline: none;
}

#contact .button {
  background: var(--forest-accent);
  border-color: var(--forest-accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

#contact .button:hover {
  background: var(--forest-mid);
  border-color: var(--forest-mid);
  transform: translateY(-2px);
}

/* ── Footer ── */
#footer {
  background: var(--forest-deep);
}

#footer .copyright a {
  color: var(--gold-light);
}

#footer .copyright p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85em;
}

/* ── Utility ── */
.button.outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
}

.button.outline:hover {
  background: var(--gold);
  color: var(--forest-deep);
}

/* ── Fade-in animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}

/* ── Responsive tweaks ── */
@media screen and (max-width: 736px) {
  section#top header h2 { font-size: 1.8em; }
  #skills .skills-grid { grid-template-columns: 1fr; }
  .timeline-item { padding-left: 1.2em; }
}
