/* =============================================
   TGElectronic — Main Stylesheet
   Primary: #1B4F8C  |  Accent: #2E7BD6
   ============================================= */

:root {
  --navy:   #1B4F8C;
  --blue:   #2E7BD6;
  --blue-lt:#E8F1FB;
  --dark:   #1a2535;
  --text:   #2C3E50;
  --gray:   #F8F9FA;
  --border: #dee2e6;
  --white:  #ffffff;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Roboto', 'Noto Sans SC', sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

img { max-width: 100%; }

/* ---- Navbar ---- */
.navbar {
  background: var(--navy);
  padding: 0 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  min-height: 72px;
}

.navbar-brand img {
  height: 64px;
  width: auto;
}

.navbar .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s;
  text-transform: uppercase;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff !important;
  border-bottom: 2px solid var(--blue);
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Language Toggle */
.lang-toggle {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 16px;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.22);
  color: white;
}

/* ---- Hero / Carousel ---- */
.hero-carousel {
  min-height: 520px;
}

.hero-slide {
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-slide-1 {
  background: linear-gradient(135deg, #0d2a4e 0%, var(--navy) 50%, #1a5ca8 100%);
}

.hero-slide-2 {
  background: linear-gradient(135deg, #1a3d6e 0%, #1e6bb5 60%, #2E7BD6 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 80px 0;
}

.hero-content .tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 5px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.9);
}

.hero-content h1 {
  color: white;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 32px;
}

.btn-hero {
  background: white;
  color: var(--navy);
  border: none;
  border-radius: 4px;
  padding: 13px 32px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-block;
}

.btn-hero:hover {
  background: var(--blue-lt);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-hero-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 4px;
  padding: 11px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-block;
  margin-left: 14px;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: white;
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 22px;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.6);
}

.carousel-indicators .active {
  background-color: white;
}

/* ---- Section Styles ---- */
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 100px 0; }

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto 48px;
}

.divider {
  width: 56px;
  height: 4px;
  background: var(--blue);
  margin: 16px auto 20px;
  border-radius: 2px;
}

.divider-left {
  margin: 16px 0 20px;
}

/* ---- Service Cards ---- */
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 28px;
  height: 100%;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--blue);
  transform: scaleY(0);
  transition: transform 0.25s;
}

.service-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(46,123,214,0.15);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--blue-lt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
  color: var(--blue);
  transition: all 0.25s;
}

.service-card:hover .service-icon {
  background: var(--blue);
  color: white;
}

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  font-size: 0.92rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.65;
}

/* ---- Brand Strip ---- */
.brand-strip {
  background: var(--gray);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #adb5bd;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.brand-item:hover {
  color: var(--navy);
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--navy);
  padding: 56px 0;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-item .number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: white;
}

.stat-item .label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  background: white;
  color: var(--navy);
  border: none;
  border-radius: 4px;
  padding: 14px 40px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-block;
}

.btn-cta:hover {
  background: var(--blue-lt);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #0d2a4e 0%, var(--navy) 100%);
  padding: 80px 0 60px;
  color: white;
}

.page-hero h1 {
  color: white;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 500px;
}

.breadcrumb-nav {
  margin-bottom: 20px;
}

.breadcrumb-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.breadcrumb-nav a:hover { color: white; }
.breadcrumb-nav span { color: rgba(255,255,255,0.4); margin: 0 8px; }
.breadcrumb-nav .current { color: rgba(255,255,255,0.9); font-size: 0.85rem; }

/* ---- About Page ---- */
.value-card {
  background: var(--gray);
  border-radius: 10px;
  padding: 36px 28px;
  height: 100%;
  transition: all 0.25s;
  border: 1px solid transparent;
}

.value-card:hover {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 4px 20px rgba(46,123,214,0.1);
}

.value-icon {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 18px;
}

.value-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.92rem;
  color: #6c757d;
  margin: 0;
}

/* ---- Quality Page ---- */
.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.process-step:hover {
  box-shadow: 0 4px 20px rgba(46,123,214,0.12);
  border-color: var(--blue);
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
}

/* ---- Contact Page ---- */
.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
  height: 100%;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: var(--blue-lt);
  color: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item .info-label {
  font-size: 0.78rem;
  color: #adb5bd;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.contact-info-item .info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
}

.contact-info-item a {
  color: var(--blue);
}

.contact-info-item a:hover {
  color: var(--navy);
}

/* Contact Form */
.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.93rem;
  color: var(--text);
  transition: border-color 0.2s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,123,214,0.12);
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.btn-submit {
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 14px 40px;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  width: 100%;
}

.btn-submit:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46,123,214,0.3);
}

/* ---- Footer ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  line-height: 1.65;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact-item {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--blue);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.6);
}

.footer-contact-item a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 48px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ---- Utilities ---- */
.bg-navy { background: var(--navy); }
.bg-blue-lt { background: var(--blue-lt); }
.text-navy { color: var(--navy); }
.text-blue { color: var(--blue); }

.shadow-card {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-radius: 10px;
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-slide { min-height: 420px; }
  .hero-carousel { min-height: 420px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.7rem; }
}

@media (max-width: 767px) {
  .hero-content h1 { font-size: 1.6rem; }
  .hero-slide { min-height: 360px; }
  .hero-carousel { min-height: 360px; }
  .hero-content { padding: 60px 0; }
  .stat-item .number { font-size: 2.2rem; }
  .btn-hero-outline { margin-left: 0; margin-top: 12px; display: block; text-align: center; }
  .page-hero h1 { font-size: 1.9rem; }
}

@media (max-width: 575px) {
  .hero-content h1 { font-size: 1.4rem; }
  .cta-section h2 { font-size: 1.6rem; }
}
