/* =============================================
   PERSONAL WEBPAGE - TEAL THEME & SERIF FONT
   (Updated for Mark's homepage)
   ============================================= */

/* ---------- CSS RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- TEAL COLOR VARIABLES ---------- */
:root {
  --teal-deep: #0a3b3b;
  --teal-primary: #1a6f6f;
  --teal-medium: #2e8b8b;
  --teal-soft: #5fadad;
  --teal-pale: #cfecec;
  --teal-bg-light: #eff7f7;
  --white: #ffffff;
  --gray-light: #f5f7f7;
  --shadow-sm: 0 4px 12px rgba(0, 40, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 40, 40, 0.12);
  --transition-default: all 0.25s ease;
}

/* ---------- GLOBAL TYPOGRAPHY & BODY ---------- */
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background-color: var(--white);
  color: #1e2e2e;
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  border-left: 4px solid var(--teal-primary);
  padding-left: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--teal-primary);
  text-decoration: none;
  transition: var(--transition-default);
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--teal-deep);
  border-bottom-color: var(--teal-soft);
}

/* ---------- IMAGES (responsive & rounded) ---------- */
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 1rem 0;
}

figure {
  margin: 1rem 0;
}

figcaption {
  font-size: 0.85rem;
  color: var(--teal-medium);
  text-align: left;
  margin-top: 0.25rem;
}

/* ---------- SECTION DIVIDER (replaces your dashed lines) ---------- */
hr.section-divider,
hr {
  border: none;
  border-top: 2px dashed var(--teal-pale);
  margin: 2rem 0;
}

/* ---------- LAYOUT CONTAINERS ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- HEADER & NAVIGATION ---------- */
.site-header {
  background-color: var(--white);
  border-bottom: 2px solid var(--teal-pale);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: var(--teal-primary);
  letter-spacing: -0.5px;
  border-bottom: none;
}

.logo:hover {
  color: var(--teal-deep);
  border-bottom: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 1.1rem;
  border-bottom: none;
  padding-bottom: 0.25rem;
  position: relative;
  color: #2c4a4a;
}

.nav-links a:hover {
  color: var(--teal-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-primary);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ---------- HERO SECTION (optional, for your future use) ---------- */
.hero {
  background: linear-gradient(135deg, var(--teal-bg-light) 0%, var(--white) 100%);
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-radius: 0 0 2rem 2rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin-bottom: 0.5rem;
  color: var(--teal-deep);
}

.hero-tagline {
  font-size: 1.3rem;
  color: var(--teal-primary);
  margin-bottom: 1rem;
  font-weight: 400;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  background-color: var(--teal-primary);
  color: white;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 500;
  padding: 0.7rem 1.6rem;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: var(--transition-default);
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn:hover {
  background-color: var(--teal-deep);
  transform: translateY(-2px);
  color: white;
  border-bottom: none;
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--teal-primary);
  color: var(--teal-primary);
}

.btn-outline:hover {
  background: var(--teal-primary);
  color: white;
  transform: translateY(-2px);
}

/* ---------- CARD GRID (if you want to use it) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-default);
  border: 1px solid var(--teal-pale);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-soft);
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
  color: var(--teal-primary);
}

.card p {
  color: #2f4f4f;
  font-size: 0.95rem;
}

.card-tag {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal-deep);
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
}

/* ---------- SKILLS / LIST STYLES (if you need them) ---------- */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
  margin-top: 1rem;
}

.skills-list li {
  background: var(--teal-pale);
  color: var(--teal-deep);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- CONTACT FORM (optional) ---------- */
.contact-form {
  max-width: 700px;
  background: var(--white);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--teal-pale);
  margin: 1.5rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--teal-deep);
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbdcdc;
  border-radius: 16px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  background: var(--white);
  transition: var(--transition-default);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(26, 111, 111, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background-color: var(--teal-deep);
  color: #cfebeb;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.85;
}

.social-links a {
  color: var(--teal-pale);
  margin-left: 1.5rem;
  font-size: 0.9rem;
  border-bottom: none;
  font-weight: 500;
}

.social-links a:hover {
  color: white;
  border-bottom: 1px solid var(--teal-soft);
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links a {
    margin: 0 0.75rem;
  }

  .hero {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }

  .contact-form {
    padding: 1.25rem;
  }
}

/* ---------- UTILITIES ---------- */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

blockquote {
  border-left: 4px solid var(--teal-primary);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #2d5a5a;
}

::selection {
  background-color: var(--teal-pale);
  color: var(--teal-deep);
}