:root {
  --text-main: #1e252b;      
  --text-muted: #48545e;     
  --accent-clay: #b86f3b;    
  --accent-forest: #1c362a;  
  --card-bg: rgba(255, 255, 255, 0.85); 
  --card-border: rgba(72, 84, 94, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #eef5f8;
  background-image: 
    radial-gradient(at 0% 0%, rgba(216,233,243,1) 0, transparent 50%), 
    radial-gradient(at 100% 0%, rgba(228,241,250,1) 0, transparent 50%), 
    radial-gradient(at 100% 100%, rgba(213,230,242,1) 0, transparent 50%), 
    radial-gradient(at 0% 100%, rgba(235,244,250,1) 0, transparent 50%),
    linear-gradient(135deg, rgba(230,240,248,0.4) 0%, rgba(218,234,245,0.4) 100%);
  background-attachment: fixed;
  scroll-behavior: smooth;
}

/* Top Navigation Menu */
.nav-bar {
  position: sticky;
  top: 0;
  background: rgba(238, 245, 248, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 54, 42, 0.1);
  z-index: 1000;
  padding: 1.25rem 2rem;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.75rem;
  color: var(--accent-forest);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.5px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
  cursor: pointer;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-clay);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Header Section */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(72, 84, 94, 0.15);
  padding-bottom: 3rem;
}

.header-text {
  flex: 1;
}

.logo-container img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(28, 54, 42, 0.12);
  border: 2px solid var(--accent-clay);
}

h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 4rem;
  font-weight: 400;
  margin: 0 0 0.25rem 0;
  color: var(--accent-forest);
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.profile-photo-container {
  display: flex;
  justify-content: center;
}

.profile-photo {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(30, 37, 43, 0.06);
  border: 1px solid var(--card-border);
}

h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 2.4rem;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: var(--accent-forest);
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
}

.about-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Credentials & Badges */
.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.badge {
  background-color: rgba(28, 54, 42, 0.06);
  color: var(--accent-forest);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(28, 54, 42, 0.05);
}

/* Frameworks */
.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.framework-card {
  background: var(--card-bg);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  font-weight: 500;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(30, 37, 43, 0.02);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.framework-card:hover {
  transform: translateY(-2px);
  background-color: #ffffff;
}

/* Focus */
.focus-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.focus-list {
  margin: 0;
  padding-left: 1.2rem;
}

.focus-list li {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

/* Carousel Layout */
.carousel-wrapper {
  position: relative;
  max-width: 750px;
  margin: 2rem auto 0 auto;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  transition: height 0.4s ease-in-out;
}

.testimonial-card, .archive-card-holder {
  background: var(--card-bg);
  backdrop-filter: blur(4px);
  padding: 3rem 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(30, 37, 43, 0.03);
  box-sizing: border-box;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  position: relative;
}

.testimonial-card.accent-card, .archive-card-holder.accent-card {
  border-left: 3px solid var(--accent-clay);
}

.quote-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 6rem;
  color: rgba(184, 111, 59, 0.15);
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  line-height: 1;
  user-select: none;
}

blockquote {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-main);
  margin: 0 0 1.5rem 0;
  font-style: italic;
  position: relative;
  z-index: 1;
}

blockquote p {
  margin: 0 0 1.2rem 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote strong {
  color: var(--accent-forest);
  font-weight: 600;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.05rem;
}

.session-badge {
  display: inline-block;
  background-color: rgba(184, 111, 59, 0.08);
  color: var(--accent-clay);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(72, 84, 94, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--accent-forest);
}

/* Full Archive */
.archive-container {
  display: none; 
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

#archive-stack {
  display: flex; 
  flex-direction: column; 
  gap: 2.5rem; 
  padding-bottom: 2rem;
}

/* Form Styles */
.testimonial-action-container {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-form-card {
  background: var(--card-bg);
  backdrop-filter: blur(4px);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(30, 37, 43, 0.03);
  margin-top: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  display: none;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(72, 84, 94, 0.2);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-clay);
  background: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  margin-bottom: 1.25rem;
}

.btn-submit {
  background-color: var(--accent-forest);
  color: #ffffff;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-submit:hover {
  background-color: var(--accent-clay);
}

.btn-secondary-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(72, 84, 94, 0.3);
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: all 0.2s;
}

.btn-secondary-outline:hover {
  background: rgba(72, 84, 94, 0.05);
}

/* Actions */
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  align-items: flex-start;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--accent-forest);
  color: #ffffff;
  padding: 1rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(28, 54, 42, 0.2);
  cursor: pointer;
  border: none;
}

.cta-button:hover {
  background-color: var(--accent-clay);
  box-shadow: 0 4px 15px rgba(184, 111, 59, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-forest);
  border: 1px solid var(--accent-forest);
  padding: 1rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.25s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-secondary:hover {
  background-color: rgba(28, 54, 42, 0.05);
}

.communication-links-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.communication-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.communication-link:hover {
  color: var(--accent-clay);
}

@media (max-width: 768px) {
  header {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.5rem;
  }
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .profile-photo-container {
    order: -1;
  }
  .focus-container {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .testimonial-card {
    padding: 2.5rem 1.5rem;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
}