/* Global styles for Varsha Vijayakumar personal website */

/* Color palette based on a dark academia theme with lilac accents.
   Primary colours are inspired by the "Enchanted Quill" dark academia palette
   described in Piktochart's palette guide【785552610167723†L178-L184】.
*/
/*
   Switch to a browns‑and‑neutrals palette with a hint of green. This palette feels earthy and elegant
   while remaining neutral and professional. The primary and secondary colours are warm browns,
   the highlight is a gentle green, and light text uses a soft off‑white.
*/
:root {
  /* Deep brown background reminiscent of leather‑bound books */
  --dark-bg: #2A2A24;
  /* Primary accent: warm chestnut for headings and buttons */
  --primary: #7A5C3C;
  /* Secondary accent: muted beige for subheadings and links */
  --secondary: #A8936B;
  /* Highlight accent: soft sage green for hover states and bullet marks */
  --highlight: #6C8B65;
  /* Light text colour: off‑white for readability on dark backgrounds */
  --light: #F3EFE7;
  /* Card background: a slightly lighter brown than the page */
  --card-bg: #3B332B;
  /* Footer background: the darkest shade of brown for grounding */
  --footer-bg: #1E1C17;
}

/*
 * Lightly tinted boxes for the About page sections. These boxes use a semi‑transparent overlay on the card
 * background to distinguish individual sections without overwhelming the neutral palette. They also add
 * padding and margin for better spacing.
 */
.tinted-box {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 30px;
}

/* Highlight the “Read more” links so they stand out in cards */
.read-more {
  color: var(--highlight);
  font-weight: 600;
  text-decoration: underline;
}
.read-more:hover {
  color: var(--secondary);
  text-decoration: none;
}

body {
  font-family: 'Merriweather', serif;
  margin: 0;
  padding: 0;
  /* Apply a subtle vertical gradient for depth – from a lighter brown at the top
     to a very dark brown at the bottom. The colours are derived from the neutral palette. */
  background-color: var(--dark-bg);
  background-image: linear-gradient(180deg, #352E28 0%, #1A1916 100%);
  color: var(--light);
  line-height: 1.6;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--highlight);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--dark-bg);
  border-bottom: 1px solid var(--primary);
  padding: 20px 40px;
}

header .logo a {
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 1.7em;
  font-weight: 700;
}

header nav a {
  margin-left: 20px;
  color: var(--secondary);
  font-weight: 500;
}

header nav a:hover {
  color: var(--highlight);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Hero section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 60px;
}

.hero img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 40px;
  margin-bottom: 20px;
  border: 3px solid var(--primary);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;
  color: var(--primary);
  margin: 0 0 10px 0;
}

.hero p {
  font-size: 1.1em;
  color: var(--light);
  margin-bottom: 20px;
}

.button {
  display: inline-block;
  background-color: var(--primary);
  color: var(--dark-bg);
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: var(--secondary);
  color: var(--dark-bg);
}

/* Section headings */
section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-size: 2em;
  margin-bottom: 20px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 45%;
  min-width: 260px;
  /* Add a shadow for depth */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

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

.card p {
  color: var(--light);
}

.card a {
  color: var(--highlight);
  font-weight: 500;
}

/* Blog preview specific links */
.blog-preview .card h3 a {
  color: var(--secondary);
}

.blog-preview .card h3 a:hover {
  text-decoration: underline;
}

.center {
  text-align: center;
  margin-top: 20px;
}

/* Call‑to‑action section */
.cta {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 8px;
  margin-top: 60px;
  text-align: center;
}

.cta h2 {
  margin-top: 0;
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  padding: 40px 20px;
  color: var(--light);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-section h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 6px;
}

.footer-section a {
  color: var(--secondary);
}

.footer-section a:hover {
  color: var(--highlight);
}

/* Timeline and skills lists on the about page */
.timeline, .skills {
  list-style: none;
  padding-left: 0;
}

.timeline li, .skills li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.timeline li::before, .skills li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--highlight);
}

/* Contact info list */
.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 10px;
}

/* Blog posts article styling */
.post h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-size: 2em;
  margin-bottom: 10px;
}

.post .meta {
  color: var(--secondary);
  font-style: italic;
  margin-bottom: 20px;
}

.post h3 {
  color: var(--secondary);
  font-size: 1.5em;
}

.post p {
  color: var(--light);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero img {
    margin-right: 0;
  }
  .cards {
    flex-direction: column;
  }
  header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  header nav a {
    margin: 10px;
  }
}