@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 --- */
:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Color Palette - Light Mode Default */
  --bg-primary: #ffffff;
  --bg-secondary: #f0f3f6;
  --bg-tertiary: #e1e5ea;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-gold: #c5a059;
  --accent-gold-hover: #b38f46;
  --accent-blue: #0f2c59;
  --accent-blue-hover: #0a1f3f;
  
  --border-color: rgba(15, 44, 89, 0.1);
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-shadow: 0 10px 30px -10px rgba(15, 44, 89, 0.08);
  --nav-bg: rgba(248, 250, 252, 0.85);
  
  /* Gradients */
  --grad-gold: linear-gradient(135deg, #dfba73 0%, #a47e3b 100%);
  --grad-dark: linear-gradient(135deg, #0f2c59 0%, #07162c 100%);
  --grad-card-hover: linear-gradient(135deg, rgba(197, 160, 89, 0.05) 0%, rgba(15, 44, 89, 0.02) 100%);
  
  /* Misc */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-blur: blur(12px);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-primary: #070b13;
  --bg-secondary: #0e1420;
  --bg-tertiary: #171f30;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --accent-gold: #dfba73;
  --accent-gold-hover: #ecd19a;
  --accent-blue: #3b82f6;
  --accent-blue-hover: #60a5fa;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(14, 20, 32, 0.65);
  --card-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(7, 11, 19, 0.85);
  
  --grad-card-hover: linear-gradient(135deg, rgba(223, 186, 115, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
}

/* --- CSS RESET & BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) var(--bg-secondary);
}

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

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-hover);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
}

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

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

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

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

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

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  gap: 10px;
}

.btn-primary {
  background: var(--grad-gold);
  color: #070b13;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

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

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

/* Glassmorphism Cards */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 160, 89, 0.3);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.15);
  background: var(--grad-card-hover);
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 11, 19, 0.92) !important; /* Always dark premium glass */
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: var(--transition);
}

.menu-toggle, #theme-toggle {
  color: #f8fafc !important;
}

.navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--grad-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070b13;
  font-weight: 800;
  font-family: var(--font-title);
  font-size: 1.4rem;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--accent-gold);
  font-size: 0.75rem;
  display: block;
  font-weight: 400;
  letter-spacing: 2px;
}

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

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

/* For desktop screens, make navbar links light since header is always dark */
@media (min-width: 769px) {
  .nav-link {
    color: #cbd5e1 !important;
  }
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold) !important;
}

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

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

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

/* Theme Toggle Switch */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-gold);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 9px;
  transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background-color: #070b13;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.35;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transform: scale(1.05);
  animation: zoomBackground 20s infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: radial-gradient(circle at center, transparent 20%, #070b13 90%),
              linear-gradient(to bottom, transparent 50%, #070b13 100%);
}

.hero-container {
  position: relative;
  z-index: 3;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  animation: fadeInUp 1s ease;
}

.hero-logo-img {
  height: 220px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 15px 45px rgba(197, 160, 89, 0.55));
}

.hero-pretitle {
  font-family: var(--font-title);
  font-size: 1.2rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-weight: 500;
  animation: fadeInUp 1.2s ease;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  text-transform: uppercase;
  animation: fadeInUp 1.4s ease;
}

.hero-title span {
  display: block;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 4px;
  color: #94a3b8;
  margin-top: 10px;
}

.hero-link {
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 12px 32px;
  border-radius: 50px;
  margin-top: 32px;
  background: rgba(197, 160, 89, 0.05);
  animation: fadeInUp 1.6s ease;
}

.hero-link:hover {
  background: var(--accent-gold);
  color: #070b13;
  transform: translateY(-2px);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.scroll-down-indicator svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  animation: bounce 2s infinite;
}

/* --- ABOUT & IDENTITY --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-lead {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 28px;
  border-left: 3px solid var(--accent-gold);
  padding-left: 16px;
}

.about-visual-panel {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.about-floating-card {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: var(--nav-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  max-width: 280px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-floating-card .year {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-title);
  line-height: 1;
}

.about-floating-card .text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 4px;
}

.tab-system {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
}

[data-theme="dark"] .tab-system {
  background: rgba(14, 20, 32, 0.82);
}

.tab-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
  background: var(--bg-secondary);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 14px 8px;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.tab-btn.active {
  background: var(--card-bg);
  color: var(--accent-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.tab-pane p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon-wrapper {
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-icon-wrapper svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.feature-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- GENERAL DATA --- */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.data-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.data-number {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.15);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.data-content h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.data-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.data-subvalue {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- TEAM SECTION --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
}

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

.team-avatar-box {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid var(--border-color);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
  background-color: var(--bg-secondary);
}

.team-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition);
}

.team-card:hover .team-avatar-box {
  border-color: var(--accent-gold);
  transform: scale(1.05);
}

.team-card:hover .team-avatar-box img {
  filter: grayscale(0%);
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.team-role {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

/* --- SERVICES SECTION --- */
.services-tabs-container {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 40px;
  align-items: start;
}

.services-tabs-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-tab-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.service-tab-btn:hover {
  border-color: rgba(197, 160, 89, 0.3);
  color: var(--accent-gold);
  background: var(--bg-secondary);
}

.service-tab-btn.active {
  background: var(--grad-dark);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 25px -10px rgba(15, 44, 89, 0.3);
}

[data-theme="dark"] .service-tab-btn.active {
  background: var(--grad-gold);
  color: #070b13;
}

.service-tab-btn .tab-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.service-panel-card {
  padding: 48px;
  min-height: 400px;
}

.service-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.service-pane.active {
  display: block;
}

.service-content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.service-content-title h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.service-content-title p {
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.service-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-item-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.service-item-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gold);
  margin-top: 8px;
  flex-shrink: 0;
}

.service-item-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.service-item-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- CLIENTS SECTION --- */
.clients-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 40px 0;
}

.clients-carousel-wrapper::before,
.clients-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.clients-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.clients-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.clients-track {
  display: flex;
  gap: 60px;
  width: calc(240px * 20);
  animation: scrollInfinite 40s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

.client-logo-box {
  width: 180px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: var(--transition);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.client-logo-box:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
  border-color: rgba(197, 160, 89, 0.3);
  box-shadow: var(--card-shadow);
}

.logo-placeholder {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-placeholder svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-gold);
}

/* --- PROCESS SECTION --- */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--border-color);
  z-index: 1;
}

.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.process-step:nth-child(even) .process-card-wrapper {
  grid-column: 2;
}

.process-step:nth-child(even) .process-visual-wrapper {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.process-node {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--text-muted);
  box-shadow: 0 0 0 8px var(--bg-primary);
  transition: var(--transition);
}

.process-step.active .process-node {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.process-card-wrapper {
  position: relative;
}

.process-card {
  padding: 32px;
}

.process-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.process-visual-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step:nth-child(odd) .process-visual-wrapper {
  justify-content: flex-start;
}

.process-step:nth-child(even) .process-visual-wrapper {
  justify-content: flex-end;
}

.process-icon-box {
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.process-step.active .process-icon-box {
  background: var(--grad-gold);
  color: #070b13;
  border-color: transparent;
}

.process-icon-box svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

/* --- REGISTERS SECTION --- */
.registers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.register-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.register-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.register-badge {
  background: rgba(15, 44, 89, 0.05);
  color: var(--accent-blue);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

[data-theme="dark"] .register-badge {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue-hover);
}

.register-stamp {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.9rem;
  border: 2px dashed var(--accent-gold);
  padding: 6px 12px;
  color: var(--accent-gold);
  transform: rotate(-5deg);
}

.register-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.register-institution {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.register-details {
  list-style: none;
  margin-bottom: 32px;
}

.register-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.register-detail-item .label {
  color: var(--text-muted);
  font-weight: 500;
}

.register-detail-item .value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-phone-mockup {
  position: relative;
  width: 320px;
  height: 640px;
  background: #000;
  border: 12px solid #222;
  border-radius: 44px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  padding: 40px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  font-family: var(--font-body);
}

[data-theme="dark"] .phone-screen {
  background: #0d131f;
}

.phone-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
}

.phone-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

.phone-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
}

.phone-brand {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.6rem;
  color: #070b13;
}

[data-theme="dark"] .phone-brand {
  color: #ffffff;
}

.phone-brand span {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
  font-weight: 500;
}

.phone-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.phone-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  color: #0f172a;
}

[data-theme="dark"] .phone-contact-item {
  background: #171f30;
  color: #cbd5e1;
}

.phone-contact-icon {
  background: var(--grad-gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070b13;
  flex-shrink: 0;
}

.phone-contact-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.phone-contact-text .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  display: block;
}

.phone-contact-text .val {
  font-size: 0.95rem;
  font-weight: 700;
}

.phone-footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.phone-social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  transition: var(--transition);
}

[data-theme="dark"] .phone-social-btn {
  background: #171f30;
  color: #cbd5e1;
}

.phone-social-btn:hover {
  background: var(--accent-gold);
  color: #070b13;
  transform: translateY(-3px);
}

.phone-social-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-form-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: var(--card-bg);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

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

/* --- FOOTER / CLOSING --- */
.footer {
  background: #070b13;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.12;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) invert(100%);
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(to bottom, #070b13 0%, rgba(7, 11, 19, 0.8) 50%, #070b13 100%);
}

.footer-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-message {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.footer-message span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-link-bottom {
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: var(--accent-gold);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 12px 32px;
  border-radius: 50px;
  background: rgba(197, 160, 89, 0.05);
  margin-bottom: 60px;
}

.footer-link-bottom:hover {
  background: var(--accent-gold);
  color: #070b13;
  border-color: transparent;
}

.footer-logo {
  margin: 32px 0 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.footer-bottom-grid {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav-link {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-nav-link:hover {
  color: var(--accent-gold);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomBackground {
  0% { transform: scale(1.02) rotate(0deg); }
  100% { transform: scale(1.08) rotate(0.5deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-8px) translateX(-50%); }
  60% { transform: translateY(-4px) translateX(-50%); }
}

@keyframes scrollInfinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-240px * 10)); }
}

/* Scroll reveal helper classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual-panel { height: 360px; }
  .services-tabs-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 100px 40px;
    transition: var(--transition);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .navbar-active-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }
  
  .navbar-active-bg.active {
    display: block;
  }
  
  .process-timeline::before { left: 30px; }
  .process-step { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .process-step:nth-child(even) .process-card-wrapper { grid-column: 1; }
  .process-step:nth-child(even) .process-visual-wrapper { grid-column: 1; grid-row: 2; text-align: left; }
  .process-node { left: 30px; }
  .process-visual-wrapper { justify-content: flex-start !important; padding-left: 70px; }
  .process-card-wrapper { padding-left: 70px; }
  
  .registers-grid { grid-template-columns: 1fr; }
  .footer-bottom-grid { flex-direction: column-reverse; text-align: center; }
  .footer-nav { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .hero-title span { font-size: 1.5rem; }
  .section-title { font-size: 2rem; }
  .glass-card { padding: 20px; }
  .about-visual-panel { height: 260px; }
  .about-floating-card { bottom: 15px; right: 15px; padding: 16px; }
  .about-floating-card .year { font-size: 1.8rem; }
  .data-card { flex-direction: column; gap: 12px; }
  .data-number { width: 50px; height: 50px; font-size: 1.8rem; }
}

/* Subtle border dividers for section differentiation */
section {
  position: relative;
}
section[style*="background: var(--bg-secondary)"] {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   PREMIUM HIGH-CONTRAST & DYNAMIC STYLES (MODERN LAYOUT UPDATE)
   ========================================================================== */

/* Modern Dot Pattern Texture for Light Sections */
.bg-dots {
  background-image: radial-gradient(rgba(15, 44, 89, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
[data-theme="dark"] .bg-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
}

/* Floating Animation for Key Visuals */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
.floating-visual {
  animation: float 6s ease-in-out infinite;
}

/* 1. PERMANENT DARK SECTION FOR SERVICES (HIGH-CONTRAST CENTRAL BLOCK) */
#servicios {
  background: linear-gradient(135deg, rgba(7, 12, 24, 0.94) 0%, rgba(3, 6, 12, 0.97) 100%), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: overlay !important;
  color: #ffffff !important;
  border-top: 2px solid var(--accent-gold) !important;
  border-bottom: 2px solid var(--accent-gold) !important;
}

#servicios .section-title {
  color: #ffffff !important;
}

#servicios .section-title span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#servicios .section-subtitle {
  color: #94a3b8 !important;
}

#servicios .service-tab-btn {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

#servicios .service-tab-btn:hover {
  border-color: rgba(197, 160, 89, 0.5) !important;
  color: var(--accent-gold) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

#servicios .service-tab-btn.active {
  background: var(--grad-gold) !important;
  color: #070b13 !important;
  border-color: transparent !important;
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.35) !important;
}

#servicios .service-panel-card {
  background: rgba(12, 19, 35, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

#servicios .service-content-title h3 {
  color: #ffffff !important;
}

#servicios .service-item-text {
  color: #ffffff !important;
}

#servicios .service-item-desc {
  color: #cbd5e1 !important;
}

#servicios .service-content-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#servicios .service-tab-btn .tab-icon {
  fill: currentColor !important;
}

/* 2. GLOWING PROCESS TIMELINE PATH & ARCHITECTURAL BLUEPRINT BACKGROUND */
#proceso {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.93)), url('https://images.unsplash.com/photo-1503387762-592dedb8c310?auto=format&fit=crop&w=1200&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: overlay !important;
}

[data-theme="dark"] #proceso {
  background: linear-gradient(to bottom, rgba(14, 20, 32, 0.97), rgba(14, 20, 32, 0.93)), url('https://images.unsplash.com/photo-1503387762-592dedb8c310?auto=format&fit=crop&w=1200&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: overlay !important;
}

.process-timeline::before {
  background: linear-gradient(to bottom, var(--accent-gold) 0%, var(--accent-blue) 100%) !important;
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.3) !important;
}

.process-node {
  box-shadow: 0 0 0 8px var(--bg-primary), 0 4px 15px rgba(0, 0, 0, 0.05);
}

.process-step.active .process-node {
  border-color: var(--accent-gold) !important;
  color: var(--accent-gold) !important;
  background: var(--bg-primary) !important;
  box-shadow: 0 0 0 8px var(--bg-primary), 0 0 20px rgba(197, 160, 89, 0.45) !important;
}

/* 3. WARM GOLDEN-BEIGE GRADIENT & ABSTRACT OUTLINE FOR REGISTERS */
#registros {
  background: linear-gradient(135deg, rgba(253, 251, 247, 0.94) 0%, rgba(244, 238, 226, 0.96) 100%), url('https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1200&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: overlay !important;
}
[data-theme="dark"] #registros {
  background: linear-gradient(135deg, rgba(7, 11, 19, 0.96) 0%, rgba(7, 11, 19, 0.93) 100%), url('https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1200&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: overlay !important;
}

#registros .register-card {
  border-color: rgba(197, 160, 89, 0.18) !important;
  box-shadow: 0 20px 40px -15px rgba(15, 44, 89, 0.05) !important;
  background: var(--card-bg) !important;
}

/* 4. PERMANENT DARK SECTION FOR CONTACT with BRUTALIST GRID WATERMARK */
#contacto {
  background: linear-gradient(135deg, rgba(7, 12, 24, 0.94) 0%, rgba(3, 6, 12, 0.97) 100%), url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?auto=format&fit=crop&w=1200&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: overlay !important;
  color: #ffffff !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

#contacto .section-title {
  color: #ffffff !important;
}

#contacto .section-title span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#contacto .section-subtitle {
  color: #94a3b8 !important;
}

#contacto .contact-form-card {
  background: rgba(12, 19, 35, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

#contacto .form-label {
  color: #cbd5e1 !important;
}

#contacto .form-input {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

#contacto .form-input:focus {
  border-color: var(--accent-gold) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15) !important;
}

#contacto .phone-screen {
  background: #0d1324 !important;
}

#contacto .phone-brand {
  color: #ffffff !important;
}

#contacto .phone-contact-item {
  background: #161e2e !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

#contacto .phone-social-btn {
  background: #161e2e !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

#contacto .phone-social-btn:hover {
  background: var(--accent-gold) !important;
  color: #070b13 !important;
}

/* 5. ARCHITECTURAL WATERMARK FOR EMPRESA SECTION */
#empresa {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.92) 20%, rgba(255, 255, 255, 0.82) 70%, rgba(255, 255, 255, 0.7) 100%), url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=2560&q=90') !important;
  background-size: cover !important;
  background-position: right center !important;
  background-blend-mode: normal !important;
}

[data-theme="dark"] #empresa {
  background: linear-gradient(to right, rgba(7, 11, 19, 0.92) 20%, rgba(7, 11, 19, 0.82) 70%, rgba(7, 11, 19, 0.7) 100%), url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=2560&q=90') !important;
  background-size: cover !important;
  background-position: right center !important;
  background-blend-mode: normal !important;

/* 6. GREY TONED BACKGROUNDS FOR CLIENTS SECTION */
#clientes {
  background: radial-gradient(rgba(15, 44, 89, 0.07) 1.5px, transparent 1.5px),
              linear-gradient(135deg, #f3f5f8 0%, #e2e6ea 100%) !important;
  background-size: 24px 24px, auto !important;
}

[data-theme="dark"] #clientes {
  background: radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px),
              linear-gradient(135deg, #0e121a 0%, #171d2b 100%) !important;
  background-size: 24px 24px, auto !important;
}
