/* ===== Local Font Faces ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-400.ttf') format('truetype');
}

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

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

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

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

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

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

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

/* ===== CSS Variables / Design Tokens ===== */
:root {
  --color-primary: #1a3a5c;
  --color-primary-dark: #0f2844;
  --color-primary-light: #2a5a8c;
  --color-accent: #2ecc71;
  --color-accent-dark: #27ae60;
  --color-accent-light: #a8e6cf;
  --color-white: #ffffff;
  --color-off-white: #f8fafb;
  --color-gray-50: #f0f4f8;
  --color-gray-100: #e1e8ed;
  --color-gray-200: #c4cdd5;
  --color-gray-400: #8899a6;
  --color-gray-600: #5c6f7e;
  --color-gray-800: #2c3e50;
  --color-text: #2c3e50;
  --color-text-light: #5c6f7e;
  --color-text-muted: #8899a6;
  --color-border: #e1e8ed;
  --color-shadow: rgba(26, 58, 92, 0.08);
  --color-shadow-hover: rgba(26, 58, 92, 0.15);

  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  --shadow-sm: 0 1px 3px var(--color-shadow);
  --shadow-md: 0 4px 12px var(--color-shadow);
  --shadow-lg: 0 8px 30px var(--color-shadow);
  --shadow-xl: 0 12px 40px var(--color-shadow-hover);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  --container-max: 1200px;
  --header-height: 72px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}

/* ===== Utility ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-gray-600);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent-dark);
}

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

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-white) 50%, var(--color-gray-50) 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.06) 0%, transparent 70%);
  border-radius: var(--radius-full);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInLeft 0.8s ease forwards;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.hero-content h1 .highlight {
  color: var(--color-primary);
  display: block;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 8px;
  color: var(--color-gray-800);
}

.hero-divider {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 24px 0;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-image {
  animation: fadeInRight 0.8s ease 0.2s forwards;
  opacity: 0;
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 15px;
  right: 15px;
  height: 30px;
  background: var(--color-accent);
  opacity: 0.1;
  border-radius: var(--radius-lg);
  filter: blur(20px);
}

/* ===== About Section ===== */
.about {
  background: var(--color-white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-content: start;
}

.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-light);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-50);
  border-radius: var(--radius-sm);
  color: var(--color-accent-dark);
  transition: all var(--transition-normal);
}

.stat-card:hover .stat-icon {
  background: var(--color-accent);
  color: var(--color-white);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ===== Services Section ===== */
.services {
  background: var(--color-gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary-light));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gray-50), var(--color-white));
  border: 2px solid var(--color-accent-light);
  border-radius: var(--radius-full);
  color: var(--color-accent-dark);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.1);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Partners Section ===== */
.partners {
  background: var(--color-white);
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.partner-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  background: var(--color-white);
}

.partner-logo:hover {
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.partner-logo .partner-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.partner-logo .easycash-text {
  color: var(--color-primary);
}

.more-partners {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 0.95rem;
}

/* ===== Technology Section ===== */
.technology {
  background: var(--color-gray-50);
  position: relative;
  overflow: hidden;
}

.technology::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 58, 92, 0.02) 0%, transparent 50%);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.tech-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
}

.tech-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent-light), rgba(46, 204, 113, 0.15));
  border-radius: var(--radius-lg);
  color: var(--color-accent-dark);
  transition: all var(--transition-normal);
}

.tech-card:hover .tech-icon {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
}

.tech-icon svg {
  width: 32px;
  height: 32px;
}

.tech-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.tech-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer h4 {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-company .company-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-company .address-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer-company .address-item svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-contact .contact-item:hover {
  color: var(--color-accent-light);
}

.footer-contact .contact-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Scroll To Top Button ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.scroll-top svg {
  width: 22px;
  height: 22px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-normal);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 40px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h1 .highlight {
    font-size: 1.4rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .partners-logos {
    gap: 24px;
  }

  .partner-logo {
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 20px 12px;
  }

  .stat-value {
    font-size: 1.3rem;
  }
}

/* ===== Mobile overlay ===== */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}