/* ============================================
   KHJ TRANSCRIPTIONS - MODERN PROFESSIONAL DESIGN
   Color Palette inspired by logo:
   - Navy Blue: #1e3a5f (primary)
   - Burgundy Red: #8b3a3a (accent)
   - Soft Blue: #5b8db8 (secondary)
   - Clean White: #ffffff
   - Light Gray: #f8f9fa
   ============================================ */

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  /* Brand Colors from Logo */
  --primary: #1e3a5f;
  --primary-light: #2c5282;
  --primary-dark: #15293f;
  --accent: #8b3a3a;
  --accent-light: #a74a4a;
  --secondary: #5b8db8;
  --secondary-light: #7ba5c9;
  
  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --gray: #6c757d;
  --dark-gray: #495057;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  
  /* Functional Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --border: #dee2e6;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.15);
  --shadow-lg: 0 10px 30px rgba(30, 58, 95, 0.2);
  --shadow-xl: 0 20px 50px rgba(30, 58, 95, 0.25);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

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

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

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: 2px;
}

.lead {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: center;
}

.center {
  text-align: center;
}

.mt-16 {
  margin-top: 64px;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo img {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

/* ============================================
   IMPROVED NAVBAR MENU CSS
   Replace the existing .menu styles with this
   ============================================ */

.menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.menu a {
  font-weight: 600;
  font-size: 15px;
  color: #475569;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover State */
.menu a:hover {
  color: #1e3a8a;
  background: rgba(30, 58, 138, 0.08);
}

/* Active State - Clean & Professional */
.menu a.active {
  color: #1e3a8a;
  font-weight: 700;
  position: relative;
}

.menu a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: #1e3a8a;
  border-radius: 2px;
}
/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-secondary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-outline-white:hover {
  background: white;
  color: #1e3a8a;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
  padding: 12px 28px;
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--off-white);
  transform: translateY(-2px);
}

/* ============================================
   CARDS
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.card p {
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  animation: revealUp 0.6s ease-out forwards;
  animation-delay: var(--d, 0s);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

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

.footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
  .grid-two {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 16px;
    padding: 12px 24px;
  }
  
  .menu {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .menu a {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}