/* ==========================================
   DESIGN SYSTEM & VARIABLES (LUD Landing Page)
   ========================================== */

:root {
  /* Colors */
  --color-bg-dark: #0b1d1f;       /* Brighter premium dark teal */
  --color-bg-card: rgba(18, 45, 40, 0.72); /* Semi-transparent glass card */
  --color-mint: #3eb489;          /* Mint Green */
  --color-mint-soft: #98ff98;     /* Pastel Mint Green */
  --color-teal: #3eb489;          /* Compatibility alias */
  --color-teal-pure: #3eb489;     /* Trust Mint */
  --color-teal-light: #66d6b5;    /* Highlight Mint */
  --color-green: #2f9f7a;         /* Deep Mint Green */
  --color-green-light: #53c89f;   /* Vibrant Mint */
  --color-lime: #98ff98;          /* Pastel Mint accent */
  --color-lime-glow: rgba(152, 255, 152, 0.45);
  --color-text-primary: #f7fffc;  /* Brighter off-white */
  --color-text-secondary: #bfd6cf;/* Higher contrast secondary */
  --color-text-muted: #8ba8a0;

  /* Theme-specific Overlays & Shadows (Dark Mode by Default) */
  --color-bg-nav: rgba(11, 29, 31, 0.86);
  --color-bg-nav-mobile: rgba(11, 29, 31, 0.95);
  --color-border-nav: rgba(62, 180, 137, 0.22);
  --color-bg-input: rgba(11, 29, 31, 0.56);
  --color-border-input: rgba(62, 180, 137, 0.35);
  --color-hero-overlay: rgba(11, 29, 31, 0.62);
  --orb-color-1: rgba(62, 180, 137, 0.22);
  --orb-color-2: rgba(152, 255, 152, 0.12);
  --shadow-hover: 0 10px 30px rgba(4, 22, 18, 0.45);
  --shadow-card: none;

  /* Typography */
  --font-eng: 'Montserrat', sans-serif;
  --font-lao: 'Noto Sans Lao', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Grid & Layout */
  --max-width: 1280px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-light {
  --color-bg-dark: #f4fff8;       /* Brighter light mint background */
  --color-bg-card: rgba(255, 255, 255, 0.9);  /* Brighter white glass card */
  --color-text-primary: #0f2f27;  /* Dark mint slate */
  --color-text-secondary: #285748;/* Higher contrast medium text */
  --color-text-muted: #467669;

  --color-bg-nav: rgba(248, 255, 251, 0.92);
  --color-bg-nav-mobile: rgba(252, 255, 253, 0.98);
  --color-border-nav: rgba(62, 180, 137, 0.22);
  --color-bg-input: rgba(255, 255, 255, 0.92);
  --color-border-input: rgba(62, 180, 137, 0.34);
  --color-hero-overlay: rgba(244, 255, 248, 0.72);
  --orb-color-1: rgba(62, 180, 137, 0.1);
  --orb-color-2: rgba(152, 255, 152, 0.08);
  --shadow-hover: 0 10px 30px rgba(62, 180, 137, 0.15);
  --shadow-card: 0 6px 22px rgba(62, 180, 137, 0.08);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  font-family: var(--font-eng);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Set primary fonts dynamically based on language class */
body.lang-la {
  font-family: var(--font-lao), var(--font-eng), sans-serif;
}

body.lang-en {
  font-family: var(--font-eng), var(--font-lao), sans-serif;
}

/* Dynamic background glowing orbs */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--orb-color-1) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

body::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--orb-color-2) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 25s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 10%) scale(1.1); }
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal-light), var(--color-lime));
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.text-gradient {
  background: linear-gradient(135deg, #ecfff7 0%, var(--color-mint-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--color-lime);
}

body.theme-light .text-gradient {
  background: linear-gradient(135deg, #103e34 0%, var(--color-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--color-lime);
  color: #061113;
  border: 1px solid var(--color-lime);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-lime);
  box-shadow: 0 0 20px var(--color-lime-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-teal-pure);
}

.btn-secondary:hover {
  background-color: rgba(62, 180, 137, 0.18);
  border-color: var(--color-teal-light);
}

body.theme-light .btn-primary {
  background-color: var(--color-mint);
  border-color: var(--color-mint);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(62, 180, 137, 0.24);
}

body.theme-light .btn-primary:hover {
  background-color: #2f9f7a;
  border-color: #2f9f7a;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(62, 180, 137, 0.28);
}

body.theme-light .btn-secondary {
  color: #1a4a3d;
  background-color: rgba(62, 180, 137, 0.08);
  border-color: rgba(62, 180, 137, 0.45);
}

body.theme-light .btn-secondary:hover {
  color: #0f2f27;
  background-color: rgba(62, 180, 137, 0.2);
  border-color: var(--color-mint);
}

/* ==========================================
   GLASSMORPHISM CONTAINER
   ========================================== */
.glass-panel {
  background: var(--color-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-input);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.glass-panel:hover {
  border-color: rgba(176, 223, 67, 0.3);
  box-shadow: var(--shadow-hover);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: var(--color-bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-nav);
  height: 70px;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
}

.logo img {
  height: 40px;
  width: auto;
  transition: var(--transition-smooth);
}

header.scrolled .logo img {
  height: 35px;
}

body.theme-light #headerLogo {
  filter: brightness(0) saturate(100%) invert(35%) sepia(50%) saturate(1450%) hue-rotate(152deg) brightness(94%) contrast(92%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-smooth);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-lime);
  transition: var(--transition-smooth);
}

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

/* Language Toggle Switch */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(13, 109, 124, 0.25);
  border: 1px solid rgba(13, 109, 124, 0.4);
  padding: 3px;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  user-select: none;
  width: 80px;
  height: 32px;
}

.lang-option {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  z-index: 2;
  transition: var(--transition-smooth);
  text-transform: uppercase;
}

.lang-option.active {
  color: #061113;
}

.lang-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 36px;
  height: 26px;
  background: var(--color-lime);
  border-radius: 18px;
  z-index: 1;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

body.lang-en .lang-slider {
  left: 40px;
}

/* Theme Switcher */
.theme-switcher {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-input);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  padding: 0;
  outline: none;
}

.theme-switcher:hover {
  border-color: var(--color-lime);
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--color-lime-glow);
}

/* Toggle icons based on theme */
body.theme-light .theme-switcher .icon-dark {
  display: block;
  color: var(--color-teal-pure);
}
body.theme-light .theme-switcher .icon-light {
  display: none;
}

body:not(.theme-light) .theme-switcher .icon-dark {
  display: none;
}
body:not(.theme-light) .theme-switcher .icon-light {
  display: block;
  color: var(--color-lime);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--spacing-md) 80px;
  background-image: linear-gradient(to bottom, var(--color-hero-overlay), var(--color-bg-dark)), url('./images/projects/hero_bg.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(62, 180, 137, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 2;
}

.hero-subtitle {
  font-family: var(--font-eng);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: var(--spacing-sm);
  display: inline-block;
  background: rgba(62, 180, 137, 0.15);
  border: 1px solid rgba(62, 180, 137, 0.34);
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  animation: fadeInUp 1s ease-out;
}

body.lang-la .hero-subtitle {
  font-family: var(--font-lao), var(--font-eng), sans-serif;
  letter-spacing: 0.06em;
  text-transform: none;
}

.hero-title {
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 1.2s ease-out;
  line-height: 1.12;
}

body.lang-la .hero-title {
  padding-top: 0.16em;
  line-height: 1.24;
  letter-spacing: 0;
}

.hero-slogan {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--color-text-secondary);
  max-width: 750px;
  margin: 0 auto var(--spacing-lg);
  animation: fadeInUp 1.4s ease-out;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  animation: fadeInUp 1.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   ABOUT / SUMMARY SECTION
   ========================================== */
.section-padding {
  padding: var(--spacing-lg) 0;
}

body.theme-light #milestones {
  background: rgba(62, 180, 137, 0.08) !important;
  border-top: 1px solid rgba(62, 180, 137, 0.18) !important;
  border-bottom: 1px solid rgba(62, 180, 137, 0.18) !important;
}

body.theme-light #vision {
  background: rgba(62, 180, 137, 0.06) !important;
  border-top: 1px solid rgba(62, 180, 137, 0.18) !important;
  border-bottom: 1px solid rgba(62, 180, 137, 0.18) !important;
}

body.theme-light #contact {
  background: rgba(62, 180, 137, 0.06) !important;
  border-top: 1px solid rgba(62, 180, 137, 0.18) !important;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
  text-align: justify;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-lime);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

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

/* ==========================================
   MILESTONES (TIMELINE)
   ========================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  color: var(--color-text-secondary);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-teal-pure), var(--color-green), var(--color-lime));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--color-bg-dark);
  border: 4px solid var(--color-lime);
  top: 30px;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-content {
  position: relative;
}

.timeline-year {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #061113;
  background: var(--color-lime);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: var(--spacing-sm);
  box-shadow: 0 4px 10px var(--color-lime-glow);
}

.timeline-title {
  font-size: 1.3rem;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.timeline-desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  text-align: justify;
}

/* Timeline scroll animation class triggers */
.timeline-item.in-view::after {
  transform: scale(1.3);
  box-shadow: 0 0 15px var(--color-lime);
  background-color: var(--color-lime);
}

/* ==========================================
   STRATEGIC VENTURES (PROJECTS)
   ========================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--spacing-md);
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  border-radius: var(--border-radius-sm);
}

.project-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-top: var(--spacing-sm);
}

.project-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-lime);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.project-card-title {
  font-size: 1.3rem;
  color: var(--color-text-primary);
  margin-bottom: 0.8rem;
  transition: var(--transition-smooth);
}

.project-card:hover .project-card-title {
  color: var(--color-lime);
}

.project-card-desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  text-align: justify;
}

/* ==========================================
   VISION & MISSION
   ========================================== */
.vision-section {
  position: relative;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.vision-box {
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--color-lime);
  padding-left: 15px;
}

.vision-quote {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-primary);
  font-style: italic;
}

.mission-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.mission-item {
  display: flex;
  gap: var(--spacing-sm);
}

.mission-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-lime);
  background: rgba(176, 223, 67, 0.1);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(176, 223, 67, 0.2);
}

.mission-details h4 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.mission-details p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.contact-icon {
  background: rgba(13, 109, 124, 0.2);
  border: 1px solid rgba(13, 109, 124, 0.4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-lime);
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-item-text p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.about-text p,
.timeline-desc,
.project-card-desc,
.contact-item-text p {
  overflow-wrap: anywhere;
}

.contact-item-text a {
  transition: var(--transition-smooth);
}

.contact-item-text a:hover {
  color: var(--color-lime);
}

.contact-form-container {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border-input);
  border-radius: var(--border-radius-sm);
  padding: 0.8rem 1rem;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-lime);
  box-shadow: 0 0 10px rgba(152, 255, 152, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: #061614;
  border-top: 1px solid rgba(62, 180, 137, 0.2);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  /* Force light colors inside the dark footer in both themes */
  --color-text-primary: #f7fffc;
  --color-text-secondary: #c0d8d1;
  --color-text-muted: #90aba4;
}

body.theme-light footer {
  background: #e9f9f1;
  border-top: 1px solid rgba(62, 180, 137, 0.22);
  --color-text-primary: #0f2f27;
  --color-text-secondary: #2f6154;
  --color-text-muted: #4d7d70;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-about .footer-logo {
  height: 100px;
  width: auto;
  margin-bottom: var(--spacing-sm);
}

.footer-about p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links-col h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
  position: relative;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-lime);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.footer-link-item a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-link-item a:hover {
  color: var(--color-lime);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(13, 109, 124, 0.1);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(13, 109, 124, 0.15);
  border: 1px solid rgba(13, 109, 124, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--color-lime);
  color: #061113;
  box-shadow: 0 0 10px var(--color-lime-glow);
}

/* ==========================================
   SCROLL EFFECT ADDONS
   ========================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal-light), var(--color-lime));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0);
}

/* ==========================================
   UNIPAY+ SHOWCASE
   ========================================== */
#unipay-showcase {
  background: radial-gradient(ellipse at 30% 50%, rgba(13,109,124,0.08) 0%, transparent 60%);
}

.unipay-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

/* Tabs Column */
.unipay-tabs-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.unipay-tab {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(13,109,124,0.15);
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  text-align: left;
  width: 100%;
  color: var(--color-text-primary);
}

.unipay-tab:hover {
  border-color: var(--color-teal);
  transform: translateX(6px);
  box-shadow: 0 4px 24px rgba(13,109,124,0.2);
}

.unipay-tab.active {
  border-color: var(--color-lime);
  background: rgba(176,223,67,0.08);
  box-shadow: 0 6px 30px rgba(176,223,67,0.15);
}

.unipay-tab-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(13,109,124,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-teal);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.unipay-tab.active .unipay-tab-icon {
  background: var(--color-lime);
  color: #061113;
}

.unipay-tab-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.unipay-tab-info p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Phone Wrapper */
.phone-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone Mockup */
.phone-mockup {
  width: 290px;
  min-height: 580px;
  background: #0a0a0a;
  border-radius: 40px;
  border: 3px solid #2a2a2a;
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 0 2px #111,
    0 25px 80px rgba(0,0,0,0.6),
    inset 0 0 3px rgba(255,255,255,0.03);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #0a0a0a;
  border-radius: 0 0 18px 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-speaker {
  width: 46px;
  height: 4px;
  background: #1a1a1a;
  border-radius: 4px;
}

.phone-camera {
  width: 8px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 50%;
  border: 1.5px solid #222;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-top: 24px;
}

.phone-screen {
  background: #111;
  border-radius: 8px;
  min-height: 470px;
  position: relative;
  overflow: hidden;
}

.phone-home-bar {
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  margin: 10px auto 4px;
}

/* Screen Content Base */
.screen-content {
  position: absolute;
  inset: 0;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

.screen-content.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ---- Wallet Screen ---- */
.sw-card {
  background: linear-gradient(135deg, #0d6d7c 0%, #094550 100%);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  margin-bottom: 16px;
}

.sw-card-label {
  font-size: 0.7rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.sw-card-balance {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
}

.sw-card-number {
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 2px;
}

.sw-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.sw-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.8);
  cursor: default;
  transition: var(--transition-smooth);
}

.sw-action i {
  font-size: 1rem;
  color: var(--color-lime);
}

.sw-transactions {
  flex: 1;
}

.sw-tx-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.sw-tx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sw-tx-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.sw-tx-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sw-tx-name {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.sw-tx-date {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
}

.sw-tx-amount {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}

.sw-tx-amount.positive { color: #2c8c44; }
.sw-tx-amount.negative { color: #e05555; }

/* ---- QR Scan Screen ---- */
.screen-qr {
  background: #0a0a0a;
  align-items: center;
  justify-content: center;
}

.qr-viewfinder {
  width: 180px;
  height: 180px;
  position: relative;
  margin-bottom: 16px;
}

.qr-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--color-lime);
  border-style: solid;
  border-width: 0;
}

.qr-tl { top:0; left:0; border-top-width:3px; border-left-width:3px; border-radius:6px 0 0 0; }
.qr-tr { top:0; right:0; border-top-width:3px; border-right-width:3px; border-radius:0 6px 0 0; }
.qr-bl { bottom:0; left:0; border-bottom-width:3px; border-left-width:3px; border-radius:0 0 0 6px; }
.qr-br { bottom:0; right:0; border-bottom-width:3px; border-right-width:3px; border-radius:0 0 6px 0; }

.qr-laser {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-lime), transparent);
  box-shadow: 0 0 12px var(--color-lime);
  animation: laserScan 2s ease-in-out infinite;
}

@keyframes laserScan {
  0%, 100% { top: 10px; }
  50% { top: 160px; }
}

.qr-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 20px;
}

.qr-lapnet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,255,255,0.6);
}

/* QR Success Overlay */
.qr-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 5;
}

.qr-success-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.qr-success-card {
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}

.qr-success-overlay.show .qr-success-card {
  transform: scale(1);
}

.qr-success-check {
  font-size: 3.5rem;
  color: #2c8c44;
  margin-bottom: 10px;
  animation: popCheck 0.5s cubic-bezier(.34,1.56,.64,1);
}

@keyframes popCheck {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.qr-success-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.qr-success-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-lime);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 4px;
}

.qr-success-to {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}

.qr-success-btn {
  background: var(--color-lime);
  color: #061113;
  border: none;
  padding: 10px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.qr-success-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(176,223,67,0.3);
}

/* ---- POS Screen ---- */
.screen-pos {
  color: #fff;
}

.pos-header {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}

.pos-items {
  flex: 1;
}

.pos-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
}

.pos-total {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-lime);
}

.pos-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 4px 0;
}

.pos-checkout-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-lime), #8ec63f);
  color: #061113;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition-smooth);
}

.pos-checkout-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 25px rgba(176,223,67,0.3);
}

/* ---- Analytics Screen ---- */
.screen-analytics {
  color: #fff;
}

.an-header {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.9);
}

.an-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.an-metric-card {
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}

.an-metric-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.an-metric-value {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 4px;
}

.an-metric-change {
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.an-metric-change.positive { color: #2c8c44; }

.an-chart-container {
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.05);
}

.an-chart-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.an-chart {
  width: 100%;
  height: 90px;
}

.pulse-ring {
  animation: pulseRing 1.5s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { r: 8; opacity: 0.3; }
  50% { r: 14; opacity: 0; }
}

.an-chart-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.3);
  margin-top: 6px;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */

/* --- Tablet & Small Desktop (max-width: 992px) --- */
@media (max-width: 992px) {
  :root {
    --spacing-lg: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .unipay-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .unipay-tabs-col {
    order: 2;
  }

  .phone-wrapper {
    order: 1;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

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

/* --- Mobile Landscape & Portrait (max-width: 768px) --- */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-md: 1.2rem;
  }

  body {
    overflow-x: hidden;
  }

  header {
    height: 70px;
  }

  .nav-container {
    padding: 0 0.85rem;
    gap: 0.6rem;
  }

  .logo img {
    height: 36px;
  }

  header.scrolled .logo img {
    height: 34px;
  }

  .nav-actions {
    gap: 0.55rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    transform: translateX(100%);
    width: 100%;
    height: calc(100dvh - 70px);
    min-height: calc(100vh - 70px);
    background: var(--color-bg-nav-mobile);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1.5rem 1.2rem 2rem;
    gap: var(--spacing-md);
    transition: var(--transition-smooth);
    overflow-y: auto;
    z-index: 99;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.65rem 0;
  }

  .lang-switcher {
    width: 72px;
    height: 30px;
  }

  .lang-option {
    font-size: 0.68rem;
  }

  .lang-slider {
    width: 32px;
    height: 24px;
  }

  body.lang-en .lang-slider {
    left: 38px;
  }

  /* Hamburger toggles */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Hero section adjustments */
  .hero-section {
    min-height: 85vh;
    min-height: 85dvh;
    padding: 100px var(--spacing-md) 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 360px;
  }

  /* About stats */
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  /* Projects cards */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline mobile adjustments (convert to single column) */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 0;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 10px !important;
    right: auto !important;
  }

  .timeline-item:nth-child(even)::after {
    left: 10px;
  }

  /* UniPay+ phone mockup */
  .phone-mockup {
    width: 260px;
    min-height: 520px;
  }

  .unipay-tab {
    padding: 1rem 1.2rem;
  }

  .unipay-tab-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* Contact details */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* Section headings */
  h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 2.2rem); }
}

/* --- Large Phone (400px - 768px) --- */
@media (min-width: 400px) and (max-width: 768px) {
  .hero-section {
    min-height: 72dvh;
    align-items: flex-start;
    padding: 94px 1.15rem 38px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-slogan {
    margin: 0 auto 1.5rem;
  }

  .hero-actions .btn {
    max-width: 380px;
  }
}

/* --- Small Phone (max-width: 399px) --- */
@media (max-width: 399px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-md: 1rem;
    --spacing-sm: 0.6rem;
  }

  .nav-container {
    padding: 0 0.6rem;
  }

  .logo img {
    height: 30px;
  }

  header.scrolled .logo img {
    height: 28px;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .lang-switcher {
    width: 66px;
    height: 28px;
  }

  .lang-option {
    font-size: 0.62rem;
  }

  .lang-slider {
    width: 29px;
    height: 22px;
  }

  body.lang-en .lang-slider {
    left: 35px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero-section {
    min-height: 80vh;
    min-height: 80dvh;
    padding: 90px 16px 40px;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    letter-spacing: 0.12em;
  }

  .hero-slogan {
    font-size: 1rem;
  }

  .hero-actions .btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.2rem;
    max-width: 300px;
  }

  /* About stats on small phone */
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Glass panel smaller padding */
  .glass-panel {
    padding: var(--spacing-sm);
  }

  /* Project card content */
  .project-card-title {
    font-size: 1rem;
  }

  .project-card-desc {
    font-size: 0.85rem;
  }

  /* UniPay+ adjustments */
  .phone-mockup {
    width: 240px;
    min-height: 480px;
  }

  .phone-screen {
    min-height: 400px;
  }

  .sw-card-balance {
    font-size: 1.3rem;
  }

  .sw-actions {
    gap: 4px;
  }

  .sw-action {
    padding: 8px 2px;
    font-size: 0.6rem;
  }

  .unipay-tab {
    padding: 0.8rem 1rem;
    gap: 0.8rem;
  }

  .unipay-tab-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .unipay-tab-info h4 {
    font-size: 0.9rem;
  }

  .unipay-tab-info p {
    font-size: 0.75rem;
  }

  /* Timeline */
  .timeline-item {
    padding-left: 35px;
  }

  /* Vision section */
  .vision-quote {
    font-size: 1.1rem;
  }

  .mission-item {
    font-size: 0.9rem;
  }

  /* Contact section */
  .contact-item-text h4 {
    font-size: 0.9rem;
  }

  .contact-item-text p {
    font-size: 0.85rem;
  }

  .form-control {
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
  }

  /* Footer */
  footer {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .footer-logo img {
    height: 60px;
  }
}
