/* ============================================
   Xianglong Junma - Custom Styles
   Ocean Blue Theme
   ============================================ */

/* CSS Variables - Ocean Blue Theme */
:root {
  --primary-blue: #0056b3;
  --secondary-blue: #007bff;
  --light-blue: #e7f1ff;
  --dark-blue: #003366;
  --accent-cyan: #17a2b8;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-medium: #6c757d;
  --gray-dark: #343a40;
  --text-color: #2c3e50;
  --shadow-sm: 0 2px 8px rgba(0, 51, 102, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 51, 102, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 51, 102, 0.2);
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

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

a:hover {
  color: var(--secondary-blue);
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
  background: transparent;
  padding: 15px 0;
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand {
  color: var(--primary-blue) !important;
}

.navbar-brand i {
  color: var(--secondary-blue);
}

.navbar-nav .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 10px 18px !important;
  position: relative;
}

.navbar.scrolled .nav-link {
  color: var(--gray-dark) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary-blue);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 30px;
}

.navbar-toggler {
  border: none;
  padding: 5px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 5px 10px;
  cursor: pointer;
  transition: var(--transition);
}

.navbar.scrolled .lang-btn {
  color: var(--gray-dark);
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--white) !important;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 86, 179, 0.75) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  padding-top: 60px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
  border: none;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
}

.btn-outline-light {
  border: 2px solid var(--white);
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--white);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

/* ============================================
   Sections Common
   ============================================ */
section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--gray-light) !important;
}

.section-header {
  margin-bottom: 50px;
}

.section-subtitle {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary-blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
  margin: 0 auto;
  border-radius: 2px;
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--light-blue) 100%);
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--light-blue), var(--secondary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--white);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.service-desc {
  color: var(--gray-medium);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.feature-card {
  padding: 30px 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--white);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--gray-medium);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
  background: var(--gray-light);
}

.about-content {
  max-width: 100%;
}

.about-content p {
  color: var(--gray-medium);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
  background: var(--dark-blue);
}

.gallery-section .section-subtitle {
  color: var(--accent-cyan);
}

.gallery-section .section-title {
  color: var(--white);
}

.gallery-section .section-divider {
  background: linear-gradient(90deg, var(--accent-cyan), var(--secondary-blue));
}

#galleryCarousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 51, 102, 0.7);
  background-size: 60%;
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

/* ============================================
   Partners Section
   ============================================ */
.partners-section {
  background: var(--white);
  padding: 80px 0;
}

.partners-wrapper {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partners-wrapper .row {
  width: 100%;
  justify-content: center;
}

.partner-logo {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--light-blue);
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-blue);
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
  background: linear-gradient(180deg, var(--light-blue) 0%, var(--white) 100%);
  padding: 80px 0;
}

/* Contact Form Card */
.contact-form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-form-card:hover {
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 30px;
  text-align: center;
}

/* Form Fields */
.form-field {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.field-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--gray-light);
  font-family: 'Open Sans', sans-serif;
}

.field-input:focus {
  outline: none;
  border-color: var(--secondary-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.field-input::placeholder {
  color: var(--gray-medium);
}

/* Submit Button */
.btn-submit {
  background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
  border: none;
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
}
/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--dark-blue);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer h3,
.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer h4 {
  font-size: 1rem;
  font-weight: 600;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

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

.footer-links li {
  margin-bottom: 10px;
}

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

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-contact i {
  color: var(--secondary-blue);
  margin-right: 8px;
}

.wechat-qr {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  margin-top: 40px;
}

.copyright {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.icp {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-bottom: 0;
  font-size: 0.85rem;
}

.icp a {
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 5px;
}

.icp a:hover {
  color: var(--white);
}

.icp img {
  height: 16px;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-7px);
  }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
  section {
    padding: 60px 0;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    margin-top: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
  }

  .navbar-nav .nav-link {
    color: var(--gray-dark) !important;
    padding: 12px 15px !important;
  }

  .lang-btn {
    color: var(--gray-dark) !important;
  }

  .carousel-item img {
    height: 300px;
  }

  .footer-bottom .row > div {
    text-align: center !important;
  }

  .icp {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Contact section responsive */
  .contact-form-card {
    padding: 30px;
  }

  .form-title {
    font-size: 1.3rem;
  }

  /* Partners section responsive */
  .partners-section {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  section {
    padding: 50px 0;
  }

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

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

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

  .service-card,
  .feature-card {
    padding: 25px 20px;
  }

  .carousel-item img {
    height: 200px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 575px) {
  .navbar-brand {
    font-size: 1.2rem;
  }

  .service-icon,
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Contact section mobile */
  .contact-form-card {
    padding: 25px 20px;
  }

  .form-title {
    font-size: 1.2rem;
  }

  .btn-submit {
    padding: 14px 32px;
    font-size: 0.95rem;
  }

  /* Partners section mobile */
  .partners-section {
    padding: 50px 0;
  }
}
