/* ==========================================
   ROBEXA GLOBAL SOLUTIONS — PORTFOLIO
   Modern, responsive, dark/light mode
   ========================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Light Mode Colors */
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f2f8;
  --bg-card: #ffffff;
  --text-primary: #1a1d2e;
  --text-secondary: #4a4d60;
  --text-muted: #7c7f94;
  --accent: #4f46e5;
  --accent-light: #818cf8;
  --accent-dark: #3730a3;
  --accent-glow: rgba(79, 70, 229, 0.15);
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
  --gradient-hero: linear-gradient(160deg, #f8f9fc 0%, #eef0f8 50%, #e8e0f8 100%);
  --gradient-card: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.15);
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Borders & Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* Dark Mode */
body.dark {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d2e;
  --bg-tertiary: #232640;
  --bg-card: #1e2035;
  --text-primary: #e8e9f0;
  --text-secondary: #b0b3c6;
  --text-muted: #7c7f94;
  --accent: #818cf8;
  --accent-light: #a5b4fc;
  --accent-dark: #6366f1;
  --accent-glow: rgba(129, 140, 248, 0.2);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-hero: linear-gradient(160deg, #0f1117 0%, #151830 50%, #1a1040 100%);
  --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(129, 140, 248, 0.2);
  --navbar-bg: rgba(15, 17, 23, 0.85);
  --glass-bg: rgba(30, 32, 53, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
}

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

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

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

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

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

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

/* ---------- Sub-Navigation (Service Categories Row) ---------- */
.subnav {
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 50%, #7c3aed 100%);
  border-top: none;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
}

body.dark .subnav {
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #5b21b6 100%);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.subnav__inner {
  display: flex;
  justify-content: center;
}

.subnav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.01em;
}

.subnav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.subnav-link .dropdown-chevron {
  color: rgba(255, 255, 255, 0.7);
}

.subnav-link:hover .dropdown-chevron {
  color: #ffffff;
}

.subnav__links .nav-dropdown {
  position: relative;
}

.subnav__links .dropdown-menu {
  top: calc(100% + 4px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  z-index: 1001;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: var(--text-lg);
}

.logo-text {
  color: var(--text-primary);
}

.logo-accent {
  color: var(--accent);
}

.navbar__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer__logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

/* ---------- Navbar Dropdown ---------- */
.nav-dropdown {
  position: relative;
}

.nav-link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-chevron {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 2000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Invisible bridge between link and menu so hover doesn't break */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.dropdown-menu__inner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Custom scrollbar for dropdown */
.dropdown-menu__inner::-webkit-scrollbar {
  width: 5px;
}

.dropdown-menu__inner::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu__inner::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

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

.dropdown-item {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--accent-glow);
  color: var(--accent);
  padding-left: 1.5rem;
}

.dropdown-item:hover::before {
  transform: scaleY(1);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width var(--transition-base);
}

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

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

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 1001;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

.icon-moon {
  display: none;
}

body.dark .icon-sun {
  display: none;
}

body.dark .icon-moon {
  display: block;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 116px;
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape--1 {
  width: 500px;
  height: 500px;
  background: rgba(79, 70, 229, 0.15);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape--2 {
  width: 400px;
  height: 400px;
  background: rgba(168, 85, 247, 0.12);
  bottom: -80px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

.shape--3 {
  width: 300px;
  height: 300px;
  background: rgba(124, 58, 237, 0.1);
  top: 40%;
  left: 40%;
  animation: float 12s ease-in-out infinite 2s;
}

body.dark .shape {
  opacity: 0.25;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-4xl) 0;
  position: relative;
  z-index: 1;
}

.hero__subtitle {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

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

.hero__tagline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  min-height: 2.5rem;
}

.cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Orbital Graphic */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* New Hero Floating Ecosystem Graphic */
.floating-eco {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-center {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.4), inset 0 0 20px rgba(255,255,255,0.5);
    animation: pulseGlobe 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-center::after {
    content: 'RGS';
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

@keyframes pulseGlobe {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(99, 102, 241, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(139, 92, 246, 0.6); }
}

.eco-card {
    position: absolute;
    width: 130px;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
    z-index: 3;
}

.eco-card:hover {
    transform: translateY(-5px) scale(1.05) !important;
}

.eco-card svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
}

.eco-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
}

/* Positioning and animations for cards */
.card-1 {
    top: 0;
    left: 20px;
    animation: floatCard1 5s ease-in-out infinite;
}

.card-2 {
    top: 25%;
    right: -20px;
    animation: floatCard2 6s ease-in-out infinite reverse;
}

.card-3 {
    bottom: 25%;
    left: -20px;
    animation: floatCard3 5.5s ease-in-out infinite;
}

.card-4 {
    bottom: 0;
    right: 20px;
    animation: floatCard4 6.5s ease-in-out infinite reverse;
}

@keyframes floatCard1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -15px); }
}
@keyframes floatCard2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -10px); }
}
@keyframes floatCard3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 15px); }
}
@keyframes floatCard4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, 15px); }
}

/* Background connecting rings */
.eco-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px dashed var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: spinRing 20s linear infinite;
    z-index: 1;
}

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

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.about__card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.about__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.about__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.about__card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.about__card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* Philosophy */
.philosophy {
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.philosophy__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.philosophy__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: border-color var(--transition-fast);
}

.philosophy__item:hover {
  border-color: var(--accent);
}

.philosophy__icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
}

/* Engagement Flow */
.engagement-flow {
  text-align: center;
}

.engagement-flow__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

.engagement-flow__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.flow-step {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.flow-step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.flow-step__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--accent);
  line-height: 1;
}

.flow-step__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.flow-step__arrow {
  font-size: var(--text-xl);
  color: var(--text-muted);
  font-weight: 300;
}

/* ==========================================
   INDUSTRIES SECTION
   ========================================== */
.industries {
  padding: var(--space-4xl) 0;
  background: var(--bg-primary);
}

.industries__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.industry-card:hover::before {
  transform: scaleX(1);
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.industry-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--accent-glow);
  border-radius: var(--radius-lg);
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.industry-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.industry-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
}

.services__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.tab-btn {
  padding: 0.625rem 1.25rem;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
}

.tab-content {
  display: none;
  animation: fadeUp 0.4s ease;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-detail__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.service-detail__header h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.service-detail__header p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
}

.service-detail__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-feature {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.service-feature:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.service-feature__icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.service-feature h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.service-feature p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ==========================================
   WHY US SECTION
   ========================================== */
.why-us {
  padding: var(--space-4xl) 0;
  background: var(--bg-primary);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.why-card__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.why-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* Engagement Models */
.engagement-models {
  text-align: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.engagement-models h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.models-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.model-tag {
  padding: 0.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.model-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 0.875rem var(--space-md);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-error {
  font-size: var(--text-xs);
  color: #ef4444;
  min-height: 1rem;
}

.form-success {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  color: #10b981;
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-success.show {
  display: flex;
}

.contact__info-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.contact__info-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.contact__info-card>p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact__detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.contact__detail-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact__socials {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--bg-tertiary);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-color);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.footer__brand {
  text-align: center;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-sm);
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
  width: 100%;
  text-align: center;
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.about__grid .reveal:nth-child(2) {
  transition-delay: 0.15s;
}

.about__grid .reveal:nth-child(3) {
  transition-delay: 0.3s;
}

.industries__grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.industries__grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.industries__grid .reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.industries__grid .reveal:nth-child(5) {
  transition-delay: 0.4s;
}

.industries__grid .reveal:nth-child(6) {
  transition-delay: 0.5s;
}

.why-us__grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.why-us__grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.why-us__grid .reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero__description {
    margin: 0 auto var(--space-xl);
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__graphic {
    width: 280px;
    height: 280px;
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .about__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .philosophy__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet Small */
@media (max-width: 768px) {
  .section-title {
    font-size: var(--text-2xl);
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: 100px var(--space-xl) var(--space-xl);
    gap: 0;
    transition: right var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow-y: auto;
    align-items: stretch;
  }

  .navbar__links.active {
    right: 0;
  }

  .navbar__links > li {
    border-bottom: 1px solid var(--border-color);
  }

  .navbar__links > li > .nav-link {
    display: block;
    padding: var(--space-md) 0;
    font-size: var(--text-base);
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Hide subnav on mobile — items accessible via hamburger */
  .subnav {
    display: none;
  }

  /* Mobile dropdown: accordion style */
  .nav-dropdown {
    position: static;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-dropdown:hover .dropdown-menu {
    transform: none;
  }

  .nav-dropdown.open .dropdown-menu {
    max-height: 800px;
  }

  .dropdown-menu__inner {
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-tertiary);
    max-height: none;
    overflow: visible;
    padding: var(--space-xs) 0 var(--space-sm);
  }

  .dropdown-item {
    white-space: normal;
    padding: 0.45rem var(--space-lg);
    font-size: var(--text-sm);
  }

  .dropdown-item:hover {
    padding-left: var(--space-xl);
  }

  .nav-link--dropdown {
    width: 100%;
    justify-content: space-between;
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__tagline {
    font-size: var(--text-xl);
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .philosophy__grid {
    grid-template-columns: 1fr;
  }

  .engagement-flow__steps {
    flex-direction: column;
  }

  .flow-step__arrow {
    transform: rotate(90deg);
  }

  .industries__grid {
    grid-template-columns: 1fr;
  }

  .service-detail__grid {
    grid-template-columns: 1fr;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
  }

  .services__tabs {
    gap: var(--space-xs);
  }

  .tab-btn {
    font-size: var(--text-xs);
    padding: 0.5rem 0.875rem;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero__title {
    font-size: var(--text-2xl);
  }

  .hero__tagline {
    font-size: var(--text-lg);
  }

  .hero__graphic {
    width: 220px;
    height: 220px;
  }

  .orbit-center {
    width: 70px;
    height: 70px;
    font-size: var(--text-lg);
  }

  .hero__cta {
    flex-direction: column;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-sm);
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: var(--text-xl);
  }

  .section-subtitle {
    font-size: var(--text-base);
  }

  .why-card__number {
    font-size: var(--text-3xl);
  }
}