/* 
=========================================
  DR. DIVYA TEJA V - WEBSITE STYLES
=========================================

  TABLE OF CONTENTS:
  1. CSS Variables & Primitives
  2. Reset & Typography
  3. Utility Classes
  4. Header & Navigation
  5. Hero Section
  6. Services Section
  7. Experience Timeline Section
  8. Blog Section
  9. CTA Banner Section
  10. Footer Section
  11. Mobile Responsiveness

  * HOW TO EDIT COLORS: Go to "1. CSS Variables" and just change the hex codes!
=========================================
*/

/* --- 1. CSS Variables & Primitives --- */
:root {
  /* Brand Colors (Customized) */
  --teal-500: #2F7A82; /* Primary Brand Color */
  --teal-200: #B8D4D7; /* Subtle Tint Backgrounds */
  --teal-700: #1D4F55; /* Deeper headers, links */
  
  /* Surfacing & Text */
  --paper: #F7F6F2;    /* Primary Background Surface */
  --ink-900: #1C2528;  /* Primary Body Text */
  --ink-600: #596268;  /* Secondary Subtext */
  
  /* Layout Colors */
  --fog: #D6D8D7;      /* Borders, dividers */
  --amber-500: #D49535;/* Call to Action Buttons */
  --pulse: #C14B3E;    /* Alerts (if needed) */

  /* Typography Settings */
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-telugu: 'Noto Serif Telugu', 'Noto Sans Telugu', sans-serif;

  /* Global Layout Variables */
  --max-width: 1200px;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. Reset & Typography --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink-900);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--teal-700);
  font-weight: 400;
  line-height: 1.2;
}

p {
  color: var(--ink-600);
}

a {
  text-decoration: none;
  color: var(--teal-500);
  transition: var(--transition);
}

a:hover {
  color: var(--teal-700);
}


/* --- 3. Utility Classes --- */
.container {
  /* Centralizes content and adds padding on the sides */
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.bg-light {
  background-color: #ffffff; /* A pure white background alternative */
}

/* Base button styles */
.btn {
  display: inline-block;
  background-color: var(--amber-500);
  color: #ffffff !important;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: #B27725;
  transform: translateY(-2px); /* Slight lift effect */
  box-shadow: 0 4px 12px rgba(212, 149, 53, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--teal-700) !important;
  border-color: var(--teal-700);
}

.btn-outline:hover {
  background-color: var(--teal-700);
  color: var(--paper) !important;
  box-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(47, 122, 130, 0.1);
  color: var(--teal-700);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}


/* --- 4. Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: blur(10px); /* Frosted glass effect */
  z-index: 1000;
  border-bottom: 1px solid var(--fog);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--teal-700);
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--amber-500); /* Orange dot after logo */
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-900);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--teal-500);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--teal-700);
  transition: var(--transition);
}


/* --- 5. Hero Section --- */
.hero {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, var(--paper) 0%, var(--teal-200) 100%);
  position: relative;
  overflow: hidden;
}

/* Reduced padding for sub-pages like Blog */
.hero.hero-slim {
  padding: 150px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero-content .subtitle {
  font-size: 1.2rem;
  color: var(--teal-700);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(29, 79, 85, 0.15);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: scale(1.05); /* Slight zoom on hover */
}


/* --- 6. Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--paper);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--fog);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(29, 79, 85, 0.08); /* Soft teal shadow */
}

.service-card:hover::before {
  transform: scaleX(1); /* Line animates across the top top on hover */
}

.service-icon {
  width: 50px;
  height: 50px;
  background-color: var(--teal-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--teal-700);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}


/* --- 7. Experience Timeline Section --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* The vertical line running down the middle */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  height: 100%;
  width: 2px;
  background: var(--fog);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: 15px;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--teal-500);
  border-radius: 50%;
  border: 4px solid var(--paper);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--fog);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-color: var(--teal-200);
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline-content .date {
  display: inline-block;
  background: var(--teal-200);
  color: var(--teal-700);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-content ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink-600);
  font-size: 0.95rem;
  list-style: none;
}

.timeline-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--amber-500);
}


/* --- 8. Blog Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--fog);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: var(--teal-200);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--amber-500);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 2;
}

.blog-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--teal-200);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05); /* Slight zoom effect on the image when hovering over card */
}

.blog-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--ink-600);
  margin-bottom: 0.5rem;
  display: block;
}

.blog-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.blog-title a {
  color: var(--teal-700);
}

.blog-title a:hover {
  color: var(--teal-500);
}

.blog-excerpt {
  color: var(--ink-600);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--teal-500);
}

.read-more:hover {
  gap: 0.8rem; /* Pushes the arrow out slightly */
}

/* Post Styling inside the actual article page */
.post-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.post-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.post-meta {
  color: var(--ink-600);
  font-size: 0.95rem;
}
.post-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink-900);
}
.post-body h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 2rem;
}
.post-body img {
  width: 100%;
  border-radius: var(--border-radius);
  margin: 2.5rem 0;
}
.post-body p {
  margin-bottom: 1.5rem;
  color: var(--ink-900);
}
.post-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}


/* --- 9. CTA Banner Section --- */
.cta-banner {
  background-color: var(--teal-700);
  color: var(--paper);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-banner p {
  color: var(--teal-200);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}


/* --- 10. Footer Section --- */
footer {
  background-color: var(--ink-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.footer-links h4 {
  color: #ffffff;
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--teal-200);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
}


/* --- 11. Mobile Responsiveness --- */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 2rem;
  }
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Move navigation links into a drop-down burger menu */
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--paper);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top: 1px solid var(--fog);
  }
  
  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .post-header h1 {
    font-size: 2.2rem;
  }
}
