/* Custom stylesheet for Vietca Index2 - Based on Tyca's design philosophy */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0068ff;      /* Zalo Blue */
  --secondary: #0084ff;    /* Light Zalo Blue */
  --success: #ffc805;      /* Accent Gold/Yellow */
  --alert: #db0b0b;        /* Alert Red */
  --white: #ffffff;
  --black: #111111;
  --text-dark: #333333;
  --bg-light: #f7f7f7;
  --radius: 8px;
  --transition: all 0.3s ease-in-out;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* Offset for sticky header */
}

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

body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section--dark {
  background-color: var(--primary);
  color: var(--white);
}

/* Header & Navigation */
.header {
  height: 72px;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header__inner {
  width: 80%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.header__logo {
  font-weight: 800;
  font-size: 28px;
  color: var(--primary);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  margin-right: 40px;
}

.header__logo-img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.header__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  padding: 5px;
  align-items: center;
  justify-content: center;
}

.header__nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
}

.header__nav-link {
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  padding: 8px 0;
}

.header__nav-link.active {
  color: var(--primary);
}

.header__nav-link::before {
  content: "";
  background-color: var(--success);
  height: 2px;
  width: 0;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--primary);
}

.header__nav-link:hover::before,
.header__nav-link.active::before {
  width: 100%;
}

.header__call-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--white);
  border: 1px solid #eeeeee;
  border-radius: var(--radius);
  padding: 6px 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header__call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.header__call-icon {
  width: 30px;
  height: 30px;
}

.header__call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__call-label {
  font-size: 11px;
  font-weight: 700;
  color: #777777;
  letter-spacing: 0.5px;
}

.header__call-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--alert);
}

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  background-color: var(--primary);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__image-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 40%, rgba(0, 104, 255, 0.4) 100%);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  color: var(--white);
  padding-left: 40px;
}

.hero__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero__actions {
  display: flex;
  gap: 15px;
}

.btn--primary-inverse {
  background-color: var(--success);
  color: var(--black);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.btn--primary-inverse:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--outline-white {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
}

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

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title .sub-title {
  color: var(--success);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.section-title-main {
  font-size: 32px;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title-main::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--success);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section--dark .section-title-main::after {
  background-color: var(--success);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-card__media-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 60%;
}

.service-card__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__media {
  transform: scale(1.1);
}

.service-card__info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card__btn {
  align-self: flex-start;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.service-card__btn:hover {
  color: var(--secondary);
}

/* Intro Section */
.intro {
  background-color: var(--white);
}

.intro__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
}

.intro__content p {
  margin-bottom: 20px;
}

.intro__apps {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.intro__app-btn img {
  height: 50px;
  transition: var(--transition);
}

.intro__app-btn:hover img {
  transform: scale(1.05);
}

/* Features Block */
.features-block {
  background-color: #f0f4f8;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .features-list {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-item__num {
  font-size: 80px;
  font-weight: 800;
  color: rgba(0, 104, 255, 0.06);
  position: absolute;
  top: -10px;
  right: 10px;
  line-height: 1;
}

.feature-item__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
}

.feature-item__desc {
  font-size: 15px;
  color: #555555;
}

/* Call to Action Section */
.app-cta {
  background-color: var(--primary);
  color: var(--white);
  overflow: hidden;
  padding: 0;
}

.app-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 768px) {
  .app-cta__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-cta__content {
    padding: 60px 20px !important;
  }
  .app-cta__image-wrap {
    height: 300px;
  }
}

.app-cta__content {
  padding: 80px 60px;
}

.app-cta__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.app-cta__desc {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.app-cta__buttons {
  display: flex;
  gap: 15px;
}

@media (max-width: 768px) {
  .app-cta__buttons {
    justify-content: center;
  }
}

.app-cta__image-wrap {
  height: 100%;
  position: relative;
}

.app-cta__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer Section */
.footer {
  background-color: var(--white);
  padding: 60px 0 20px;
  border-top: 1px solid #eeeeee;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand .logo-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer__info {
  font-size: 14px;
  color: #666666;
  line-height: 1.8;
}

.footer__heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  text-transform: uppercase;
}

.footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--success);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 15px;
  color: #555555;
}

.footer__link:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer__bottom {
  border-top: 1px dashed #dddddd;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer__copyright {
  font-size: 14px;
  color: #777777;
}

.footer__legal {
  display: flex;
  gap: 20px;
}

/* Floating Contact Widget Styles */
.ring-wrap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ring-item {
  display: block;
  position: relative;
  width: 60px;
  height: 60px;
  cursor: pointer;
}

.circle-item {
  position: absolute;
  width: 74px;
  height: 74px;
  left: -7px;
  top: -7px;
  background-color: transparent;
  border-radius: 100%;
  animation: circleZoom 1.2s infinite ease-in-out;
  opacity: 0.3;
}

.circle-fill-item {
  position: absolute;
  width: 60px;
  height: 60px;
  left: 0;
  top: 0;
  border-radius: 100%;
  animation: circleFillZoom 2.3s infinite ease-in-out;
}

.img-circle-item {
  position: absolute;
  width: 46px;
  height: 46px;
  left: 7px;
  top: 7px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  animation: circleImgZoom 1s infinite ease-in-out;
  background-color: var(--white);
}

.img-circle-item img {
  width: 30px;
  height: 30px;
}

/* Specific ring colors */
.mess-circle { border: 2px solid #0084ff; }
.mess-circle-fill { background-color: rgba(0, 132, 255, 0.2); }
.mess-img-circle { background-color: #0084ff; }

.zalo-circle { border: 2px solid #0068ff; }
.zalo-circle-fill { background-color: rgba(0, 104, 255, 0.2); }
.zalo-img-circle { background-color: #0068ff; }

.hotline-circle { border: 2px solid #ed0000; }
.hotline-circle-fill { background-color: rgba(237, 0, 0, 0.2); }
.hotline-img-circle { background-color: #ed0000; }

/* Keyframe Animations */
@keyframes circleZoom {
  0% {
    transform: scale(0.6);
    opacity: 0.1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

@keyframes circleFillZoom {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

@keyframes circleImgZoom {
  0% {
    transform: rotate(0) scale(1);
  }
  10% {
    transform: rotate(-15deg) scale(1);
  }
  20% {
    transform: rotate(15deg) scale(1);
  }
  30% {
    transform: rotate(-15deg) scale(1);
  }
  40% {
    transform: rotate(15deg) scale(1);
  }
  50% {
    transform: rotate(0) scale(1);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}

/* Phone Mockups Styles */
.phone-mockups {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 30px 20px;
}

.phone-frame {
  position: relative;
  width: 180px;
  height: 380px;
  border: 10px solid #2d2d2d;
  border-radius: 32px;
  background-color: #000000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.phone-frame:hover {
  transform: translateY(-10px);
}

/* Dynamic Island / Notch */
.phone-frame::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  background-color: #000000;
  border-radius: 7px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--white);
  border-radius: 22px;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .phone-frame {
    width: 140px;
    height: 300px;
    border-width: 8px;
    border-radius: 26px;
  }
  .phone-screen {
    border-radius: 18px;
  }
  .phone-frame::before {
    width: 45px;
    height: 10px;
    border-radius: 5px;
  }
}

@media (max-width: 480px) {
  .phone-mockups {
    gap: 8px;
  }
  .phone-frame {
    width: 100px;
    height: 210px;
    border-width: 6px;
    border-radius: 20px;
  }
  .phone-screen {
    border-radius: 14px;
  }
  .phone-frame::before {
    width: 30px;
    height: 8px;
    border-radius: 4px;
  }
}

/* Base Responsive & Overflow Fixes */
html, body {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 768px) {
  .header__toggle {
    display: flex;
    order: 3;
  }
  
  .header__inner {
    width: 90%;
    justify-content: space-between;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
  }

  .header__nav.open {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .header__actions {
    margin-left: auto;
    margin-right: 15px;
    order: 2;
  }

  .header__call-btn {
    padding: 6px 12px;
  }

  .header__call-number {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .header__call-label {
    display: none;
  }
  
  .header__call-btn {
    padding: 6px 10px;
    gap: 5px;
  }

  .header__call-number {
    font-size: 13px;
  }

  .ring-wrap {
    right: 15px;
    bottom: 15px;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


