/* ==========================================================================
   MBEDIN (OPC) PRIVATE LIMITED - Main Style Sheet
   ========================================================================== */

/* Fonts Import */
@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');

/* CSS Variables for Premium Dark/Crimson Theme */
:root {
  --bg-primary: #070913;
  --bg-secondary: #0d1224;
  --bg-card: rgba(17, 24, 48, 0.45);
  --border-card: rgba(225, 29, 72, 0.15);
  --border-card-hover: rgba(225, 29, 72, 0.4);
  
  --primary: #e11d48; /* Crimson matching Mbedin logo red */
  --primary-hover: #f43f5e;
  --primary-glow: rgba(225, 29, 72, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --success: #10b981;
  --warning: #f59e0b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --shadow-neon: 0 0 20px var(--primary-glow);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

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

button, input, textarea, select {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Global Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6), var(--shadow-neon);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(225, 29, 72, 0.15);
  color: var(--primary-hover);
  border: 1px solid rgba(225, 29, 72, 0.3);
  margin-bottom: 1.5rem;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 15px rgba(225, 29, 72, 0.08);
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

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

/* Navigation Header */
.header-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.5rem 0;
}

.header-area.scrolled {
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand-logo {
  width: 40px;
  height: 40px;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.nav-brand-text span {
  color: var(--primary);
}

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

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

.nav-item a:hover,
.nav-item.active a {
  color: #fff;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

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

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(225, 29, 72, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(30, 41, 59, 0.4) 0%, transparent 60%);
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
}

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

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(225, 29, 72, 0.15);
}

.hero-image-wrapper img {
  transform: scale(1.02);
  transition: var(--transition-smooth);
}

.hero-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Glow Effect Overlay behind Hero Visual */
.hero-glow-overlay {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* About & Philosophy Section */
.about-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-content h3 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Products Focus Filter Tabs */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-neon);
}

/* Product Cards Grids */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-icon {
  width: 50px;
  height: 50px;
  background: rgba(225, 29, 72, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.product-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Special Hardware/IoT Section Split styling */
.hardware-section {
  position: relative;
  background-color: var(--bg-primary);
  overflow: hidden;
}

/* R&D Innovation Lab Section */
.lab-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.lab-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.lab-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lab-feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.lab-feature-icon {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.lab-feature-text h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

.lab-visual {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* Careers Section */
.careers-section {
  position: relative;
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.job-card {
  border: 1px solid var(--border-card);
  padding: 2.5rem;
}

.job-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.job-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.job-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

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

.contact-icon {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(225, 29, 72, 0.15);
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-text p, .contact-text a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.company-meta {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.company-meta p {
  margin-bottom: 0.5rem;
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 3rem;
  border-radius: 24px;
}

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(7, 9, 19, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.15);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.form-status.error {
  display: block;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: #fecdd3;
}

/* Footer Section */
.footer-area {
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 991px) {
  .section-padding {
    padding: 6rem 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-desc {
    margin: 0 auto 2.5rem auto;
  }
  .about-grid, .lab-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-visual, .lab-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .contact-form-wrapper {
    padding: 2rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
