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

/* --- CSS Variables & Custom Properties --- */
:root {
  --primary-purple: #3d3090;      /* Dark purple from TERRAIN in logo */
  --primary-purple-rgb: 61, 48, 144;
  --primary-cyan: #00a2e2;        /* Cyan-blue from SOFT in logo */
  --primary-cyan-rgb: 0, 162, 226;
  
  --dark-neutral: #0e0d16;        /* Slate black with a hint of purple */
  --dark-neutral-rgb: 14, 13, 22;
  --light-bg: #f5f8fd;            /* Cool bluish-white background */
  --white: #ffffff;
  
  --text-main: #2d2a3d;           /* Deep dark text for readability */
  --text-muted: #64617a;          /* Muted grey-blue text for descriptions */
  --text-light: #f5f5f7;
  
  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-cyan) 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(61, 48, 144, 0.05) 0%, rgba(0, 162, 226, 0.05) 100%);
  --gradient-purple: linear-gradient(135deg, #4c3ec8 0%, var(--primary-purple) 100%);
  --gradient-cyan: linear-gradient(135deg, var(--primary-cyan) 0%, #00c3ff 100%);
  --gradient-dark: linear-gradient(180deg, #161424 0%, var(--dark-neutral) 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(61, 48, 144, 0.05);
  --shadow-md: 0 12px 30px rgba(61, 48, 144, 0.08);
  --shadow-lg: 0 20px 50px rgba(61, 48, 144, 0.15);
  --shadow-glow: 0 0 30px rgba(0, 162, 226, 0.25);
  
  /* Borders and Border Radius */
  --border-color: rgba(61, 48, 144, 0.08);
  --border-glow: rgba(0, 162, 226, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(61, 48, 144, 0.2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-purple);
}

/* Common Typography Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-neutral);
}

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

button, input, select, textarea {
  font-family: inherit;
}

ul {
  list-style: none;
}

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

/* --- Reusable Components & Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

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

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-cyan);
  background: rgba(0, 162, 226, 0.08);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 162, 226, 0.15);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 60px auto;
}
.section-dark .section-subtitle {
  color: #a8a5be;
}

/* Glassmorphism Styles */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(22, 20, 36, 0.7);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Interactive Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(61, 48, 144, 0.25);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 162, 226, 0.35);
}
.btn-primary * {
  position: relative;
  z-index: 2;
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}
.btn-secondary:hover {
  background: var(--primary-purple);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark-neutral);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Gradient text utility */
.grad-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Header / Navigation Bar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(61, 48, 144, 0.08);
  padding: 12px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: padding var(--transition-normal);
}

.header.scrolled .container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: height var(--transition-normal);
}
.header.scrolled .logo-img {
  height: 40px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 1px;
  line-height: 1.1;
}
.logo-text-top {
  color: var(--primary-purple);
}
.logo-text-bottom {
  color: var(--primary-cyan);
}

/* Desktop Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-fast);
}
.nav-link:hover {
  color: var(--primary-purple);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--primary-purple);
}
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary-purple);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, rgba(61, 48, 144, 0.04) 0%, rgba(0, 162, 226, 0.04) 100%);
  position: relative;
  overflow: hidden;
}

/* Glowing backgrounds in hero */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 162, 226, 0.12) 0%, rgba(0, 162, 226, 0) 70%);
  top: -100px;
  right: -100px;
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 48, 144, 0.08) 0%, rgba(61, 48, 144, 0) 70%);
  bottom: -100px;
  left: -100px;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(61, 48, 144, 0.1);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-purple);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-cyan);
  display: inline-block;
  animation: pulse-glow 1.5s infinite;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-cyan);
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 550px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Interactive Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-sphere {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(0, 162, 226, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.visual-circle-1 {
  position: absolute;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  border: 1.5px dashed rgba(61, 48, 144, 0.25);
  animation: spin-clockwise 25s linear infinite;
}

.visual-circle-2 {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 162, 226, 0.25);
  animation: spin-counter 15s linear infinite;
}

.visual-logo-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0.15;
  filter: blur(25px);
  z-index: 1;
}

.visual-logo {
  position: relative;
  z-index: 2;
  width: 160px;
  filter: drop-shadow(0 12px 24px rgba(61, 48, 144, 0.2));
  animation: float-logo 4s ease-in-out infinite;
}

/* Overlay Stats Cards in Hero */
.hero-stat-card {
  position: absolute;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
  background: var(--white);
  border: 1px solid var(--border-color);
}

.hero-stat-card.card-1 {
  bottom: 30px;
  left: -20px;
  animation: float-card-1 5s ease-in-out infinite;
}
.hero-stat-card.card-2 {
  top: 40px;
  right: -10px;
  animation: float-card-2 5.5s ease-in-out infinite;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 162, 226, 0.1);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-2 .stat-icon {
  background: rgba(61, 48, 144, 0.1);
  color: var(--primary-purple);
}

.stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
}
.stat-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.about-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(61, 48, 144, 0.2), rgba(14, 13, 22, 0.75));
  z-index: 1;
}

.about-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.about-img-wrapper:hover .about-img {
  transform: scale(1.05);
}

.about-floating-info {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  z-index: 2;
  color: var(--white);
}

.about-tagline {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-cyan);
}

.about-info-text {
  font-size: 0.95rem;
  opacity: 0.9;
}

.about-badge-card {
  position: absolute;
  top: -30px;
  right: -30px;
  background: var(--gradient-brand);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 160px;
  z-index: 3;
  animation: float 4.5s ease-in-out infinite;
}

.badge-year {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}
.badge-lbl {
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.2;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-point-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 162, 226, 0.1);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-point h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.about-point p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 162, 226, 0.2);
}

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

.service-icon-box {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand-subtle);
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--gradient-brand);
  color: var(--white);
  transform: rotate(5deg) scale(1.05);
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features-list {
  margin-bottom: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 10px;
}

.service-feature-item svg {
  color: var(--primary-cyan);
  flex-shrink: 0;
}

.service-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-purple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link svg {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* --- Government Partnerships Section --- */
.gov-section {
  background: var(--white);
}

.gov-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.gov-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gov-img-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.gov-img-card.span-col {
  grid-column: span 2;
  height: 200px;
}

.gov-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gov-img-card:hover img {
  transform: scale(1.06);
}

.gov-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(61, 48, 144, 0.1), rgba(14, 13, 22, 0.7));
  z-index: 1;
}

.gov-img-title {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 2;
}

.gov-content h3 {
  font-size: 1.9rem;
  margin-bottom: 20px;
}

.gov-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.gov-badges {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.gov-badge-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--light-bg);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.gov-badge-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-color: rgba(61, 48, 144, 0.15);
}

.gov-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.gov-badge-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.gov-badge-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Overseas Careers / Portal --- */
.overseas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.overseas-content {
  padding-right: 20px;
}

.destinations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.dest-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 16px;
}

.dest-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 162, 226, 0.3);
  transform: translateY(-4px);
}

.dest-flag-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.1);
}

.dest-info h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 2px;
}
.dest-info p {
  color: #a8a5be;
  font-size: 0.78rem;
}

/* Application Form Container */
.portal-form-container {
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.portal-form-container::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 162, 226, 0.15) 0%, rgba(0, 162, 226, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.form-header {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}
.form-header h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.form-header p {
  color: #a8a5be;
  font-size: 0.9rem;
}

.portal-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c9c7d8;
  letter-spacing: 0.5px;
}

.form-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-cyan);
  box-shadow: 0 0 10px rgba(0, 162, 226, 0.2);
}

select.form-input option {
  background: #1c1a2d;
  color: var(--white);
}

.form-file-custom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}
.form-file-custom:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary-cyan);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-lbl {
  color: #a8a5be;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.file-lbl svg {
  font-size: 1.5rem;
  color: var(--primary-cyan);
}

.form-feedback {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  text-align: center;
  display: none;
}
.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* --- Contact Us Section --- */
.contact {
  background: var(--light-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: start;
}

.contact-info-container {
  display: flex;
  flex-direction: column;
}

.contact-method-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  transition: transform var(--transition-fast);
}
.contact-method-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-method-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-brand-subtle);
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-method-details h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-method-details p {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.contact-method-details a {
  font-size: 0.88rem;
  color: var(--primary-purple);
  font-weight: 600;
}
.contact-method-details a:hover {
  color: var(--primary-cyan);
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-form-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.contact-form-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .form-input {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.contact-form .form-input:focus {
  background: var(--white);
  border-color: var(--primary-purple);
  box-shadow: 0 0 10px rgba(61, 48, 144, 0.15);
}
.contact-form .form-label {
  color: var(--text-main);
  font-weight: 600;
}

.contact-form textarea.form-input {
  min-height: 130px;
  resize: vertical;
}

/* Map Mock */
.map-container {
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  margin-top: 30px;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: #e3e6f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.map-placeholder svg {
  font-size: 2rem;
  color: var(--primary-purple);
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

/* --- Footer --- */
.footer {
  background: var(--dark-neutral);
  color: #c9c7d8;
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.1;
}

.footer-desc {
  font-size: 0.9rem;
  color: #a8a5be;
  margin-bottom: 24px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.social-btn:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  transform: translateY(-3px);
  color: var(--white);
}

.footer-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background: var(--primary-cyan);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: #a8a5be;
  display: inline-flex;
  align-items: center;
}
.footer-link:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.footer-contact-item svg {
  color: var(--primary-cyan);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #797693;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-link:hover {
  color: var(--white);
}

/* --- Scroll Animations Setup --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* --- Keyframe Animations --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes float-logo {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-card-1 {
  0% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-8px) translateX(-5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

@keyframes float-card-2 {
  0% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(8px) translateX(5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-counter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 162, 226, 0.7);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 162, 226, 0);
    transform: scale(1.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 162, 226, 0);
    transform: scale(0.95);
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid, .gov-grid, .overseas-grid, .contact-grid {
    gap: 40px;
  }
  .visual-sphere {
    width: 360px;
    height: 360px;
  }
  .visual-logo {
    width: 130px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-badge {
    margin-bottom: 16px;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 20px;
  }
  .about-grid, .gov-grid, .overseas-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-visual {
    order: 2;
    margin-top: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-badge-card {
    right: 0px;
  }
  .gov-visual-grid {
    order: 2;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(13, 12, 20, 0.1);
    transition: right var(--transition-normal);
    z-index: 1050;
  }
  .nav-menu.active {
    right: 0;
  }
  .hamburger {
    display: block;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .nav-actions {
    display: none; /* In mobile, CTA is inside menu or simplified */
  }
  .nav-menu .btn {
    width: 100%;
    margin-top: 20px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .destinations-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-tagline {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }
  .about-badge-card {
    display: none; /* hides large badge card on small phone screens for spacing */
  }
  .portal-form-container, .contact-form-card {
    padding: 24px 16px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
