/* =========================================
   TÍN NAM AN WEBSITE STYLES – REFINED
   ========================================= */

:root {
  --primary-color: #0a1128;
  /* Deep navy, from logo */
  --secondary-color: #f7c948;
  /* Warm golden highlight */
  --text-color: #1c1c1c;
  --bg-light: #ffffff;
  --accent-color: #f4f6fb;
  /* Soft neutral background */
  --max-width: 1200px;
  --radius: 10px;
  --transition: all 0.3s ease;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --aurora-gradient: linear-gradient(135deg, #f7c948 0%, rgba(0, 0, 0, 0.9) 100%);
  --aurora-overlay: linear-gradient(180deg, rgba(247, 201, 72, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
  font-family: "Segoe UI", "Roboto", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* This accounts for the fixed header */
}

body {
  color: var(--text-color);
  background: var(--aurora-gradient);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: auto;
}

/* ========== Header ========== */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .name {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.logo-text .tagline {
  font-size: 0.85rem;
  color: var(--secondary-color);
}

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

.nav a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Language Selector Styles */
.language-selector {
  margin-left: 0.5rem;
  position: relative;
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 28px;
  position: relative;
}

.lang-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-btn.active {
  box-shadow: 0 0 0 2px var(--secondary-color);
  transform: translateY(-1px);
}

/* Hide Google Translate widget but keep functionality */
.goog-te-banner-frame,
.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

/* Custom styling for translation dropdown */
.goog-te-combo {
  display: none !important;
}

/* Remove Google Translate top bar */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

/* Fix for translated button text */
.translated-rtl .lang-btn span,
.translated-ltr .lang-btn span {
  display: inline-block !important;
}

/* Additional responsive styles for language selector */
@media (max-width: 768px) {
  .lang-btn span {
    display: none !important;
  }

  .lang-btn {
    padding: 0.4rem !important;
  }

  .language-selector {
    margin-left: 0.2rem;
  }
}

.nav a:hover {
  color: var(--primary-color);
}

.nav a i {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.nav a:hover i {
  transform: translateY(-2px);
}

/* Buttons */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.btn-primary {
  background: #ff6b00;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
  transform: translateY(0);
  position: relative;
}

.btn-primary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(247, 201, 72, 0.3);
}

.btn-outline {
  border: 1px solid var(--secondary-color);
  color: white;
}

.btn-outline:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* Float effect for nav contact button */
.nav .btn-primary {
  margin-left: 0.5rem;
  animation: gentle-float 3s ease-in-out infinite;
}

@keyframes gentle-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
  /* fallback so body aurora won't show through */
}

.hero-bg img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%) scale(1.04);
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.68);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  /* reduce overlay darkness by ~50% so overall darkening is ~50% of previous */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.32));
  z-index: 1;
}

.hero-content {
  position: absolute;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.hero-buttons a {
  margin: 0 0.5rem;
}

/* ========== About Section ========== */
.about {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.about h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about .intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #444;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 3rem;
}

.about-stats .stat {
  text-align: center;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.about-stats h3 {
  color: var(--primary-color);
  font-size: 2rem;
}

.stat-number {
  display: inline-block;
  transition: all 0.3s ease;
}

.stat-number.animate {
  animation: popIn 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.stats-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes popIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ========== Services Section ========== */
.services {
  padding: 4rem 0;
  /* multi-layered aurora-style gradient: soft radial yellow glows over a dark base */
  background:
    /* larger, stronger yellow glows for more visible aurora */
    radial-gradient(900px 420px at 8% 18%, rgba(247, 201, 72, 0.24), transparent 28%),
    radial-gradient(700px 350px at 82% 78%, rgba(247, 201, 72, 0.14), transparent 30%),
    linear-gradient(to top right, rgba(10, 10, 10, 0.85) 0%, rgba(0, 0, 0, 0.45) 100%);
  background-blend-mode: screen, screen, normal;
  color: white;
  border-left: 4px solid rgba(247, 201, 72, 0.18);
}

.services h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: white;
}

.services .intro {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* --- Uniform Card Styles --- */
.service-grid .card,
.project-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid #e7e7e7;
}

.service-grid .card img,
.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  background: #f0f2f6;
}

.service-grid .card:hover img,
.project-card:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.service-grid .card h3,
.project-card h3 {
  color: var(--primary-color);
  margin: 1rem 0 0.5rem;
}

/* Client Header Styling */
.client-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1rem 0;
  text-align: center;
}

.client-year {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.client-year i {
  font-size: 1.6rem;
}

.client-header h3 {
  margin: 0;
  padding: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.client-header h3 i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.service-grid .card p,
.project-card p {
  padding: 0 1rem 1rem;
  color: #444;
  font-size: 0.95rem;
}

/* --- Hover Effects --- */
.service-grid .card:hover,
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

/* ========== Projects Section ========== */
.projects {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 4rem 0;
}

.projects h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.projects .intro {
  text-align: center;
  color: #555;
  margin-bottom: 3rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card h3 {
  font-size: 1.05rem;
  margin: 1rem 1rem 0.4rem;
  text-align: left;
}

.project-card p {
  text-align: left;
  margin: 0.3rem 1rem;
  line-height: 1.5;
}

.project-card strong {
  color: var(--primary-color);
}

/* ========== Contact Section ========== */
.contact {
  /* softer aurora gradient for contact area */
  background:
    radial-gradient(1000px 420px at 22% 8%, rgba(247, 201, 72, 0.26), transparent 22%),
    linear-gradient(to top right, rgba(10, 10, 10, 0.82) 0%, rgba(0, 0, 0, 0.5) 100%);
  background-blend-mode: screen, normal;
  padding: 4rem 0;
  color: white;
  border-top: 2px solid rgba(247, 201, 72, 0.08);
}

.contact h2 {
  text-align: left;
  margin-bottom: 1rem;
  color: white;
}

.contact p {
  text-align: left;
  margin-bottom: 1rem;
  color: white;
}

.contact-info {
  max-width: 600px;
  text-align: left;
}

.contact-info h3 {
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info strong {
  color: var(--secondary-color);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  width: 1.5rem;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
}

.contact-form button {
  align-self: center;
}

/* ========== Footer ========== */
.footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.footer-logos {
  margin-top: 0.5rem;
}

.footer-logos img {
  margin: 0 5px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0.95);
}

/* ========== Responsive Design ========== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  .nav a {
    font-size: 0.8rem;
    padding: 0.3rem 0.4rem;
  }

  .nav a i {
    font-size: 1rem;
  }

  .nav a span {
    display: none;
  }

  .nav a.btn-primary {
    padding: 0.3rem 0.5rem;
  }

  .hero {
    height: 70vh;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

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

  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    justify-content: flex-start;
  }

  .logo img {
    height: 40px;
  }

  .logo-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.4rem;
  }

  .hero-buttons a {
    display: block;
    margin: 0.5rem auto;
  }

  .header .container {
    padding: 0.5rem 0;
  }

  .nav {
    gap: 0.2rem;
  }

  .nav a {
    font-size: 0.75rem;
    padding: 0.25rem 0.35rem;
  }

  .nav a.btn-primary {
    padding: 0.25rem 0.4rem;
  }

  .logo img {
    height: 35px;
  }
}