:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #c9a227;
  --accent-light: #e8c547;
  --text-dark: #0f0f23;
  --text-light: #f8f9fa;
  --text-muted: #6c757d;
  --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --gradient-accent: linear-gradient(135deg, #c9a227 0%, #e8c547 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

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

img {
  max-width: 100%;
  height: auto;
}

.btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 50px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.navbar {
  background: rgba(26, 26, 46, 0.98) !important;
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent-color) !important;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-brand:hover {
  color: var(--accent-light) !important;
  transform: scale(1.02);
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.75rem 1.25rem !important;
  position: relative;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover {
  background: rgba(201, 162, 39, 0.1);
}

.nav-link:hover::after {
  width: 70%;
}

.nav-link.active {
  color: var(--accent-color) !important;
  font-weight: 700;
  background: rgba(201, 162, 39, 0.15);
}

.nav-link.active::after {
  width: 100%;
  background: var(--accent-color);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.navbar-nav .nav-item {
  margin: 0 0.25rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  padding: 4rem 0;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.section-light {
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title h2 {
  color: var(--primary-color);
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.section-dark .section-title h2 {
  color: var(--accent-color);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  background: #fff;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.7;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: bold;
}

.stat-card {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

.team-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2rem;
}

.team-card .card-body {
  width: 100%;
  text-align: center;
  padding: 0 2rem 2rem;
}

.team-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 5px solid var(--accent-color);
  display: block;
  flex-shrink: 0;
}

.team-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.team-card p {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.testimonial-card {
  background: #fff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  margin: 2rem 0;
}

.testimonial-card::before {
  content: '"';
  font-size: 8rem;
  color: var(--accent-color);
  position: absolute;
  top: -2rem;
  left: 2rem;
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent-color);
  background-color: #f0f0f0;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.faq-item {
  background: #fff;
  border-radius: 15px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem 2rem;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 1.5rem 2rem;
  max-height: 500px;
}

.contact-form {
  background: #fff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.form-control {
  padding: 1rem 1.5rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.15);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-text h4 {
  margin-bottom: 0.5rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

footer {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: block;
}

.footer-links h5 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

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

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

.footer-links ul a {
  color: var(--text-light);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links ul a:hover {
  color: var(--accent-color);
  opacity: 1;
  padding-left: 5px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom a {
  color: var(--accent-color);
  font-weight: 600;
}

.breadcrumb {
  background: rgba(26, 26, 46, 0.05);
  padding: 1.5rem 0;
  margin-bottom: 3rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  font-weight: 500;
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

.practice-area {
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
}

.practice-area:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.practice-area-icon {
  width: 100px;
  height: 100px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}

.page-header {
  background: var(--gradient-primary);
  padding: 6rem 0;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/books.jpg') center/cover;
  opacity: 0.1;
}

.page-header h1 {
  position: relative;
  z-index: 1;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-header p {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  opacity: 0.9;
}

.history-image {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .nav-link {
    padding: 1rem 1.25rem !important;
    border-radius: 0;
    border-left: 4px solid transparent;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    background: rgba(201, 162, 39, 0.2);
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem !important;
  }

  .navbar-collapse {
    background: rgba(26, 26, 46, 0.98);
    margin-top: 0.5rem;
    border-radius: 12px;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
