/* ========== Epetech Website Styles ========== */
/* Framework inspired by yusongroup.com */

:root {
  --primary: #1a237e;
  --primary-light: #3949ab;
  --primary-dark: #0d1642;
  --accent: #d84315;
  --accent-light: #ff5722;
  --green: #2e7d32;
  --blue: #0277bd;
  --dark: #1a1a2e;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --white: #ffffff;
  --font-main: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; }
body { font-family: var(--font-main); color: #333; line-height: 1.7; overflow-x: hidden; padding-top: 0; }
a { text-decoration: none; transition: var(--transition); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
img { max-width: 100%; height: auto; }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.top-contact { margin-right: 20px; }
.top-contact i { color: var(--accent-light); margin-right: 5px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.lang-btn { color: rgba(255,255,255,0.7); font-size: 13px; cursor: pointer; }
.lang-btn.active { color: var(--accent-light); font-weight: 700; }
.lang-btn:hover { color: #fff; }
.lang-divider { color: rgba(255,255,255,0.3); }

/* ===== Header/Nav ===== */
.site-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.navbar-brand { padding: 10px 0; }
.brand-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.brand-sub {
  font-size: 11px;
  color: var(--gray-600);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  color: #333;
  font-size: 15px;
  font-weight: 600;
  padding: 20px 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--accent); }
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.dropdown-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
}
.dropdown-item { padding: 8px 20px; font-size: 14px; }
.dropdown-item:hover { background: var(--gray-100); color: var(--accent); }

/* ===== Hero / Banner ===== */
.hero-section { height: 80vh; min-height: 500px; max-height: 700px; }
.hero-slide { display: flex; align-items: center; }
.hero-content { color: #fff; padding: 40px 0; }
.hero-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero-desc { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; max-width: 550px; line-height: 1.8; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}
.btn-hero-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-2px); }
.btn-hero-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); color: #fff; transform: translateY(-2px); }
.hero-icon-wrap {
  display: inline-flex;
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.hero-icon { font-size: 5rem; color: rgba(255,255,255,0.9); }

.hero-nav-btn { color: rgba(255,255,255,0.7) !important; }
.hero-nav-btn:hover { color: #fff !important; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.6); }
.swiper-pagination-bullet-active { background: #fff; }

/* ===== Section Headers ===== */
.section-header { margin-bottom: 50px; }
.section-header h2 {
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-header p { color: var(--gray-600); max-width: 700px; margin: 0 auto; font-size: 1.05rem; }

/* ===== Product Categories ===== */
.section-categories {
  padding: 80px 0;
}
.category-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.category-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.category-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.category-body { padding: 24px 20px; }
.category-body h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--dark); }
.category-body p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 15px; }
.category-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.category-link:hover { color: var(--accent-light); }

/* ===== Why Choose Us ===== */
.section-why {
  padding: 80px 0;
  background: var(--gray-100);
}
.why-item { padding: 30px 15px; }
.why-icon {
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.why-icon i { font-size: 1.8rem; color: var(--accent); }
.why-item:hover .why-icon { background: var(--accent); }
.why-item:hover .why-icon i { color: #fff; }
.why-item h5 { font-size: 1rem; margin-bottom: 8px; color: var(--dark); }
.why-item p { font-size: 0.85rem; color: var(--gray-600); margin: 0; }

/* ===== Product Detail Sections ===== */
.section-product-detail { padding: 80px 0; }
.bg-light { background-color: var(--gray-100) !important; }

.section-tag {
  display: inline-block;
  background: rgba(216,67,21,0.1);
  color: var(--accent);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.detail-title { font-size: 1.8rem; color: var(--dark); margin-bottom: 25px; }

.detail-img-wrap { border-radius: var(--radius); overflow: hidden; }
.detail-img-placeholder {
  width: 100%;
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #666;
  font-weight: 600;
}

.detail-features { margin-bottom: 30px; }
.detail-features strong { font-size: 0.95rem; display: block; margin-bottom: 3px; }
.detail-features p { font-size: 0.88rem; color: var(--gray-600); margin: 0; }

.btn-lg { padding: 12px 36px; border-radius: 50px; font-weight: 600; }

/* ===== About ===== */
.section-about { padding: 80px 0; }
.about-img-placeholder {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat-item { padding: 15px 0; }
.stat-item h3 { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 0; }
.stat-item p { font-size: 0.85rem; color: var(--gray-600); margin: 0; }

/* ===== News ===== */
.section-news { padding: 80px 0; }
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-body { padding: 20px; }
.news-date { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.news-body h5 { font-size: 1.05rem; margin: 10px 0; color: var(--dark); line-height: 1.5; }
.news-body p { font-size: 0.88rem; color: var(--gray-600); margin: 0; }

/* ===== CTA ===== */
.section-cta {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}
.section-cta h2 { font-size: 2rem; margin-bottom: 15px; }
.section-cta p { opacity: 0.9; max-width: 700px; margin: 0 auto 30px; }
.contact-info-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
}
.contact-info-item i { color: var(--accent-light); font-size: 1.2rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.site-footer h5 { color: #fff; font-size: 1.3rem; font-weight: 800; margin-bottom: 15px; }
.site-footer h6 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 15px; text-transform: uppercase; }
.site-footer p { font-size: 0.9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-light); padding-left: 5px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 10px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.footer-contact li i { width: 16px; color: var(--accent-light); }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.site-footer hr { border-color: rgba(255,255,255,0.1); margin: 30px 0 20px; }
.copyright { font-size: 0.85rem; padding-bottom: 20px; }

/* ===== Floating Contact Buttons ===== */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.float-btn:hover { transform: scale(1.1); color: #fff; }
.float-btn.whatsapp { background: #25D366; }
.float-btn.skype { background: #00AFF0; }
.float-btn.email { background: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero-section { height: auto; min-height: 400px; }
  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }
  .section-header h2 { font-size: 1.8rem; }
  .detail-title { font-size: 1.4rem; }
  .navbar-nav .nav-link { padding: 12px 14px !important; }
}
@media (max-width: 767px) {
  .hero-section { min-height: 350px; }
  .hero-title { font-size: 1.6rem; }
  .hero-content { text-align: center; padding: 40px 20px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .section-header { margin-bottom: 35px; }
  .detail-img-placeholder { height: 240px; }
  .about-img-placeholder { height: 260px; }
  .contact-info-row { gap: 20px; flex-direction: column; align-items: center; }
  .floating-contact { right: 10px; bottom: 80px; }
  .float-btn { width: 42px; height: 42px; font-size: 1.1rem; }
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
