/* ====== Global Variables ====== */
:root {
  --primary-color: #01ddff;
  --primary-dark: #00a8c6;
  --primary-light: #7aeeff;
  --accent-color: #0055a4;
  --dark-gray: #333;
  --light-gray: #f8f9fb;
  --white: #fff;
  --leadership-color: #01ddff;
  --staff-color: #00a8c6;
  --transition-speed: 0.3s;
  --card-transition: 0.6s;
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  --badge-size: 36px;
  --section-spacing: 100px;
  --component-spacing: 50px;
  --item-spacing: 20px;
}

/* ====== Reset & Base Styles ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: var(--section-spacing) 0;
  position: relative;
}

/* ========== HEADER ========== */
.unified-header {
  height: 100vh;
  position: relative;
  overflow: hidden;
  color: white;
}
.unified-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../images/eut2_hq_68569d0e.png');
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  z-index: 0;
}
.unified-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.unified-header .navbar,
.unified-header .hero,
.unified-header .container { position: relative; z-index: 10; }

/* ========== NAVIGATION ========== */
.navbar { padding: 15px 0; width: 100%; }
.unified-header .navbar { background-color: transparent; box-shadow: none; padding: 20px 0; }
.navbar .container {
  display: flex; justify-content: space-between; align-items: center; position: relative; padding-top: 20px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 50px; margin-right: 15px; transition: transform var(--transition-speed) ease; }
.logo:hover img { transform: scale(1.05); }
.logo span { font-size: 1.5rem; font-weight: 700; color: white; letter-spacing: 1px; }
.nav-toggle { display: none; flex-direction: column; cursor: pointer; position: absolute; right: 20px; top: 20px; z-index: 200; }
.nav-toggle span { width: 30px; height: 3px; background-color: white; margin: 3px 0; transition: all 0.3s ease; border-radius: 2px; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-item { margin: 0 20px; position: relative; }
.nav-link {
  color: white; text-decoration: none; font-weight: 500;
  transition: color 0.3s ease; padding: 5px 0; position: relative; display: inline-block;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
  background-color: var(--primary-color); transition: width 0.3s ease;
}
.nav-truck-indicator {
  position: absolute; bottom: -15px; left: 0; opacity: 0; font-size: 1rem;
  color: var(--primary-color); transition: all 0.4s ease; transform: translateX(-100%);
}
.nav-link:hover, .nav-link.active { color: var(--primary-light); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover .nav-truck-indicator, .nav-link.active .nav-truck-indicator { opacity: 1; transform: translateX(0); }

/* ========== HERO SECTION ========== */
.unified-header .hero {
  height: calc(100vh - 150px); margin-top: 0; background: none;
  display: flex; align-items: center;
}
.hero-content {
  text-align: center; max-width: 800px; margin: 0 auto; padding: 40px;
}
.hero-content h1 {
  font-size: 3.5rem; margin-bottom: 30px; font-weight: 700; color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); opacity: 0; transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.2s;
}
.hero-content p {
  font-size: 1.2rem; margin-bottom: 50px; font-weight: 300; color: white;
  opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards 0.4s;
}
.hero-buttons {
  display: flex; justify-content: center; gap: 20px; margin-bottom: 30px;
  opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards 0.6s;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 30px; text-decoration: none;
  font-weight: 500; transition: all var(--transition-speed) ease; border: none; cursor: pointer;
  font-size: 1rem; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); margin: 10px 5px;
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(1,221,255,0.3);
}
.btn-secondary {
  background-color: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  background-color: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 11px 28px;
}
.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(1,221,255,0.3);
}

/* ====== Team Navigation ====== */
.team-nav {
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 15px 0;
  margin-bottom: 30px;
}
.team-nav-links {
  display: flex; justify-content: center; list-style: none; padding: 0; margin: 0;
}
.team-nav-links li { margin: 0 10px; }
.team-nav-link {
  display: inline-block; padding: 12px 25px; text-decoration: none; color: #444; font-weight: 500;
  border-radius: 30px; transition: all 0.3s ease; position: relative; overflow: hidden; z-index: 1;
}
.team-nav-link.active {
  color: #fff;
  background: var(--primary-color);
}
.team-nav-link[data-section="leadership"].active {
  background-color: var(--leadership-color);
}
.team-nav-link[data-section="staff"].active {
  background-color: var(--staff-color);
}

/* ====== Team Introduction ====== */
.team-intro {
  background-color: #fff;
  padding: var(--section-spacing) 0;
}
.intro-content {
  display: flex; align-items: center; gap: 60px; padding: 0 30px;
}
.intro-text { flex: 1; }
.intro-text h2 {
  font-size: 3rem; margin-bottom: 40px; color: #333; position: relative;
}
.intro-text h2::after {
  content: '';
  position: absolute; bottom: -15px; left: 0; width: 80px; height: 4px;
  background-color: var(--primary-color);
}
.intro-text p {
  font-size: 1.1rem; line-height: 1.7; color: #555; margin-bottom: 25px;
}
.intro-stats {
  flex: 0 0 320px;
  display: flex; flex-direction: column; gap: 30px;
}
.stat-item {
  background: linear-gradient(135deg,#fafafa 0%,#f3f3f3 100%);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 5px;
}
.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.stat-number {
  font-size: 2.5rem; font-weight: 700; margin-bottom: 5px;
  background: linear-gradient(90deg,var(--primary-color) 0%,var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 1rem; color: #666; font-weight: 500; }

/* ====== Section Headers ====== */
.section-header { text-align: center; margin: 0 auto 60px; max-width: 800px; padding: 0 20px; }
.section-header.center { text-align: center; }
.section-tag {
  display: inline-block; padding: 5px 15px;
  background-color: rgba(1,221,255,0.1); color: var(--primary-color);
  font-size: 0.9rem; font-weight: 600; border-radius: 20px; margin-bottom: 15px;
  text-transform: uppercase; letter-spacing: 1px;
}
.section-title {
  font-size: 2.8rem; margin: 0 auto 15px; color: #333; line-height: 1.2; font-weight: 700;
}
.section-subtitle {
  font-size: 1.1rem; color: #666; line-height: 1.6; margin: 0 auto; max-width: 700px;
}

/* ====== Team Sections ====== */
.team-section { padding: var(--section-spacing) 0; position: relative; margin-bottom: 40px; }
.leadership-section { background-color: #fff; }
.leadership-section .section-tag { background-color: rgba(1,221,255,0.1); color: var(--leadership-color); }
.staff-section { background-color: #fff; }
.staff-section .section-tag { background-color: rgba(0,168,198,0.1); color: var(--staff-color); }

/* ====== Team Cards Styling ====== */
/* Center cards for leadership (2) and staff (4) */
.team-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px;
  margin: 0 auto;
  max-width: 1200px;
}
.team-grid.featured {
  justify-content: center;
  gap: 40px;
}
.team-card {
  width: 320px;
  height: 380px;
  perspective: 1500px;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card Inner Flip */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform var(--card-transition);
}
.team-card:hover .card-inner,
.team-card:focus .card-inner {
  transform: rotateY(180deg);
}
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.card-front { background-color: #fff; }
.card-back {
  background: linear-gradient(145deg,#ffffff,#f8f9fa);
  transform: rotateY(180deg);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.back-content { text-align: center; }
.member-image {
  height: 65%; position: relative; overflow: hidden;
}
.member-image img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease;
}
.team-card:hover .member-image img { transform: scale(1.05); }
.member-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
  background: linear-gradient(to top,rgba(0,0,0,0.6),transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.team-card:hover .member-overlay { opacity: 1; }
.member-info {
  padding: 20px; text-align: center;
}
.member-info h3 {
  font-size: 1.3rem; font-weight: 600; margin: 0 0 5px; color: #333;
}
.member-info .position {
  color: var(--primary-color); font-size: 0.9rem; font-weight: 500; margin-bottom: 10px; display: block;
}
.divider {
  width: 60px; height: 3px; background-color: var(--primary-color); margin: 15px auto;
}
.card-back h3 { font-size: 1.3rem; font-weight: 600; margin: 0 0 5px; color: #333; }
.card-back .position { color: var(--primary-color); font-size: 0.9rem; font-weight: 500; margin-bottom: 10px; }
.card-back .bio { font-size: 0.9rem; line-height: 1.6; color: #555; margin-bottom: 20px; }

/* Section-specific position colors */
.leadership-section .position { color: var(--leadership-color); }
.staff-section .position { color: var(--staff-color); }
.leadership-section .divider { background-color: var(--leadership-color); }
.staff-section .divider { background-color: var(--staff-color); }

.card-back .quote {
  font-style: italic; color: #777; font-size: 0.9rem; margin-bottom: 20px; position: relative; padding: 0 15px;
}
.card-back .quote::before, .card-back .quote::after {
  content: '"'; font-size: 1.5rem; color: #ddd; position: absolute;
}
.card-back .quote::before { left: 0; top: -5px; }
.card-back .quote::after { right: 0; bottom: -10px; }

/* Achievements */
.member-achievement {
  background-color: rgba(1,221,255,0.1); padding: 8px 15px; border-radius: 20px;
  font-size: 0.85rem; color: #333; display: inline-flex; align-items: center; margin-bottom: 20px;
}
.member-achievement i { color: #ffc107; margin-right: 8px; }

/* Team member badges */
.member-badge {
  position: absolute; top: 20px; right: 20px; width: var(--badge-size); height: var(--badge-size);
  border-radius: 50%; background-color: var(--primary-color); color: #fff;
  display: flex; align-items: center; justify-content: center; z-index: 10;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2); transition: transform 0.3s ease;
}
.team-card:hover .member-badge { transform: rotate(360deg); }
.ceo-badge { background-color: #ffd700; color: #333; }
.leadership-badge { background-color: var(--leadership-color); }
.staff-badge { background-color: var(--staff-color); }

/* Social links */
.social-links {
  display: flex; justify-content: center; gap: 15px; margin-top: 20px;
}
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; background-color: #f5f5f5;
  display: flex; align-items: center; justify-content: center; color: #555;
  text-decoration: none; transition: all 0.2s ease;
}
.social-links a:hover {
  background-color: var(--primary-color); color: white; transform: translateY(-3px);
}

/* ====== Team Values Section ====== */
.team-values {
  background-color: #f1f1f1;
  padding: 80px 0;
  margin: 50px 0;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.value-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 40px 25px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 280px;
}
.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.value-icon {
  width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 25px; background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white; font-size: 2rem; box-shadow: 0 10px 20px rgba(1,221,255,0.2); position: relative; z-index: 5;
}
.value-icon::after {
  content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.5);
  animation: spin 10s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
.value-card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 15px; color: #333; }
.value-card p { color: #666; font-size: 1rem; line-height: 1.6; }

/* ====== Join Team Section ====== */
.join-team { background-color: #fff; padding: 100px 0; margin-top: 50px; }
.join-wrapper {
  background-color: #f9f9f9; border-radius: 20px; overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.08); margin: 0 30px;
}
.join-content { display: flex; align-items: stretch; flex-wrap: wrap; }
.join-text { flex: 1; padding: 50px; min-width: 320px; }
.join-text h2 {
  font-size: 2.4rem; margin-top: 0; margin-bottom: 25px; color: #333; position: relative; padding-bottom: 15px;
}
.join-text h2:after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background-color: var(--primary-color);
}
.join-text p { color: #555; margin-bottom: 20px; font-size: 1.05rem; line-height: 1.7; }
.join-benefits { list-style: none; padding: 0; margin: 30px 0; }
.join-benefits li {
  padding: 10px 0; display: flex; align-items: flex-start; color: #444;
}
.join-benefits li i {
  color: var(--primary-color); margin-right: 15px; font-size: 1.2rem; margin-top: 3px;
}
.join-actions { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
.join-image-container { flex: 0 0 40%; position: relative; min-width: 300px; }
.join-image { height: 100%; overflow: hidden; }
.join-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.join-wrapper:hover .join-image img { transform: scale(1.05); }

/* ====== Animations ====== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity:1; transform:translateY(0);}
}
@keyframes pulse {
  0% { transform: scale(1);}
  50% { transform: scale(1.05);}
  100% { transform: scale(1);}
}
.btn-primary:hover { animation: pulse 1.5s infinite; }

/* ====== Responsive Styles ====== */
@media (max-width: 1200px) {
  .values-grid { grid-template-columns: repeat(2, 1fr);}
  .team-grid { gap: 28px; }
}
@media (max-width: 992px) {
  .team-grid { gap: 20px; }
  .join-content { flex-direction: column;}
  .join-image-container { flex: 0 0 auto; height: 400px; order: -1;}
  .value-icon { width: 70px; height: 70px; font-size: 1.8rem;}
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr;}
  .team-grid { justify-content: center; gap: 12px; }
  .join-text { padding: 30px;}
  .join-text h2 { font-size: 2rem;}
  .join-actions { flex-direction: column; gap: 15px;}
  .join-actions .btn { width: 100%;}
}
@media (max-width: 576px) {
  .team-card { width: 100%; max-width: 320px; }
  .team-grid { flex-direction: column; align-items: center; gap: 20px; }
  .join-text { padding: 25px;}
  .join-image-container { height: 300px;}
  .join-benefits li { font-size: 0.9rem;}
  .values-grid { grid-template-columns: 1fr;}
}