:root {
  --gold: #c9a74e;
  --gold-dark: #a88a3a;
  --dark: #1a1a2e;
  --dark-alt: #16213e;
  --text-dark: #333;
  --text-muted: #666;
  --bg-light: #f8f9fa;
  --bg-white: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

.navbar {
  padding: 0.75rem 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1050;
}

.navbar.scrolled {
  background-color: rgba(26, 26, 46, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar-brand img {
  height: 50px;
  transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
  height: 40px;
}

.navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--gold) !important;
}

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider .carousel-item {
  height: 85vh;
  min-height: 500px;
}

.hero-slider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    var(--dark) 0%,
    rgba(26, 26, 46, 0.7) 15%,
    rgba(26, 26, 46, 0.15) 40%,
    rgba(26, 26, 46, 0.1) 60%,
    rgba(26, 26, 46, 0.5) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 0;
  right: 0;
  z-index: 2;
  color: #fff;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-content .tagline {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold);
  max-width: 600px;
}

.hero-content .btn-gold {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  transition: all 0.3s ease;
}

.hero-content .btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 167, 78, 0.4);
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  opacity: 0.7;
}

.carousel-indicators .active {
  background: var(--gold);
  opacity: 1;
}

.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.75rem;
}

.section-title-center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
}

.about-section {
  background: var(--bg-white);
}

.about-highlight {
  background: var(--dark);
  color: #fff;
  padding: 2rem;
  border-left: 4px solid var(--gold);
}

.about-highlight p {
  font-size: 1.1rem;
  font-style: italic;
  margin: 0;
  line-height: 1.8;
}

.stats-section {
  background: var(--dark);
  color: #fff;
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-top: 0.5rem;
}

.services-section {
  background: var(--bg-light);
}

.service-card {
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-bottom-color: var(--gold);
}

.service-card .icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--dark);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h5 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.research-section {
  background: var(--bg-white);
}

.research-card {
  padding: 2rem;
  border: 1px solid #eee;
  height: 100%;
  transition: all 0.3s ease;
}

.research-card:hover {
  border-color: var(--gold);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.research-card h5 {
  color: var(--dark);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.research-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.facilities-section {
  background: var(--bg-light);
}

.facility-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.facility-feature .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.facility-feature p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.facility-feature h6 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.clients-section {
  background: var(--bg-white);
}

.client-category {
  margin-bottom: 0;
  padding: 2rem;
  background: var(--bg-light);
  height: 100%;
}

.client-category h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.client-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.client-list li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.25rem;
}

.client-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.experience-section {
  background: var(--dark);
  color: #fff;
}

.experience-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.experience-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
}

.experience-item h6 {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.experience-item .meta {
  font-size: 0.85rem;
  opacity: 0.7;
}

.contact-section {
  background: var(--bg-light);
}

.contact-info-card {
  background: var(--dark);
  color: #fff;
  padding: 2.5rem;
  height: 100%;
}

.contact-info-card h4 {
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-detail i {
  color: var(--gold);
  font-size: 1.25rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-detail a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-detail a:hover {
  color: var(--gold);
}

.contact-form .form-control {
  border-radius: 0;
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.contact-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 167, 78, 0.15);
}

.btn-submit {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 0.75rem 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 167, 78, 0.4);
}

footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 2rem 0;
  font-size: 0.9rem;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  color: var(--gold-dark);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  background: var(--gold);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .hero-slider .carousel-item {
    height: 60vh;
    min-height: 400px;
  }

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

  .hero-content .tagline {
    font-size: 1rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

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

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

  .navbar-collapse {
    background: rgba(26, 26, 46, 0.98);
    padding: 1rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 576px) {
  .hero-slider .carousel-item {
    height: 50vh;
    min-height: 350px;
  }

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

  .hero-content {
    bottom: 10%;
  }

  .contact-info-card {
    padding: 1.5rem;
  }
}
