@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --primary-color: #1e1d23;
  --secondary-color: #f42223;
  --accent-color: #ee7226;
  --heading-color: #111111;
  --text-color: #222222;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #222222;
  background-color: #ffffff;
  overflow-x: hidden;
}

.font-script {
  font-family: 'Dancing Script', cursive;
}

/* Container widths matching Flatsome 8118 (max-width: 1570px) */
.site-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 1536px) {
  .site-container {
    max-width: 1570px;
  }
}

/* Header styling */
.header-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
}

#main-header.header-transparent-mode:not(.stuck) {
  background: transparent;
}

#main-header.header-transparent-mode:not(.stuck) .action-icon {
  color: #ffffff !important;
}

#main-header.header-transparent-mode:not(.stuck) .action-icon:hover {
  color: #f42223 !important;
}

/* Nav Link Hover effect */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #f42223;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #f42223 !important;
  font-weight: 700;
}

/* Core Navigation List in Header */
.client-nav > .client-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.client-nav > .client-nav-list > .client-nav-item {
  position: relative;
}
.client-nav > .client-nav-list > .client-nav-item > a {
  display: inline-block;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: inherit;
}
.client-nav > .client-nav-list > .client-nav-item > a:hover {
  background: transparent;
  color: #f42223 !important;
}
.client-nav > .client-nav-list > .client-nav-item > span {
  display: inline-block;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.7;
}

/* Sticky Header transitions */
#main-header.stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  z-index: 50;
  animation: slideDown 0.3s ease-in-out;
}

#main-header.stuck .nav-link {
  color: #1e1d23 !important;
}

#main-header.stuck .nav-link:hover,
#main-header.stuck .nav-link.active {
  color: #f42223 !important;
}

#main-header.stuck .action-icon {
  color: #1e1d23 !important;
}

#main-header.stuck .action-icon:hover {
  color: #f42223 !important;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Card hover lift */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Project card zoom */
.zoom-container {
  overflow: hidden;
}

.zoom-container img {
  transition: transform 0.5s ease;
}

.zoom-container:hover img {
  transform: scale(1.08);
}

/* Feature icon box */
.feature-box {
  transition: all 0.3s ease;
}

.feature-box:hover {
  border-color: #f42223;
}

.feature-box:hover .feature-icon-wrapper {
  background-color: #f42223;
}

.feature-box:hover .feature-icon-wrapper img,
.feature-box:hover .feature-icon-wrapper svg {
  filter: brightness(0) invert(1);
}

/* Buttons - Bỏ bo góc */
.button-secondary {
  background-color: #f42223;
  color: #ffffff;
  padding: 8px 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.button-secondary:hover {
  background-color: #d81617;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 34, 35, 0.35);
}

.button-white {
  background-color: #ffffff;
  color: #1e1d23;
  padding: 8px 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.button-white:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
}

.button-primary {
  background-color: #1e1d23;
  color: #ffffff;
  padding: 8px 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.button-primary:hover {
  background-color: #000000;
  transform: translateY(-1px);
}

/* Bỏ bo góc - Sharp rectangular corners across all UI components */
button,
input,
textarea,
select,
.button-secondary,
.button-white,
.button-primary,
.feature-box,
.feature-icon-wrapper,
.project-card,
article,
.hover-lift,
.project-filter-btn {
  border-radius: 0 !important;
}

/* Toast alert notification */
#toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  transform: translateY(120%);
  transition: transform 0.3s ease-out;
}

#toast-notification.show {
  transform: translateY(0);
}

/* Blog / News Archive Styling Matching 8118 */
.post-meta span {
  padding: 0 12px;
}
.post-meta span:first-child {
  padding-left: 0;
}
.post-meta span:not(:first-child) {
  border-left: 1px solid #e5e8eb;
}
.post-title a {
  color: #111111;
  transition: color 0.2s ease;
}
.post-title a:hover {
  color: #f42223 !important;
}
.post-item .is-divider {
  display: none !important;
}
