@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i|Poppins:300,400,500,700');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Design Tokens & Color Systems --- */
:root {
  /* Fonts */
  --font-headings: 'Outfit', 'Poppins', sans-serif;
  --font-body: 'Inter', 'Open Sans', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Theme: Dark (Default) */
  --bg-base: #06090e;
  --bg-surface: rgba(13, 20, 35, 0.65);
  --bg-surface-solid: #0d1423;
  --bg-card: rgba(22, 33, 54, 0.3);
  --bg-card-hover: rgba(30, 48, 79, 0.45);
  --border: rgba(255, 255, 255, 0.05);
  --border-active: rgba(139, 92, 246, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #4f5e74;
  
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-violet: #8b5cf6;
  --accent-violet-glow: rgba(139, 92, 246, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);

  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #d946ef 100%);
  --gradient-hover: linear-gradient(135deg, #0891b2 0%, #7c3aed 50%, #c084fc 100%);
  --gradient-card: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.3);
  
  --glow-opacity: 0.15;
}

/* Theme: Light */
body.light-theme {
  --bg-base: #f8fafc;
  --bg-surface: rgba(255, 255, 255, 0.75);
  --bg-surface-solid: #ffffff;
  --bg-card: rgba(241, 245, 249, 0.7);
  --bg-card-hover: rgba(226, 232, 240, 0.9);
  --border: rgba(15, 23, 42, 0.08);
  --border-active: rgba(124, 58, 237, 0.5);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-cyan: #0891b2;
  --accent-cyan-glow: rgba(8, 145, 178, 0.15);
  --accent-violet: #7c3aed;
  --accent-violet-glow: rgba(124, 58, 237, 0.15);
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.15);

  --gradient-primary: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
  --gradient-hover: linear-gradient(135deg, #0e7490 0%, #6d28d9 100%);
  --gradient-card: linear-gradient(135deg, rgba(8, 145, 178, 0.02) 0%, rgba(124, 58, 237, 0.02) 100%);
  --shadow-glow: 0 10px 30px rgba(124, 58, 237, 0.08);
  --shadow-card: 0 15px 35px rgba(15, 23, 42, 0.04);
  
  --glow-opacity: 0.05;
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-base);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Core Utilities & Background Animations --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(140px);
  opacity: var(--glow-opacity);
  mix-blend-mode: screen;
  animation: floatOrb 25s infinite ease-in-out alternate;
  transition: opacity var(--transition-normal);
}

.glow-orb-1 {
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-violet);
  animation-duration: 20s;
}

.glow-orb-2 {
  bottom: -15%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--accent-cyan);
  animation-duration: 28s;
  animation-delay: -5s;
}

.glow-orb-3 {
  top: 40%;
  right: 20%;
  width: 40vw;
  height: 40vw;
  background: #d946ef;
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(5%, 10%) scale(1.15);
  }
  100% {
    transform: translate(-5%, -5%) scale(0.9);
  }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.45;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
}

/* --- Header & Glassmorphic Navigation --- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color var(--transition-normal), border-bottom var(--transition-normal), padding var(--transition-normal);
  padding: 1.25rem 0;
}

#header.scrolled {
  background-color: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-headings);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px var(--accent-violet-glow));
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

.logo:hover .logo-icon {
  transform: rotate(12deg) scale(1.08);
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.45)) drop-shadow(0 0 6px rgba(6, 182, 212, 0.45));
}

.logo-text {
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-text .accent-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-menu a:hover::after,
.nav-menu li.active a::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Actions in Navbar */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  background: var(--bg-card);
}

.theme-toggle-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--border);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform var(--transition-slow) ease;
}

body.light-theme .theme-toggle-btn .sun-icon {
  display: none;
}
body:not(.light-theme) .theme-toggle-btn .moon-icon {
  display: none;
}

/* Hamburger mobile button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: var(--radius-full);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

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

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-normal);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.35), var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-normal);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

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

.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: all var(--transition-slow);
  z-index: 10;
}

.hero-visual:hover .hero-visual-card {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-5px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.visual-top-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.visual-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--border);
}

.visual-dot:nth-child(1) { background-color: #ef4444; }
.visual-dot:nth-child(2) { background-color: #f59e0b; }
.visual-dot:nth-child(3) { background-color: #10b981; }

.visual-graphic {
  background: var(--bg-base);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.visual-code-line {
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px; /* Fixes height to completely avoid vertical shifts */
}

.code-line {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  border-right: 2px solid transparent;
}

.code-line:nth-child(1) {
  animation: typeText1 8s infinite steps(30, end);
}

.code-line:nth-child(2) {
  animation: typeText2 8s infinite steps(30, end);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: var(--accent-cyan);
  margin-left: 4px;
  vertical-align: middle;
  animation: blinkCursor 0.8s step-end infinite;
}

@keyframes typeText1 {
  0%, 5% { width: 0; }
  35%, 90% { width: 100%; }
  95%, 100% { width: 0; }
}

@keyframes typeText2 {
  0%, 40% { width: 0; }
  70%, 90% { width: 100%; }
  95%, 100% { width: 0; }
}

@keyframes blinkCursor {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-headings);
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* --- Section Formatting --- */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 5rem auto;
}

.section-tag {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  z-index: -1;
  opacity: 0.5;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-violet);
  margin-bottom: 2rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all var(--transition-normal);
}

.service-card:nth-child(2n) .service-icon-box {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.2);
}

.service-card:nth-child(3n) .service-icon-box {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.2);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px currentColor;
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: auto;
  transition: all var(--transition-fast);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-link {
  color: var(--accent-violet);
}

.service-card:nth-child(2n):hover .service-card-link {
  color: var(--accent-cyan);
}

.service-card:nth-child(3n):hover .service-card-link {
  color: var(--accent-emerald);
}

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

/* --- Interactive Showcase Section (Tabs) --- */
#showcase {
  background: rgba(2, 4, 8, 0.4);
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tab-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

.showcase-content-container {
  min-height: 480px;
  position: relative;
}

.showcase-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}

.showcase-panel.active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.showcase-panel-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.showcase-panel-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.showcase-features {
  list-style: none;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.showcase-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.showcase-features li svg {
  width: 20px;
  height: 20px;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.showcase-screen {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
}

.screen-mock {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--bg-base);
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.screen-mock-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.screen-mock-body {
  padding: 1.5rem;
  font-family: var(--font-body);
}

/* Special Micro UI widgets inside browser mockup */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: widgetPulse 3s infinite ease-in-out;
}

@keyframes widgetPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 5px rgba(139, 92, 246, 0.1); }
  50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(139, 92, 246, 0.25); }
}

.progress-bar-container {
  background: var(--border);
  height: 6px;
  width: 100%;
  border-radius: var(--radius-full);
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  background: var(--gradient-primary);
  height: 100%;
  border-radius: var(--radius-full);
}

.realestate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.re-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-size: 0.8rem;
}

.re-img-place {
  height: 60px;
  background: linear-gradient(45deg, var(--bg-base) 0%, rgba(6, 182, 212, 0.1) 100%);
  border-radius: 4px;
  margin-bottom: 6px;
}

.payment-badge {
  display: inline-block;
  background: var(--accent-emerald-glow);
  color: var(--accent-emerald);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.console-text {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-graphics {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-globe-mock {
  width: 100%;
  max-width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  border: 2px dashed var(--border);
  position: relative;
  animation: spinDash 40s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes spinDash {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.globe-center {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  animation: centerPulse 4s infinite alternate ease-in-out;
}

@keyframes centerPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 30px rgba(139, 92, 246, 0.2); }
  100% { transform: scale(1.05); box-shadow: 0 0 60px rgba(139, 92, 246, 0.5); }
}

.tech-orbits {
  position: absolute;
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-active);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-primary);
  animation: counterSpin 40s linear infinite;
}

@keyframes counterSpin {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.orbit-1 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.orbit-2 { right: 0; top: 50%; transform: translate(50%, -50%); }
.orbit-3 { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.orbit-4 { left: 0; top: 50%; transform: translate(-50%, -50%); }

.about-features {
  display: grid;
  gap: 2rem;
}

.about-feature-item {
  display: flex;
  gap: 1.5rem;
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.about-feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.about-feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-method-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-violet);
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.contact-method-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.contact-method-val {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-method-val a:hover {
  color: var(--accent-cyan);
}

.social-strip {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-circle:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 5px 15px var(--accent-cyan-glow);
}

.social-circle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Contact Form UI */
.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.75rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

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

/* Input validation states */
.form-input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
  animation: shakeInput 0.4s ease;
}

.form-input.is-valid {
  border-color: var(--accent-emerald);
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.form-error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.4rem;
  display: none;
}

.form-input.is-invalid + .form-error-msg {
  display: block;
}

.form-feedback-banner {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-feedback-banner.success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback-banner.success svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
}

/* Embedded Map Container */
.map-outer {
  grid-column: span 2;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-card);
}

.map-outer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(1.2);
  opacity: 0.85;
  transition: all var(--transition-normal);
}

body.light-theme .map-outer iframe {
  filter: none;
  opacity: 1;
}

/* --- Footer --- */
#footer {
  background-color: var(--bg-surface-solid);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2.5rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.footer-heading {
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.75rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

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

.footer-credits a {
  color: var(--text-secondary);
}

.footer-credits a:hover {
  color: var(--accent-violet);
}

/* --- Scroll-Spy active navigation and animation reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual-card {
    transform: none;
  }
  
  .hero-visual:hover .hero-visual-card {
    transform: translateY(-5px);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .showcase-panel.active {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .showcase-screen {
    order: -1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .map-outer {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  /* Hamburger Responsive navbar menu drawer */
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-surface-solid);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  .nav-menu.open {
    right: 0;
  }

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

  /* Disable CPU/GPU heavy floating blur animations on mobile */
  .glow-orb {
    animation: none !important;
  }
  
  /* Optimize rotating orbits for subpixel rendering */
  .about-globe-mock, .tech-orbits {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .contact-form-card {
    padding: 1.75rem;
  }
  
  .showcase-features {
    grid-template-columns: 1fr;
  }
}
