/*
Theme Name: Aron
Theme URI: #
Author: Kai Nguyen
Author URI: #
Description: A blank starter theme for custom WordPress development.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aron-am
*/

/* CSS Reset & Basic Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================= LOCAL LATO FONTS (VIỆT HÓA) ================= */
@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato%20Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato%20Hairline.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato%20Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato%20Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato%20Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato%20Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato%20Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato%20Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato%20Heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato%20Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #0b2b43;
  --color-secondary: #ff5e13;
  --color-text: #758994;
  --color-accent: #7fc6a4;
  --color-bg-light: #f9fbfc;
}

body {
  font-family: "Heebo", sans-serif;
  color: var(--color-text);
  overflow-x: hidden;
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: "Lato", sans-serif;
  color: var(--color-primary);
}

/* Custom Ken Burns Effect for Hero Slider */
@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.1) translate(-1%, -1%);
  }
}

.animate-kenburns {
  animation: kenburns 8s ease-out infinite alternate;
}

/* Đảm bảo ảnh ở trạng thái bình thường khi slide không active, reset mượt sau khi đã fade out xong (sau 1.6s) */
#hero-carousel .splide__slide img {
  transform: scale(1) translate(0, 0);
  transition: transform 0.5s ease 1.6s;
}

/* Kích hoạt hiệu ứng Ken Burns (Zoom in & dịch chuyển nhẹ) mượt mà bằng transition khi active */
#hero-carousel .splide__slide.is-active img {
  transform: scale(1.1) translate(-1%, -1%);
  transition: transform 7s ease-out;
}


/* Scroll Animation classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* Overlapping image styles */
.about-image-offset {
  position: relative;
}

.about-image-offset div:nth-child(1) {
  width: 85%;
}

.about-image-offset div:nth-child(2) {
  position: absolute;
  bottom: 45%;
  transform: translateY(45%);
  right: -25px;
  width: 63%;
  border: 15px solid #ffffff;
}


/* Watermark styles */
.watermark {
  position: absolute;
  right: 15px;
  bottom: 15px;
  font-size: 80px;
  opacity: 0.2;
  pointer-events: none;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.watermark-container:hover .watermark {
  transform: scale(1.1) rotate(-10deg);
  opacity: 0.3;
}

/* Dropdown Submenu Hover */
@media (min-width: 1024px) {
  .dropdown-trigger:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }
}


/* Hiệu ứng trượt xuất hiện khi scroll tới (Scroll Reveal) */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* CSR Item Grid Box Sizing */
.csr-item {
  box-sizing: border-box;
}

/* Panel Fade Animation for Tabs */
@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: panelFade 0.4s ease-out forwards;
}

