/* ========================
   VISUALS & ANIMATIONS CSS
   Asian Energy Group
======================== */

/* ---- HERO SLIDER ---- */
.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #0A2240;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: all; }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide-bg svg {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,34,64,0.82) 40%, rgba(10,34,64,0.3) 100%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 60px 64px;
  color: #fff;
}
.hero-slide-label {
  display: inline-block;
  background: #C8A84B;
  color: #0A2240;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.hero-slide-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  color: #fff;
}
.hero-slide-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 460px;
}
.hero-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: #C8A84B;
  color: #0A2240;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 5px;
  transition: all 0.25s;
  border: 2px solid #C8A84B;
}
.hero-slide-btn:hover { background: transparent; color: #C8A84B; }
.hero-slide-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 5px;
  border: 2px solid rgba(255,255,255,0.5);
  margin-left: 14px;
  transition: all 0.25s;
}
.hero-slide-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* Slide counter */
.hero-counter {
  position: absolute;
  bottom: 28px;
  left: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}
.hero-dot {
  width: 36px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 2px;
  transition: all 0.3s;
}
.hero-dot.active { background: #C8A84B; width: 52px; }
.hero-nav {
  position: absolute;
  bottom: 24px;
  right: 64px;
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-nav button {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.hero-nav button:hover { background: #C8A84B; color: #0A2240; border-color: #C8A84B; }

/* Slide progress bar */
.hero-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: #C8A84B;
  z-index: 10;
  transition: none;
}

/* ---- SECTION IMAGE BLOCKS ---- */
.section-img-block {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 280px;
}
.section-img-block svg {
  width: 100%; height: 100%; display: block;
  min-height: 280px;
}

/* ---- HIGHLIGHTS CARDS IMAGE ---- */
.hl-img {
  height: 140px;
  position: relative;
  overflow: hidden;
}
.hl-img svg { width: 100%; height: 100%; }

/* ---- CARD HOVER EFFECTS ---- */
.card { transition: box-shadow 0.25s, transform 0.25s; }
.card:hover { box-shadow: 0 10px 36px rgba(10,34,64,0.14); transform: translateY(-3px); }

/* ---- ANIMATED STATS ---- */
.stats-strip {
  background: linear-gradient(135deg, #0A2240 0%, #1a3a5c 100%);
  padding: 48px 0;
}
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 800;
  color: #C8A84B;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.stat-label { font-size: 13.5px; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ---- IMAGE GRID GALLERY ---- */
.img-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.img-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.img-gallery-item svg { width: 100%; height: 200px; display: block; }
.img-gallery-item:first-child { grid-row: span 2; }
.img-gallery-item:first-child svg { height: 416px; }

/* ---- ANIMATED SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- PRODUCT PAGE MINI SLIDER ---- */
.mini-slider {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 10px;
}
.mini-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.mini-slide.active { opacity: 1; }
.mini-slide svg { width: 100%; height: 100%; }
.mini-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.mini-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}
.mini-dot.active { background: #C8A84B; }

/* ---- FLOATING ELEMENTS ---- */
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }
@keyframes float3 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-8px) rotate(3deg)} }
@keyframes pulse-ring { 0%{opacity:0.6;transform:scale(1)} 100%{opacity:0;transform:scale(1.6)} }
@keyframes spin-slow { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes dash-move { to{stroke-dashoffset:-20} }
@keyframes counter-up { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

.float-1 { animation: float1 5s ease-in-out infinite; }
.float-2 { animation: float2 6s ease-in-out infinite; }
.float-3 { animation: float3 7s ease-in-out infinite; }

/* ---- NEWS TICKER ---- */
.news-ticker {
  background: #0A2240;
  padding: 10px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: #C8A84B; flex-shrink: 0; }
@keyframes ticker-scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ---- ABOUT PAGE TIMELINE ---- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #C8A84B, rgba(200,168,75,0.1));
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-dot {
  position: absolute;
  left: -29px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #C8A84B;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(200,168,75,0.2);
}
.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: #C8A84B;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

/* ---- RESPONSIVE ---- */
@media(max-width:768px){
  .hero-slider { height: 420px; }
  .hero-slide-content { padding: 40px 24px; }
  .hero-slide-content h1 { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hero-counter { left: 24px; }
  .hero-nav { right: 24px; }
  .img-gallery { grid-template-columns: 1fr; }
  .img-gallery-item:first-child { grid-row: span 1; }
  .img-gallery-item:first-child svg { height: 200px; }
}
@media(max-width:480px){
  .hero-slider { height: 360px; }
  .hero-slide-content h1 { font-size: 22px; }
  .hero-slide-btn { padding: 11px 20px; font-size: 13px; }
  .hero-slide-btn-outline { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 32px; }
}
