/* ==========================================================================
   GF CODE - DESIGN SYSTEM & BRAND STYLE SHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS & VARIABLE DECLARATIONS
   -------------------------------------------------------------------------- */
:root {
  /* Typography */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Theme Colors - Common */
  --primary-glow: #6366f1; /* Electric Indigo */
  --primary-glow-rgb: 99, 102, 241;
  --accent-glow: #14b8a6;  /* Neo Teal */
  --accent-glow-rgb: 20, 184, 166;
  --gradient-main: linear-gradient(135deg, var(--primary-glow) 0%, var(--accent-glow) 100%);
  --gradient-hover: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%);

  /* Radius */
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Default theme values (Dark Mode) */
  --bg-color: #09090b; /* Zinc 950 */
  --surface-color: rgba(20, 20, 23, 0.75); /* Zinc 900 Glass */
  --surface-border: rgba(63, 63, 70, 0.4); /* Zinc 700 Soft */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
  --glow-opacity: 0.15;
  --card-glow-intensity: rgba(99, 102, 241, 0.08);
}

/* Light Theme Override Variables */
body.light-mode {
  --bg-color: #f8fafc; /* Slate 50 */
  --surface-color: rgba(255, 255, 255, 0.85); /* Pure White Glass */
  --surface-border: rgba(226, 232, 240, 0.8); /* Slate 200 Soft */
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #64748b; /* Slate 500 */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.08);
  --glow-opacity: 0.05;
  --card-glow-intensity: rgba(99, 102, 241, 0.03);
}

/* --------------------------------------------------------------------------
   2. GENERAL RESET & BASE STYLING
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--trans-normal), color var(--trans-normal);
}

/* Scrollbar customizations */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-glow);
}

/* --------------------------------------------------------------------------
   3. LAYOUT CONTAINERS & REUSABLES
   -------------------------------------------------------------------------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 56px;
  max-width: 650px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

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

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Background Glow Effects */
.glow-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: var(--glow-opacity);
  transition: opacity var(--trans-normal);
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: var(--primary-glow);
  top: 10%;
  right: -5%;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-glow);
  top: 40%;
  left: -10%;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), background var(--trans-fast), border-color var(--trans-fast);
  border: 1px solid transparent;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-animation 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  border-color: var(--surface-border);
  color: var(--text-primary);
}

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

.btn-gradient {
  background: var(--gradient-main);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-gradient:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
}

/* Focus styling for accessibility */
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-glow);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION SYSTEM
   -------------------------------------------------------------------------- */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--trans-normal), border-color var(--trans-normal), height var(--trans-normal), transform var(--trans-normal);
}

#main-header.header-hidden {
  transform: translateY(-100%);
}

#main-header.scrolled {
  height: 70px;
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--surface-border);
  box-shadow: var(--shadow-sm);
}

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

/* Logo brand styling */
.logo-link {
  text-decoration: none;
}

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

.logo-img {
  height: 38px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  transition: transform var(--trans-normal);
}

.logo-link:hover .logo-img {
  transform: rotate(-5deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Desktop Links Menu */
.desktop-nav {
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color var(--trans-fast);
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width var(--trans-normal);
}

.nav-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Theme Toggle Button styling */
.theme-btn {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--trans-fast), border-color var(--trans-fast);
  position: relative;
  overflow: hidden;
}

.theme-btn:hover {
  border-color: var(--primary-glow);
  background: rgba(99, 102, 241, 0.1);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

/* Toggle smooth morph rotation & scaling */
body.dark-mode .sun-icon {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}
body.dark-mode .moon-icon {
  transform: scale(0) rotate(-90deg);
  opacity: 0;
}
body.light-mode .sun-icon {
  transform: scale(0) rotate(90deg);
  opacity: 0;
}
body.light-mode .moon-icon {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* Mobile responsive menu button */
.mobile-trigger {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1000;
}

.mobile-trigger .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--trans-normal), opacity var(--trans-normal);
}

/* Mobile trigger animation states */
.mobile-trigger.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-trigger.open .bar:nth-child(2) {
  opacity: 0;
}
.mobile-trigger.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile navigation Drawer */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--trans-normal), visibility var(--trans-normal);
}

.mobile-overlay.open {
  opacity: 0.98;
  visibility: visible;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.mobile-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-item {
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--trans-fast);
}

.mobile-nav-item:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

.badge-new-era {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary-glow);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-glow);
  border-radius: 50%;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions-group {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
}

.arrow-right {
  display: inline-block;
  margin-left: 6px;
  transition: transform var(--trans-fast);
}

.btn-secondary:hover .arrow-right {
  transform: translateX(4px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.stat-number {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--surface-border);
}

/* --------------------------------------------------------------------------
   6.1 IDE / SIMULATOR DE CÓDIGO
   -------------------------------------------------------------------------- */
.ide-simulator {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: border-color var(--trans-normal);
}

.ide-simulator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0.8;
}

.ide-header {
  height: 44px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.ide-dots {
  display: flex;
  gap: 8px;
}

.ide-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #eab308; }
.dot.green { background-color: #22c55e; }

.ide-tab {
  margin-left: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--surface-color);
  padding: 6px 16px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid var(--surface-border);
  border-bottom: none;
  margin-bottom: -13px;
}

.ide-body {
  padding: 24px;
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
}

.line-numbers {
  display: flex;
  flex-direction: column;
  color: var(--text-muted);
  text-align: right;
  user-select: none;
}

.code-content {
  color: #e2e8f0;
}

/* Basic Syntax Highlighting rules */
.code-content .keyword { color: #f43f5e; font-weight: 600; }
.code-content .string { color: #10b981; }
.code-content .variable { color: #e2e8f0; }
.code-content .comment { color: #64748b; font-style: italic; }
.code-content .property { color: #3b82f6; }
.code-content .class-name { color: #eab308; }
.code-content .method { color: #a855f7; }
.code-content .literal { color: #f97316; }

.ide-terminal {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--surface-border);
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.terminal-prompt {
  color: var(--text-muted);
  margin-bottom: 6px;
}

.terminal-output {
  color: #e2e8f0;
  line-height: 1.5;
}

.output-success { color: #10b981; font-weight: bold; }
.output-info { color: #3b82f6; }

/* --------------------------------------------------------------------------
   7. BENTO GRID SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-section {
  padding: 100px 0;
  border-top: 1px solid var(--surface-border);
  background: radial-gradient(circle at 80% 90%, var(--card-glow-intensity), transparent 45%);
}

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

.bento-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--trans-normal), border-color var(--trans-normal), box-shadow var(--trans-normal);
  position: relative;
  overflow: hidden;
}

.bento-card.col-span-2 {
  grid-column: span 2;
}

/* Card hover glow and lift effects */
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: var(--shadow-md);
}

.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity var(--trans-normal);
}

.bento-card:hover::after {
  opacity: 1;
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: transform var(--trans-normal);
}

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

.bento-card:hover .icon-box {
  transform: scale(1.05) rotate(3deg);
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-glow);
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--trans-fast), background var(--trans-fast);
}

.bento-card:hover .tech-tag {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.05);
}

/* --------------------------------------------------------------------------
   8. INTERACTIVE TECH STACK PANEL
   -------------------------------------------------------------------------- */
.techs-section {
  padding: 100px 0;
  border-top: 1px solid var(--surface-border);
  background: radial-gradient(circle at 10% 20%, var(--card-glow-intensity), transparent 45%);
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  background: var(--surface-color);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--trans-fast), color var(--trans-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--text-primary);
  color: var(--bg-color);
}

/* Tab Panels */
.panels-container {
  position: relative;
  min-height: 250px;
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--trans-normal), transform var(--trans-normal);
}

.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tech-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: border-color var(--trans-normal), transform var(--trans-normal);
}

.tech-card:hover {
  border-color: var(--primary-glow);
  transform: translateY(-2px);
}

.tech-logo {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--accent-glow);
  margin-bottom: 12px;
}

.tech-card h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.tech-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   9. ABOUT SECTION ("SOBRE NÓS")
   -------------------------------------------------------------------------- */
.about-section {
  padding: 100px 0;
  border-top: 1px solid var(--surface-border);
}

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

.about-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pattern-dots {
  position: absolute;
  width: 180px;
  height: 180px;
  background-image: radial-gradient(var(--surface-border) 2px, transparent 2px);
  background-size: 16px 16px;
  top: 10%;
  left: 5%;
  z-index: 1;
}

.about-glass-card {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  width: 85%;
}

.about-glass-card h4 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-list .icon {
  color: var(--accent-glow);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

.why-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.why-list p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.section-paragraph {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Steps workflow flow */
.steps-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.step-card {
  flex: 1;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.step-num {
  font-family: var(--font-mono);
  font-weight: bold;
  color: var(--primary-glow);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.step-card h5 {
  font-size: 0.85rem;
  font-weight: 600;
}

.step-arrow {
  color: var(--text-muted);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   10. CONTACT SECTION & INTERACTIVE FORM
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 100px 0;
  border-top: 1px solid var(--surface-border);
  background: radial-gradient(circle at 90% 10%, var(--card-glow-intensity), transparent 45%);
}

.contact-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: flex-start;
}

.contact-subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.direct-contacts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  padding: 20px;
  border-radius: var(--radius-md);
  transition: border-color var(--trans-fast);
}

.contact-card-item:hover {
  border-color: var(--primary-glow);
}

.contact-icon {
  font-size: 1.8rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-details a, .contact-details p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  margin-top: 2px;
}

.contact-details a:hover {
  color: var(--primary-glow);
}

/* Form Styling */
.contact-form-container {
  position: relative;
}

.glass-form {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity var(--trans-normal), transform var(--trans-normal);
}

.glass-form.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}

.form-row {
  display: flex;
  flex-direction: column;
}

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

.form-group-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group-field input,
.form-group-field select,
.form-group-field textarea {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

body.light-mode .form-group-field input,
body.light-mode .form-group-field select,
body.light-mode .form-group-field textarea {
  background: rgba(255, 255, 255, 0.8);
}

.form-group-field input:focus,
.form-group-field select:focus,
.form-group-field textarea:focus {
  border-color: var(--primary-glow);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Error/Validation styling */
.form-group-field.error input,
.form-group-field.error select,
.form-group-field.error textarea {
  border-color: #ef4444;
}

.field-error-msg {
  display: none;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 4px;
}

.form-group-field.error .field-error-msg {
  display: block;
}

/* Form spinner loader */
.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin-anim 0.8s linear infinite;
}

.btn-spinner.hidden {
  display: none;
}

@keyframes spin-anim {
  to { transform: rotate(360deg); }
}

/* Success Card */
.success-card-feedback {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  padding: 56px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: opacity var(--trans-normal), transform var(--trans-normal);
}

.success-card-feedback.hidden {
  display: none;
  opacity: 0;
}

.success-icon-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.success-card-feedback h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
}

.success-card-feedback p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 320px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   11. FOOTER SECTION
   -------------------------------------------------------------------------- */
.main-footer {
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--surface-border);
  padding: 80px 0 40px;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .brand-pitch {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 250px;
}

.footer-links-group h5, .footer-newsletter h5 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links-group a:hover {
  color: var(--text-primary);
}

.footer-newsletter p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: 100%;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

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

.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-medias {
  display: flex;
  gap: 16px;
}

.social-medias a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  transition: border-color var(--trans-fast), color var(--trans-fast);
}

.social-medias a:hover {
  border-color: var(--primary-glow);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   11.5 MACH ARCHITECTURE SECTION
   -------------------------------------------------------------------------- */
.mach-section {
  padding: 100px 0;
  border-top: 1px solid var(--surface-border);
  background: radial-gradient(circle at 20% 30%, var(--card-glow-intensity), transparent 50%);
}

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

.mach-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--trans-normal), border-color var(--trans-normal), box-shadow var(--trans-normal);
  position: relative;
}

.mach-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: var(--shadow-md);
}

.mach-icon-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.mach-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.mach-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mach-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.mach-modules {
  margin-top: 24px;
  border-top: 1px solid var(--surface-border);
  padding-top: 16px;
}

.module-title {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.module-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m-badge {
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: var(--accent-glow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--trans-fast), color var(--trans-fast);
}

.mach-card:hover .m-badge {
  background: rgba(20, 184, 166, 0.15);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   11.8 MOTION DESIGN & SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
/* Fade & Slide Up */
.reveal {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

/* Slide in from Left */
.reveal-left {
  opacity: 0 !important;
  transform: translateX(-40px) !important;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.reveal-left.active {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Slide in from Right */
.reveal-right {
  opacity: 0 !important;
  transform: translateX(40px) !important;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.reveal-right.active {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Mouse Follow Card Spotlight Glow */
.card-glow {
  position: relative;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(350px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(99, 102, 241, 0.15), transparent 50%);
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-glow:hover::before {
  opacity: 1;
}

/* Floating bobbing effects */
.about-glass-card-wrap {
  animation: bobbing-slow 6s ease-in-out infinite alternate;
}

.ide-simulator-wrap {
  animation: bobbing-medium 8s ease-in-out infinite alternate;
}

@keyframes bobbing-slow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes bobbing-medium {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   12. RESPONSIVENESS MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.col-span-2 {
    grid-column: span 2;
  }
  .mach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .desktop-nav,
  .btn-nav-cta {
    display: none;
  }
  .mobile-trigger {
    display: flex;
  }

  /* Hero */
  .hero-section {
    padding-top: 120px;
  }
  .hero-container-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text-content {
    text-align: center;
  }
  .badge-new-era {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }

  /* Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.col-span-2 {
    grid-column: span 1;
  }

  /* MACH Grid */
  .mach-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-visual {
    height: auto;
  }
  .about-glass-card {
    width: 100%;
  }

  /* Contact */
  .contact-grid-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Footer */
  .footer-content-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-actions-group {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .stat-divider {
    display: none;
  }
  .steps-flow {
    flex-direction: column;
    gap: 16px;
  }
  .step-arrow {
    transform: rotate(90deg);
  }
  .glass-form {
    padding: 24px;
  }
}

/* ==========================================================================
   MOTION DESIGN ADDITIONS (SMART PROGRESS, MACH CARD GLOW & STAGGER STEPS)
   ========================================================================== */

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-main);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s ease;
  pointer-events: none;
}

/* MACH Card Spotlight Glow Hover */
.mach-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(350px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(20, 184, 166, 0.15), transparent 50%);
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mach-card:hover::before {
  opacity: 1;
}

.mach-card .mach-icon-header,
.mach-card p,
.mach-card .mach-modules {
  position: relative;
  z-index: 1;
}

/* Steps Flow Stagger Reveal */
.steps-flow .step-card,
.steps-flow .step-arrow {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.steps-flow.active .step-card,
.steps-flow.active .step-arrow {
  opacity: 1;
  transform: translateY(0);
}

.steps-flow.active .step-card:nth-child(1) { transition-delay: 0.1s; }
.steps-flow.active .step-arrow:nth-child(2) { transition-delay: 0.15s; }
.steps-flow.active .step-card:nth-child(3) { transition-delay: 0.2s; }
.steps-flow.active .step-arrow:nth-child(4) { transition-delay: 0.25s; }
.steps-flow.active .step-card:nth-child(5) { transition-delay: 0.3s; }
.steps-flow.active .step-arrow:nth-child(6) { transition-delay: 0.35s; }
.steps-flow.active .step-card:nth-child(7) { transition-delay: 0.4s; }

/* ==========================================================================
   INTERACTIVE SVG MICRO-ANIMATIONS
   ========================================================================== */

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

/* 1. Web Icon Animations (Monitor + Code lines + Cursor) */
.svg-web .monitor-frame {
  stroke-dasharray: 80;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s ease;
}
.bento-card:hover .monitor-frame {
  stroke-dashoffset: 160;
}
.svg-web .code-line {
  opacity: 0.4;
  transform: scaleX(1);
  transform-origin: left;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.svg-web .code-line.line-1 { transition-delay: 0.05s; }
.svg-web .code-line.line-2 { transition-delay: 0.15s; }

.bento-card:hover .code-line {
  opacity: 0.9;
  transform: scaleX(1.15);
}
.svg-web .code-cursor {
  transform: translate(0, 0);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.bento-card:hover .code-cursor {
  transform: translate(-3px, -2px) scale(0.95);
  animation: click-pulse 0.4s ease 0.4s infinite alternate;
}
@keyframes click-pulse {
  to { transform: translate(-3px, -2px) scale(0.85); }
}

/* 2. Mobile Icon Animations (Smartphone + Grid Apps + Ripple) */
.svg-mobile .app-icon {
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.svg-mobile .app-icon.icon-1 { transition-delay: 0.05s; }
.svg-mobile .app-icon.icon-2 { transition-delay: 0.1s; }
.svg-mobile .app-icon.icon-3 { transition-delay: 0.15s; }
.svg-mobile .app-icon.icon-4 { transition-delay: 0.2s; }

.bento-card:hover .app-icon {
  transform: scale(1.2);
}
.svg-mobile .tap-ripple {
  fill: none;
  stroke: var(--accent-glow);
  opacity: 0;
}
.bento-card:hover .tap-ripple {
  animation: ripple-out 1.5s infinite ease-out;
}
@keyframes ripple-out {
  0% { r: 0px; opacity: 1; }
  50% { r: 5px; opacity: 0.5; }
  100% { r: 8px; opacity: 0; }
}

/* 3. Cloud Icon Animations (Cloud outline + Sync arrow + Orbit dots) */
.svg-cloud .cloud-outline {
  transition: transform 0.5s ease;
}
.bento-card:hover .cloud-outline {
  transform: scale(1.02);
  animation: cloud-breath 2s infinite ease-in-out alternate;
}
@keyframes cloud-breath {
  to { transform: scale(0.98); }
}
.svg-cloud .arrow-up {
  transition: transform 0.4s ease;
}
.bento-card:hover .arrow-up {
  animation: arrow-slide 1.2s infinite linear;
}
@keyframes arrow-slide {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-4px); opacity: 0.5; }
  51% { transform: translateY(4px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.svg-cloud .orbit-dot {
  fill: var(--accent-glow);
  opacity: 0.5;
  transition: transform 0.5s ease;
}
.bento-card:hover .orbit-dot.dot-1 {
  animation: orbit-left 1.5s infinite alternate ease-in-out;
}
.bento-card:hover .orbit-dot.dot-2 {
  animation: orbit-right 1.5s infinite alternate ease-in-out;
}
@keyframes orbit-left {
  to { transform: translateX(-3px); opacity: 1; }
}
@keyframes orbit-right {
  to { transform: translateX(3px); opacity: 1; }
}

/* 4. Design Icon Animations (Bezier curve + Pen tool + Handles) */
.svg-design .bezier-path {
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s ease;
}
.bento-card:hover .bezier-path {
  stroke-dashoffset: 120;
}
.svg-design .handle-line {
  opacity: 0.2;
  transition: opacity 0.5s ease;
}
.bento-card:hover .handle-line {
  opacity: 0.7;
}
.svg-design .pen-nib {
  transform: translate(0, 0);
  transition: transform 0.5s ease;
}
.bento-card:hover .pen-nib {
  animation: draw-pen 2s infinite alternate ease-in-out;
}
@keyframes draw-pen {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-2px, -2px); }
  100% { transform: translate(2px, 2px); }
}

/* Prefers Reduced Motion Accessibility Support */
@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;
  }
  .about-glass-card-wrap,
  .ide-simulator-wrap {
    animation: none !important;
  }
}

