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

/* --- CUSTOM VARIABLES --- */
:root {
  --bg-primary: #040816;
  --bg-secondary: #081126;
  --bg-tertiary: #0B1530;
  --bg-card: rgba(11, 21, 48, 0.7);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.18);
  
  --primary-violet: #7C3AED;
  --primary-violet-hover: #8B5CF6;
  --primary-glow: rgba(124, 58, 237, 0.1);
  --primary-glow-strong: rgba(124, 58, 237, 0.25);
  
  --soft-lavender: #C4B5FD;
  --cyan-accent: #A5F3FC;
  --cyan-glow: rgba(165, 243, 252, 0.1);
  
  --text-white: #F8FAFC;
  --text-normal: #A8B3C7;
  --text-muted: #94A3B8;
  
  --font-heading: 'Jost', sans-serif;
  --font-body: 'Jost', sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  
  --max-width: 1200px;
  
  /* Standardized Corner Radii Tiers */
  --radius-pill: 999px;
  --radius-btn: 16px;
  --radius-icon: 16px;
  --radius-card: 24px;
  --radius-modal: 30px;
  --radius-panel: 32px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  font-family: var(--font-body);
  color: var(--text-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.65;
}

/* Global Font Weights Mapping */
body, p, input, textarea, .domain-card-text, .app-description {
  font-weight: 400; /* Jost Regular */
  color: var(--text-normal);
}

h1, h2, .section-header h2, .logo-text, .form-label, .success-modal h3, .footer-logo-wrapper .logo-text {
  font-weight: 600; /* Jost SemiBold */
  color: var(--text-white);
}

h3, h4, .nav-link, .app-name, .app-tag, .service-title, .footer-links-title, .btn {
  font-weight: 500; /* Jost Medium */
  color: var(--text-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-violet);
}

/* Ambient Background Glows */
.ambient-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 550px;
  max-height: 550px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
}
.glow-violet {
  background: var(--primary-violet);
  top: -5%;
  right: 5%;
}
.glow-cyan {
  background: var(--cyan-accent);
  top: 40%;
  left: 2%;
}
.glow-lavender {
  background: var(--soft-lavender);
  bottom: 8%;
  right: 15%;
}

/* Section Common Styles */
section {
  position: relative;
  padding: 120px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  z-index: 1;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}

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

/* --- UTILITY CLASSES --- */
.gradient-text {
  background: linear-gradient(135deg, var(--text-white) 40%, var(--soft-lavender) 80%, var(--primary-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-cyan {
  background: linear-gradient(135deg, var(--text-white) 50%, var(--cyan-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-card);
  padding: 36px;
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 15px 35px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background-clip: padding-box;
}
.glass-card:hover {
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--primary-glow);
  transform: translateY(-6px);
}

/* Section Header Utility */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  line-height: 1.25;
}
.section-header p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-violet) 0%, #6366F1 100%);
  color: var(--text-white);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35), 0 0 24px var(--primary-glow-strong);
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-white);
  border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}
.btn-text {
  color: var(--soft-lavender);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-text:hover {
  color: var(--text-white);
}
.btn-text svg {
  transition: transform 0.25s ease;
}
.btn-text:hover svg {
  transform: translateX(5px);
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(4, 8, 22, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Polished Site Logo wrapper */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}
.logo-wrapper:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 18px rgba(124, 58, 237, 0.15);
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: invert(1) contrast(300%) brightness(180%);
  mix-blend-mode: screen;
}

.logo-text {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--soft-lavender) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--soft-lavender);
  transition: var(--transition-fast);
  box-shadow: 0 0 8px var(--soft-lavender);
}
.nav-link:hover {
  color: var(--text-white);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--text-white);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: var(--transition-smooth);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.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);
}

/* Scroll Lock when mobile nav or modal is open */
body.menu-open {
  overflow: hidden;
  touch-action: none;
  height: 100vh;
  height: 100dvh;
}

/* Mobile Navigation Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(4, 8, 22, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999;
  padding: env(safe-area-inset-top, 24px) 24px env(safe-area-inset-bottom, 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(-10px);
}
.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: var(--transition-fast);
}
.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.mobile-nav-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.mobile-nav-links .nav-link {
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  transition: var(--transition-fast);
}
.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
  color: var(--text-white);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.mobile-nav-cta {
  width: 100%;
  max-width: 280px;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.mobile-nav-cta .btn {
  width: 100%;
}

/* --- HERO SECTION --- */
#hero {
  padding-top: 220px;
  padding-bottom: 140px;
  text-align: center;
}
.hero-content {
  max-width: 850px;
  margin: 0 auto;
}
.hero-content h1 {
  font-size: 4.25rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-content .subheadline {
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-content .supporting-line {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 44px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 64px;
}
.trust-chips-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.trust-chip {
  background: rgba(11, 21, 48, 0.4);
  border: 1px solid var(--border-glass);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--soft-lavender);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}
.trust-chip:hover {
  border-color: rgba(167, 139, 250, 0.35);
  color: var(--text-white);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-1px);
}
.trust-chip::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-violet);
}

/* --- ABOUT SECTION (REDESIGNED PASS 3) --- */
#about {
  background: transparent;
  padding: 96px 24px;
}
.about-panel {
  background: linear-gradient(135deg, rgba(8, 17, 38, 0.9) 0%, rgba(13, 21, 48, 0.65) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-panel);
  padding: 56px 72px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.3);
  background-clip: padding-box;
}
.about-text {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}
.about-text h2 {
  font-size: 2.75rem;
  margin-bottom: 20px;
  line-height: 1.25;
}
.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.75;
}
.about-text p:last-of-type {
  margin-bottom: 0;
}

/* --- APPS / PORTFOLIO SECTION --- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.app-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-icon);
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition-smooth);
}
.app-card:hover .app-icon {
  transform: scale(1.08) rotate(3deg);
  border-color: var(--soft-lavender);
  box-shadow: 0 12px 25px rgba(167, 139, 250, 0.25);
}
.app-title-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-name {
  font-size: 1.4rem;
}
.app-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan-accent);
  background: rgba(165, 243, 252, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(165, 243, 252, 0.12);
}
.app-description {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 28px;
  flex-grow: 1;
}

/* --- SERVICES SECTION --- */
#services {
  background: transparent;
  padding: 96px 24px;
}
.services-panel {
  background: linear-gradient(135deg, rgba(8, 17, 38, 0.95) 0%, rgba(13, 21, 48, 0.75) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-panel); /* 32px */
  padding: 64px 48px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.3);
  background-clip: padding-box;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  padding: 32px 28px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(13, 24, 55, 0.96), rgba(8, 17, 38, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  background-clip: padding-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  transition: var(--transition-smooth);
}
.service-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 28px 80px rgba(124, 58, 237, 0.18);
  transform: translateY(-6px);
}
.service-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(165, 243, 252, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft-lavender);
  transition: var(--transition-smooth);
}
.service-card:hover .service-icon-wrapper {
  background: linear-gradient(135deg, var(--primary-violet) 0%, var(--cyan-accent) 100%);
  color: var(--text-white);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.25);
  transform: rotate(5deg);
}
.service-title {
  font-size: 1.2rem;
}
.service-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- PROCESS SECTION --- */
.process-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
/* Connector Line for Desktop */
.process-container::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-violet) 30%, var(--cyan-accent) 70%, transparent 100%);
  opacity: 0.25;
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--soft-lavender);
  margin: 0 auto 24px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}
.process-step:hover .process-badge {
  border-color: var(--primary-violet);
  color: var(--text-white);
  background: var(--primary-violet);
  box-shadow: 0 0 25px var(--primary-glow-strong);
  transform: scale(1.08);
}
.process-step h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- ENQUIRY SECTION --- */
.enquiry-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-modal);
}
.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.form-label {
  font-size: 0.85rem;
  color: var(--soft-lavender);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}
.form-input {
  width: 100%;
  background: rgba(4, 8, 22, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-btn);
  padding: 15px 20px;
  color: var(--text-white);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.form-input::placeholder {
  color: rgba(148, 163, 184, 0.45);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary-violet-hover);
  background: rgba(4, 8, 22, 0.95);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.15);
}
.form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.12);
}
.error-message {
  font-size: 0.8rem;
  color: #F87171;
  margin-top: 4px;
  display: none;
}
.form-input.error + .error-message {
  display: block;
}

/* Form success dialog/modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 4, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.success-modal {
  max-width: 520px;
  width: 90%;
  padding: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transform: scale(0.95);
  transition: var(--transition-smooth);
  border-radius: var(--radius-modal);
}
.modal-overlay.active .success-modal {
  transform: scale(1);
}
.success-icon-wrapper {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(165, 243, 252, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border: 1px solid var(--cyan-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-accent);
  margin-bottom: 8px;
}
.success-modal h3 {
  font-size: 1.9rem;
}
.success-modal p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-normal);
}

/* --- FOOTER --- */
footer {
  background: #03050c;
  border-top: 1px solid var(--border-glass);
  padding: 90px 24px 48px;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Footer Logo Wrapper */
.footer-logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}
.footer-logo-wrapper:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 18px rgba(124, 58, 237, 0.15);
}
.footer-logo-wrapper .logo-img {
  width: 36px;
  height: 36px;
}
.footer-logo-wrapper .logo-text {
  font-size: 1.4rem;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.65;
}
.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-links-title {
  font-size: 1.1rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.footer-links-list a {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.footer-links-list a:hover {
  color: var(--text-white);
  padding-left: 4px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 36px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-bottom-domain {
  color: var(--soft-lavender);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- ANIMATION / REVEAL STYLING --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers for stagger reveal */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* --- GOOGLE ADSENSE STYLING --- */
.ad-section {
  max-width: var(--max-width);
  margin: 0 auto 64px auto;
  padding: 0 24px;
  width: 100%;
}

.ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  transition: var(--transition-smooth);
}

/* Specific Banner sizes & min-heights to mitigate Cumulative Layout Shift (CLS) */
.ad-display-horizontal {
  min-height: 140px;
  padding: 20px;
}

.ad-content-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
  opacity: 0.5;
  user-select: none;
}

/* Grid-aligned Ad Card (In-feed/Multiplex style) */
.ad-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  padding: 32px;
}

.ad-card-body {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Elegant visual placeholder for development or ad-blockers */
.ad-container::before,
.ad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Make sure the adsbygoogle tag expands correctly */
ins.adsbygoogle {
  z-index: 2;
  position: relative;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

/* Responsive adjustments for ads */
@media (max-width: 768px) {
  .ad-section {
    margin-bottom: 48px;
    padding: 0 16px;
  }
  .ad-display-horizontal {
    min-height: 90px;
    padding: 12px;
  }
  .ad-card {
    min-height: 300px;
    padding: 24px;
  }
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Prevent tap highlights on mobile for better native feeling */
a, button, select, input, textarea, .trust-chip {
  -webkit-tap-highlight-color: transparent;
}

/* Ensure global box-sizing and overflow behavior */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Enable reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Tablet Layout (max-width: 1024px) */
@media (max-width: 1024px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .process-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .process-container::before {
    display: none;
  }
  .footer-container {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
  }
}

/* Mobile/Tablet Layout (max-width: 768px) */
@media (max-width: 768px) {
  section {
    padding: 64px 20px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  .section-header h2 {
    font-size: 2.25rem;
    line-height: 1.2;
  }
  .section-header p {
    font-size: 1.05rem;
    line-height: 1.5;
  }
  
  /* Navigation & Header */
  .nav-menu, .nav-container > .btn {
    display: none;
  }
  .hamburger {
    display: block;
    position: relative;
  }
  .hamburger::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -8px;
    right: -8px;
    bottom: -12px;
  }
  
  .nav-container {
    padding: 12px 20px;
    padding-top: env(safe-area-inset-top, 12px);
  }
  
  .logo-wrapper {
    padding: 6px 16px;
    gap: 10px;
  }
  .logo-img {
    width: 28px;
    height: 28px;
  }
  .logo-text {
    font-size: 1.15rem;
  }
  
  /* Hero */
  #hero {
    padding-top: 140px;
    padding-bottom: 80px;
  }
  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
  }
  .hero-content .subheadline {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .hero-content .supporting-line {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }
  .hero-buttons .btn {
    width: 100%;
    min-height: 52px;
  }
  .trust-chip {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  
  /* About & Services Panel spacing */
  #about, #services {
    padding: 48px 20px;
  }
  .about-panel, .services-panel {
    padding: 36px 20px;
    border-radius: var(--radius-card);
  }
  .about-text h2 {
    font-size: 2rem;
    line-height: 1.25;
  }
  .about-text p {
    font-size: 1rem;
    line-height: 1.65;
  }
  
  /* Apps */
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .app-card {
    padding: 24px;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .service-card {
    padding: 24px;
    border-radius: var(--radius-card);
  }
  
  /* Process */
  .process-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  /* Enquiry Form */
  .enquiry-container {
    padding: 32px 20px;
    border-radius: 24px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-input {
    min-height: 52px;
    font-size: 16px; /* Prevents iOS auto-zoom */
    border-radius: 16px;
    padding: 14px 18px;
  }
  .enquiry-form button[type="submit"] {
    width: 100% !important;
    align-self: stretch !important;
  }
  
  /* Footer */
  footer {
    padding: 64px 20px 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 44px;
  }
  .footer-logo-wrapper {
    padding: 8px 20px;
  }
  .footer-logo-wrapper .logo-text {
    font-size: 1.25rem;
  }
  .footer-logo-wrapper .logo-img {
    width: 32px;
    height: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 24px;
  }
}

/* Medium Mobile refinements (max-width: 480px) */
@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.85rem;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .about-text h2 {
    font-size: 1.75rem;
  }
  .success-modal {
    width: calc(100% - 40px);
    max-width: 420px;
    padding: 32px 20px;
    border-radius: 24px;
    gap: 16px;
  }
  .success-icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 0;
  }
  .success-modal h3 {
    font-size: 1.5rem;
  }
  .success-modal p {
    font-size: 0.95rem;
  }
}

/* Very Small Mobile refinements (max-width: 360px) */
@media (max-width: 360px) {
  .logo-text {
    font-size: 1.05rem;
  }
  .logo-wrapper {
    padding: 5px 12px;
    gap: 6px;
  }
  .logo-img {
    width: 24px;
    height: 24px;
  }
  .hero-content h1 {
    font-size: 1.9rem;
  }
  .hero-content .subheadline {
    font-size: 1.05rem;
  }
  .section-header h2 {
    font-size: 1.65rem;
  }
  .about-text h2 {
    font-size: 1.55rem;
  }
  .mobile-nav-links .nav-link {
    font-size: 1.45rem;
  }
  .mobile-nav-close {
    width: 40px;
    height: 40px;
    padding: 6px;
  }
}
